sqllogictest
Artifact Content
Not logged in

Artifact b3b520ee6940bc05bef8026d51ae8b0219166914:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 50 * 26 AS col0 FROM tab2 AS cor0
----
-1300
-1300
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT + COUNT( * ) * + 25 * 78 FROM tab1
----
5850

skipif mysql # not compatible
query I rowsort label-1
SELECT + COUNT ( * ) * + 25 * 78 FROM tab1
----
5850

query I rowsort
SELECT + col2 * - 60 * + + col0 AS col2 FROM tab2
----
-153600
-261000
-63480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT + - COUNT( * ) * SUM( ALL 48 ) DIV 60 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3
SELECT DISTINCT + - COUNT ( * ) * SUM ( ALL 48 ) / 60 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

query II rowsort
SELECT ALL 91 * - col2 AS col2, + col2 AS col2 FROM tab1 cor0
----
-5369
59
-6188
68
-8736
96

query II rowsort
SELECT DISTINCT col1 * - + 2 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-162
47
-2
99
-42
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST( + 60 AS DECIMAL ) * - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( + 60 AS REAL ) * - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 + - - 3 + - col1 * + + col0 FROM tab1 AS cor0
----
-4342
-481
-807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT - ( + 73 ) + col2 + CAST( - 4 AS SIGNED ) FROM tab0 AS cor0
----
-30
-67
22

skipif mysql # not compatible
query I rowsort label-8
SELECT - ( + 73 ) + col2 + CAST ( - 4 AS INTEGER ) FROM tab0 AS cor0
----
-30
-67
22

query I rowsort
SELECT DISTINCT + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 / + 46 + - - col2 + col0 + ( col1 ) - 56 BETWEEN + col1 + + ( 91 + col1 * - col0 ) * + col1 AND ( col1 )
----
2601
4489
5929

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

skipif mysql # not compatible
query I rowsort label-10
SELECT - col2 * + col1 + ( col0 ) / - CAST ( NULL AS REAL ) * - col2 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN + 17 + + - col1 + - col0 - col2 + - 59 * + col0 AND - col1 + col2 )
----

query I rowsort
SELECT ALL col2 + - col2 * - 13 AS col1 FROM tab0
----
1386
140
658

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + 84 AS col0 FROM tab0
----
1764
6804
84

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

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

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

query I rowsort
SELECT DISTINCT col2 + + col0 * + col0 + - - col2 AS col1 FROM tab0
----
319
7589
9607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-19
SELECT + - CAST( + COUNT( + col1 ) AS SIGNED ) AS col1, ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3
3

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

query I rowsort
SELECT - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL COUNT( * ) * + 64 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL COUNT ( * ) * + 64 FROM tab1 AS cor0
----
192

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

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

query I rowsort
SELECT - 4 + - ( 5 ) AS col0 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT DISTINCT col0 DIV 16 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT col0 / 16 FROM tab1 AS cor0
----
3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT - MIN( ALL + ( - - 23 ) ) / + MIN( col0 ) - + 31 FROM tab2 AS cor0 WHERE ( 32 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT - MIN ( ALL + ( - - 23 ) ) / + MIN ( col0 ) - + 31 FROM tab2 AS cor0 WHERE ( 32 ) IS NULL
----
NULL

query I rowsort
SELECT + 82 * col2 * col1 FROM tab1 cor0
----
110208
24190
262072

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT COUNT( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-28
SELECT COUNT ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + - col0
----
0

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

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

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

query I rowsort
SELECT col2 * + col2 * - col2 * + col0 AS col1 FROM tab2 WHERE NOT + + 27 IN ( + col2 * - 15 )
----
-14633400
-4096000
-559682

query III rowsort
SELECT * FROM tab2 WHERE NOT - 62 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - col0 ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - - 89 + - - col2 >= + col2 + 48
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT + col2 * - 52 DIV 52 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-35
SELECT + col2 * - 52 / 52 AS col2 FROM tab1
----
-59
-68
-96

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

query I rowsort
SELECT - + 0 FROM tab2 cor0
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-39
SELECT - COUNT ( * ) + - - 0 * 18 AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 15 + col1 IN ( + 4, 22 / + - ( - 34 ) )
----

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

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

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

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

query II rowsort
SELECT DISTINCT 63 AS col0, col2 AS col0 FROM tab1
----
63
59
63
68
63
96

query II rowsort
SELECT ALL ( + col2 ) AS col1, col1 * col0 AS col1 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

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

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

query I rowsort
SELECT 49 + col1 FROM tab1
----
54
63
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-48
SELECT DISTINCT + CAST( col0 AS SIGNED ) + col0 AS col2 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col0 AS col2 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL 80 + - 76 FROM tab0, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL col2 * - + col0 + + - col1 FROM tab0
----
-786
-891
-9604

query I rowsort
SELECT DISTINCT - col1 * - - col2 + + - col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT COUNT( * ) * + 63 FROM tab1, tab1 cor0
----
567

skipif mysql # not compatible
query I rowsort label-52
SELECT COUNT ( * ) * + 63 FROM tab1, tab1 cor0
----
567

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
14
47
5

query II rowsort
SELECT ALL + + col1 * - col0 AS col1, + col1 + col0 AS col0 FROM tab1 AS cor0
----
-425
90
-4277
138
-714
65

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

skipif mysql # not compatible
query I rowsort label-55
SELECT + COUNT ( * ) * - 98 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT + - MIN( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT - 49 + + col1 NOT BETWEEN - 59 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT + - MIN ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT - 49 + + col1 NOT BETWEEN - 59 AND NULL
----
NULL

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

query I rowsort
SELECT col1 + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IN ( - - col1 * + + col2 * + - col2, 15 * - - col0 )
----
138
65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT - + ( - col1 ) DIV col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - + ( - col1 ) / col0 FROM tab0 AS cor0
----
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT ALL - 63 DIV + 93 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL - 63 / + 93 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT - COUNT( ALL - 51 ) col2 FROM tab0 AS cor0
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-64
SELECT - COUNT( * ) DIV + ( + COUNT( * ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-64
SELECT - COUNT ( * ) / + ( + COUNT ( * ) ) FROM tab1
----
-1

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

query I rowsort
SELECT + ( 72 ) AS col1 FROM tab2
----
72
72
72

query I rowsort
SELECT 97 * - col0 FROM tab1
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT + SUM( DISTINCT ( 94 ) ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-68
SELECT + SUM ( DISTINCT ( 94 ) ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL + - col0 + - 86 - + col0 FROM tab2 AS cor0
----
-178
-214
-236

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

query II rowsort
SELECT ALL 0 AS col0, + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to abb7bd5a3b4bc59976386ce63bdfe875

query I rowsort
SELECT + - 3 AS col0 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + col2 col0 FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT DISTINCT ( col0 ) * 73 FROM tab2 AS cor0
----
3358
4672
5475

query I rowsort
SELECT + + col0 + + 70 FROM tab0 AS cor0
----
157
167
85

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

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

query I rowsort
SELECT - col1 + - 41 FROM tab1 AS cor0
----
-46
-55
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ALL - 21 + - - MIN( ALL + 56 ) AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - 21 + - - MIN ( ALL + 56 ) AS col0 FROM tab0 AS cor0
----
35

query I rowsort
SELECT - + col1 * ( - 16 ) AS col0 FROM tab0 AS cor0
----
1296
16
336

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT 44 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT 44 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 + + 75 FROM tab2
----
126
142
152

query II rowsort
SELECT + col2 AS col1, 99 FROM tab2
----
23
99
40
99
58
99

query I rowsort
SELECT DISTINCT + 65 * - col0 * + col0 + + - col1 FROM tab1
----
-169079
-469630
-538312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-85
SELECT DISTINCT + col2 - CAST( - col2 AS SIGNED ) + col2, ( + + col0 ) + 4 col1 FROM tab0
----
141
19
297
101
30
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-85
SELECT DISTINCT + col2 - CAST ( - col2 AS INTEGER ) + col2, ( + + col0 ) + 4 col1 FROM tab0
----
141
19
297
101
30
91

query I rowsort
SELECT DISTINCT col1 + - - col0 * - 37 AS col2 FROM tab1
----
-1873
-3140
-3320

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

query I rowsort
SELECT col2 - + - 69 * - 32 * - col0 AS col1 FROM tab0 AS cor0
----
192106
214275
33167

query I rowsort
SELECT DISTINCT + col2 * + col0 + - - 67 + col2 + + + col2 AS col0 FROM tab0 AS cor0
----
866
957
9868

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

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

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

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

query I rowsort
SELECT - - col2 * + - col1 + + col0 FROM tab1 cor0
----
-1293
-210
-3105

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + 84 * + COUNT( * ) FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-94
SELECT + 84 * + COUNT ( * ) FROM tab1
----
252

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

query I rowsort
SELECT ALL + + 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-98
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + ( - 67 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + CAST ( NULL AS REAL ) / + ( - 67 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 68 * + col0 AS col2 FROM tab2 AS cor0
----
3128
4352
5100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-100
SELECT COUNT( DISTINCT - ( + - col2 ) ) DIV - - SUM( ALL - 58 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-100
SELECT COUNT ( DISTINCT - ( + - col2 ) ) / - - SUM ( ALL - 58 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-101
SELECT DISTINCT + 46 DIV + + col0 AS col2, 46 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-101
SELECT DISTINCT + 46 / + + col0 AS col2, 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
NULL
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT + SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-103
SELECT - COUNT( ALL - - 20 ), - ( + 36 ) AS col0 FROM tab2 cor0
----
-3
-36

skipif mysql # not compatible
query II rowsort label-103
SELECT - COUNT ( ALL - - 20 ), - ( + 36 ) AS col0 FROM tab2 cor0
----
-3
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT + SUM( 91 ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-104
SELECT + SUM ( 91 ) FROM tab0 AS cor0
----
273

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT - + SUM( 4 ), + 39 col0 FROM tab2 AS cor0
----
-12
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-107
SELECT - + SUM ( 4 ), + 39 col0 FROM tab2 AS cor0
----
-12
39

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT 63 * - COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT 63 * - COUNT ( * ) FROM tab1
----
-189

query II rowsort
SELECT DISTINCT col1 AS col0, 45 * col0 AS col0 FROM tab1
----
14
2295
47
4095
5
3825

query II rowsort
SELECT DISTINCT + 39 + - col1 * col0 * - ( + 55 ) + - 36, col1 + 59 + col1 * 83 + + 21 / 65 AS col1 FROM tab0 WHERE NOT ( NOT ( NOT ( - 68 + - - 16 ) <= NULL ) )
----

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

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

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 cor0 WHERE NULL <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-115
SELECT - ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL 35 - + + 86 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ALL - 64 * col2 + - 44 AS col2 FROM tab2 WHERE + ( + 65 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT - col0 DIV 94 + - + col2 AS col2 FROM tab0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-118
SELECT - col0 / 94 + - + col2 AS col2 FROM tab0
----
-10
-100
-47

query I rowsort
SELECT + col0 + ( - col0 ) + - col2 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 37 - - col1 AS col2 FROM tab1
----
42
51
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col0 FROM tab0
----
-100
-128
-31

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

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

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT SUM ( ALL + col2 ) AS col1 FROM tab0 cor0
----
156

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL <> - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT ALL 41 DIV - col1 FROM tab0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL 41 / - col1 FROM tab0
----
-1
-41
0

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

skipif mysql # not compatible
query I rowsort label-127
SELECT 25 * - COUNT ( * ) AS col0 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT - ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT + SUM( ( + 37 ) ) - ( ( 82 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
29

skipif mysql # not compatible
query I rowsort label-129
SELECT + SUM ( ( + 37 ) ) - ( ( 82 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > - - 60 * - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - 18 * + 6 FROM tab0 cor0
----
-11
-21
-93

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT + 65 * - 98 * + - COUNT( * ) - + COUNT( * ) + + + CAST( 37 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
19144

skipif mysql # not compatible
query I rowsort label-134
SELECT + 65 * - 98 * + - COUNT ( * ) - + COUNT ( * ) + + + CAST ( 37 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
19144

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

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

query I rowsort
SELECT - 33 + - - 44 FROM tab1
----
11
11
11

query I rowsort
SELECT + col1 + 12 FROM tab2
----
63
79
89

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

skipif mysql # not compatible
query I rowsort label-138
SELECT ( - col0 ) + + + col2 + - col2 + + col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT 60 * - + ( - + COUNT( * ) ) AS col0 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT 60 * - + ( - + COUNT ( * ) ) AS col0 FROM tab2
----
180

query I rowsort
SELECT + 26 * - col2 * - 4 FROM tab2
----
2392
4160
6032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-141
SELECT ALL CAST( + MAX( - 36 ) AS SIGNED ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL CAST ( + MAX ( - 36 ) AS INTEGER ) FROM tab0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-142
SELECT ALL - ( - CAST( NULL AS SIGNED ) ), col2 + - 62 - + 11 AS col2 FROM tab1 cor0
----
NULL
-14
NULL
-5
NULL
23

skipif mysql # not compatible
query II rowsort label-142
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ), col2 + - 62 - + 11 AS col2 FROM tab1 cor0
----
NULL
-14
NULL
-5
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT 99 + 30 DIV - 83 FROM tab0 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-143
SELECT 99 + 30 / - 83 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL - 86 + - - COUNT( * ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - 86 + - - COUNT ( * ) FROM tab1
----
-83

query I rowsort
SELECT DISTINCT - + 93 * - - 45 * - 24 - + col1 + - col2 FROM tab0 cor0
----
100312
100340
100409

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

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

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

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

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

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

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

query I rowsort
SELECT col0 * + 45 FROM tab0 AS cor0
----
3915
4365
675

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

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

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + 91 * col0 * + col1 * + col0 AS col2 FROM tab1 AS cor0
----
3287375
3313674
35417837

query II rowsort
SELECT - col0 AS col0, + ( col0 ) AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL MAX( ALL - 58 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL MAX ( ALL - 58 ) FROM tab2
----
-58

query I rowsort
SELECT DISTINCT col0 + col0 + 19 FROM tab0
----
193
213
49

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

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

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

query I rowsort
SELECT + 24 + col1 + - + col2 + - - ( + - col2 ) * col0 * 35 AS col0 FROM tab1
----
-171418
-175555
-216577

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT - 30 DIV - col1 + - ( + col2 ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-166
SELECT - 30 / - col1 + - ( + col2 ) AS col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT ALL - + 44, 68 AS col2 FROM tab0 AS cor0
----
-44
68
-44
68
-44
68

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT DISTINCT - + SUM( - col2 ) * + 10 AS col0 FROM tab1 AS cor0
----
2230

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT - + SUM ( - col2 ) * + 10 AS col0 FROM tab1 AS cor0
----
2230

query I rowsort
SELECT + 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT + 81 * - 31 + col1 AS col1 FROM tab1
----
-2464
-2497
-2506

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT col0 DIV - - 95 - - - col1 * - + col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-171
SELECT col0 / - - 95 - - - col1 * - + col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT + 43 + - 68 AS col1 FROM tab2
----
-25

query I rowsort
SELECT ALL ( 15 ) FROM tab0 cor0
----
15
15
15

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

onlyif mysql # DIV for integer division: 
query I rowsort label-175
SELECT + col2 DIV - + 56 - col0 + + + 23 AS col2 FROM tab1 cor0
----
-29
-63
-69

skipif mysql # not compatible
query I rowsort label-175
SELECT + col2 / - + 56 - col0 + + + 23 AS col2 FROM tab1 cor0
----
-29
-63
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 14 * + + 61 NOT BETWEEN NULL AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - ( - 68 ) * + - col0 * + + col1 col1 FROM tab2 AS cor0
----
159574
335168
341775

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

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

query I rowsort
SELECT DISTINCT + ( 39 ) FROM tab1 cor0
----
39

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

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL + ( ( + SUM ( + + col1 ) ) ) FROM tab0
----
103

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

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL - CAST ( - 58 AS INTEGER ) FROM tab2
----
58
58
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - COUNT( + 42 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT - COUNT ( + 42 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + COUNT( ALL 3 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-185
SELECT + COUNT ( ALL 3 ) AS col2 FROM tab0
----
3

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

query I rowsort
SELECT col1 * + - col1 * + col1 FROM tab0
----
-1
-531441
-9261

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

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ( - 84 ) * COUNT( - - 49 ) AS col1 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-189
SELECT ( - 84 ) * COUNT ( - - 49 ) AS col1 FROM tab1
----
-252

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - + col2 <= + col0 * col2 * 79 + + 1
----

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

query I rowsort
SELECT DISTINCT - col0 + + 97 AS col0 FROM tab0 AS cor0
----
0
10
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + - 51 col1, col2 AS col2 FROM tab1 AS cor0
----
17
68
45
96
8
59

query I rowsort
SELECT ALL 57 + - 48 AS col1 FROM tab2 AS cor0
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 31 + + col2 FROM tab0 AS cor0
----
-21
16
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 + + col0 col0 FROM tab1 AS cor0
----
-30
10
4

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT + 32 + + MIN( + + col0 ) AS col0 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-199
SELECT + 32 + + MIN ( + + col0 ) AS col0 FROM tab0 AS cor0
----
47

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-201
SELECT DISTINCT - col2 + col1 DIV + 31, col1 AS col0 FROM tab2
----
-22
51
-38
77
-56
67

skipif mysql # not compatible
query II rowsort label-201
SELECT DISTINCT - col2 + col1 / + 31, col1 AS col0 FROM tab2
----
-22
51
-38
77
-56
67

query III rowsort
SELECT * FROM tab2 WHERE - - ( - col2 ) + + col0 - - col2 NOT IN ( 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL MIN( ALL + ( + 80 ) ) * MIN( ALL ( col2 ) ) FROM tab1
----
4720

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL MIN ( ALL + ( + 80 ) ) * MIN ( ALL ( col2 ) ) FROM tab1
----
4720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-206
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + 74 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + 74 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT + + SUM( - + col0 ) - + - 83 AS col1, + ( MAX( + 88 ) ) - - ( - 81 ) FROM tab0 AS cor0
----
-116
7

skipif mysql # not compatible
query II rowsort label-207
SELECT + + SUM ( - + col0 ) - + - 83 AS col1, + ( MAX ( + 88 ) ) - - ( - 81 ) FROM tab0 AS cor0
----
-116
7

query I rowsort
SELECT DISTINCT - col1 * - + 22 + 92 AS col0 FROM tab1 AS cor0
----
1126
202
400

query I rowsort
SELECT col1 + + col0 * - col0 AS col2 FROM tab2
----
-2065
-4019
-5558

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

query I rowsort
SELECT ALL + col2 + - + col2 + + - ( + + col1 ) + - - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + + 72 AS col0 FROM tab1 WHERE + + col2 <> - 28
----
72
72
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT - + 96 * + - CAST( 94 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
9024
9024
9024

skipif mysql # not compatible
query I rowsort label-214
SELECT - + 96 * + - CAST ( 94 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
9024
9024
9024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-215
SELECT + 48 DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-215
SELECT + 48 / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-16

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

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

skipif mysql # not compatible
query I rowsort label-217
SELECT + COUNT ( col0 ) * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

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

query III rowsort
SELECT ALL 81 AS col2, + col0 AS col1, col1 + - 51 + - 87 * - + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to c08089bb66556052e49e3f9d7cd578e7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL - COUNT( ALL - ( - 58 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL - COUNT ( ALL - ( - 58 ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 - + ( - - 49 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 25 * col1 AS col2 FROM tab2
----
1275
1675
1925

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

skipif mysql # not compatible
query II rowsort label-224
SELECT MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) FROM tab1
----
NULL
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-226
SELECT 92 * - - CAST( - 4 AS DECIMAL ) col2 FROM tab0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-226
SELECT 92 * - - CAST ( - 4 AS REAL ) col2 FROM tab0 WHERE NOT NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT - MIN( ALL 20 ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-228
SELECT - MIN ( ALL 20 ) FROM tab1 AS cor0
----
-20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT DISTINCT + 32 DIV + MAX( - - col0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT + 32 / + MAX ( - - col0 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + - col2 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT ALL + COUNT( * ) AS col1, 99 AS col0 FROM tab2
----
3
99

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL + COUNT ( * ) AS col1, 99 AS col0 FROM tab2
----
3
99

query I rowsort
SELECT 97 / col2 FROM tab2 WHERE NOT - col2 + - col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 2 * + col1 * - + col0 AS col1 FROM tab1
----
-1428
-850
-8554

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

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

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

query I rowsort
SELECT - 30 * + col1 AS col2 FROM tab1 AS cor0
----
-1410
-150
-420

query I rowsort
SELECT ALL + - 32 * + - col0 AS col0 FROM tab2 AS cor0
----
1472
2048
2400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-241
SELECT - col0, + CAST( - - CAST( - - 82 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
82
-85
82
-91
82

skipif mysql # not compatible
query II rowsort label-241
SELECT - col0, + CAST ( - - CAST ( - - 82 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
82
-85
82
-91
82

query I rowsort
SELECT ALL col1 * + - col2 * + ( col2 ) + 4 - + col0 AS col1 FROM tab0 AS cor0
----
-178940
-2183
-9894

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-243
SELECT CAST( NULL AS DECIMAL ) + - + 62 col1, - COUNT( * ) AS col2 FROM tab2
----
NULL
-3

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

query I rowsort
SELECT DISTINCT 62 + - + ( - col0 ) * + + 55 + + 12 * - col2 FROM tab2
----
2316
3102
3491

query I rowsort
SELECT ALL + 57 * + col0 * + 50 + + col2 AS col1 FROM tab1
----
145446
242309
259418

query II rowsort
SELECT - col0 + - 80, col1 AS col0 FROM tab1
----
-131
14
-165
5
-171
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 98 - + col1 col0, 84 AS col2 FROM tab0
----
17
84
77
84
97
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-248
SELECT + COUNT( DISTINCT + - col0 ) + + COUNT( * ) DIV MAX( ALL - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-248
SELECT + COUNT ( DISTINCT + - col0 ) + + COUNT ( * ) / MAX ( ALL - col1 ) AS col2 FROM tab2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT DISTINCT COUNT( * ) * - 67 AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT COUNT ( * ) * - 67 AS col2 FROM tab2
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL + COUNT( * ) - 65 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + COUNT ( * ) - 65 FROM tab0
----
-62

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

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

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

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

query I rowsort
SELECT ALL col2 + + 9 FROM tab0
----
108
19
56

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-255
SELECT ALL 37 + CAST ( NULL AS INTEGER ) + - - col1 + - col1 * + + col1 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL > + - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT - MIN( DISTINCT - 87 ) * MIN( + - 15 ) * + COUNT( * ) AS col1 FROM tab1
----
-3915

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - MIN ( DISTINCT - 87 ) * MIN ( + - 15 ) * + COUNT ( * ) AS col1 FROM tab1
----
-3915

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT ALL + - 79 DIV 61 + ( - + col0 ) FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + - 79 / 61 + ( - + col0 ) FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT ALL ( 17 ) * + 11 * - col1 FROM tab0 cor0
----
-15147
-187
-3927

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

query I rowsort
SELECT col0 * - - 2 FROM tab2 AS cor0
----
128
150
92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-263
SELECT + COUNT( * ), 82 * + 85 AS col2 FROM tab0
----
3
6970

skipif mysql # not compatible
query II rowsort label-263
SELECT + COUNT ( * ), 82 * + 85 AS col2 FROM tab0
----
3
6970

query I rowsort
SELECT - col1 * + 57 * + col2 AS col2 FROM tab1
----
-16815
-182172
-76608

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-265
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 55 AS col2 FROM tab1
----
NULL
55
NULL
55
NULL
55

skipif mysql # not compatible
query II rowsort label-265
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 55 AS col2 FROM tab1
----
NULL
55
NULL
55
NULL
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL ( col1 ) * - CAST( col2 AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL ( col1 ) * - CAST ( col2 AS INTEGER ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - 71 * + 62 FROM tab1
----
-4402

onlyif mysql # DIV for integer division: 
query II rowsort label-268
SELECT col2 DIV - + col0 AS col1, + col2 AS col1 FROM tab1
----
-1
96
0
59
0
68

skipif mysql # not compatible
query II rowsort label-268
SELECT col2 / - + col0 AS col1, + col2 AS col1 FROM tab1
----
-1
96
0
59
0
68

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-270
SELECT DISTINCT SUM( - col1 ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT SUM ( - col1 ) / + + COUNT ( * ) FROM tab0 AS cor0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 90, 75 col1 FROM tab2 AS cor0
----
90
75

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NULL AND NULL <= - col1
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-275
SELECT ALL - 89 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + CAST( + - 50 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - 89 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + CAST ( + - 50 AS REAL )
----

query I rowsort
SELECT + - col2 * - 23 + + col0 + - col2 FROM tab0 AS cor0
----
1049
2275
307

query I rowsort
SELECT + + 6 + + - 35 + - - col2 * - 79 AS col1 FROM tab2 AS cor0
----
-1846
-3189
-4611

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

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

query I rowsort
SELECT ALL col1 + - 15 AS col2 FROM tab0
----
-14
6
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-280
SELECT DISTINCT + SUM( - 71 ) + + 8, ( ( + + 74 ) ) DIV 84 AS col1 FROM tab0
----
-205
0

skipif mysql # not compatible
query II rowsort label-280
SELECT DISTINCT + SUM ( - 71 ) + + 8, ( ( + + 74 ) ) / 84 AS col1 FROM tab0
----
-205
0

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

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

query I rowsort
SELECT ( - - col0 ) - + ( col2 ) * - 8 FROM tab1
----
557
635
819

query I rowsort
SELECT - col2 - - - 97 FROM tab0 AS cor0
----
-107
-144
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL + 51 - + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL + 51 - + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ( COUNT( ALL + + 36 ) ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-286
SELECT ( COUNT ( ALL + + 36 ) ) FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 32 * + - 34 AS col0 FROM tab2
----
-1088

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

query I rowsort
SELECT - - 22 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT + 86 + - col2 AS col2 FROM tab0 cor0 WHERE col2 NOT BETWEEN + col1 AND + - col0
----
-13
39
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT 73 * + COUNT( * ) * + + 42 FROM tab2 AS cor0
----
9198

skipif mysql # not compatible
query I rowsort label-292
SELECT 73 * + COUNT ( * ) * + + 42 FROM tab2 AS cor0
----
9198

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE - col0 * col0 - - + col0 * - + col0 < + col2
----
14
47
5

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

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

query II rowsort
SELECT ALL 4 AS col0, 79 FROM tab0
----
4
79
4
79
4
79

query I rowsort
SELECT ALL col1 * - + 43 FROM tab2
----
-2193
-2881
-3311

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - 45 * - 95
----

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

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

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

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE CAST ( col1 AS INTEGER ) * - 38 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-302
SELECT - ( - 59 ) DIV COUNT( * ) * + 3 AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-302
SELECT - ( - 59 ) / COUNT ( * ) * + 3 AS col1 FROM tab2
----
57

query I rowsort
SELECT ALL - col0 * + 10 AS col2 FROM tab0
----
-150
-870
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT COUNT( * ) * + MIN( - - col1 ) col1 FROM tab1
----
15

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

query I rowsort
SELECT col2 * 37 FROM tab0
----
1739
3663
370

query I rowsort
SELECT ALL - - 71 * col1 AS col0 FROM tab0 cor0
----
1491
5751
71

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

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

query I rowsort
SELECT col2 - + 30 * - col1 + + + 17 AS col2 FROM tab0 AS cor0
----
146
2494
657

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

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

query I rowsort
SELECT ALL col1 + - 79 AS col2 FROM tab2 cor0
----
-12
-2
-28

query I rowsort
SELECT col1 + 32 + + col1 AS col2 FROM tab0
----
194
34
74

query I rowsort
SELECT col1 + - - col0 AS col1 FROM tab1
----
138
65
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT 75 DIV + col0 + + 54 AS col1 FROM tab0
----
54
54
59

skipif mysql # not compatible
query I rowsort label-315
SELECT 75 / + col0 + + 54 AS col1 FROM tab0
----
54
54
59

query II rowsort
SELECT DISTINCT - col2 - 5 AS col2, col1 + + - col0 AS col0 FROM tab2
----
-28
5
-45
13
-63
-8

query II rowsort
SELECT ALL col0 - - - col0 AS col2, ( + + col1 ) * + + ( + col0 ) + + 42 FROM tab1
----
0
4319
0
467
0
756

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-320
SELECT + AVG ( - col0 ) * CAST ( 27 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-321
SELECT col2, CAST( - 89 AS SIGNED ) AS col2 FROM tab2
----
23
-89
40
-89
58
-89

skipif mysql # not compatible
query II rowsort label-321
SELECT col2, CAST ( - 89 AS INTEGER ) AS col2 FROM tab2
----
23
-89
40
-89
58
-89

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

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

query I rowsort
SELECT ALL ( + ( + 66 ) ) AS col1 FROM tab1 AS cor0
----
66
66
66

query II rowsort
SELECT DISTINCT + 56 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
56
-15
56
-87
56
-97

query II rowsort
SELECT - 0 AS col2, - ( + + 90 ) FROM tab0 AS cor0 WHERE NOT NULL >= + 53
----

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

query I rowsort
SELECT 81 * + 64 FROM tab0 AS cor0
----
5184
5184
5184

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 22 IS NULL
----

query I rowsort
SELECT - - 97 FROM tab0 AS cor0 WHERE NOT + 57 <> NULL
----

query II rowsort
SELECT col0 * - - 98 AS col1, + col0 AS col2 FROM tab2
----
4508
46
6272
64
7350
75

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT COUNT( DISTINCT + 25 ) * + + 28 + - - 9 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-332
SELECT COUNT ( DISTINCT + 25 ) * + + 28 + - - 9 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL + MIN( ALL + 59 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL + MIN ( ALL + 59 ) FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT MIN( + - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-334
SELECT MIN ( + - col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT + + 32 FROM tab0 cor0
----
32
32
32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 81 col2 FROM tab1 cor0
----
-4779
-5508
-7776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-338
SELECT - CAST( + - 80 AS SIGNED ) + + - col2 FROM tab2 AS cor0
----
22
40
57

skipif mysql # not compatible
query I rowsort label-338
SELECT - CAST ( + - 80 AS INTEGER ) + + - col2 FROM tab2 AS cor0
----
22
40
57

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-339
SELECT COUNT ( * ) + + 69 col1 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT COUNT( * ) + - 37 - 97 AS col0 FROM tab2 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT COUNT ( * ) + - 37 - 97 AS col0 FROM tab2 AS cor0
----
-131

onlyif mysql # DIV for integer division: 
query II rowsort label-341
SELECT + col1 * 7 DIV + + 63, - col2 AS col1 FROM tab2 AS cor0
----
5
-23
7
-58
8
-40

skipif mysql # not compatible
query II rowsort label-341
SELECT + col1 * 7 / + + 63, - col2 AS col1 FROM tab2 AS cor0
----
5
-23
7
-58
8
-40

query I rowsort
SELECT + AVG ( - - col0 ) * - 62 + 73 FROM tab0 AS cor0 WHERE - col0 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-343
SELECT - + col1 DIV + col0 + + CAST( ( + col0 ) AS SIGNED ) * + CAST( - col2 AS SIGNED ) + - - col0 FROM tab2 AS cor0
----
-1013
-2497
-4275

skipif mysql # not compatible
query I rowsort label-343
SELECT - + col1 / + col0 + + CAST ( ( + col0 ) AS INTEGER ) * + CAST ( - col2 AS INTEGER ) + - - col0 FROM tab2 AS cor0
----
-1013
-2497
-4275

query I rowsort
SELECT DISTINCT + - col1 * + - col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL + col0 * col2 * + 61 / - col2 FROM tab1 cor0 WHERE NOT col2 > + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL MAX( ALL - - col2 ) + 93 * - - 98 FROM tab0 AS cor0
----
9213

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL MAX ( ALL - - col2 ) + 93 * - - 98 FROM tab0 AS cor0
----
9213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-347
SELECT ALL - col1, - col2 * - CAST( - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-14
-9216
-47
-4624
-5
-3481

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-347
SELECT ALL - col1, - col2 * - CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-14
-9216
-47
-4624
-5
-3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * 26 + col0 col1 FROM tab0
----
2095
2167
2177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-349
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 12 + + 58 * + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-349
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 12 + + 58 * + CAST ( - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-350
SELECT + CAST( NULL AS DECIMAL ) - + 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT + CAST ( NULL AS REAL ) - + 32 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + - col2 * 21 - - 18 AS col1 FROM tab1
----
-193518
-73083
-97086

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT DISTINCT - col2 DIV + col0 + + col0 AS col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - col2 / + col0 + + col0 AS col0 FROM tab1
----
50
85
91

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-355
SELECT - + 42 * col2 AS col2, + 5 DIV col2 AS col0, + + 38 col2 FROM tab2 AS cor0
----
9 values hashing to 42b835a5ed0af58fcf3e11f65cbc936e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-355
SELECT - + 42 * col2 AS col2, + 5 / col2 AS col0, + + 38 col2 FROM tab2 AS cor0
----
9 values hashing to 42b835a5ed0af58fcf3e11f65cbc936e

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

query I rowsort
SELECT + - 37 * + - col1 * + - col2 AS col0 FROM tab1 cor0
----
-10915
-118252
-49728

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT COUNT( - 5 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-358
SELECT COUNT ( - 5 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-359
SELECT 50 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-359
SELECT 50 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
150

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - ( + col2 ) - col1 + + 0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT ALL SUM( + + 25 ) * + SUM( + + 12 ) AS col1, 42 FROM tab1
----
2700
42

skipif mysql # not compatible
query II rowsort label-364
SELECT ALL SUM ( + + 25 ) * + SUM ( + + 12 ) AS col1, 42 FROM tab1
----
2700
42

query I rowsort
SELECT - 45 + col0 FROM tab0
----
-30
42
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 + - col1 + col2 col0 FROM tab2 AS cor0
----
-18
-56
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT DISTINCT - COUNT( * ) - - MAX( DISTINCT 64 ) FROM tab0 WHERE NOT ( + col1 ) <> + 95 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - COUNT ( * ) - - MAX ( DISTINCT 64 ) FROM tab0 WHERE NOT ( + col1 ) <> + 95 + col2
----
NULL

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

query I rowsort
SELECT ( 71 ) FROM tab2
----
71
71
71

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE ( NULL ) < - col2 * 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT 90 * - COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT 90 * - COUNT ( * ) FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT SUM( col0 ) col0 FROM tab1
----
227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT DISTINCT - COUNT( col1 ) * - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT - COUNT ( col1 ) * - COUNT ( * ) AS col2 FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT CAST( 2 AS SIGNED ) * col1 + 13 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-375
SELECT CAST ( 2 AS INTEGER ) * col1 + 13 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT 84 DIV - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-376
SELECT 84 / - col2 FROM tab2
----
-1
-2
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT col2 DIV ( col2 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-377
SELECT col2 / ( col2 ) FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT 90 DIV 74 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-378
SELECT 90 / 74 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL col1 * col0 FROM tab0 WHERE 85 + 65 BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER ) + 46 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 0 FROM tab1 WHERE - col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT 59 FROM tab2 WHERE col0 + + 39 IS NOT NULL
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL SUM( ALL - 63 ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL SUM ( ALL - 63 ) FROM tab0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT + col2 DIV - col2 + + col1 * col1 AS col1 FROM tab2
----
2600
4488
5928

skipif mysql # not compatible
query I rowsort label-384
SELECT + col2 / - col2 + + col1 * col1 AS col1 FROM tab2
----
2600
4488
5928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-385
SELECT - COUNT( * ) DIV + 26 + - 44 col1 FROM tab0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-385
SELECT - COUNT ( * ) / + 26 + - 44 col1 FROM tab0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-386
SELECT + 57 DIV COUNT( * ) + + 13 AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-386
SELECT + 57 / COUNT ( * ) + + 13 AS col1 FROM tab1
----
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 71 * + col0 - - col0 * - col0 <= - col0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 > ( 10 )
----
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE 99 BETWEEN - 17 AND ( - 14 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT - 81 + COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-390
SELECT - 81 + COUNT ( * ) FROM tab2
----
-78

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT NULL = + ( ( + 29 ) ) - + col2
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-393
SELECT DISTINCT - COUNT( * ) DIV 70 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - COUNT ( * ) / 70 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT + col2 DIV ( - 28 ) AS col0 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-394
SELECT + col2 / ( - 28 ) AS col0 FROM tab1
----
-2
-2
-3

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT IN ( 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 47 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT COUNT( * ) + 40 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-400
SELECT COUNT ( * ) + 40 FROM tab2 AS cor0
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT - MAX( ALL 30 ) FROM tab0 AS cor0 WHERE NOT ( col0 * + 93 ) IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-402
SELECT - MAX ( ALL 30 ) FROM tab0 AS cor0 WHERE NOT ( col0 * + 93 ) IS NULL
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT + 24 * SUM( ALL + 70 ) + MIN( ALL + col2 ) FROM tab1
----
5099

skipif mysql # not compatible
query I rowsort label-404
SELECT + 24 * SUM ( ALL + 70 ) + MIN ( ALL + col2 ) FROM tab1
----
5099

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT + MIN( DISTINCT - 37 ) col2 FROM tab0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-405
SELECT + MIN ( DISTINCT - 37 ) col2 FROM tab0
----
-37

query I rowsort
SELECT - 68 * col1 AS col1 FROM tab2
----
-3468
-4556
-5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT + MIN( + CAST( + col1 AS SIGNED ) ) FROM tab2
----
51

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 87 BETWEEN col2 AND 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col2 / col1 NOT IN ( 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - ( col1 ) AS col2 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 32 ) * col1 col2 FROM tab0 AS cor0
----
2592
32
672

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL + 76 + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
85

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + 76 + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
85

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 23 >= ( - + col2 )
----
15
81
47
97
1
99

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

query I rowsort
SELECT + 10 AS col1 FROM tab2 AS cor0 WHERE 92 + - 41 IN ( col2 )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 91 + - col1 / - 58 IN ( - col0 * + col0 + 17 )
----

query I rowsort
SELECT DISTINCT 7 - + - col2 FROM tab0 AS cor0
----
106
17
54

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT - MAX( ALL + - 6 ) - - 97 DIV + COUNT( * ) FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-424
SELECT - MAX ( ALL + - 6 ) - - 97 / + COUNT ( * ) FROM tab0 cor0
----
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-426
SELECT DISTINCT - 49 col1, COUNT( * ) + - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
-49
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-426
SELECT DISTINCT - 49 col1, COUNT ( * ) + - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-49
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col2 FROM tab1 WHERE ( + - 44 * + col1 ) BETWEEN col2 + - col1 AND NULL
----

query I rowsort
SELECT ALL 61 * - 59 * col1 FROM tab0
----
-291519
-3599
-75579

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT - CAST( + col0 AS SIGNED ) DIV - 21 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) / - 21 FROM tab0
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT DISTINCT + + ( MIN( col2 ) ) * - 58 FROM tab2 WHERE + - 52 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT + + ( MIN ( col2 ) ) * - 58 FROM tab2 WHERE + - 52 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-432
SELECT - col0 + - col2 FROM tab2 WHERE NOT - 3 * - 3 * 14 + CAST( - 3 - - 32 * col0 AS DECIMAL ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-432
SELECT - col0 + - col2 FROM tab2 WHERE NOT - 3 * - 3 * 14 + CAST ( - 3 - - 32 * col0 AS REAL ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 IN ( - + 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 * - col1, 19 AS col0 FROM tab2
----
-2601
19
-4489
19
-5929
19

query I rowsort
SELECT col1 * 74 * 78 * - col2 FROM tab1
----
-1702740
-18447312
-7757568

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 21 - - col0 * - col0 IS NULL
----

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

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

query I rowsort
SELECT ALL - 6 FROM tab1 cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT col1 * + - col2 * + 79 FROM tab2
----
-243320
-306994
-92667

query I rowsort
SELECT ALL + col2 * - col1 + + col1 FROM tab1 WHERE NOT + - col1 BETWEEN col1 AND NULL
----
-1330
-290
-3149

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

query I rowsort
SELECT - - 23 FROM tab0 cor0
----
23
23
23

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

skipif mysql # not compatible
query I rowsort label-444
SELECT - MAX ( - ( 48 ) ) AS col0 FROM tab1 AS cor0
----
48

query II rowsort
SELECT ALL - 47, col0 / + - col1 + col0 FROM tab0 AS cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT ALL + 33 * 32 + col0 * col2 AS col2 FROM tab2 AS cor0 WHERE + 84 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 - + col0 >= - 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + - 69 AS col0 FROM tab1
----
-120
-154
-160

query I rowsort
SELECT ( - 61 ) * - 67 + + ( - + col0 ) AS col2 FROM tab2
----
4012
4023
4041

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-451
SELECT 74 + - - col0 AS col0, CAST( - 68 AS SIGNED ) FROM tab0
----
161
-68
171
-68
89
-68

skipif mysql # not compatible
query II rowsort label-451
SELECT 74 + - - col0 AS col0, CAST ( - 68 AS INTEGER ) FROM tab0
----
161
-68
171
-68
89
-68

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 12 / - ( col0 ) * 4 + ( 70 ) IN ( 54 * col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 18 + - col2 + - col1 * col0 FROM tab2
----
-2351
-4950
-5065

query I rowsort
SELECT col1 + - + 7 * - col0 FROM tab1
----
371
600
684

query II rowsort
SELECT - col0 + + + col2 * - - col2 * + col2 AS col0, col1 AS col2 FROM tab2
----
12121
51
195037
67
63936
77

query II rowsort
SELECT ALL + ( col0 ), col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT 11 + - 78 AS col2 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-458
SELECT * FROM tab1 AS cor0 WHERE + col2 / + col2 * + CAST( - 81 AS DECIMAL ) / - col2 - + col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-458
SELECT * FROM tab1 AS cor0 WHERE + col2 / + col2 * + CAST ( - 81 AS REAL ) / - col2 - + col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-459
SELECT DISTINCT MIN( + col1 ), 38 AS col0 FROM tab2 cor0
----
51
38

skipif mysql # not compatible
query II rowsort label-459
SELECT DISTINCT MIN ( + col1 ), 38 AS col0 FROM tab2 cor0
----
51
38

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL MAX( DISTINCT + - ( + ( col1 ) ) ) - ( - 38 ) * + 0 + + 62 AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL MAX ( DISTINCT + - ( + ( col1 ) ) ) - ( - 38 ) * + 0 + + 62 AS col1 FROM tab0
----
61

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

skipif mysql # not compatible
query I rowsort label-463
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - 37 - - - MIN( 88 ) col2 FROM tab1
----
-125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-464
SELECT - 37 - - - MIN ( 88 ) col2 FROM tab1
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT DISTINCT col1 - - col2 DIV - - 44 AS col2 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT col1 - - col2 / - - 44 AS col2 FROM tab2
----
51
68
77

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

query I rowsort
SELECT DISTINCT + + 77 AS col0 FROM tab1 cor0
----
77

query I rowsort
SELECT DISTINCT - - 95 AS col1 FROM tab1 cor0
----
95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-470
SELECT 73 * + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1, 72 FROM tab1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-470
SELECT 73 * + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1, 72 FROM tab1
----
NULL
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT - CAST( 65 AS SIGNED ) * + - col0 FROM tab2
----
2990
4160
4875

skipif mysql # not compatible
query I rowsort label-471
SELECT - CAST ( 65 AS INTEGER ) * + - col0 FROM tab2
----
2990
4160
4875

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 >= + col1 * - 47 * - - 48
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT COUNT( * ) DIV - MIN( + - col1 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-475
SELECT DISTINCT COUNT ( * ) / - MIN ( + - col1 ) col2 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-477
SELECT COUNT( * ) col0, 97 + ( + COUNT( * ) ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-477
SELECT COUNT ( * ) col0, 97 + ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT 14 / + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT 14 / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col1 * col2 AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col2 AND + col0 * ( - - col1 ) + - + 41
----
-2

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-482
SELECT ALL 26 * + MIN( DISTINCT 77 ) col1, 32 AS col2 FROM tab1 AS cor0
----
2002
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-482
SELECT ALL 26 * + MIN ( DISTINCT 77 ) col1, 32 AS col2 FROM tab1 AS cor0
----
2002
32

query I rowsort
SELECT col0 * 47 + - col1 FROM tab0 AS cor0
----
4068
4558
624

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT DISTINCT 44 + - 42 AS col2, - COUNT( * ) FROM tab2
----
2
-3

skipif mysql # not compatible
query II rowsort label-484
SELECT DISTINCT 44 + - 42 AS col2, - COUNT ( * ) FROM tab2
----
2
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT - col1 * - + CAST( - col2 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-486
SELECT - col1 * - + CAST ( - col2 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + ( - - 44 ) AS col1 FROM tab2
----
44

query II rowsort
SELECT ALL + ( 74 ), + col2 FROM tab1
----
74
59
74
68
74
96

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT BETWEEN ( - 69 + - 6 ) AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT DISTINCT - AVG ( ALL + col0 ) * - + COUNT( * ) * + 22 + COUNT( * ) / 58 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + col0 * - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - AVG ( ALL + col0 ) * - + COUNT ( * ) * + 22 + COUNT ( * ) / 58 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + col0 * - + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 + - 42 FROM tab1 AS cor0
----
17
26
54

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT col2 * - col2 + - col1 + + col2 * 13 * + col0 + 59 DIV - 43 + + 61 + col2 DIV col1 FROM tab1 AS cor0
----
54484
61780
75834

skipif mysql # not compatible
query I rowsort label-493
SELECT col2 * - col2 + - col1 + + col2 * 13 * + col0 + 59 / - 43 + + 61 + col2 / col1 FROM tab1 AS cor0
----
54484
61780
75834

query II rowsort
SELECT DISTINCT - col2, - 44 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT DISTINCT - MAX( ALL + 21 ) + - COUNT( * ) AS col1 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT - MAX ( ALL + 21 ) + - COUNT ( * ) AS col1 FROM tab2
----
-24

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

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

query I rowsort
SELECT ALL - 4 + + col2 FROM tab2
----
19
36
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT DISTINCT col1 + + - 79 * + col0 + - - col2 - - + CAST( NULL AS SIGNED ) + - + 64 + 55 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT col1 + + - 79 * + col0 + - - col2 - - + CAST ( NULL AS INTEGER ) + - + 64 + 55 AS col1 FROM tab1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT ALL 0 DIV - col0 + - col2 + col0 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL 0 / - col0 + - col2 + col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT col0 * - col2 * col1 * col0 + + 69 FROM tab0 WHERE ( 94 ) NOT IN ( - CAST( col0 AS SIGNED ), col1 + + col2 )
----
-1589421
-856506
-931422

skipif mysql # not compatible
query I rowsort label-502
SELECT col0 * - col2 * col1 * col0 + + 69 FROM tab0 WHERE ( 94 ) NOT IN ( - CAST ( col0 AS INTEGER ), col1 + + col2 )
----
-1589421
-856506
-931422

query II rowsort
SELECT ALL - col1 AS col1, 53 * + col1 AS col1 FROM tab2
----
-51
2703
-67
3551
-77
4081

query I rowsort
SELECT ALL - col0 - + ( + 80 ) FROM tab2 AS cor0
----
-126
-144
-155

query I rowsort
SELECT ALL - - 22 AS col0 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - + ( - 34 ) * + col2 FROM tab2 AS cor0
----
1360
1972
782

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

query I rowsort
SELECT DISTINCT col0 * 51 + - col1 FROM tab2
----
2295
3187
3758

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-509
SELECT - ( + 2 ) * - col1 * - + col2 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT - ( + 2 ) * - col1 * - + col2 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT - + 8 * - 58 AS col1 FROM tab1 cor0
----
464
464
464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL COUNT( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL <= col0 + - ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL COUNT ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL <= col0 + - ( - col1 )
----
0

query I rowsort
SELECT DISTINCT + col2 * - - 51 AS col1 FROM tab1
----
3009
3468
4896

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col1 col0 FROM tab2 WHERE NOT + 18 + - col0 < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT - 68 * + COUNT( * ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-518
SELECT - 68 * + COUNT ( * ) FROM tab0
----
-204

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

query I rowsort
SELECT - - 3 * - col0 FROM tab1 cor0
----
-153
-255
-273

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT + 75 + COUNT( * ) AS col2 FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-522
SELECT + 75 + COUNT ( * ) AS col2 FROM tab2 cor0
----
78

query I rowsort
SELECT + ( - 57 ) * - - col1 FROM tab0
----
-1197
-4617
-57

query II rowsort
SELECT DISTINCT - 16 AS col2, + col1 * + 45 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT DISTINCT + ( - 93 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + ( - 93 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-279

query I rowsort
SELECT DISTINCT + col1 * - + ( + col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT ALL - 70 + col1 * 12 DIV - 90 AS col1 FROM tab2 AS cor0
----
-76
-78
-80

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - 70 + col1 * 12 / - 90 AS col1 FROM tab2 AS cor0
----
-76
-78
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT DISTINCT + - 74 * + ( - SUM( + col2 ) ) FROM tab2 cor0
----
8954

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT + - 74 * + ( - SUM ( + col2 ) ) FROM tab2 cor0
----
8954

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

query I rowsort
SELECT ALL 37 + - col0 + col0 * + col0 AS col0 FROM tab0
----
247
7519
9349

query I rowsort
SELECT ALL col0 + 60 FROM tab2
----
106
124
135

query I rowsort
SELECT ALL col1 - - 77 * - col2 FROM tab1
----
-4538
-5189
-7378

query I rowsort
SELECT + col0 + + + ( - + col1 ) * - col0 * - 8 FROM tab0
----
-14529
-679
-9705

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT 11 + SUM( ALL - col0 ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT 11 + SUM ( ALL - col0 ) FROM tab1
----
-216

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

query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + 77 - col2 + - col2 FROM tab0 AS cor0
----
-121
-17
57

query I rowsort
SELECT ALL + 59 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT ( + 74 ) AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + ( - 98 ) + + col1 NOT BETWEEN + col2 AND 68 + + ( + col0 ) + - 36 * + 70 + - + 19
----
74
0

skipif mysql # not compatible
query II rowsort label-541
SELECT ( + 74 ) AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + ( - 98 ) + + col1 NOT BETWEEN + col2 AND 68 + + ( + col0 ) + - 36 * + 70 + - + 19
----
74
0

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-542
SELECT SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 82 * ( 1 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-545
SELECT + 12 DIV - 35 * + COUNT( DISTINCT + col0 ) * + COUNT( - - 57 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-545
SELECT + 12 / - 35 * + COUNT ( DISTINCT + col0 ) * + COUNT ( - - 57 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col2 < NULL AND col0 IS NULL
----

query II rowsort
SELECT + 24 AS col2, - 2 * - 34 + + 88 FROM tab2
----
24
156
24
156
24
156

query I rowsort
SELECT - 43 * - col2 AS col2 FROM tab1
----
2537
2924
4128

onlyif mysql # DIV for integer division: 
query II rowsort label-549
SELECT DISTINCT + 29, + 89 DIV - col0 AS col1 FROM tab1
----
29
-1
29
0

skipif mysql # not compatible
query II rowsort label-549
SELECT DISTINCT + 29, + 89 / - col0 AS col1 FROM tab1
----
29
-1
29
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-550
SELECT ALL - COUNT( * ) AS col1, ( - - COUNT( * ) ) + - CAST( 97 AS SIGNED ) AS col1 FROM tab2
----
-3
-94

skipif mysql # not compatible
query II rowsort label-550
SELECT ALL - COUNT ( * ) AS col1, ( - - COUNT ( * ) ) + - CAST ( 97 AS INTEGER ) AS col1 FROM tab2
----
-3
-94

query I rowsort
SELECT - 76 * + 98 * col0 AS col0 FROM tab2
----
-342608
-476672
-558600

query I rowsort
SELECT DISTINCT + - 87 + col1 FROM tab1 AS cor0
----
-40
-73
-82

query I rowsort
SELECT + + 18 * + 58 FROM tab0 AS cor0
----
1044
1044
1044

query I rowsort
SELECT DISTINCT + col0 + - - ( - col2 ) FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - 12 * - 74 FROM tab2 AS cor0
----
888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT COUNT( * ) * + 51 + AVG ( ALL col1 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT COUNT ( * ) * + 51 + AVG ( ALL col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL + MAX( DISTINCT col2 ) * + + ( - COUNT( * ) ) + + ( 20 ) + + 62 FROM tab1 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL + MAX ( DISTINCT col2 ) * + + ( - COUNT ( * ) ) + + ( 20 ) + + 62 FROM tab1 AS cor0
----
-206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + - col1 * 8 * - col1 * + - col2 col1 FROM tab2 cor0
----
24664640
27077648
6221592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + - col0 AS col2, + 60 col0 FROM tab0 AS cor0
----
0
60

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT + col0 DIV - col0 - + 35 FROM tab1 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-560
SELECT + col0 / - col0 - + 35 FROM tab1 AS cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-561
SELECT ALL CAST( + ( 46 ) AS SIGNED ) DIV + col1 - + + 71 + - col2 AS col2 FROM tab1
----
-121
-139
-164

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL CAST ( + ( 46 ) AS INTEGER ) / + col1 - + + 71 + - col2 AS col2 FROM tab1
----
-121
-139
-164

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

query I rowsort
SELECT 14 * col2 - 3 AS col0 FROM tab1
----
1341
823
949

query I rowsort
SELECT + AVG ( ALL + - col2 ) FROM tab0 WHERE + 81 = NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT + CAST( + 7 AS SIGNED ) - + ( + col2 ) AS col0 FROM tab1
----
-52
-61
-89

skipif mysql # not compatible
query I rowsort label-566
SELECT + CAST ( + 7 AS INTEGER ) - + ( + col2 ) AS col0 FROM tab1
----
-52
-61
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL - 34 - - COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL - 34 - - COUNT ( * ) FROM tab1
----
-31

query I rowsort
SELECT + col2 + + + col1 AS col2 FROM tab1 AS cor0 WHERE - 55 * + 87 = + ( - col0 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-569
SELECT DISTINCT + - COUNT ( * ) / - + COUNT ( * ) col1 FROM tab2 AS cor0
----
1

query II rowsort
SELECT + 34 + + 84 AS col1, - 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 22e57c3423302cc4c63a4a8bbcddf636

query I rowsort
SELECT DISTINCT 9 * + col1 AS col1 FROM tab0
----
189
729
9

query II rowsort
SELECT DISTINCT + col0 * - - col1 AS col1, - 77 * col1 FROM tab0
----
1215
-6237
1827
-1617
97
-77

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

skipif mysql # not compatible
query I rowsort label-573
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT ALL SUM( DISTINCT + + col1 ) - - + CAST( 55 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
250

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL SUM ( DISTINCT + + col1 ) - - + CAST ( 55 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-575
SELECT - CAST( + - 27 AS SIGNED ), - col2 * + 52 AS col0 FROM tab1 AS cor0
----
27
-3068
27
-3536
27
-4992

skipif mysql # not compatible
query II rowsort label-575
SELECT - CAST ( + - 27 AS INTEGER ), - col2 * + 52 AS col0 FROM tab1 AS cor0
----
27
-3068
27
-3536
27
-4992

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col2 + - col2 ) NOT IN ( + 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query I rowsort label-578
SELECT ( - COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - - 97 AS col1 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + + 29 FROM tab2 cor0 WHERE ( NULL ) IN ( - col1 * - col1 + - + col1, col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT + + AVG ( DISTINCT + col0 ) + + + COUNT( 68 ) FROM tab2 WHERE NOT NULL < - ( - 84 ) * + + col2 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT + + AVG ( DISTINCT + col0 ) + + + COUNT ( 68 ) FROM tab2 WHERE NOT NULL < - ( - 84 ) * + + col2 + 61
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + 52 col2 FROM tab2
----
-12
-23
6

query II rowsort
SELECT ALL - 16, ( + col0 ) + col1 AS col1 FROM tab2
----
-16
141
-16
142
-16
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - 94 + + 5 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 14 + col1 * - - col0 AS col1 FROM tab1
----
4291
439
728

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 AS cor0 WHERE col0 IN ( + col1 / - col2 / - + col2 * col0, - col1, - col2, + + col0 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL COUNT( * ) + 27 AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL COUNT ( * ) + 27 AS col2 FROM tab1
----
30

query I rowsort
SELECT ( - 61 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT - col0 - + - col2 FROM tab0 cor0
----
-77
2
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT + MIN( col0 ) col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-592
SELECT DISTINCT + MIN ( col0 ) col2 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT col0 + 25 FROM tab0 cor0
----
112
122
40

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

query I rowsort
SELECT DISTINCT - col2 + - + 20 FROM tab0 AS cor0
----
-119
-30
-67

query I rowsort
SELECT DISTINCT - col0 + + 38 AS col2 FROM tab2
----
-26
-37
-8

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

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

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

query I rowsort
SELECT ALL + col2 + + + 52 * + + col0 AS col2 FROM tab2
----
2415
3368
3958

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

skipif mysql # not compatible
query I rowsort label-600
SELECT - CAST ( + - 12 AS INTEGER ) FROM tab0
----
12
12
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE 34 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE 34 BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * + 13 + 80 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT col2 * col1, col0 AS col0, + + col2 * + col1 FROM tab2 AS cor0
----
9 values hashing to 12fd0fb0a550e4cdb8a5f5b1a9900675

query I rowsort
SELECT ALL - 31 * + ( 11 ) FROM tab1 AS cor0
----
-341
-341
-341

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT 50 * - 60 * + 92 * - COUNT( * ) FROM tab1
----
828000

skipif mysql # not compatible
query I rowsort label-608
SELECT 50 * - 60 * + 92 * - COUNT ( * ) FROM tab1
----
828000

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-610
SELECT DISTINCT col0 * + col1 * - col1 / + CAST( NULL AS DECIMAL ) * col0 + + col2 AS col0, + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-610
SELECT DISTINCT col0 * + col1 * - col1 / + CAST ( NULL AS REAL ) * col0 + + col2 AS col0, + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - MAX( col2 ) + - - COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-611
SELECT - MAX ( col2 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-612
SELECT ALL CAST( NULL AS SIGNED ), - col1 FROM tab0 AS cor0 WHERE NULL < + col0
----

skipif mysql # not compatible
query II rowsort label-612
SELECT ALL CAST ( NULL AS INTEGER ), - col1 FROM tab0 AS cor0 WHERE NULL < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT CAST( 52 AS SIGNED ) AS col0 FROM tab0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-613
SELECT CAST ( 52 AS INTEGER ) AS col0 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL - COUNT( * ) FROM tab0 WHERE col1 + + + col2 + - col0 * - 25 BETWEEN NULL AND - ( + + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - COUNT ( * ) FROM tab0 WHERE col1 + + + col2 + - col0 * - 25 BETWEEN NULL AND - ( + + 42 )
----
0

query I rowsort
SELECT ALL - 92 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT + CAST( 98 AS SIGNED ) FROM tab1 cor0
----
98

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + CAST ( 98 AS INTEGER ) FROM tab1 cor0
----
98

query I rowsort
SELECT - ( 19 ) * 14 * col1 AS col1 FROM tab1 AS cor0
----
-12502
-1330
-3724

query II rowsort
SELECT ( - col0 ), 98 + + col2 AS col2 FROM tab0 AS cor0 WHERE ( + - col2 * - 33 + col2 IS NULL )
----

query I rowsort
SELECT col0 * 99 FROM tab2 cor0
----
4554
6336
7425

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 62 - + - 13 * - col1 - + col1 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, 43 * + col1 AS col2 FROM tab2 AS cor0
----
51
2193
67
2881
77
3311

query II rowsort
SELECT + col2 - + 39 * ( col1 ), 89 AS col0 FROM tab0
----
-3112
89
-809
89
60
89

query I rowsort
SELECT - col1 - + 26 AS col1 FROM tab0
----
-107
-27
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - col0 ) col2, + 92 FROM tab2
----
-46
92
-64
92
-75
92

query III rowsort
SELECT * FROM tab2 WHERE NOT - 33 NOT BETWEEN - 31 AND + - col1
----

query II rowsort
SELECT - col1 AS col2, col1 * - ( + col1 ) AS col1 FROM tab1
----
-14
-196
-47
-2209
-5
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT - 80 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-630
SELECT - 80 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-80
3

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE - 66 / - col2 <> NULL
----

query II rowsort
SELECT + + col0, + col2 + + 42 FROM tab1 cor0
----
51
138
85
101
91
110

query II rowsort
SELECT DISTINCT + + ( - col0 ) AS col2, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT - CAST( - 35 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif mysql # not compatible
query I rowsort label-636
SELECT - CAST ( - 35 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT - SUM( ALL 38 ) AS col2 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-638
SELECT - SUM ( ALL 38 ) AS col2 FROM tab0
----
-114

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

query I rowsort
SELECT DISTINCT + + 64 FROM tab1 AS cor0 WHERE + 79 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + - 93 AS col1 FROM tab0 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT - + CAST( + - col2 AS SIGNED ) * - col2 + - 3 - - 6 * + + col2 AS col1 FROM tab1 AS cor0
----
-3130
-4219
-8643

skipif mysql # not compatible
query I rowsort label-642
SELECT - + CAST ( + - col2 AS INTEGER ) * - col2 + - 3 - - 6 * + + col2 AS col1 FROM tab1 AS cor0
----
-3130
-4219
-8643

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-643
SELECT * FROM tab0 AS cor0 WHERE NOT 4 BETWEEN + + 73 AND + 24 / - col0 + + + col1 + col1 + - CAST( NULL AS DECIMAL ) + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-643
SELECT * FROM tab0 AS cor0 WHERE NOT 4 BETWEEN + + 73 AND + 24 / - col0 + + + col1 + col1 + - CAST ( NULL AS REAL ) + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - col2 * - ( + col2 ) FROM tab1 cor0
----
3540
4692
9312

query I rowsort
SELECT 65 + + 97 AS col0 FROM tab2
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT SUM( 86 ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT SUM ( 86 ) FROM tab0
----
258

query III rowsort
SELECT * FROM tab1 WHERE 94 + - 62 IS NULL
----

query I rowsort
SELECT ALL ( 97 ) AS col2 FROM tab0
----
97
97
97

query I rowsort
SELECT col0 * - 0 + - + col2 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + 57 AS col2 FROM tab2 AS cor0 WHERE ( 38 ) IS NOT NULL
----
57
57
57

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab2 AS cor0 WHERE NOT col1 + col2 >= NULL
----

query I rowsort
SELECT + 87 AS col2 FROM tab1 WHERE + 29 < - 14
----

query I rowsort
SELECT - ( + 0 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL AVG ( ALL - + 89 ) FROM tab1 WHERE NULL NOT IN ( col1 + + col2 )
----
NULL

query I rowsort
SELECT 3 - + col2 * col1 FROM tab2
----
-1170
-3077
-3883

query I rowsort
SELECT ALL 1 * - + col1 + col1 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + 36 - + col0 NOT IN ( + + col2 * - col1 + + 15 + + col1, col1 + + col1 * + col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 0 - - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col1 col2 FROM tab2 cor0
----
141
142
97

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-664
SELECT + col1 / 32 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - - 20 AS col0 FROM tab1 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= NULL OR NOT 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - 55 FROM tab0
----
-2585
-5445
-550

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + 19 * - 82 + + col0 + + 18 * + 94, - col1 col0 FROM tab2
----
-115083
-67
-69930
-51
-97956
-77

query I rowsort
SELECT DISTINCT + 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
64

query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 * + - col2 AS col2 FROM tab0
----
10
100
47
2209
99
9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + - 33 <= NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-673
SELECT DISTINCT - 93, - ( - - 23 ) DIV - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-93
10

skipif mysql # not compatible
query II rowsort label-673
SELECT DISTINCT - 93, - ( - - 23 ) / - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-93
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-674
SELECT - + 90 - col0 AS col2, + col1 - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0 + + + 2
----

skipif mysql # not compatible
query II rowsort label-674
SELECT - + 90 - col0 AS col2, + col1 - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0 + + + 2
----

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

skipif mysql # not compatible
query I rowsort label-675
SELECT COUNT ( + col1 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 52 * + 6 FROM tab0 AS cor0
----
312

query I rowsort
SELECT DISTINCT - 93 + ( col2 ) AS col2 FROM tab2 cor0
----
-35
-53
-70

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

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

query I rowsort
SELECT DISTINCT - col0 + - - col2 AS col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT MIN( 87 ) col1 FROM tab2
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-680
SELECT MIN ( 87 ) col1 FROM tab2
----
87

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

query I rowsort
SELECT DISTINCT - 83 + + + ( - col0 ) FROM tab0
----
-170
-180
-98

query I rowsort
SELECT ALL - 72 + - 86 FROM tab1
----
-158
-158
-158

query I rowsort
SELECT DISTINCT + 26 * - col0 + - 61 * col1 FROM tab0
----
-2583
-3543
-5331

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

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

query I rowsort
SELECT - + col1 + + col0 + + 85 + col1 FROM tab2 AS cor0
----
131
149
160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-687
SELECT ALL CAST( 34 AS SIGNED ) + - col2, CAST( - + 65 AS SIGNED ) AS col0 FROM tab2
----
-24
-65
-6
-65
11
-65

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL CAST ( 34 AS INTEGER ) + - col2, CAST ( - + 65 AS INTEGER ) AS col0 FROM tab2
----
-24
-65
-6
-65
11
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT DISTINCT - col0 DIV 31 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - col0 / 31 FROM tab0 cor0
----
-2
-3
0

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

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

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

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

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

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

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

query II rowsort
SELECT col2 * - + col2 AS col0, - col0 FROM tab0
----
-100
-87
-2209
-15
-9801
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-695
SELECT * FROM tab0 cor0 WHERE NOT 90 NOT IN ( + + 47, - 41 * col2, CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-695
SELECT * FROM tab0 cor0 WHERE NOT 90 NOT IN ( + + 47, - 41 * col2, CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT + - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

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

query I rowsort
SELECT DISTINCT 54 + + 24 FROM tab0
----
78

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

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

query I rowsort
SELECT + ( + 15 ) * + - col0 * - 58 FROM tab0 AS cor0
----
13050
75690
84390

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

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

query I rowsort
SELECT ALL - 62 + + col2 + - col1 AS col1 FROM tab2
----
-71
-90
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-703
SELECT DISTINCT + 29 + MIN( ALL 99 ) + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT + 29 + MIN ( ALL 99 ) + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL MIN( - 73 ) * - 91 + + 81 AS col1 FROM tab1
----
6724

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL MIN ( - 73 ) * - 91 + + 81 AS col1 FROM tab1
----
6724

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

query I rowsort
SELECT - 40 + + - col2 FROM tab2
----
-63
-80
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-707
SELECT * FROM tab2 WHERE + + col0 <> - CAST( NULL AS SIGNED ) * col2 * - + col0
----

skipif mysql # not compatible
query III rowsort label-707
SELECT * FROM tab2 WHERE + + col0 <> - CAST ( NULL AS INTEGER ) * col2 * - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-708
SELECT DISTINCT col1 + + CAST( + + col2 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT col1 + + CAST ( + + col2 AS INTEGER ) FROM tab2
----
117
125
74

query I rowsort
SELECT ALL + col2 * + + col2 - - 71 - - - 75 FROM tab2 AS cor0
----
1596
3360
525

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL - + 57 * - COUNT( * ) * 65 AS col2 FROM tab1 cor0 WHERE NOT NULL >= - col0 + + 84 / 8 / + - 17 * col1 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL - + 57 * - COUNT ( * ) * 65 AS col2 FROM tab1 cor0 WHERE NOT NULL >= - col0 + + 84 / 8 / + - 17 * col1 * + col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL + COUNT( * ) + 29 AS col1 FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + COUNT ( * ) + 29 AS col1 FROM tab1 cor0
----
32

query I rowsort
SELECT DISTINCT 47 + 25 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT 36 - + MAX( ALL - col1 ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-714
SELECT 36 - + MAX ( ALL - col1 ) AS col2 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - 91 * - COUNT( * ) FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - 91 * - COUNT ( * ) FROM tab2 AS cor0
----
273

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT ALL - CAST( + 50 AS SIGNED ) * + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
14750
159800
67200

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - CAST ( + 50 AS INTEGER ) * + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
14750
159800
67200

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + - ( - 70 ) * + + col2 + - - col0 FROM tab1 AS cor0
----
4215
4851
6771

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( + - col0 ) col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query II rowsort label-724
SELECT col1 * + 43, - 30 DIV - 96 AS col0 FROM tab2 AS cor0
----
2193
0
2881
0
3311
0

skipif mysql # not compatible
query II rowsort label-724
SELECT col1 * + 43, - 30 / - 96 AS col0 FROM tab2 AS cor0
----
2193
0
2881
0
3311
0

query I rowsort
SELECT 38 * - col0 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-726
SELECT 30 DIV - - SUM( DISTINCT col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-726
SELECT 30 / - - SUM ( DISTINCT col2 ) AS col2 FROM tab0
----
0

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

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

query I rowsort
SELECT ALL - - 49 * + - AVG ( - 75 ) AS col0 FROM tab2 WHERE NOT - col1 + - 70 - + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL 45 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL 45 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 - + col1 NOT IN ( - + 3, ( + - col2 ), - 36 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 * - - col1 * col0 * - - col0 col2 FROM tab1
----
3395750
3422916
36585458

query I rowsort
SELECT - 46 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-735
SELECT DISTINCT col2 * ( 49 ) - - - col1 AS col0, CAST( NULL AS SIGNED ) + + + 52 AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
1076
NULL
1883
NULL
2775
NULL

skipif mysql # not compatible
query II rowsort label-735
SELECT DISTINCT col2 * ( 49 ) - - - col1 AS col0, CAST ( NULL AS INTEGER ) + + + 52 AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
1076
NULL
1883
NULL
2775
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL - 78 * COUNT( * ) * + 15 FROM tab1 AS cor0
----
-3510

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - 78 * COUNT ( * ) * + 15 FROM tab1 AS cor0
----
-3510

query I rowsort
SELECT ALL + + 3 FROM tab0 cor0
----
3
3
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT + + 23 + 16 * + + 61 * - col0 * col2 * col0 + + col2 + - 65 DIV + + col1 FROM tab0 cor0
----
-10321130
-73873410
-909135159

skipif mysql # not compatible
query I rowsort label-740
SELECT + + 23 + 16 * + + 61 * - col0 * col2 * col0 + + col2 + - 65 / + + col1 FROM tab0 cor0
----
-10321130
-73873410
-909135159

query I rowsort
SELECT DISTINCT + - col2 + + 98 AS col2 FROM tab2 AS cor0
----
40
58
75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT - col2 DIV col0 * col2 FROM tab1
----
-96
0
0

skipif mysql # not compatible
query I rowsort label-743
SELECT - col2 / col0 * col2 FROM tab1
----
-96
0
0

query II rowsort
SELECT ( - ( + - 25 ) ), + col2 + - col1 AS col0 FROM tab2
----
25
-28
25
-37
25
-9

query I rowsort
SELECT DISTINCT 38 + + + col0 FROM tab2
----
102
113
84

query I rowsort
SELECT 43 - 4 AS col2 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT + col0 DIV + - col2 FROM tab1 AS cor0 WHERE ( + col1 IS NOT NULL )
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-747
SELECT + col0 / + - col2 FROM tab1 AS cor0 WHERE ( + col1 IS NOT NULL )
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 55 + - col1 AS col2 FROM tab2 AS cor0
----
-106
-122
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT ALL SUM( DISTINCT 20 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
20

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL SUM ( DISTINCT 20 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT DISTINCT col1 DIV + - col1 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT col1 / + - col1 AS col1 FROM tab1
----
-1

query II rowsort
SELECT DISTINCT + col0 AS col1, + 35 - - + 58 * + ( + + col0 ) FROM tab1
----
51
2993
85
4965
91
5313

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

query II rowsort
SELECT - col1, + col2 * + col1 AS col2 FROM tab0 cor0
----
-1
99
-21
210
-81
3807

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

skipif mysql # not compatible
query II rowsort label-755
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 94 * + ( - col2 ) FROM tab1
----
5546
6392
9024

query III rowsort
SELECT DISTINCT + 70 AS col2, 51 * + col2, col1 * - col1 - - 63 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 25834b1803e24a88af6e035dfed340d8

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT DISTINCT - + SUM( + 48 ) FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - + SUM ( + 48 ) FROM tab0 AS cor0
----
-144

query I rowsort
SELECT ALL + col0 * col1 + ( - col1 ) AS col0 FROM tab1 cor0
----
420
4230
700

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

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

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

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

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

query I rowsort
SELECT ALL + - ( - col2 ) FROM tab0 WHERE NOT + 21 IS NULL
----
10
47
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT ALL + - col1 + + ( col0 ) FROM tab0 AS cor0 WHERE NOT col2 * - CAST( - - 93 AS SIGNED ) IS NULL
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + - col1 + + ( col0 ) FROM tab0 AS cor0 WHERE NOT col2 * - CAST ( - - 93 AS INTEGER ) IS NULL
----
-66
66
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT ALL col1 + - - 51 DIV + col0 AS col0 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL col1 + - - 51 / + col0 AS col0 FROM tab1
----
15
47
5

query I rowsort
SELECT - 34 + + ( 74 ) AS col2 FROM tab2
----
40
40
40

query I rowsort
SELECT - col1 FROM tab2 WHERE + 74 * - 60 + - - col2 - + col2 - - col1 * + col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT + col0 * + 28 * col0 * col2 + 72 FROM tab1
----
11935772
15767096
6991560

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 * col2 / - col2 ) > ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + SUM( + 40 ) col1 FROM tab0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-776
SELECT + SUM ( + 40 ) col1 FROM tab0
----
120

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

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

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

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

query I rowsort
SELECT DISTINCT 35 * col1 AS col0 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN NULL AND col0 + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-780
SELECT * FROM tab0 AS cor0 WHERE NOT + 22 * + + CAST( NULL AS DECIMAL ) NOT BETWEEN - col2 AND + + 0
----

skipif mysql # not compatible
query III rowsort label-780
SELECT * FROM tab0 AS cor0 WHERE NOT + 22 * + + CAST ( NULL AS REAL ) NOT BETWEEN - col2 AND + + 0
----

query II rowsort
SELECT - col0 AS col2, - 92 FROM tab0 AS cor0
----
-15
-92
-87
-92
-97
-92

query I rowsort
SELECT - + ( - col1 ) * 35 AS col1 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT DISTINCT ( - col0 ) * col0 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT - col0 AS col2, 64 * + col2 FROM tab1
----
-51
6144
-85
3776
-91
4352

onlyif mysql # aggregate syntax: 
query II rowsort label-785
SELECT DISTINCT - COUNT( * ), 83 AS col0 FROM tab1
----
-3
83

skipif mysql # not compatible
query II rowsort label-785
SELECT DISTINCT - COUNT ( * ), 83 AS col0 FROM tab1
----
-3
83

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

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT ALL 40 * + + col1 DIV col1 AS col1 FROM tab2
----
40
40
40

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL 40 * + + col1 / col1 AS col1 FROM tab2
----
40
40
40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-788
SELECT + CAST( NULL AS DECIMAL ), col1 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
102
NULL
134
NULL
154

skipif mysql # not compatible
query II rowsort label-788
SELECT + CAST ( NULL AS REAL ), col1 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
102
NULL
134
NULL
154

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT 47 DIV - 11 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-789
SELECT 47 / - 11 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT + CAST( - 63 AS SIGNED ) + - col2 + 86 AS col0 FROM tab2
----
-17
-35
0

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT + CAST ( - 63 AS INTEGER ) + - col2 + 86 AS col0 FROM tab2
----
-17
-35
0

query I rowsort
SELECT + - 4 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL - 79 DIV + col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-793
SELECT ALL - 79 / + col1 col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 96 * + - col1 * + - 58 = + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-795
SELECT + + col0 * + + 88 + - CAST ( NULL AS INTEGER ) + 23 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT + col1 * + col0 AS col2, + col1 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( NOT 36 - + col1 IS NOT NULL )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT + COUNT( * ) * + 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + COUNT ( * ) * + 37 FROM tab0
----
111

query I rowsort
SELECT DISTINCT col2 - 55 * col2 + - col2 FROM tab1
----
-3245
-3740
-5280

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

skipif mysql # not compatible
query II rowsort label-801
SELECT COUNT ( * ), + COUNT ( + + 54 ) AS col2 FROM tab2 AS cor0
----
3
3

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

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

query I rowsort
SELECT DISTINCT + 17 FROM tab0 WHERE NOT ( + 76 * - ( 67 ) + - col2 ) NOT IN ( col1 * 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT COUNT( - ( - 34 ) ) - + 5 FROM tab0 WHERE col2 IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-804
SELECT COUNT ( - ( - 34 ) ) - + 5 FROM tab0 WHERE col2 IS NOT NULL
----
-2

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

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab2 WHERE col2 + col1 <= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - ( 14 ) col0 FROM tab2
----
37
53
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * 27 col0 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab1 WHERE 29 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 18 / col2 NOT BETWEEN ( + 52 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT 67 * 56 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT + SUM( DISTINCT 90 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT + SUM ( DISTINCT 90 ) FROM tab1
----
90

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 49 + 33 < ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL MIN( + 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL MIN ( + 32 ) FROM tab0
----
32

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT + COUNT( * ) FROM tab1 WHERE NULL IN ( ( + col0 ) * - col1 - - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-822
SELECT + COUNT ( * ) FROM tab1 WHERE NULL IN ( ( + col0 ) * - col1 - - 33 )
----
0

query I rowsort
SELECT + 25 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 49 FROM tab0
----
148
59
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT MIN( ALL - 28 ) - - 97 AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT MIN ( ALL - 28 ) - - 97 AS col0 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT MIN( ALL col1 ) * - 98 + 54 col0 FROM tab0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-827
SELECT MIN ( ALL col1 ) * - 98 + 54 col0 FROM tab0
----
-44

query I rowsort
SELECT 60 * 22 FROM tab1
----
1320
1320
1320

query I rowsort
SELECT - 48 + col1 AS col1 FROM tab2 AS cor0
----
19
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT + ( 10 ) + + COUNT( * ) * + 30 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + ( 10 ) + + COUNT ( * ) * + 30 FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL - ( 71 ) + - COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - ( 71 ) + - COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + + 14 / + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = col1 + + 79
----

query I rowsort
SELECT + col2 - 5 AS col2 FROM tab1
----
54
63
91

query I rowsort
SELECT DISTINCT - 1 - col2 FROM tab2 AS cor0
----
-24
-41
-59

query I rowsort
SELECT - 31 - - col0 FROM tab2 AS cor0
----
15
33
44

query I rowsort
SELECT + - col0 + + 5 FROM tab0 AS cor0
----
-10
-82
-92

query I rowsort
SELECT 47 FROM tab2 AS cor0 WHERE NULL NOT IN ( 63 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT ALL + 66 + - 60 DIV col0 FROM tab0 cor0 WHERE NOT 59 IS NULL
----
62
66
66

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + 66 + - 60 / col0 FROM tab0 cor0 WHERE NOT 59 IS NULL
----
62
66
66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 16 <> 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT COUNT( * ) + + 15 AS col1 FROM tab2 AS cor0 WHERE NOT + 83 + + 85 IN ( + col1 )
----
18

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT COUNT ( * ) + + 15 AS col1 FROM tab2 AS cor0 WHERE NOT + 83 + + 85 IN ( + col1 )
----
18

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

query I rowsort
SELECT DISTINCT - 38 * 23 AS col1 FROM tab2 AS cor0
----
-874

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( + ( 22 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT DISTINCT + 29 * + 86 AS col2 FROM tab0 WHERE NOT ( col1 ) / - CAST( NULL AS SIGNED ) IS NOT NULL
----
2494

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT + 29 * + 86 AS col2 FROM tab0 WHERE NOT ( col1 ) / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
2494

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

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT col2 DIV - 29 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-849
SELECT col2 / - 29 FROM tab2
----
-1
-2
0

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

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

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE + ( col1 ) * + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT COUNT( * ) * COUNT( * ) * COUNT( * ) + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT - 89 + + 58 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-853
SELECT - 89 + + 58 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT ALL col2 DIV 96 - col1 * 78 FROM tab1 AS cor0
----
-1091
-3666
-390

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL col2 / 96 - col1 * 78 FROM tab1 AS cor0
----
-1091
-3666
-390

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

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

query I rowsort
SELECT DISTINCT 93 * 11 AS col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 88 AND NULL
----
1023

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 29 / - 32 >= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 33 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN 14 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-860
SELECT CAST( ( AVG ( DISTINCT - col2 ) ) AS SIGNED ) AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-860
SELECT CAST ( ( AVG ( DISTINCT - col2 ) ) AS INTEGER ) AS col1 FROM tab2
----
-40

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

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

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

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 88 >= - col1 + col0 OR NOT NULL IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 AS cor0 WHERE NULL = ( 51 * + ( ( col1 ) ) )
----

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

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

query I rowsort
SELECT + 41 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 55 * + col0 )
----

query I rowsort
SELECT - - 98 AS col1 FROM tab1 AS cor0
----
98
98
98

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

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

query I rowsort
SELECT DISTINCT + col1 + - 67 - - 87 + col2 FROM tab0
----
120
148
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-871
SELECT DISTINCT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-871
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL - 31 * + + COUNT( * ) + - - 37 AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - 31 * + + COUNT ( * ) + - - 37 AS col2 FROM tab2
----
-56

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 2 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT 32 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE - col0 <= col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT 32 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col0 <= col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT COUNT( * ) * + 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-875
SELECT COUNT ( * ) * + 37 FROM tab0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT DISTINCT + 47 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col2 = 48 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT + 47 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col2 = 48 * - col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT + MAX( ALL - + col1 ) FROM tab0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT + MAX ( ALL - + col1 ) FROM tab0 WHERE ( NULL ) <> NULL
----
NULL

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

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

query I rowsort
SELECT - col2 * 38 + - 49 FROM tab0 AS cor0
----
-1835
-3811
-429

query I rowsort
SELECT - 51 FROM tab2 AS cor0 WHERE ( - col0 * + col2 NOT BETWEEN col1 / col1 AND ( + 18 ) )
----
-51
-51
-51

query I rowsort
SELECT - col1 * 68 + - + col1 * + 83 AS col1 FROM tab0
----
-12231
-151
-3171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + col2 col2 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL col2 - + 93 AS col0 FROM tab2
----
-35
-53
-70

query I rowsort
SELECT DISTINCT + col1 * + 73 * + + col1 * - col0 - 0 FROM tab1
----
-14674387
-155125
-729708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT + 2 AS col2 FROM tab0 AS cor0 WHERE 7 NOT BETWEEN ( + col0 ) AND ( - - CAST( NULL AS SIGNED ) )
----
2
2
2

skipif mysql # not compatible
query I rowsort label-887
SELECT + 2 AS col2 FROM tab0 AS cor0 WHERE 7 NOT BETWEEN ( + col0 ) AND ( - - CAST ( NULL AS INTEGER ) )
----
2
2
2

query I rowsort
SELECT 72 * - col1 + + 40 + + - col1 FROM tab0 AS cor0
----
-1493
-33
-5873

query I rowsort
SELECT DISTINCT 70 - + + col1 AS col0 FROM tab2 AS cor0
----
-7
19
3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col0 = - col1
----
14
47
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-891
SELECT + MIN ( + - 36 ) col0 FROM tab0 AS cor0
----
-36

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

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

query I rowsort
SELECT ALL ( 67 ) * + + 63 FROM tab1 AS cor0
----
4221
4221
4221

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 47 > col2 * + 71 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT COUNT( * ), 80 AS col2 FROM tab1
----
3
80

skipif mysql # not compatible
query II rowsort label-898
SELECT COUNT ( * ), 80 AS col2 FROM tab1
----
3
80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT ALL + ( - - 7 ) DIV - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + ( - - 7 ) / - + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT MAX( DISTINCT - + col2 ) col0 FROM tab1
----
-59

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 32 * - 82 IS NOT NULL
----

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

query I rowsort
SELECT - 38 * + 30 AS col0 FROM tab1
----
-1140
-1140
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT - COUNT( * ) * 21 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT - COUNT ( * ) * 21 FROM tab1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 * col0 * col2 + + col0 col1 FROM tab1 AS cor0
----
-100215
-123669
-97869

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

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

query II rowsort
SELECT + col2 AS col2, - col1 + - col0 + - col2 FROM tab2 AS cor0
----
23
-120
40
-181
58
-200

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 50 * + col0 col1, - 47 * - col1 AS col0 FROM tab2
----
2300
2397
3200
3619
3750
3149

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

onlyif mysql # DIV for integer division: 
query II rowsort label-912
SELECT col1 DIV - - col1, col1 col0 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-912
SELECT col1 / - - col1, col1 col0 FROM tab0
----
1
1
1
21
1
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT CAST( + + col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-913
SELECT CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-914
SELECT DISTINCT CAST( + - CAST( + col0 AS SIGNED ) AS SIGNED ), + 2 AS col2 FROM tab2 AS cor0
----
-46
2
-64
2
-75
2

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ), + 2 AS col2 FROM tab2 AS cor0
----
-46
2
-64
2
-75
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT - + SUM( col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-916
SELECT - + SUM ( col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + - 87 AS col2 FROM tab1 cor0
----
-87
-87
-87

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 3 + - 50 - - col2 + + 54 / 58 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 41 FROM tab0 AS cor0 WHERE NOT 3 * + + 81 + - ( 53 ) * ( + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE + 7 / col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT ALL COUNT( * ) FROM tab0 WHERE + 22 - + 75 + + col2 + - - 89 NOT IN ( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL COUNT ( * ) FROM tab0 WHERE + 22 - + 75 + + col2 + - - 89 NOT IN ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT COUNT( * ) FROM tab2 WHERE ( + col2 ) BETWEEN NULL AND col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-923
SELECT COUNT ( * ) FROM tab2 WHERE ( + col2 ) BETWEEN NULL AND col2 * - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col1 + + 53 + - col0 AND + 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT - col2 * col1 col1 FROM tab0 WHERE - col2 / - + col0 + + + col2 <> + CAST( + col1 AS SIGNED )
----
-210
-3807
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-925
SELECT - col2 * col1 col1 FROM tab0 WHERE - col2 / - + col0 + + + col2 <> + CAST ( + col1 AS INTEGER )
----
-210
-3807
-99

query I rowsort
SELECT + col2 + ( col2 ) * - col1 FROM tab1
----
-1248
-236
-3128

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

query I rowsort
SELECT DISTINCT + col2 + - 98 FROM tab1
----
-2
-30
-39

query II rowsort
SELECT ALL + 96, col1 FROM tab0
----
96
1
96
21
96
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-930
SELECT ALL - + 8 AS col2 FROM tab1 cor0 WHERE NOT ( CAST( + - 1 AS SIGNED ) ) >= - col1
----

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - + 8 AS col2 FROM tab1 cor0 WHERE NOT ( CAST ( + - 1 AS INTEGER ) ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT DISTINCT 62 - - + MIN( ALL + col1 ) FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT 62 - - + MIN ( ALL + col1 ) FROM tab2
----
113

query I rowsort
SELECT DISTINCT + - 58 AS col1 FROM tab1 cor0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-933
SELECT ALL + MIN( - - col1 ) * + COUNT( * ) DIV + + ( 52 ) DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL + MIN ( - - col1 ) * + COUNT ( * ) / + + ( 52 ) / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ), col2 col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * + + col1 * col0 col0 FROM tab0
----
-117855
-177219
-9409

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

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

query I rowsort
SELECT DISTINCT + col1 * + 37 FROM tab2
----
1887
2479
2849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT + SUM( ALL 62 ) DIV - SUM( 55 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-939
SELECT + SUM ( ALL 62 ) / - SUM ( 55 ) AS col2 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 88 IS NOT NULL
----

query I rowsort
SELECT 62 * + - 65 FROM tab2
----
-4030
-4030
-4030

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

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

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

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

query II rowsort
SELECT + 96 AS col2, + col1 + - 59 FROM tab2 AS cor0
----
96
-8
96
18
96
8

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE 71 + col0 IS NULL
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN 81 AND ( - 92 )
----

query I rowsort
SELECT ALL + 7 FROM tab0 WHERE NOT - + 40 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + - SUM( + 87 ) FROM tab1 WHERE NOT - col0 * - 61 + col0 NOT BETWEEN - col1 * - ( + 58 ) AND + col2 + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT + - SUM ( + 87 ) FROM tab1 WHERE NOT - col0 * - 61 + col0 NOT BETWEEN - col1 * - ( + 58 ) AND + col2 + 49
----
NULL

query II rowsort
SELECT ALL - col1, 53 AS col1 FROM tab2
----
-51
53
-67
53
-77
53

query II rowsort
SELECT DISTINCT + col2, 98 FROM tab1
----
59
98
68
98
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-952
SELECT DISTINCT col1 * - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT col1 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 83, 1 * + + ( - 89 ) col0 FROM tab0 AS cor0
----
83
-89

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab2 AS cor0 WHERE NULL >= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-957
SELECT + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + - 77 * - + COUNT( * ) col0 FROM tab0 AS cor0
----
NULL
234

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

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

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

query I rowsort
SELECT DISTINCT 6 - - col0 + + col2 * + col0 AS col0 FROM tab0
----
726
963
9706

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT 81, - SUM( ALL - - 1 ) * 79 AS col1 FROM tab0, tab1 cor0
----
81
-711

skipif mysql # not compatible
query II rowsort label-960
SELECT 81, - SUM ( ALL - - 1 ) * 79 AS col1 FROM tab0, tab1 cor0
----
81
-711

query I rowsort
SELECT ALL 8 + - + 78 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT - col1 FROM tab0 WHERE 34 + - col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - - COUNT( + 66 ) AS col1 FROM tab0 AS cor0 WHERE 2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT - - COUNT ( + 66 ) AS col1 FROM tab0 AS cor0 WHERE 2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT - COUNT( * ) + 0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT - COUNT ( * ) + 0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 13 * - - 73 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 12 / - 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT - COUNT( + - 82 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-966
SELECT - COUNT ( + - 82 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT - 68 AS col1, - 13 FROM tab2 AS cor0
----
-68
-13
-68
-13
-68
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + - MIN( ALL 15 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-968
SELECT + - MIN ( ALL 15 ) AS col2 FROM tab0 AS cor0
----
-15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-970
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-970
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
5

query I rowsort
SELECT - - col1 FROM tab1 cor0 WHERE NOT NULL <> col2
----

query II rowsort
SELECT col2 AS col0, 65 FROM tab1 AS cor0
----
59
65
68
65
96
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL 45 * + MAX( col2 ) FROM tab0
----
4455

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL 45 * + MAX ( col2 ) FROM tab0
----
4455

query II rowsort
SELECT ALL 12 * 15 AS col2, + 85 AS col0 FROM tab0
----
180
85
180
85
180
85

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 > + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT COUNT( * ) + - SUM( - col1 ) col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-981
SELECT COUNT ( * ) + - SUM ( - col1 ) col2 FROM tab2 AS cor0
----
198

query I rowsort
SELECT - col0 + + 46 FROM tab1 AS cor0
----
-39
-45
-5

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

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

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

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

query II rowsort
SELECT col0 * 98 * + - col0 AS col2, + ( - 89 ) FROM tab0
----
-22050
-89
-741762
-89
-922082
-89

query I rowsort
SELECT - col2 * - - 7 AS col0 FROM tab2 AS cor0
----
-161
-280
-406

query I rowsort
SELECT ALL - 11 * - col1 * - ( + 46 ) * + col2 FROM tab0 AS cor0
----
-106260
-1926342
-50094

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT + COUNT( * ) DIV - MIN( ALL - 70 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT + COUNT ( * ) / - MIN ( ALL - 70 ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL - 38 * - COUNT( * ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - 38 * - COUNT ( * ) FROM tab2 AS cor0
----
114

query I rowsort
SELECT DISTINCT + ( - col1 ) + - + 81 + - - col0 AS col0 FROM tab1 cor0
----
-1
-37
-44

query I rowsort
SELECT ALL - - col2 + 18 * - 34 FROM tab1 cor0
----
-516
-544
-553

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT - 35 + + COUNT( * ) AS col1 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT - 35 + + COUNT ( * ) AS col1 FROM tab0
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 4 + + - COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-997
SELECT 4 + + - COUNT ( * ) AS col2 FROM tab1
----
1

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

query I rowsort
SELECT col0 + 0 * col0 * col2 FROM tab2
----
46
64
75

query I rowsort
SELECT - col2 * + 28 + - + col2 AS col0 FROM tab0
----
-1363
-2871
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT ALL + 58 + - CAST( + 4 AS SIGNED ) FROM tab1
----
54
54
54

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + 58 + - CAST ( + 4 AS INTEGER ) FROM tab1
----
54
54
54

query I rowsort
SELECT DISTINCT - col2 - + - 9 FROM tab0 AS cor0
----
-1
-38
-90

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab2 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1004
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - + col1 AS SIGNED ) NOT BETWEEN + - col2 AND + 53
----
97
1
99

skipif mysql # not compatible
query III rowsort label-1004
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - + col1 AS INTEGER ) NOT BETWEEN + - col2 AND + 53
----
97
1
99

query I rowsort
SELECT + 30 * 43 + + col1 FROM tab0 AS cor0 WHERE NOT + ( 97 ) BETWEEN NULL AND - 75 + + + col1 + col1
----
1291
1311
1371

query I rowsort
SELECT ( + ( - - col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 + 84 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1007
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 + 84 ) IS NULL
----
3

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

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

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

query I rowsort
SELECT + 74 * + ( + 99 ) * + col1 * - + col2 + + 4 + 95 * - + col1 * - - col0 AS col1 FROM tab2
----
-23032236
-28946207
-8816264

query II rowsort
SELECT - col0 AS col2, col2 * + ( - ( 41 ) ) * + + col0 AS col1 FROM tab1
----
-51
-200736
-85
-205615
-91
-253708

query I rowsort
SELECT 3 * - col0 FROM tab2
----
-138
-192
-225

query I rowsort
SELECT 21 * + - 25 AS col2 FROM tab0
----
-525
-525
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1014
SELECT MAX( ALL col2 ) DIV - 18 + - SUM( ALL col0 ) * - ( + 30 ) AS col2 FROM tab2
----
5547

skipif mysql # not compatible
query I rowsort label-1014
SELECT MAX ( ALL col2 ) / - 18 + - SUM ( ALL col0 ) * - ( + 30 ) AS col2 FROM tab2
----
5547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * - col2 * + 7 * 52 col1 FROM tab0
----
-1837836
-185640
-872508

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 65 IS NULL
----

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

query II rowsort
SELECT + col2 AS col0, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1020
SELECT 3 * + CAST( NULL AS SIGNED ) + - COUNT( * ) / - 19, SUM( ALL - 53 ) AS col0 FROM tab0
----
NULL
-159

skipif mysql # not compatible
query II rowsort label-1020
SELECT 3 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / - 19, SUM ( ALL - 53 ) AS col0 FROM tab0
----
NULL
-159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1021
SELECT CAST( NULL AS DECIMAL ) * - - 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT CAST ( NULL AS REAL ) * - - 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col0 + - col0 + - 0 + + ( 65 ) FROM tab0 cor0
----
-109
-129
35

query I rowsort
SELECT 80 * - - col1 AS col0 FROM tab1 cor0
----
1120
3760
400

query I rowsort
SELECT - col0 * - + 21 AS col1 FROM tab1 AS cor0
----
1071
1785
1911

query I rowsort
SELECT DISTINCT + col2 + - 63 AS col0 FROM tab2
----
-23
-40
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT MIN( + - 85 ) AS col0 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-1027
SELECT MIN ( + - 85 ) AS col0 FROM tab0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + col2 - + + col1 + 35 * col1 * - 44 * - 75 FROM tab2
----
51
5890472
67
7738491
77
8893463

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 35 / - + col0 IS NULL
----

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

query I rowsort
SELECT ALL + 92 + col2 FROM tab1
----
151
160
188

query I rowsort
SELECT ALL + col2 + - + col1 * - 14 * + - 71 - col1 + - col0 * + - col0 * - + col0 FROM tab0
----
-679388
-83923
-913569

query I rowsort
SELECT DISTINCT - col0 * + col2 * 99 + 89 AS col2 FROM tab0 WHERE NOT col2 + + col0 / + col0 NOT BETWEEN + - 33 - col1 AND + ( col1 ) + ( 6 ) / + col0 - + - col2
----
-69706
-86041
-950608

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT ALL + 39 DIV + col0 + + + col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + 39 / + col0 + + + col2 AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NULL = - - ( + - 49 ) - ( - 45 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT ALL col0 DIV ( - col0 ) - - + col0 col1 FROM tab0 cor0
----
14
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1037
SELECT ALL col0 / ( - col0 ) - - + col0 col1 FROM tab0 cor0
----
14
86
96

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

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

query I rowsort
SELECT - 77 + - + 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 39dd8c4f60f98325f31b33e4c0f3945d

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT ALL - col1 DIV - + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - col1 / - + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT + col2 AS col0, + col0 * - col0 AS col0 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1045
SELECT SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
121

query II rowsort
SELECT + col2, col2 * + ( col2 ) FROM tab1 AS cor0
----
59
3481
68
4624
96
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT ALL - 77 DIV + col0 col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1047
SELECT ALL - 77 / + col0 col2 FROM tab0 AS cor0
----
-5
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 88 ) NOT BETWEEN + - 95 AND - col2 / + + col2 - + 1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1052
SELECT DISTINCT + col1 + - col2 AS col1, CAST( - col0 AS SIGNED ) * - - col1 AS col0 FROM tab0
----
-98
-97
11
-1827
34
-1215

skipif mysql # not compatible
query II rowsort label-1052
SELECT DISTINCT + col1 + - col2 AS col1, CAST ( - col0 AS INTEGER ) * - - col1 AS col0 FROM tab0
----
-98
-97
11
-1827
34
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT ALL - col2 DIV + 17 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - col2 / + 17 FROM tab0
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT SUM( - 73 ) AS col1 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT SUM ( - 73 ) AS col1 FROM tab0
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT + 84 + col0 DIV col0 col2 FROM tab1
----
85
85
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1056
SELECT + 84 + col0 / col0 col2 FROM tab1
----
85
85
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1057
SELECT 81 + + CAST( NULL AS DECIMAL ) col0, col0 * + col2 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1057
SELECT 81 + + CAST ( NULL AS REAL ) col0, col0 * + col2 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

query I rowsort
SELECT - col1 + + col0 AS col1 FROM tab1 AS cor0 WHERE - col2 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT DISTINCT + 48 * - - CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
-2832
-3264
-4608

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + 48 * - - CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-2832
-3264
-4608

query I rowsort
SELECT ALL + col2 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1196
3120
3944

query II rowsort
SELECT col1 AS col0, col1 + + + col0 + - - 67 FROM tab2
----
51
164
67
209
77
208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT COUNT( * ) - MAX( - col1 ) col1 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1064
SELECT COUNT ( * ) - MAX ( - col1 ) col1 FROM tab2
----
54

query I rowsort
SELECT ( + 91 ) - + col0 AS col0 FROM tab0
----
-6
4
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT + - SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0 WHERE + ( - + 3 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT + - SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0 WHERE + ( - + 3 ) IS NULL
----
NULL

query I rowsort
SELECT + 0 - - col1 * + col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT + col0 * col2 * 54 FROM tab2 AS cor0 WHERE - 51 IS NOT NULL
----
138240
234900
57132

query I rowsort
SELECT DISTINCT ( + + 66 ) AS col0 FROM tab2 AS cor0
----
66

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

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

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

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

query I rowsort
SELECT DISTINCT + 45 + col1 FROM tab2 cor0
----
112
122
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT COUNT( * ) + + - COUNT( + col2 ) AS col1 FROM tab2
----
0

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

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

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

query II rowsort
SELECT ALL - 51 * - - 8 AS col1, + 46 FROM tab0
----
-408
46
-408
46
-408
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT COUNT( ALL - - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1076
SELECT COUNT ( ALL - - col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1077
SELECT DISTINCT col2 * + col2 * + - col0 * - col0 AS col0, + CAST( + CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
23970816
51
25150225
85
38291344
91

skipif mysql # not compatible
query II rowsort label-1077
SELECT DISTINCT col2 * + col2 * + - col0 * - col0 AS col0, + CAST ( + CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
23970816
51
25150225
85
38291344
91

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

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - COUNT ( ALL - 31 ) FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT ALL - col0 * ( 28 ) AS col0 FROM tab2
----
-1288
-1792
-2100

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL - + SUM( DISTINCT + col0 ) * 83 + + 15 FROM tab0 AS cor0
----
-16502

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - + SUM ( DISTINCT + col0 ) * 83 + + 15 FROM tab0 AS cor0
----
-16502

query I rowsort
SELECT DISTINCT 65 * 5 * - - col0 FROM tab0 cor0
----
28275
31525
4875

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 88 IS NULL
----

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

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

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

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

query II rowsort
SELECT + col0 AS col0, 94 AS col2 FROM tab2
----
46
94
64
94
75
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT DISTINCT col0 DIV + - col1 AS col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT col0 / + - col1 AS col1 FROM tab1
----
-1
-17
-3

query II rowsort
SELECT DISTINCT + 67, 23 AS col2 FROM tab0 AS cor0
----
67
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 94 ) IS NULL
----

query II rowsort
SELECT ALL 26, + col2 AS col2 FROM tab1 cor0
----
26
59
26
68
26
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT + + 51 + - ( + + MIN( - - ( col1 ) ) ) AS col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + + 51 + - ( + + MIN ( - - ( col1 ) ) ) AS col2 FROM tab1 AS cor0
----
46

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT + ( - CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT 87 + col0 * col0 * + col2 AS col1 FROM tab0 cor0
----
10662
75777
931578

query I rowsort
SELECT ALL + col1 + + 13 + ( + col2 ) * - - col2 + - 52 FROM tab0 AS cor0
----
2251
82
9763

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL 17 + - + COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL 17 + - + COUNT ( * ) FROM tab0 AS cor0
----
14

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

query I rowsort
SELECT 89 + - col0 FROM tab1
----
-2
38
4

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

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

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

query I rowsort
SELECT + 26 - + ( + col2 ) * + col1 FROM tab1 AS cor0
----
-1318
-269
-3170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1107
SELECT + 31 - + MAX( DISTINCT + col1 ) * - - MAX( ALL + CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-1107
SELECT + 31 - + MAX ( DISTINCT + col1 ) * - - MAX ( ALL + CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
112

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

query I rowsort
SELECT DISTINCT + ( + 90 ) AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL - - 43 + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL < NULL
----
43

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL - - 43 + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL < NULL
----
43

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

query II rowsort
SELECT - 96 AS col1, col2 FROM tab0 AS cor0
----
-96
10
-96
47
-96
99

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

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

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

query I rowsort
SELECT DISTINCT 80 * - col2 AS col2 FROM tab2 AS cor0
----
-1840
-3200
-4640

query I rowsort
SELECT DISTINCT - 86 * col0 AS col0 FROM tab2
----
-3956
-5504
-6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61 * - 49 * ( col2 ), - 59 col2 FROM tab1 cor0
----
-176351
-59
-203252
-59
-286944
-59

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT - - 43 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1120
SELECT - - 43 / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + col2 + - + col1 AS col0 FROM tab1 AS cor0
----
59
68
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT ALL col1 + + - ( + col2 ) + - 75 + + col1 DIV col0 * 74 * - 88 FROM tab1
----
-129
-157
-96

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL col1 + + - ( + col2 ) + - 75 + + col1 / col0 * 74 * - 88 FROM tab1
----
-129
-157
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + + ( - col0 ) col0 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT DISTINCT - 87 + - + col0 FROM tab0
----
-102
-174
-184

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL CAST( SUM( ALL + - 46 ) AS SIGNED ) FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL CAST ( SUM ( ALL + - 46 ) AS INTEGER ) FROM tab1 AS cor0
----
-138

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 95 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * - 0 + - - 23 col2 FROM tab2
----
23

query I rowsort
SELECT + col2 - - col2 + + col0 AS col1 FROM tab0
----
107
109
295

query I rowsort
SELECT - + 8 + - col0 FROM tab1 AS cor0
----
-59
-93
-99

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

query I rowsort
SELECT + 72 * - col0 + + + col1 AS col0 FROM tab2 AS cor0
----
-3261
-4531
-5333

query I rowsort
SELECT - ( - 66 ) + + col0 AS col1 FROM tab1 AS cor0
----
117
151
157

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

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

query I rowsort
SELECT + - 5 * col2 * - col0 FROM tab1 AS cor0
----
24480
25075
30940

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

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

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

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL - MAX ( ALL 99 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1140
SELECT - ( + 5 ) AS col0, + MAX( ALL + ( + col1 ) ) + - MAX( + col1 ) AS col1 FROM tab2
----
-5
0

skipif mysql # not compatible
query II rowsort label-1140
SELECT - ( + 5 ) AS col0, + MAX ( ALL + ( + col1 ) ) + - MAX ( + col1 ) AS col1 FROM tab2
----
-5
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - col2 + + - col0 * + col2 > - col2 * - col0 - - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 84 ) AS col0 FROM tab1
----
-84
-84
-84

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

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL col0 + col0 FROM tab0 WHERE NULL IS NULL
----
174
194
30

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

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE 29 IS NULL
----

query I rowsort
SELECT + col0 + - 34 FROM tab1 AS cor0
----
17
51
57

query I rowsort
SELECT DISTINCT + ( + 46 ) * + ( + 0 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1149
SELECT - 86 DIV col2 + - - col0 AS col2 FROM tab0 AS cor0
----
14
79
97

skipif mysql # not compatible
query I rowsort label-1149
SELECT - 86 / col2 + - - col0 AS col2 FROM tab0 AS cor0
----
14
79
97

query I rowsort
SELECT ALL - 25 + - 24 AS col2 FROM tab0 AS cor0
----
-49
-49
-49

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT - + col0 + + col2 col2 FROM tab1 AS cor0 WHERE + 46 NOT BETWEEN + CAST( - - col1 AS SIGNED ) + 73 AND NULL
----
-23
-26
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1153
SELECT - + col0 + + col2 col2 FROM tab1 AS cor0 WHERE + 46 NOT BETWEEN + CAST ( - - col1 AS INTEGER ) + 73 AND NULL
----
-23
-26
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT - + MIN( - col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1154
SELECT - + MIN ( - col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT col1 + - + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT DISTINCT - COUNT( * ) + + + 25 AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT - COUNT ( * ) + + + 25 AS col0 FROM tab1
----
22

query III rowsort
SELECT * FROM tab1 WHERE - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1158
SELECT - SUM( - - col1 ), 79 AS col1 FROM tab2
----
-195
79

skipif mysql # not compatible
query II rowsort label-1158
SELECT - SUM ( - - col1 ), 79 AS col1 FROM tab2
----
-195
79

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1159
SELECT ( MIN ( - + col1 ) ) col1 FROM tab0
----
-81

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 65 * + col0 * - ( 48 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT + + ( - COUNT( * ) ) * - + SUM( col0 ) FROM tab2 AS cor0 WHERE NOT NULL > 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT + + ( - COUNT ( * ) ) * - + SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL > 49
----
NULL

query I rowsort
SELECT - col0 - - + 5 + + ( + col2 ) * + - col1 * col2 + + 25 AS col1 FROM tab0 AS cor0
----
-178914
-2157
-9868

query I rowsort
SELECT DISTINCT - col0 + + 49 FROM tab0 AS cor0
----
-38
-48
34

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

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

query I rowsort
SELECT 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query II rowsort
SELECT 2 AS col0, 16 + + col0 FROM tab1 AS cor0
----
2
101
2
107
2
67

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1170
SELECT ALL - col1 DIV + + 89 * - col0 AS col1, ( - 80 ) * + - col1 * + col2 + - ( + 26 ) + - + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
107398
0
23515
0
255586

skipif mysql # not compatible
query II rowsort label-1170
SELECT ALL - col1 / + + 89 * - col0 AS col1, ( - 80 ) * + - col1 * + col2 + - ( + 26 ) + - + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
107398
0
23515
0
255586

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT - 13 + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT - 13 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-1172
SELECT ALL 31 col1, col2 + + ( - 75 ) DIV + + col1 FROM tab0
----
31
24
31
47
31
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1172
SELECT ALL 31 col1, col2 + + ( - 75 ) / + + col1 FROM tab0
----
31
24
31
47
31
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL + MAX( DISTINCT + ( + - 4 ) ) AS col2 FROM tab1, tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL + MAX ( DISTINCT + ( + - 4 ) ) AS col2 FROM tab1, tab1 AS cor0
----
-4

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

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

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - COUNT ( - + col2 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 94 + 6 + + 35 * + 35 / - col0 <> + 74
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 28 col0, 38 + - + col0 FROM tab0
----
28
-49
28
-59
28
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1180
SELECT col2 DIV 42 * + col2 AS col0 FROM tab1 AS cor0
----
192
59
68

skipif mysql # not compatible
query I rowsort label-1180
SELECT col2 / 42 * + col2 AS col0 FROM tab1 AS cor0
----
192
59
68

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

query I rowsort
SELECT DISTINCT - col0 * + + 16 AS col1 FROM tab2 cor0
----
-1024
-1200
-736

query II rowsort
SELECT col1, col1 * - - ( 75 ) FROM tab0 AS cor0
----
1
75
21
1575
81
6075

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT - col0 DIV - 25 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2
3
3

skipif mysql # not compatible
query I rowsort label-1184
SELECT - col0 / - 25 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - 47 * + COUNT( * ) AS col2 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-1185
SELECT - 47 * + COUNT ( * ) AS col2 FROM tab1
----
-141

query I rowsort
SELECT - + 57 * - col2 AS col1 FROM tab2 cor0
----
1311
2280
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT 10 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1187
SELECT 10 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT + 2 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1188
SELECT + 2 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL > NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT - 88 - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT - col0 + - 78 * CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

skipif mysql # not compatible
query I rowsort label-1191
SELECT - col0 + - 78 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE + col2 >= + + col0
----
-47
-99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 - - col2 col2 FROM tab1
----
140
149
177

query I rowsort
SELECT ALL col1 + - 84 AS col1 FROM tab1
----
-37
-70
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL > - - 54
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1198
SELECT ALL - col0 - + CAST( + + col1 AS SIGNED ) FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - col0 - + CAST ( + + col1 AS INTEGER ) FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1199
SELECT + 85 + + MAX( DISTINCT col1 ) * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT + 85 + + MAX ( DISTINCT col1 ) * + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT COUNT( * ) col1 FROM tab0 WHERE - 3 + - + ( col2 ) > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1200
SELECT COUNT ( * ) col1 FROM tab0 WHERE - 3 + - + ( col2 ) > NULL
----
0

query I rowsort
SELECT ALL 64 - + - col2 AS col0 FROM tab2
----
104
122
87

query II rowsort
SELECT + col0 AS col2, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT - 47 * - - col1 FROM tab2 cor0
----
-2397
-3149
-3619

query I rowsort
SELECT 14 * + col2 * col1 AS col0 FROM tab2 AS cor0
----
16422
43120
54404

query I rowsort
SELECT ALL - 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

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

query I rowsort
SELECT DISTINCT - col1 * - 71 AS col0 FROM tab1 AS cor0
----
3337
355
994

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT ALL CAST( + SUM( ALL - - 48 ) AS SIGNED ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL CAST ( + SUM ( ALL - - 48 ) AS INTEGER ) FROM tab0 AS cor0
----
144

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) IN ( - 58 )
----
3

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) IN ( - 58 )
----
3

query I rowsort
SELECT 91 * col0 * + - 8 FROM tab2 cor0
----
-33488
-46592
-54600

onlyif mysql # aggregate syntax: 
query II rowsort label-1215
SELECT + ( + MAX( + col1 ) ), MIN( ALL - col0 ) AS col1 FROM tab1
----
47
-91

skipif mysql # not compatible
query II rowsort label-1215
SELECT + ( + MAX ( + col1 ) ), MIN ( ALL - col0 ) AS col1 FROM tab1
----
47
-91

query I rowsort
SELECT col2 * - 27 FROM tab0
----
-1269
-2673
-270

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE 0 NOT BETWEEN NULL AND + col2 AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 70 * + 31 AS col0 FROM tab2
----
2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * + 46 col2 FROM tab1
----
3680
3680
3680

query I rowsort
SELECT DISTINCT 37 * + + 91 FROM tab2
----
3367

query I rowsort
SELECT ALL col1 * - 31 * col1 FROM tab1
----
-6076
-68479
-775

query II rowsort
SELECT 70 AS col2, - col1 + - 28 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----

query II rowsort
SELECT ALL + - col1, col1 FROM tab1 AS cor0 WHERE NOT - col2 * + 45 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL - 75 + + COUNT( * ) * + - 83 AS col0 FROM tab1
----
-324

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - 75 + + COUNT ( * ) * + - 83 AS col0 FROM tab1
----
-324

query I rowsort
SELECT DISTINCT - + 95 AS col2 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT 19 + + col0 AS col2 FROM tab0 cor0
----
106
116
34

query II rowsort
SELECT - 67 AS col2, - 31 FROM tab2 AS cor0
----
-67
-31
-67
-31
-67
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT - - 35 AS col1 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query II rowsort label-1231
SELECT DISTINCT - col2 AS col0, 51 + - - 70 DIV - 84 AS col1 FROM tab2 AS cor0
----
-23
51
-40
51
-58
51

skipif mysql # not compatible
query II rowsort label-1231
SELECT DISTINCT - col2 AS col0, 51 + - - 70 / - 84 AS col1 FROM tab2 AS cor0
----
-23
51
-40
51
-58
51

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - 53 * 8 * 30 * 80 + + col0 * + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT col0 DIV 90 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1234
SELECT col0 / 90 AS col2 FROM tab0 AS cor0
----
0
0
1

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

query I rowsort
SELECT ALL + ( col2 ) + + col0 FROM tab0
----
196
62
97

query I rowsort
SELECT - 57 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT col1 - col2 * col0 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT ALL + - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE 3 NOT BETWEEN NULL AND - col1
----
-14
-47
-5

query I rowsort
SELECT + 77 * - 52 * - - col0 AS col2 FROM tab0 AS cor0
----
-348348
-388388
-60060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT 51 AS col0 FROM tab0 WHERE NOT NULL >= 73
----

query I rowsort
SELECT 13 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

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

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

query I rowsort
SELECT ALL + col1 * + - col1 + 64 - + - 78 * + - col0 * col1 FROM tab0 cor0
----
-101267
-142883
-7503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT - col1 / - - ( + 1 ) / + - ( CAST( NULL AS SIGNED ) ) / + 40 + + col1 - - 68 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT - col1 / - - ( + 1 ) / + - ( CAST ( NULL AS INTEGER ) ) / + 40 + + col1 - - 68 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + col0 * - + 32 FROM tab2 AS cor0
----
157696
160800
75072

query II rowsort
SELECT ( 18 ), + col0 FROM tab1 AS cor0 WHERE NOT 57 IS NULL
----
18
51
18
85
18
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * - - col0 * - col0 col0 FROM tab0 AS cor0
----
-12375
-416295
-517495

query I rowsort
SELECT DISTINCT + 64 * - col0 FROM tab0 cor0
----
-5568
-6208
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT + col2 * - col1 + 84 + + - col2 DIV + col1 FROM tab0 cor0
----
-114
-126
-3723

skipif mysql # not compatible
query I rowsort label-1252
SELECT + col2 * - col1 + 84 + + - col2 / + col1 FROM tab0 cor0
----
-114
-126
-3723

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT + 34 * - ( - COUNT( * ) ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + 34 * - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
102

query I rowsort
SELECT DISTINCT + col0 * col0 * - 16 FROM tab1
----
-115600
-132496
-41616

query I rowsort
SELECT ( 12 ) * + + col2 FROM tab0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL COUNT( * ) * + + 91 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL COUNT ( * ) * + + 91 FROM tab0
----
273

query I rowsort
SELECT + col1 * col0 * - col1 + - col1 FROM tab1 AS cor0
----
-10010
-201066
-2130

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

query I rowsort
SELECT - ( - col2 ) + - + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - - 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT - - 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
92

query I rowsort
SELECT - 30 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query II rowsort
SELECT DISTINCT 58 AS col1, col2 * - + col2 FROM tab2 AS cor0
----
58
-1600
58
-3364
58
-529

query I rowsort
SELECT - + col1 + + col1 - + 73 * col2 AS col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL MAX( ALL - 49 ) * - 32 + - + COUNT( * ) - - - COUNT( * ) AS col2 FROM tab1
----
1562

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL MAX ( ALL - 49 ) * - 32 + - + COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab1
----
1562

query I rowsort
SELECT + - col1 * + col2 * + + 0 + - 94 * - 31 * + 12 / + col1 AS col0 FROM tab1 WHERE NULL <= + col1
----

query I rowsort
SELECT DISTINCT + col2 * col0 + - 42 AS col0 FROM tab0
----
663
828
9561

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL COUNT( - - 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL COUNT ( - - 2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1269
SELECT DISTINCT col1 + col1 - - col2 DIV col2 * + col2 * + col1 - col1 AS col1, col0 FROM tab0
----
100
97
231
87
3888
15

skipif mysql # not compatible
query II rowsort label-1269
SELECT DISTINCT col1 + col1 - - col2 / col2 * + col2 * + col1 - col1 AS col1, col0 FROM tab0
----
100
97
231
87
3888
15

query I rowsort
SELECT DISTINCT + col1 - col0 + - col2 FROM tab2
----
-18
-27
-66

query I rowsort
SELECT ALL 65 * - 70 + + + col0 + + col0 FROM tab0
----
-4356
-4376
-4520

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

query II rowsort
SELECT 20 AS col1, 5 + 26 FROM tab1
----
20
31
20
31
20
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT COUNT( * ) AS col1, 16 AS col2 FROM tab2
----
3
16

skipif mysql # not compatible
query II rowsort label-1274
SELECT COUNT ( * ) AS col1, 16 AS col2 FROM tab2
----
3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT COUNT( * ) + - 15 AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT COUNT ( * ) + - 15 AS col2 FROM tab2
----
-12

query II rowsort
SELECT DISTINCT + - col0 AS col1, col2 + 25 + - + col2 - - col2 FROM tab1 AS cor0
----
-51
121
-85
84
-91
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 57 * 69 >= NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT + CAST( - SUM( - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT + CAST ( - SUM ( - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE 86 IS NULL
----

query I rowsort
SELECT ALL - col1 * 61 * + + col2 FROM tab2 AS cor0
----
-187880
-237046
-71553

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT - - MIN( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT - - MIN ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1283
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + 71 NOT BETWEEN 5 + + col2 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1283
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + 71 NOT BETWEEN 5 + + col2 AND + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - 71 AS col2, + ( col0 ) FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1285
SELECT col0 AS col1, CAST( NULL AS SIGNED ) col0 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-1285
SELECT col0 AS col1, CAST ( NULL AS INTEGER ) col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT SUM( + col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1286
SELECT SUM ( + col2 ) col0 FROM tab0
----
156

query I rowsort
SELECT col2 + + + col2 + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
120
174
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT DISTINCT col1 DIV - + col0 * 16 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT col1 / - + col0 * 16 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT CAST( + 1 AS SIGNED ) AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1290
SELECT CAST ( + 1 AS INTEGER ) AS col2 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 39 <> - 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1292
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + CAST( NULL AS SIGNED ) + + ( + + col2 ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-1292
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + CAST ( NULL AS INTEGER ) + + ( + + col2 ) AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1293
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - col2 * - 43 AS col1 FROM tab1
----
2537
2924
4128

query III rowsort
SELECT * FROM tab0 WHERE NOT 56 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT 27 * - COUNT( * ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1296
SELECT 27 * - COUNT ( * ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - 31 + 24 * 16 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - 37 FROM tab0 WHERE col1 / + 71 = - 36
----

query I rowsort
SELECT - col2 * + ( col0 ) + - 60 FROM tab2 WHERE NOT NULL BETWEEN 81 + + col2 AND col1 * - 76
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - col1 + col0 * col1 NOT BETWEEN NULL AND 61 * - col1
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT ALL 47 DIV + COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL 47 / + COUNT ( * ) AS col0 FROM tab2
----
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT + COUNT( * ) DIV + 41 + + SUM( DISTINCT + col0 ) FROM tab1 WHERE ( 30 * + col2 ) IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-1304
SELECT + COUNT ( * ) / + 41 + + SUM ( DISTINCT + col0 ) FROM tab1 WHERE ( 30 * + col2 ) IS NOT NULL
----
227

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT COUNT( * ) * - MIN( - col1 * + col0 ) FROM tab2
----
15075

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT COUNT ( * ) * - MIN ( - col1 * + col0 ) FROM tab2
----
15075

query I rowsort
SELECT 69 * + col0 + 46 AS col1 FROM tab2
----
3220
4462
5221

query I rowsort
SELECT DISTINCT - 34 * - col1 - - col2 AS col2 FROM tab1
----
1666
229
572

query III rowsort
SELECT * FROM tab1 WHERE col2 > ( col0 )
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL + col0 FROM tab1 WHERE NULL BETWEEN ( col2 + CAST( + 15 - - col1 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + col0 FROM tab1 WHERE NULL BETWEEN ( col2 + CAST ( + 15 - - col1 AS INTEGER ) ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT 21 + col0 * + col1 FROM tab2
----
2367
4949
5046

query I rowsort
SELECT + col1 + - 2 AS col1 FROM tab0
----
-1
19
79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1319
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + 64 FROM tab2
----
-13
-3
13

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + 64 FROM tab2
----
-13
-3
13

query I rowsort
SELECT ALL ( + 71 ) * + 22 AS col2 FROM tab1 AS cor0
----
1562
1562
1562

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 52 + 60 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 92 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT col2 + + col0 * 13 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( - ( + 45 ) )
----

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

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

query I rowsort
SELECT + + ( 47 ) * col1 AS col2 FROM tab2 AS cor0
----
2397
3149
3619

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1330
SELECT COUNT ( ALL - col0 ) col0 FROM tab0 AS cor0
----
3

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 40 IN ( - 41 * - col1 + 12 / + 44 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT DISTINCT - col1 DIV - col0 + col1 FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - col1 / - col0 + col1 FROM tab2 AS cor0
----
52
67
78

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = + 99
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab0 cor0
----
23

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 * col1 NOT IN ( - col0 / + 65 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT DISTINCT + - 12 * col2 + - 25 FROM tab2 AS cor0
----
-301
-505
-721

query I rowsort
SELECT ALL + col2 + - 57 * 28 AS col2 FROM tab1
----
-1500
-1528
-1537

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

skipif mysql # not compatible
query I rowsort label-1345
SELECT col2 / CAST ( + col1 AS REAL ) + col1 AS col2 FROM tab0 WHERE NOT ( ( - col1 ) - col2 ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + 75 * col2 + - col1 FROM tab1 WHERE ( 49 ) IS NOT NULL
----
4420
5053
7186

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 / + col2 ) IS NULL OR NULL NOT BETWEEN col1 * + 4 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 87 + + ( ( + col1 ) ) FROM tab2 WHERE - 63 IS NOT NULL
----
138
154
164

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

query I rowsort
SELECT col0 + + col2 - 86 * + 27 AS col0 FROM tab1
----
-2163
-2175
-2178

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

query I rowsort
SELECT - col1 + + + col2 + col0 * + col1 FROM tab1
----
4298
479
796

query I rowsort
SELECT - col0 * + 62 + 20 * col0 AS col2 FROM tab2
----
-1932
-2688
-3150

query I rowsort
SELECT - 26 + + + col2 FROM tab1
----
33
42
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT COUNT( * ) + + MIN( ALL - col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-1356
SELECT COUNT ( * ) + + MIN ( ALL - col1 ) FROM tab0
----
-78

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

query I rowsort
SELECT + + col1 + + + ( 77 ) FROM tab2 AS cor0
----
128
144
154

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 98 + 38 AS col0 FROM tab1 cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col0 <= ( NULL )
----

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

query I rowsort
SELECT + - 59 + + 72 * + col0 FROM tab2 AS cor0
----
3253
4549
5341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - ( col2 ) col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * - + col0 col0 FROM tab2 AS cor0
----
-1840
-2560
-3000

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * col2 + - 82 AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 40 * + 90 / + col0 BETWEEN col1 / col0 + - col2 / col2 AND - col1 * + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1374
SELECT DISTINCT COUNT( * ) DIV COUNT( * ), ( COUNT( * ) ) col2 FROM tab0
----
1
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT + SUM( ALL + + col0 ) AS col2, + ( - ( COUNT( DISTINCT ( col1 ) ) ) ) FROM tab2
----
185
-3

skipif mysql # not compatible
query II rowsort label-1375
SELECT + SUM ( ALL + + col0 ) AS col2, + ( - ( COUNT ( DISTINCT ( col1 ) ) ) ) FROM tab2
----
185
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ( + - MIN( - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1376
SELECT ( + - MIN ( - col0 ) ) FROM tab0
----
97

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

skipif mysql # not compatible
query II rowsort label-1377
SELECT + COUNT ( - col0 ), - 56 + + COUNT ( * ) AS col2 FROM tab1
----
3
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT col0 * + col0 * - CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab2
----
107916
315392
376875

skipif mysql # not compatible
query I rowsort label-1378
SELECT col0 * + col0 * - CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT - CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1379
SELECT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT - col1 DIV + + 22 AS col1 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-1380
SELECT - col1 / + + 22 AS col1 FROM tab2
----
-2
-3
-3

query I rowsort
SELECT 87 * - col2 AS col2 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT ( + - 63 ) FROM tab2
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1383
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col1, - col2 + + + 58 - 67 AS col2 FROM tab2
----
NULL
-32
NULL
-49
NULL
-67

skipif mysql # not compatible
query II rowsort label-1383
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col1, - col2 + + + 58 - 67 AS col2 FROM tab2
----
NULL
-32
NULL
-49
NULL
-67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 53 ) NOT BETWEEN + 70 AND 20 / 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1385
SELECT DISTINCT - 37 / col1 / - CAST( NULL AS SIGNED ) * - 37 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT - 37 / col1 / - CAST ( NULL AS INTEGER ) * - 37 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 66 * - ( 89 ) FROM tab1
----
-5874
-5874
-5874

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

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

query I rowsort
SELECT - col0 * 25 FROM tab2 WHERE NOT - col0 NOT BETWEEN - col1 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + SUM ( DISTINCT - - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - - col0 = ( NULL ) AND NOT ( 59 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - - col0 = ( NULL ) AND NOT ( 59 IS NULL )
----
0

query I rowsort
SELECT col2 * + col2 + - - col2 FROM tab2 AS cor0
----
1640
3422
552

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

query I rowsort
SELECT ALL col1 + - - 6 FROM tab0
----
27
7
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1394
SELECT + col2, ( - col1 ) + - + CAST( - col0 AS SIGNED ) * - 64 AS col0 FROM tab2
----
23
-2995
40
-4173
58
-4867

skipif mysql # not compatible
query II rowsort label-1394
SELECT + col2, ( - col1 ) + - + CAST ( - col0 AS INTEGER ) * - 64 AS col0 FROM tab2
----
23
-2995
40
-4173
58
-4867

query I rowsort
SELECT ALL + col0 + 5 FROM tab2
----
51
69
80

query I rowsort
SELECT ALL + 16 + + ( 38 ) AS col2 FROM tab1
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + - col1 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND col0 + 50 + - ( 95 )
----

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

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

query I rowsort
SELECT ALL - 15 + - 57 AS col0 FROM tab0 WHERE NULL BETWEEN col2 AND - 88
----

query I rowsort
SELECT ALL - - col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT DISTINCT - col0 * 98 + - + col1 + + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-1551
-8547
-9507

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 27 ) < NULL
----

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

query I rowsort
SELECT DISTINCT - ( + 95 ) AS col0 FROM tab1 cor0
----
-95

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

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

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

query I rowsort
SELECT 21 * 81 + - col2 FROM tab2 AS cor0
----
1643
1661
1678

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL - COUNT( DISTINCT + 45 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - COUNT ( DISTINCT + 45 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1410
SELECT - col0 DIV col0 * - col1 - - 54 AS col2 FROM tab2 AS cor0
----
105
121
131

skipif mysql # not compatible
query I rowsort label-1410
SELECT - col0 / col0 * - col1 - - 54 AS col2 FROM tab2 AS cor0
----
105
121
131

query II rowsort
SELECT DISTINCT + col1 AS col0, 11 AS col1 FROM tab2
----
51
11
67
11
77
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT 51 DIV - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1413
SELECT 51 / - col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL + 83 * col1 FROM tab0
----
1743
6723
83

query II rowsort
SELECT DISTINCT col2 AS col0, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + col2 * + 96 * - + col2 FROM tab2
----
-153600
-322944
-50784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT ALL + ( + COUNT( * ) ) * + - COUNT( * ) DIV - 15 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + ( + COUNT ( * ) ) * + - COUNT ( * ) / - 15 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + 23 + + col1 NOT BETWEEN ( - + 95 ) AND col2 * ( + col2 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1419
SELECT DISTINCT + col2 DIV + - CAST( - - 61 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
0
21
81

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + col2 / + - CAST ( - - 61 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
0
21
81

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1424
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col0 IN ( - + col2, - 78 ) AND ( NOT - 40 * col0 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col0 IN ( - + col2, - 78 ) AND ( NOT - 40 * col0 IS NOT NULL )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT DISTINCT + col2 DIV 95 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT + col2 / 95 FROM tab1 AS cor0
----
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1428
SELECT - 67 / - + COUNT ( * ) FROM tab2 AS cor0
----
22

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

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

query I rowsort
SELECT ALL + 74 * - + 66 + + col0 * - 53 + + col2 FROM tab2 AS cor0
----
-7299
-8236
-8801

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

query I rowsort
SELECT DISTINCT col0 * 95 + + - col0 AS col1 FROM tab2
----
4324
6016
7050

query I rowsort
SELECT ALL col1 + - - 58 FROM tab0
----
139
59
79

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

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT 33 + + COUNT ( * ) FROM tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + - col0 + 95 FROM tab2
----
-38
-9
26

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + - col0 + 95 FROM tab2
----
-38
-9
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT MIN( - - col0 ) FROM tab0 WHERE - col2 > col2 - + + col2 + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT MIN ( - - col0 ) FROM tab0 WHERE - col2 > col2 - + + col2 + + 96
----
NULL

query I rowsort
SELECT DISTINCT - - col1 - + col2 AS col1 FROM tab0 AS cor0
----
-98
11
34

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1439
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1440
SELECT ALL + + 75 AS col2, 96 + ( - COUNT( * ) ) FROM tab0 cor0
----
75
93

skipif mysql # not compatible
query II rowsort label-1440
SELECT ALL + + 75 AS col2, 96 + ( - COUNT ( * ) ) FROM tab0 cor0
----
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1441
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - CAST( + col1 AS SIGNED ) NOT IN ( col0 + - col2, + 35 / col0 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1441
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - CAST ( + col1 AS INTEGER ) NOT IN ( col0 + - col2, + 35 / col0 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1442
SELECT DISTINCT - col2 + - col0 DIV + CAST( col2 AS SIGNED ) FROM tab1
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT - col2 + - col0 / + CAST ( col2 AS INTEGER ) FROM tab1
----
-60
-69
-96

query I rowsort
SELECT + col0 - - 8 + 85 FROM tab2
----
139
157
168

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1444
SELECT - 47 AS col2, CAST( NULL AS DECIMAL ) / - - COUNT( * ) * + + 24 FROM tab1 cor0 WHERE NOT col2 * - 63 IS NOT NULL
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-1444
SELECT - 47 AS col2, CAST ( NULL AS REAL ) / - - COUNT ( * ) * + + 24 FROM tab1 cor0 WHERE NOT col2 * - 63 IS NOT NULL
----
-47
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1446
SELECT col0 col2, col0 DIV - - 10 AS col1 FROM tab1 AS cor0
----
51
5
85
8
91
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1446
SELECT col0 col2, col0 / - - 10 AS col1 FROM tab1 AS cor0
----
51
5
85
8
91
9

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) <= - col2 - + 3 + + 76
----

query I rowsort
SELECT DISTINCT 24 * + + 19 FROM tab1
----
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + 64 AS col0, - 26 col1 FROM tab1
----
3008
-26
320
-26
896
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT MAX( - 84 ) AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1451
SELECT MAX ( - 84 ) AS col1 FROM tab1
----
-84

query I rowsort
SELECT DISTINCT - ( + + ( - + col1 ) ) * - 69 AS col2 FROM tab1
----
-3243
-345
-966

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT 69 DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1454
SELECT 69 / col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + + COUNT( DISTINCT - + col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1455
SELECT + + COUNT ( DISTINCT - + col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 7 col1 FROM tab1
----
329
35
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1457
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT 14 + - COUNT( * ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-1458
SELECT 14 + - COUNT ( * ) FROM tab1
----
11

query III rowsort
SELECT ALL * FROM tab2 WHERE 84 <= ( - col0 * - + col0 * + 25 + + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT - COUNT( * ) * + ( 85 ) + 85, + MAX( - - col2 ) col1 FROM tab0
----
-170
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1460
SELECT - COUNT ( * ) * + ( 85 ) + 85, + MAX ( - - col2 ) col1 FROM tab0
----
-170
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1462
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-1462
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT 55 * - COUNT( * ) col1 FROM tab2 cor0
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1463
SELECT 55 * - COUNT ( * ) col1 FROM tab2 cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1464
SELECT - - CAST( + col2 AS SIGNED ) DIV - col0 + - 70 FROM tab1 AS cor0
----
-70
-70
-71

skipif mysql # not compatible
query I rowsort label-1464
SELECT - - CAST ( + col2 AS INTEGER ) / - col0 + - 70 FROM tab1 AS cor0
----
-70
-70
-71

query I rowsort
SELECT ALL 30 + + col2 FROM tab2 AS cor0
----
53
70
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT + ( + COUNT( * ) ) DIV - + ( - 75 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT + ( + COUNT ( * ) ) / - + ( - 75 ) FROM tab0
----
0

query II rowsort
SELECT ( - col2 ) AS col1, + col0 FROM tab0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - - col1 * - col2 * + - 85 col2 FROM tab2
----
-261760
-330252
-99682

query I rowsort
SELECT ALL col0 + 35 + + 3 * 92 + + ( + + 55 ) AS col1 FROM tab0
----
381
453
463

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

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab2 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 69 IS NULL
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - 12 * 89 AS col1 FROM tab2 AS cor0
----
-1068
-1068
-1068

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 12 * - col0 * col1 * - col2 ) IS NULL
----

query II rowsort
SELECT ALL - - 21 AS col0, 89 AS col1 FROM tab0 AS cor0
----
21
89
21
89
21
89

query II rowsort
SELECT DISTINCT - 61, - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-61
-102
-61
-134
-61
-154

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

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

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

skipif mysql # not compatible
query I rowsort label-1479
SELECT COUNT ( DISTINCT - + col1 ) FROM tab1
----
3

query I rowsort
SELECT ALL - col0 * - + ( + col0 ) FROM tab0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query II rowsort label-1481
SELECT col2 AS col0, - col2 DIV 75 FROM tab0
----
10
0
47
0
99
-1

skipif mysql # not compatible
query II rowsort label-1481
SELECT col2 AS col0, - col2 / 75 FROM tab0
----
10
0
47
0
99
-1

query I rowsort
SELECT ALL - col1 * - col0 * - col0 AS col2 FROM tab0
----
-158949
-18225
-9409

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

query I rowsort
SELECT + 70 * - col0 FROM tab2
----
-3220
-4480
-5250

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 / col2 + + + col2 * + 18 + - col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT - 68 + - 30 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT - 68 + - 30 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + 84 + - + 72 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1500
-3352
-451

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

query I rowsort
SELECT ALL - col0 * + col1 + - 13 FROM tab1
----
-4290
-438
-727

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE ( - - 51 * ( + - col2 ) * col2 ) = 10
----

query I rowsort
SELECT DISTINCT + - 91 * - col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
64170
79257
873970

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL + 5 + + COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + 5 + + COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
8

query II rowsort
SELECT col1 + - - col2 + - 99, col2 AS col1 FROM tab1 AS cor0
----
-35
59
11
96
16
68

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 * - col0 col0 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT + 40 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1501
SELECT + 0 AS col2, COUNT( * ) col1 FROM tab2
----
0
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1503
SELECT ALL 55 DIV - COUNT( * ) + MIN( ALL - - col1 ) AS col2 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL 55 / - COUNT ( * ) + MIN ( ALL - - col1 ) AS col2 FROM tab1
----
-13

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - + col2 col1 FROM tab0
----
196
62
97

query I rowsort
SELECT - ( + 48 ) AS col1 FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1507
SELECT CAST( + 32 AS SIGNED ) FROM tab1 cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-1507
SELECT CAST ( + 32 AS INTEGER ) FROM tab1 cor0
----
32
32
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT + 34 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + MIN( DISTINCT + 76 ) AS col0 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1513
SELECT + MIN ( DISTINCT + 76 ) AS col0 FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1514
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ( 85 ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - + COUNT( - 39 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - + COUNT ( - 39 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1517
SELECT - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND CAST( - 97 AS DECIMAL ) / - 9 + + - col2 * 15
----

skipif mysql # not compatible
query I rowsort label-1517
SELECT - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND CAST ( - 97 AS REAL ) / - 9 + + - col2 * 15
----

query I rowsort
SELECT + 11 * - + ( - ( 48 ) ) AS col1 FROM tab0
----
528
528
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + SUM( DISTINCT - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1519
SELECT + SUM ( DISTINCT - - col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT 12 * - COUNT( * ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-1520
SELECT 12 * - COUNT ( * ) AS col2 FROM tab2
----
-36

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

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

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

query I rowsort
SELECT ALL col0 * - + 82 FROM tab2 AS cor0
----
-3772
-5248
-6150

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

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

query I rowsort
SELECT DISTINCT - col1 - - 47 + col2 * + col2 * col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
1026
103789
970345

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1526
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - ( - + CAST( NULL AS SIGNED ) ) IS NOT NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-1526
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - ( - + CAST ( NULL AS INTEGER ) ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT 10 * + SUM( + 62 ) + + 14 FROM tab1
----
1874

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT 10 * + SUM ( + 62 ) + + 14 FROM tab1
----
1874

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col0 * + 96 AS col0 FROM tab0
----
-3180960
-835200
-91266912

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL - 39 * + - MAX( ALL + - 30 ) FROM tab2
----
-1170

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - 39 * + - MAX ( ALL + - 30 ) FROM tab2
----
-1170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 13 = NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * + - col0 col1 FROM tab2 AS cor0
----
3956
5504
6450

query I rowsort
SELECT ALL + col2 * - - ( 85 ) FROM tab0 AS cor0
----
3995
8415
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + - col2 * ( - ( - col1 ) ) + + col0 col0 FROM tab2 AS cor0
----
123264
225463
27025

query I rowsort
SELECT + - 29 AS col0 FROM tab1 AS cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + + col1 * - col2 col0 FROM tab1 AS cor0
----
-1279
-230
-3131

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT + col0 * + col0 * + - 91 - - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT + col0 * + col0 * + - 91 - - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * - 48 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1540
SELECT - 79 DIV col1 - + + col1 AS col0 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 79 / col1 - + + col1 AS col0 FROM tab2
----
-52
-68
-78

query I rowsort
SELECT DISTINCT col1 + - col1 + col0 - - col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT col0 - - + 90 AS col0 FROM tab0
----
105
177
187

query I rowsort
SELECT + 89 + + col0 FROM tab1
----
140
174
180

query I rowsort
SELECT ALL col1 * - + col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - - 38 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - - 38 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
114

query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL 83 * + 96 * - - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
71712

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL 83 * + 96 * - - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
71712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT 87 DIV + COUNT( * ) FROM tab2
----
29

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

query I rowsort
SELECT DISTINCT - col1 * - col0 * + + col2 AS col1 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT - 89 FROM tab0 WHERE NOT NULL > 37
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1552
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-1552
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1553
SELECT - + COUNT ( * ) col1, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1554
SELECT CAST( + - 79 AS SIGNED ) * + COUNT( * ) - + 41 FROM tab1 AS cor0
----
-278

skipif mysql # not compatible
query I rowsort label-1554
SELECT CAST ( + - 79 AS INTEGER ) * + COUNT ( * ) - + 41 FROM tab1 AS cor0
----
-278

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT 77 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT DISTINCT + - 31 DIV + - col0 AS col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT + - 31 / + - col0 AS col0 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT MAX( 54 ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1557
SELECT MAX ( 54 ) FROM tab2 cor0
----
54

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE 76 IS NOT NULL
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1560
SELECT DISTINCT + COUNT( * ) AS col1, MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-1560
SELECT DISTINCT + COUNT ( * ) AS col1, MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT - ( COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab0 cor0
----
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - COUNT ( ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col1 col2 FROM tab1
----
-138
-65
-90

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

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

query I rowsort
SELECT DISTINCT 16 + + ( col2 ) FROM tab1 AS cor0
----
112
75
84

query I rowsort
SELECT ALL + 5 + + + 99 FROM tab0
----
104
104
104

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 27 > - col2 + 98
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IN ( - col2 + + + col0, - col1 ) AND NULL > - col0
----

query I rowsort
SELECT col2 + - 78 * 14 FROM tab1 AS cor0
----
-1024
-1033
-996

query I rowsort
SELECT DISTINCT - col2 * col1 / - 0 FROM tab2 cor0 WHERE NOT + 71 * - 9 > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1574
SELECT DISTINCT + - COUNT ( ALL - ( + CAST ( - col1 AS INTEGER ) ) ) - - COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + - col0 + + + col2 * 8 FROM tab2 AS cor0
----
138
256
389

query I rowsort
SELECT ALL + + col0 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 1 IN ( ( 60 ), - 28 ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col1 * - 1 col2, ( + col2 ) + + col0 FROM tab1 AS cor0
----
-425
144
-4277
159
-714
147

query I rowsort
SELECT DISTINCT col2 + 44 FROM tab0 AS cor0
----
143
54
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN + 86 / + - col0 * + col2 AND col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL - MAX( - + 66 ) FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - MAX ( - + 66 ) FROM tab0 cor0
----
66

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

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

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

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

query II rowsort
SELECT col2 AS col0, 57 * col1 - + 24 FROM tab0
----
10
1173
47
4593
99
33

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <> + col2
----

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

query I rowsort
SELECT DISTINCT ( - col0 ) * col1 * + col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE 30 - + 82 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( - 88 ) + col0 * col0 * ( + 99 ) col0 FROM tab0 AS cor0
----
22410
749429
931678

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL + + ( MIN( DISTINCT - col0 ) ) + - + COUNT( * ) - - - COUNT( * ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + + ( MIN ( DISTINCT - col0 ) ) + - + COUNT ( * ) - - - COUNT ( * ) FROM tab2 AS cor0
----
-81

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1596
SELECT DISTINCT col1 DIV - ( + col2 ) AS col1, + col2 AS col0 FROM tab0
----
-1
47
-2
10
0
99

skipif mysql # not compatible
query II rowsort label-1596
SELECT DISTINCT col1 / - ( + col2 ) AS col1, + col2 AS col0 FROM tab0
----
-1
47
-2
10
0
99

query I rowsort
SELECT ALL + col2 + 45 AS col0 FROM tab0
----
144
55
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT col0 DIV 44 * + + col0 AS col0 FROM tab0
----
0
194
87

skipif mysql # not compatible
query I rowsort label-1598
SELECT col0 / 44 * + + col0 AS col0 FROM tab0
----
0
194
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + - COUNT( * ) * + 35 * + 42 AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + - COUNT ( * ) * + 35 * + 42 AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT DISTINCT + + 10 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
10

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT + + 10 / + col1 AS col2 FROM tab0 AS cor0
----
0
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT + SUM( DISTINCT + 48 ) * - 34 * - - CAST( NULL AS SIGNED ) + ( + 21 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT + SUM ( DISTINCT + 48 ) * - 34 * - - CAST ( NULL AS INTEGER ) + ( + 21 ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + 67 / + - col0 AND NULL
----

query I rowsort
SELECT - 99 FROM tab1 AS cor0 WHERE 74 + + 21 + - 45 - col1 = NULL
----

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

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

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

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

query I rowsort
SELECT 50 * + 53 + - + col0 FROM tab2
----
2575
2586
2604

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

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

query I rowsort
SELECT DISTINCT - col0 - + - 49 + + - col2 + + - col0 FROM tab2 cor0
----
-119
-159
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT col1 DIV col2 + - + col1 + - col0 - - col0 FROM tab0 AS cor0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-1611
SELECT col1 / col2 + - + col1 + - col0 - - col0 FROM tab0 AS cor0
----
-1
-19
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT COUNT( * ) - - COUNT( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1612
SELECT COUNT ( * ) - - COUNT ( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + 30 - + 68 AS col0 FROM tab1 cor0
----
-38
-38
-38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT - col0 * 52 + - + col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN - 17 * - - 18 * - ( - CAST( NULL AS SIGNED ) ) + + + col0 AND - - ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1615
SELECT - col0 * 52 + - + col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN - 17 * - - 18 * - ( - CAST ( NULL AS INTEGER ) ) + + + col0 AND - - ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT col0 * - col0 DIV + col0 AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1616
SELECT col0 * - col0 / + col0 AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 * 16 AS col2 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - - COUNT( * ) FROM tab1 WHERE NOT + 4 + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1618
SELECT - - COUNT ( * ) FROM tab1 WHERE NOT + 4 + col2 <= NULL
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 16 IS NULL
----

query I rowsort
SELECT col2 / + col0 FROM tab2 AS cor0 WHERE NOT - col1 * - 9 - - ( 25 ) * col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 96, + 71 * + 26 AS col2 FROM tab2 AS cor0
----
-96
1846
-96
1846
-96
1846

query II rowsort
SELECT - 43, 40 AS col1 FROM tab1 AS cor0
----
-43
40
-43
40
-43
40

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab2 cor0 WHERE NOT 49 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 49 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
49
49
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1626
SELECT ALL COUNT( * ) - COUNT( * ) - 65 AS col1 FROM tab0 AS cor0 WHERE + 69 + - CAST( + 46 AS SIGNED ) + + + col2 * - 67 / col2 * + col0 + + 14 + 93 * col2 + + ( - + col2 ) / + 30 IN ( - col1 )
----
-65

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COUNT ( * ) - COUNT ( * ) - 65 AS col1 FROM tab0 AS cor0 WHERE + 69 + - CAST ( + 46 AS INTEGER ) + + + col2 * - 67 / col2 * + col0 + + 14 + 93 * col2 + + ( - + col2 ) / + 30 IN ( - col1 )
----
-65

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

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

query I rowsort
SELECT ALL ( + + col1 ) + + + 46 * col2 FROM tab2
----
1109
1917
2735

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - ( - - col1 ) <> NULL
----

query I rowsort
SELECT 40 + + col2 + col2 + 8 * 29 * - col1 FROM tab1
----
-1002
-10728
-3016

query I rowsort
SELECT col0 + - 81 FROM tab1
----
-30
10
4

query II rowsort
SELECT + 16 + + 15, col0 AS col1 FROM tab2
----
31
46
31
64
31
75

query I rowsort
SELECT 81 + + - col2 AS col1 FROM tab1
----
-15
13
22

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

query II rowsort
SELECT DISTINCT - col1 + + 10, col2 + - col0 AS col2 FROM tab1 AS cor0
----
-37
-23
-4
45
5
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1637
SELECT DISTINCT + CAST( - 13 AS SIGNED ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + CAST ( - 13 AS INTEGER ) FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT + ( + MAX( DISTINCT - 24 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-1638
SELECT + ( + MAX ( DISTINCT - 24 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
-6

query I rowsort
SELECT 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT ALL + COUNT( * ) * - 23 AS col0, 80 * 17 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-207
1360

skipif mysql # not compatible
query II rowsort label-1641
SELECT ALL + COUNT ( * ) * - 23 AS col0, 80 * 17 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-207
1360

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

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

query I rowsort
SELECT + col1 * + + 37 + - col1 - 55 + col1 * 29 AS col2 FROM tab0 AS cor0
----
10
1310
5210

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

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab0 cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT + col1 - 38 NOT BETWEEN - 81 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1646
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT + col1 - 38 NOT BETWEEN - 81 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT MIN( 38 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-1647
SELECT MIN ( 38 ) FROM tab2
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( DISTINCT 57 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - ( SUM( + 46 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-138

skipif mysql # not compatible
query I rowsort label-1649
SELECT - ( SUM ( + 46 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-138

query I rowsort
SELECT + 65 FROM tab2 AS cor0 WHERE NOT - 77 NOT BETWEEN col0 AND + col2 / - + 79 * - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + MAX( ALL - 56 ) AS col2 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + MAX ( ALL - 56 ) AS col2 FROM tab1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT - col2 DIV + 53 AS col2 FROM tab0 WHERE NOT - 34 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1653
SELECT - col2 / + 53 AS col2 FROM tab0 WHERE NOT - 34 IS NULL
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 44 * + col0 - - ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 44 * + col0 - - ( - col1 ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - 5 AS col0, col0 * 23 + col1 * - 93 FROM tab0 cor0
----
-5
-7188
-5
2138
-5
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL - - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1658
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col2, SUM( - ( + CAST( NULL AS SIGNED ) ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1658
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col2, SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

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

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

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

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

query II rowsort
SELECT DISTINCT + 54 + ( + 38 ) AS col1, - col2 + col0 FROM tab1 AS cor0
----
92
-45
92
23
92
26

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT ALL - col0 + + 56 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - col0 + + 56 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT + col0 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-1664
SELECT + col0 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL + col1 + col2 * - - col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT + ( + col2 ) + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # DIV for integer division: 
query II rowsort label-1667
SELECT col2 DIV + col1, - col2 AS col2 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-1667
SELECT col2 / + col1, - col2 AS col2 FROM tab2
----
0
-23
0
-40
0
-58

query II rowsort
SELECT - ( - col2 ), ( + 31 ) AS col2 FROM tab1
----
59
31
68
31
96
31

query I rowsort
SELECT - - col1 * - 18 FROM tab1 AS cor0
----
-252
-846
-90

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

query I rowsort
SELECT - - col2 * - 21 + + col1 AS col2 FROM tab2 AS cor0
----
-1151
-432
-763

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

query I rowsort
SELECT - + 16 * - - col0 FROM tab0 AS cor0
----
-1392
-1552
-240

query I rowsort
SELECT DISTINCT + 89 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT - MIN( + 8 ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - MIN ( + 8 ) AS col2 FROM tab2
----
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= col0
----

query I rowsort
SELECT + ( - 35 ) FROM tab1
----
-35
-35
-35

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

query I rowsort
SELECT ALL col2 * col0 + - + col2 + col2 AS col2 FROM tab0 cor0 WHERE col2 / + 77 * + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT CAST( + 23 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-1680
SELECT CAST ( + 23 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT + - ( + ( COUNT( * ) ) ) + ( - + COUNT( * ) ) * + 58 AS col0 FROM tab2 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-1681
SELECT + - ( + ( COUNT ( * ) ) ) + ( - + COUNT ( * ) ) * + 58 AS col0 FROM tab2 cor0
----
-177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1682
SELECT 26 + + col1 + + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT 26 + + col1 + + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL + col0 + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
196
62
97

query I rowsort
SELECT DISTINCT - + col2 * - col0 + 72 FROM tab0 AS cor0
----
777
942
9675

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT COUNT( * ) + + 99 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT COUNT ( * ) + + 99 FROM tab1
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 + + - col0 col0 FROM tab0 WHERE NULL IS NULL
----
-8
-80
-90

query I rowsort
SELECT DISTINCT col1 + - ( - 68 ) AS col2 FROM tab2
----
119
135
145

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 * - + 17 col0 FROM tab2 AS cor0
----
-1122
-1122
-1122

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

query I rowsort
SELECT + - ( 18 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 83 + col0 + + 9 <= + - 8 + + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 67 / - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT ALL + 2 DIV 86 * + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + 2 / 86 * + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - - 54 AS col0, - 97 + - col2 FROM tab0 cor0
----
54
-107
54
-144
54
-196

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

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

query I rowsort
SELECT - 14 * + col2 AS col2 FROM tab0
----
-1386
-140
-658

query I rowsort
SELECT - col1 * + + col0 * + + 97 FROM tab1
----
-41225
-414869
-69258

onlyif mysql # DIV for integer division: 
query II rowsort label-1706
SELECT ( 81 ) AS col0, 86 DIV + col1 AS col1 FROM tab0
----
81
1
81
4
81
86

skipif mysql # not compatible
query II rowsort label-1706
SELECT ( 81 ) AS col0, 86 / + col1 AS col1 FROM tab0
----
81
1
81
4
81
86

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

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

query I rowsort
SELECT DISTINCT - 43 * - 61 AS col2 FROM tab1 cor0
----
2623

query I rowsort
SELECT ALL 1 + + col2 FROM tab0 AS cor0
----
100
11
48

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

query I rowsort
SELECT 93 + col1 AS col0 FROM tab0 AS cor0
----
114
174
94

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

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

query I rowsort
SELECT 7 + - col0 + - - col2 * - col2 FROM tab0
----
-180
-2217
-9891

query I rowsort
SELECT + - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

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

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

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

query I rowsort
SELECT + - 14 AS col2 FROM tab0 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT - 67 - - + COUNT( - ( - 62 ) ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-1718
SELECT - 67 - - + COUNT ( - ( - 62 ) ) FROM tab2
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1719
SELECT DISTINCT col0 + + CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1719
SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

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

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

query I rowsort
SELECT ALL - col2 + + - 87 * col1 AS col0 FROM tab0
----
-1837
-186
-7094

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + col2 col1 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( 96, col2 )
----

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab1 AS cor0 WHERE - 28 * col2 + - 96 IS NULL
----

query I rowsort
SELECT col1 + + 78 - + col2 AS col2 FROM tab2 AS cor0
----
106
115
87

query I rowsort
SELECT DISTINCT col1 * + col1 * + + 98 - + 13 + 10 AS col2 FROM tab0 AS cor0
----
43215
642975
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 51 * col2 ) NOT IN ( 0, + col0 )
----

query I rowsort
SELECT DISTINCT + col0 * col2 * ( - ( + + 85 ) ) * col0 AS col0 FROM tab0
----
-6433650
-79176735
-898875

query I rowsort
SELECT DISTINCT 70 * + col0 FROM tab0
----
1050
6090
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - + 15 * + + COUNT( 37 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-135

skipif mysql # not compatible
query I rowsort label-1731
SELECT - + 15 * + + COUNT ( 37 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL + + MIN( ALL - 79 ) * + ( + + ( - 62 ) ) AS col2 FROM tab0 cor0
----
4898

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL + + MIN ( ALL - 79 ) * + ( + + ( - 62 ) ) AS col2 FROM tab0 cor0
----
4898

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT ALL - 35 DIV - col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL - 35 / - col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT + COUNT( * ) * + - 56 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1735
SELECT + COUNT ( * ) * + - 56 FROM tab1 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1736
SELECT + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1736
SELECT + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1737
SELECT DISTINCT - CAST( NULL AS SIGNED ), 56 AS col2 FROM tab2 AS cor0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-1737
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 56 AS col2 FROM tab2 AS cor0
----
NULL
56

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

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

query II rowsort
SELECT + col0, col1 * + ( - + 93 ) FROM tab0
----
15
-7533
87
-1953
97
-93

query I rowsort
SELECT DISTINCT col1 + + + col1 - - col0 FROM tab1
----
185
79
95

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 = - ( - - 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 39 - - 93 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 91 + col2 * + 77 > - ( + col2 )
----

query II rowsort
SELECT DISTINCT col0, 18 AS col0 FROM tab1
----
51
18
85
18
91
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT ALL - 15 col1 FROM tab2 AS cor0 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-1746
SELECT ALL - 15 col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1747
SELECT + col0 DIV col2 * - col1 * - - col2, - col0 AS col0 FROM tab2 AS cor0
----
-2346
-46
-3080
-64
-3886
-75

skipif mysql # not compatible
query II rowsort label-1747
SELECT + col0 / col2 * - col1 * - - col2, - col0 AS col0 FROM tab2 AS cor0
----
-2346
-46
-3080
-64
-3886
-75

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

query I rowsort
SELECT ALL ( + + 86 ) + + - 32 * - col0 AS col2 FROM tab0 AS cor0
----
2870
3190
566

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT DISTINCT + 65 DIV - + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + 65 / - + col2 FROM tab1
----
-1
0

query II rowsort
SELECT 76 * col2 AS col2, - col0 FROM tab1
----
4484
-85
5168
-91
7296
-51

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

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

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

query I rowsort
SELECT - + ( - col1 ) + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL + 21 * col1 AS col1 FROM tab1 AS cor0
----
105
294
987

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

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

query II rowsort
SELECT ALL ( + col0 ) + 95 AS col2, + col1 FROM tab1
----
146
14
180
5
186
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT CAST( - AVG ( - - col1 ) AS SIGNED ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-1758
SELECT CAST ( - AVG ( - - col1 ) AS INTEGER ) FROM tab0
----
-34

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NULL >= + + 19 - + + col2
----

query I rowsort
SELECT DISTINCT 34 * col0 + col2 FROM tab1
----
1830
2949
3162

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 BETWEEN + 59 + - col1 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - 36 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + MIN( DISTINCT 39 ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1766
SELECT + MIN ( DISTINCT 39 ) AS col1 FROM tab1
----
39

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - 3 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL MIN( ALL col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1769
SELECT ALL MIN ( ALL col0 ) col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - col0 - 3 FROM tab0
----
-100
-18
-90

query I rowsort
SELECT + 4 + col2 AS col1 FROM tab2
----
27
44
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ( + 68 ) - - COUNT( * ) * MAX( ALL - 47 ) AS col1 FROM tab0 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT ( + 68 ) - - COUNT ( * ) * MAX ( ALL - 47 ) AS col1 FROM tab0 WHERE ( NULL ) = NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL 99 * COUNT( * ) AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL 99 * COUNT ( * ) AS col0 FROM tab1
----
297

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 12 + + 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL SUM( 77 ) FROM tab1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL SUM ( 77 ) FROM tab1 WHERE NULL = NULL
----
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 40 * - 94 AND - 49 + col1
----

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

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

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col0 + + col0 * col2 AS col1 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT 21 + 20 AS col0 FROM tab1
----
41
41
41

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

skipif mysql # not compatible
query III rowsort label-1785
SELECT ALL * FROM tab2 WHERE NOT 85 * col0 - - 26 NOT BETWEEN ( - col1 * - col2 ) AND ( + CAST ( NULL AS INTEGER ) )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( ( - 31 ) * 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col2 * ( - col1 ) + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col2 * ( - col1 ) + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 / - 64 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + MIN( ALL - col0 ) + 93 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1790
SELECT + MIN ( ALL - col0 ) + 93 FROM tab2
----
18

query I rowsort
SELECT - 40 + + col1 * - col2 FROM tab1 AS cor0
----
-1384
-3236
-335

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

query I rowsort
SELECT + 6 + + col0 FROM tab1 AS cor0
----
57
91
97

query I rowsort
SELECT 73 + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT - 74 DIV - 64 + + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-1795
SELECT - 74 / - 64 + + col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT col0 + col2 DIV + 58 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-1796
SELECT col0 + col2 / + 58 FROM tab0
----
15
87
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 62 ) <= ( - col1 - col0 * 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT DISTINCT 97 + 51 AS col1 FROM tab2 AS cor0 WHERE NOT ( 45 ) BETWEEN - col1 AND ( + CAST( 35 AS SIGNED ) * - col0 + + col0 )
----
148

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT 97 + 51 AS col1 FROM tab2 AS cor0 WHERE NOT ( 45 ) BETWEEN - col1 AND ( + CAST ( 35 AS INTEGER ) * - col0 + + col0 )
----
148

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT - 87 DIV col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT - 87 / col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1804
SELECT CAST( NULL AS DECIMAL ) - 85 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT CAST ( NULL AS REAL ) - 85 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - ( 35 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * 67 IS NULL
----
105

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - ( 35 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 * 67 IS NULL
----
105

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

query I rowsort
SELECT DISTINCT - + 81 * 27 + + col1 FROM tab2 AS cor0
----
-2110
-2120
-2136

query I rowsort
SELECT + - col2 * col0 - - 17 FROM tab2 AS cor0
----
-1041
-2543
-4333

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 + 44
----

query I rowsort
SELECT + 93 - + 31 FROM tab0
----
62
62
62

query I rowsort
SELECT ( col0 ) - - col1 AS col2 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT col2 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT col2 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
0
0
0

query I rowsort
SELECT + - col2 * - 77 AS col0 FROM tab1 cor0
----
4543
5236
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL - ( COUNT( * ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - 65
----
0

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - 65
----
0

query I rowsort
SELECT - 27 * - 35 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - 78
----

query I rowsort
SELECT ALL ( + 16 ) FROM tab1 AS cor0
----
16
16
16

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

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

query I rowsort
SELECT ALL + 81 * col1 + + 8 FROM tab1 AS cor0
----
1142
3815
413

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT ( 77 ) IN ( - 7 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1820
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( 77 ) IN ( - 7 )
----
3

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

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

skipif mysql # not compatible
query I rowsort label-1822
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

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

query I rowsort
SELECT DISTINCT - 75 + - ( 28 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1827
SELECT + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 * 21 + + 30 * 29 ) NOT BETWEEN ( + col1 * 14 ) AND ( 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1829
SELECT - col1 / ( col2 ) col2 FROM tab2 AS cor0
----
-1
-1
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT MIN( DISTINCT + + col1 ) + 29 AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT MIN ( DISTINCT + + col1 ) + 29 AS col2 FROM tab0 AS cor0
----
30

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - 60
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL + COUNT( * ) col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT ALL + COUNT ( * ) col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - col1 NOT IN ( + 86 )
----

skipif mysql # not compatible
query I rowsort label-1835
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - col1 NOT IN ( + 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT DISTINCT SUM( ( - + 20 ) ) + + 30 AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT SUM ( ( - + 20 ) ) + + 30 AS col2 FROM tab1
----
-30

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

query I rowsort
SELECT ALL col1 + + 52 FROM tab0
----
133
53
73

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * + - col0 + col0 col0 FROM tab0
----
1260
7308
8148

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT col1 DIV - + col2 + + + col2 + col0 DIV col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-1842
SELECT col1 / - + col2 + + + col2 + col0 / col2 FROM tab1
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + MAX( DISTINCT 61 ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + MAX ( DISTINCT 61 ) FROM tab0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT col1 * + 21 * col1 DIV + + col1 FROM tab2 AS cor0
----
1071
1407
1617

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT col1 * + 21 * col1 / + + col1 FROM tab2 AS cor0
----
1071
1407
1617

query I rowsort
SELECT DISTINCT - - 70 * col2 * - col0 FROM tab2 AS cor0
----
-179200
-304500
-74060

query I rowsort
SELECT DISTINCT - col2 * - + 41 AS col1 FROM tab1 AS cor0
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL COUNT( * ) * + 42 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL COUNT ( * ) * + 42 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
123

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

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND - 3 + + col1 - - 82
----

query II rowsort
SELECT DISTINCT - col0 + + col1, + col0 FROM tab0 cor0
----
-66
87
-96
97
66
15

query I rowsort
SELECT ALL col0 + + + col2 + - + col1 AS col0 FROM tab0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT - 55 - - CAST( + col1 AS SIGNED ) FROM tab0
----
-34
-54
26

skipif mysql # not compatible
query I rowsort label-1852
SELECT - 55 - - CAST ( + col1 AS INTEGER ) FROM tab0
----
-34
-54
26

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

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - col0 - + + col1 * - CAST ( NULL AS INTEGER ) + + 29 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 73 col0 FROM tab0 AS cor0
----
1095
6351
7081

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

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

query I rowsort
SELECT DISTINCT 71 - - col1 FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT ALL + 47 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
47
47
47

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

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

query I rowsort
SELECT ALL - col2 - + ( 35 ) AS col2 FROM tab0 cor0
----
-134
-45
-82

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

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

query II rowsort
SELECT 9, - col0 AS col1 FROM tab1
----
9
-51
9
-85
9
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL MIN( + 12 ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL MIN ( + 12 ) AS col2 FROM tab0
----
12

query I rowsort
SELECT ALL AVG ( DISTINCT - + col0 ) AS col2 FROM tab1 WHERE NULL = - col1
----
NULL

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

query II rowsort
SELECT - 28, 30 AS col0 FROM tab2
----
-28
30
-28
30
-28
30

query II rowsort
SELECT ALL col2, col2 * col2 * - col2 + - col0 AS col0 FROM tab1
----
59
-205464
68
-314523
96
-884787

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT 63 DIV - col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT 63 / - col2 FROM tab0
----
-1
-6
0

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1871
SELECT ALL + COUNT( + + col1 ) DIV - - ( 96 ) col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1871
SELECT ALL + COUNT ( + + col1 ) / - - ( 96 ) col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1872
SELECT ALL - COUNT( * ), + MAX( CAST( - + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-3
-51

skipif mysql # not compatible
query II rowsort label-1872
SELECT ALL - COUNT ( * ), + MAX ( CAST ( - + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-3
-51

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

query I rowsort
SELECT - + 20 AS col2 FROM tab1 cor0
----
-20
-20
-20

query II rowsort
SELECT ALL + ( + 24 ) AS col2, col1 AS col2 FROM tab1 AS cor0
----
24
14
24
47
24
5

query I rowsort
SELECT - col1 * + + 67 FROM tab0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL SUM( - 90 ) AS col0 FROM tab0 WHERE NOT NULL = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL SUM ( - 90 ) AS col0 FROM tab0 WHERE NOT NULL = + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT DISTINCT - MAX( col0 ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-97
-3

skipif mysql # not compatible
query II rowsort label-1878
SELECT DISTINCT - MAX ( col0 ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-97
-3

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT - 83 = - col0 + + col0
----
46
64
75

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

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

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

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

query II rowsort
SELECT DISTINCT - + col0 + + col0 AS col2, - 24 FROM tab2 AS cor0
----
0
-24

query II rowsort
SELECT + col2, 97 + + - 14 FROM tab2
----
23
83
40
83
58
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT MIN( DISTINCT + ( col1 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1884
SELECT MIN ( DISTINCT + ( col1 ) ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + SUM( - - 59 ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-1885
SELECT + SUM ( - - 59 ) AS col1 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT - SUM( ALL - 35 ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT - SUM ( ALL - 35 ) FROM tab0
----
105

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

skipif mysql # not compatible
query I rowsort label-1887
SELECT - SUM ( DISTINCT + + col2 ) FROM tab2
----
-121

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

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

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

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

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

query I rowsort
SELECT - - 55 + col1 AS col1 FROM tab2 AS cor0
----
106
122
132

query I rowsort
SELECT col2 * + col2 + - 22 AS col1 FROM tab2 AS cor0
----
1578
3342
507

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

query I rowsort
SELECT ALL - 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

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

query I rowsort
SELECT DISTINCT 94 + + 43 - + col2 FROM tab2
----
114
79
97

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

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL + 64 + + + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-13
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1899
SELECT - col2 - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-1899
SELECT - col2 - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT + 35 * + col0 FROM tab2 cor0
----
1610
2240
2625

query I rowsort
SELECT 50 * + 35 + - - 36 FROM tab0 AS cor0
----
1786
1786
1786

query I rowsort
SELECT ALL col1 * + 42 * + + 26 AS col2 FROM tab1 AS cor0
----
15288
51324
5460

query I rowsort
SELECT 65 * + col2 FROM tab0 AS cor0
----
3055
6435
650

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT + - 76 * + COUNT( * ) + - - 9 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1904
SELECT + - 76 * + COUNT ( * ) + - - 9 FROM tab1 AS cor0
----
-219

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ( MIN( col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1906
SELECT ( MIN ( col2 ) ) AS col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT + 13 * + ( + ( - COUNT( * ) ) ) * + - 34 col1, - COUNT( * ) AS col2 FROM tab2
----
1326
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1907
SELECT + 13 * + ( + ( - COUNT ( * ) ) ) * + - 34 col1, - COUNT ( * ) AS col2 FROM tab2
----
1326
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT SUM( ALL - col0 ) * 82 * 76 FROM tab2
----
-1152920

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT SUM ( ALL - col0 ) * 82 * 76 FROM tab2
----
-1152920

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1909
SELECT + col0 / - col2 col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

query I rowsort
SELECT ALL col0 * - 42 AS col2 FROM tab2 AS cor0
----
-1932
-2688
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT - MIN( ALL + - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1912
SELECT - MIN ( ALL + - col1 ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 * + 28 col2 FROM tab0 cor0
----
868
868
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 66 col0 FROM tab1 AS cor0
----
3102
330
924

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT - + 8 * - COUNT( * ) * - 87 * 5 * - 18 * - 28 AS col2 FROM tab2 AS cor0
----
-5261760

skipif mysql # not compatible
query I rowsort label-1916
SELECT - + 8 * - COUNT ( * ) * - 87 * 5 * - 18 * - 28 AS col2 FROM tab2 AS cor0
----
-5261760

onlyif mysql # aggregate syntax: 
query II rowsort label-1917
SELECT 25 AS col1, + 5 * ( + MAX( ALL - 14 ) ) FROM tab2
----
25
-70

skipif mysql # not compatible
query II rowsort label-1917
SELECT 25 AS col1, + 5 * ( + MAX ( ALL - 14 ) ) FROM tab2
----
25
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + 11, ( + + col1 ) col1 FROM tab2
----
561
51
737
67
847
77

query II rowsort
SELECT 18, col1 AS col0 FROM tab0
----
18
1
18
21
18
81

query I rowsort
SELECT - 34 * + 74 AS col0 FROM tab2 cor0
----
-2516
-2516
-2516

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN - col0 AND + 86
----

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT - - MAX ( + 81 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT + col2 * + 10 + - col2 + - 95 FROM tab2 AS cor0
----
112
265
427

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT - col2 DIV + 37 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1924
SELECT - col2 / + 37 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL 53 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT + MAX( - col1 ) + + + MIN( DISTINCT + + col2 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1926
SELECT + MAX ( - col1 ) + + + MIN ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
9

query II rowsort
SELECT DISTINCT - col2 AS col0, - 6 AS col1 FROM tab2 AS cor0
----
-23
-6
-40
-6
-58
-6

query I rowsort
SELECT + 28 + + - col0 FROM tab1 AS cor0
----
-23
-57
-63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - 52 ) IS NULL
----

query II rowsort
SELECT ALL + col1 * - - ( - col1 ) + - ( - + col0 ), + 22 * + 61 AS col0 FROM tab2
----
-2555
1342
-4414
1342
-5865
1342

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT DISTINCT col2 DIV + - col0 + - 21 FROM tab1
----
-21
-22

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT col2 / + - col0 + - 21 FROM tab1
----
-21
-22

query I rowsort
SELECT DISTINCT - col2 - + + ( - + 21 ) AS col1 FROM tab0
----
-26
-78
11

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

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

query I rowsort
SELECT DISTINCT + 88 - + 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1938
SELECT ALL col0, - ( col0 ) + col0 * - col0 * + CAST( NULL AS SIGNED ) + + 50 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1938
SELECT ALL col0, - ( col0 ) + col0 * - col0 * + CAST ( NULL AS INTEGER ) + + 50 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT DISTINCT - 65 * - col2 - col2 AS col2, 33 AS col0 FROM tab2 AS cor0
----
1472
33
2560
33
3712
33

query I rowsort
SELECT 88 * - + col1 AS col1 FROM tab0
----
-1848
-7128
-88

query I rowsort
SELECT DISTINCT - 12 * + - ( 76 ) * + ( - col0 ) - - col1 AS col0 FROM tab2
----
-41901
-58291
-68333

query I rowsort
SELECT + col2 * 82 * col0 FROM tab0
----
57810
71340
787446

query I rowsort
SELECT DISTINCT 49 * col1 AS col1 FROM tab1
----
2303
245
686

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1944
SELECT + CAST( + 55 AS SIGNED ) DIV - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT + CAST ( + 55 AS INTEGER ) / - col1 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT MIN( DISTINCT + + col1 ) * - ( - 88 ) FROM tab2
----
4488

skipif mysql # not compatible
query I rowsort label-1945
SELECT MIN ( DISTINCT + + col1 ) * - ( - 88 ) FROM tab2
----
4488

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 55 * - + col0 NOT BETWEEN ( + 9 + + col0 + + - 38 ) AND ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 90 + + + col2 AS col0 FROM tab1
----
149
158
186

query I rowsort
SELECT DISTINCT col2 * - col0 + + + col1 * - - col2 AS col0 FROM tab2
----
-464
115
520

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL <> ( + 98 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT + + COUNT( * ) * + + 40 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1951
SELECT + + COUNT ( * ) * + + 40 FROM tab2 AS cor0
----
120

query I rowsort
SELECT DISTINCT + col1 + + - col1 FROM tab1
----
0

query I rowsort
SELECT ALL 22 + - - col1 - + - col2 AS col2 FROM tab1
----
132
137
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT + 1 + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + 1 + + COUNT ( * ) FROM tab0
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT 7 - - MIN( + ( + + 88 ) ) AS col1 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-1956
SELECT 7 - - MIN ( + ( + + 88 ) ) AS col1 FROM tab1
----
95

query III rowsort
SELECT * FROM tab2 WHERE + 42 * - 41 - + - 80 IS NOT NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT - COUNT( * ) - + 94 AS col2 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - COUNT ( * ) - + 94 AS col2 FROM tab1
----
-97

query I rowsort
SELECT DISTINCT - 83 - col1 FROM tab1
----
-130
-88
-97

query I rowsort
SELECT ALL - 56 FROM tab0 AS cor0 WHERE - col2 * + - 83 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT + 3 DIV - + col2 + + - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1961
SELECT + 3 / - + col2 + + - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + ( - col0 ) * ( ( - col2 ) ) + - 46 + + + col0 FROM tab1 cor0
----
4901
5054
6233

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT + 48 DIV 32 + - - col0 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1963
SELECT + 48 / 32 + - - col0 FROM tab2 AS cor0
----
47
65
76

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 70 * 29 + 24 + + col2 + + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL - ( - 60 ) FROM tab0
----
60
60
60

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

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

query I rowsort
SELECT ALL + - 84 AS col1 FROM tab0 AS cor0
----
-84
-84
-84

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN 44 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 6 DIV 47 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT 6 / 47 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 * + + 81 FROM tab0 AS cor0
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1974
SELECT ALL 40 DIV COUNT( * ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL 40 / COUNT ( * ) FROM tab2
----
13

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

skipif mysql # not compatible
query I rowsort label-1975
SELECT 62 * col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + 51 AND ( CAST ( col1 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 51 + - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 56 ) * + col0 AS col1 FROM tab1
----
2856
4760
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT + + col0 FROM tab1 WHERE NOT ( NOT ( NOT ( NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND 92 ) ) )
----

skipif mysql # not compatible
query I rowsort label-1978
SELECT + + col0 FROM tab1 WHERE NOT ( NOT ( NOT ( NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND 92 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT + - CAST( + + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1979
SELECT + - CAST ( + + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + col1 + - - 93 AS col1 FROM tab1
----
107
140
98

query II rowsort
SELECT DISTINCT + + col1, col1 FROM tab0 WHERE - col1 + + + col0 IN ( + + col1, + col2 )
----

query I rowsort
SELECT DISTINCT + 58 * + col0 + + col1 FROM tab0
----
5067
5627
951

query I rowsort
SELECT + col2 + + 43 FROM tab0
----
142
53
90

query I rowsort
SELECT DISTINCT + - col0 + - 49 AS col2 FROM tab2 AS cor0
----
-113
-124
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT - ( + 54 ) + + - COUNT( * ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT - ( + 54 ) + + - COUNT ( * ) FROM tab1
----
-57

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

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT COUNT ( + - 9 ) - CAST ( NULL AS INTEGER ) * COUNT ( ALL - col2 ) FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT ( + 5 ) * - col0 + - col1 - - - col0 FROM tab2
----
-327
-461
-517

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT ALL - - COUNT( * ) DIV - 92 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - - COUNT ( * ) / - 92 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1993
SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
53

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1995
SELECT CAST( NULL AS SIGNED ) col2, col1 DIV + - col0 AS col2 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1995
SELECT CAST ( NULL AS INTEGER ) col2, col1 / + - col0 AS col2 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
0

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 8 < 18
----

query I rowsort
SELECT ALL 65 * + + 37 AS col2 FROM tab2 AS cor0
----
2405
2405
2405

query II rowsort
SELECT 95 AS col0, + 4 AS col2 FROM tab0 AS cor0
----
95
4
95
4
95
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2000
SELECT DISTINCT + - col0 AS col1, - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 WHERE - col1 * - 55 IS NOT NULL
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-2000
SELECT DISTINCT + - col0 AS col1, - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 WHERE - col1 * - 55 IS NOT NULL
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2001
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 - + col1 / + + CAST( - - col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2001
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 - + col1 / + + CAST ( - - col2 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT ALL + MIN( - 38 ) + - - MAX( - + 60 ) DIV + COUNT( - 85 ) col0 FROM tab1 cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2002
SELECT ALL + MIN ( - 38 ) + - - MAX ( - + 60 ) / + COUNT ( - 85 ) col0 FROM tab1 cor0
----
-58

query I rowsort
SELECT - 7 + - - ( col1 ) FROM tab1 AS cor0
----
-2
40
7

query I rowsort
SELECT DISTINCT col2 + + - 43 + + col0 * col0 FROM tab0 AS cor0
----
229
7536
9465

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT + 21 + + COUNT( * ) AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2005
SELECT + 21 + + COUNT ( * ) AS col1 FROM tab1
----
24

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col2 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2007
SELECT DISTINCT + col0 - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + col0 - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT NULL >= 8
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT NULL >= 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT - + MIN( DISTINCT + - col2 ) AS col2 FROM tab2 WHERE NOT + col2 + col0 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT - + MIN ( DISTINCT + - col2 ) AS col2 FROM tab2 WHERE NOT + col2 + col0 IS NULL
----
58

query I rowsort
SELECT - col0 * - 8 * - col1 * 69 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN + 65 + col0 AND NULL
----

query I rowsort
SELECT 57 * col0 AS col1 FROM tab2 AS cor0
----
2622
3648
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2013
SELECT ALL COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL COUNT ( * ) + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( - 30 ) - - 96 AS col0 FROM tab2 AS cor0
----
126
126
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT DISTINCT - - ( 73 ) DIV 92 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - - ( 73 ) / 92 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 - - 10 AS col2 FROM tab1
----
15
24
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT 53 DIV - col2 + - col1 FROM tab2
----
-53
-67
-78

skipif mysql # not compatible
query I rowsort label-2017
SELECT 53 / - col2 + - col1 FROM tab2
----
-53
-67
-78

query I rowsort
SELECT ALL col1 * - 77 - + col0 * + - col0 + + col2 + - - col2 * 14 FROM tab0
----
-5307
10817
6102

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT - 83 DIV ( col0 ) AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2022
SELECT - 83 / ( col0 ) AS col2 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT ALL col2 * - - 13 AS col2 FROM tab1
----
1248
767
884

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 * + 76 * - col1 FROM tab0 cor0
----
1
76
21
33516
81
498636

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col1 col0 FROM tab0
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col0 * - col1 * col2 FROM tab2
----
1240988
16904025
7884736

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 BETWEEN + - 64 AND col1 + - col2 * + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2032
SELECT ALL COUNT( * ), COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2032
SELECT ALL COUNT ( * ), COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
3
NULL

query I rowsort
SELECT 6 + + col2 + + col1 * col1 AS col0 FROM tab0
----
106
457
6614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col1 col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - col2 + - col1 * + 89 + 24 AS col2 FROM tab2 AS cor0
----
-4538
-5997
-6869

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT - COUNT( * ) * 38 * COUNT( - col2 ) AS col0 FROM tab1 AS cor0 WHERE + col0 = ( + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT - COUNT ( * ) * 38 * COUNT ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE + col0 = ( + 4 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT - MIN( ALL + 34 ) * 55 AS col0 FROM tab0 AS cor0
----
-1870

skipif mysql # not compatible
query I rowsort label-2038
SELECT - MIN ( ALL + 34 ) * 55 AS col0 FROM tab0 AS cor0
----
-1870

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2039
SELECT ALL ( + COUNT( * ) ) - + - 6 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL ( + COUNT ( * ) ) - + - 6 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT COUNT( DISTINCT + col1 ) - - 16 AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2040
SELECT COUNT ( DISTINCT + col1 ) - - 16 AS col1 FROM tab2
----
19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT DISTINCT - col1 * + col0 DIV + col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - col1 * + col0 / + col0 FROM tab2
----
-51
-67
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1 * - + 90 * col1 + + 60 * - + col2
----
0

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1 * - + 90 * col1 + + 60 * - + col2
----
0

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

query I rowsort
SELECT 98 + + + 34 AS col2 FROM tab2 cor0
----
132
132
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2047
SELECT ALL + CAST( NULL AS SIGNED ) * + - 42, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2047
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 42, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT DISTINCT - 19 DIV - - col0 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT - 19 / - - col0 AS col0 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT - CAST( + ( - - 27 ) AS SIGNED ) + - - 99 FROM tab0 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2049
SELECT - CAST ( + ( - - 27 ) AS INTEGER ) + - - 99 FROM tab0 AS cor0
----
72
72
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL COUNT( - - 42 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL COUNT ( - - 42 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2052
SELECT COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) / - 43 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2052
SELECT COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) / - 43 FROM tab2
----
3
NULL

query I rowsort
SELECT ( 10 ) FROM tab1
----
10
10
10

query II rowsort
SELECT 61 AS col1, 39 AS col1 FROM tab2
----
61
39
61
39
61
39

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - ( - + 91 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL COUNT( * ) * + 30 AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL COUNT ( * ) * + 30 AS col1 FROM tab2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2057
SELECT ALL + 63 DIV - COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + 63 / - COUNT ( * ) AS col2 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT + 24 * + MAX( ALL - col1 ) AS col0 FROM tab2 cor0
----
-1224

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT + 24 * + MAX ( ALL - col1 ) AS col0 FROM tab2 cor0
----
-1224

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

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

query II rowsort
SELECT DISTINCT ( - col0 ) AS col0, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + MAX( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2063
SELECT + MAX ( + + col2 ) AS col0 FROM tab2 AS cor0
----
58

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 - - col0 col0 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE - + 89 = + 37 * 18 / + + 6
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT MIN( - col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2069
SELECT DISTINCT MIN ( - col0 ) col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2070
SELECT - 30, MIN( DISTINCT - 81 ) AS col0 FROM tab2
----
-30
-81

skipif mysql # not compatible
query II rowsort label-2070
SELECT - 30, MIN ( DISTINCT - 81 ) AS col0 FROM tab2
----
-30
-81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT ALL + - 68, SUM( + 95 ) AS col0 FROM tab1 AS cor0
----
-68
285

skipif mysql # not compatible
query II rowsort label-2073
SELECT ALL + - 68, SUM ( + 95 ) AS col0 FROM tab1 AS cor0
----
-68
285

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2076
SELECT col2, ( + CAST( - 66 AS SIGNED ) ) FROM tab0
----
10
-66
47
-66
99
-66

skipif mysql # not compatible
query II rowsort label-2076
SELECT col2, ( + CAST ( - 66 AS INTEGER ) ) FROM tab0
----
10
-66
47
-66
99
-66

query II rowsort
SELECT 23 AS col2, col1 AS col2 FROM tab1
----
23
14
23
47
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT MAX( DISTINCT - + col1 ) col2 FROM tab1 WHERE 69 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2078
SELECT MAX ( DISTINCT - + col1 ) col2 FROM tab1 WHERE 69 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 41 - - + 60 + + 36 AS col0 FROM tab0 AS cor0
----
55
55
55

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 + ( + 23 ) AS col0 FROM tab2 AS cor0
----
23
46
40
63
58
81

query I rowsort
SELECT DISTINCT - 97 + - col2 + - - col1 FROM tab1 AS cor0
----
-118
-151
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT + 98 * + + COUNT( * ) FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-2083
SELECT + 98 * + + COUNT ( * ) FROM tab1 AS cor0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 66 AS col0, col0 col2 FROM tab0 AS cor0
----
-66
15
-66
87
-66
97

query I rowsort
SELECT - 49 * - - 62 FROM tab1
----
-3038
-3038
-3038

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - MIN( DISTINCT + 83 ) * - COUNT( * ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-2086
SELECT - MIN ( DISTINCT + 83 ) * - COUNT ( * ) FROM tab1
----
249

query I rowsort
SELECT ALL col1 * - + col0 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2088
SELECT CAST( ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT CAST ( ( CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT - 54 DIV 43 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2090
SELECT - 54 / 43 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col2 * - col1 * - + col0 AS col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * - + 96 col0 FROM tab0
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT - - SUM( + 71 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
639

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - - SUM ( + 71 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
639

query I rowsort
SELECT ALL col1 * + ( col1 ) AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT - 33 * + - 61 FROM tab1 AS cor0
----
2013
2013
2013

query II rowsort
SELECT DISTINCT - col1, + 31 AS col2 FROM tab0 AS cor0
----
-1
31
-21
31
-81
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT + ( - + CAST( + + col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2097
SELECT + ( - + CAST ( + + col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT + COUNT( * ), 24 AS col2 FROM tab1 cor0
----
3
24

skipif mysql # not compatible
query II rowsort label-2098
SELECT + COUNT ( * ), 24 AS col2 FROM tab1 cor0
----
3
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT - - ( + - ( 17 ) ) DIV - col0 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2099
SELECT - - ( + - ( 17 ) ) / - col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT - col1 + 79 AS col0 FROM tab0
----
-2
58
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2102
SELECT ALL + ( - ( + CAST( NULL AS SIGNED ) ) ) AS col2, - SUM( DISTINCT + + 85 ) * MIN( + 88 ) AS col1 FROM tab1 WHERE col0 IN ( + + col1 * - col1 + + col2, - col2 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2102
SELECT ALL + ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2, - SUM ( DISTINCT + + 85 ) * MIN ( + 88 ) AS col1 FROM tab1 WHERE col0 IN ( + + col1 * - col1 + + col2, - col2 )
----
NULL
NULL

query I rowsort
SELECT ALL 25 + col2 FROM tab0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT 29 * ( - COUNT( * ) ) col1 FROM tab1
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2104
SELECT 29 * ( - COUNT ( * ) ) col1 FROM tab1
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN + 60 AND - 65 * + col0
----

query I rowsort
SELECT col0 * + 90 AS col0 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT DISTINCT - 48 * 25 AS col2 FROM tab1 cor0 WHERE - 50 / col0 * 56 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + 15 FROM tab0 cor0 WHERE NOT col1 * - + col2 IS NULL
----
15

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE 12 < col2 / col0 - - col1
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT - - COUNT( * ) * + MIN( ALL col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN - CAST( + + col0 AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT - - COUNT ( * ) * + MIN ( ALL col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN - CAST ( + + col0 AS INTEGER ) AND NULL
----
NULL

query II rowsort
SELECT + - col1, + 21 AS col1 FROM tab1 cor0
----
-14
21
-47
21
-5
21

query I rowsort
SELECT + - 79 AS col0 FROM tab1 AS cor0 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT ALL ( - - 36 ) AS col2 FROM tab2 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT DISTINCT - COUNT( * ), - 77 * + COUNT( * ) FROM tab0 WHERE NOT + 4 / - + col0 * - 14 > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT - COUNT ( * ), - 77 * + COUNT ( * ) FROM tab0 WHERE NOT + 4 / - + col0 * - 14 > NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + ( + COUNT( * ) ) * COUNT( * ) * SUM( ALL + + 74 ) FROM tab0
----
1998

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + ( + COUNT ( * ) ) * COUNT ( * ) * SUM ( ALL + + 74 ) FROM tab0
----
1998

query III rowsort
SELECT * FROM tab1 WHERE NOT 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2118
SELECT - CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) - + + col2 * + - 74 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2118
SELECT - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - + + col2 * + - 74 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query II rowsort
SELECT ( + col0 ) AS col2, col0 * - col0 - col0 AS col0 FROM tab1
----
51
-2652
85
-7310
91
-8372

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT 28 DIV - col2 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT 28 / - col2 AS col1 FROM tab0
----
-2
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - - col2 * + 12 + + - 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 76 IS NULL
----

query I rowsort
SELECT - 31 + + - col1 AS col2 FROM tab0
----
-112
-32
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 67 ) col1 FROM tab0 AS cor0
----
67
67
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 18 BETWEEN + col2 AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT MAX( CAST( + 65 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2127
SELECT MAX ( CAST ( + 65 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL < NULL )
----

query II rowsort
SELECT ALL + 37 + col0, col2 FROM tab1 cor0
----
122
59
128
68
88
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT - + col2 DIV col0 * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT - + col2 / col0 * + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL - col2 + - 36 - - col2 FROM tab1 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 8 col0 FROM tab0
----
2
39
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + MIN( - - 14 ) AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-2134
SELECT + MIN ( - - 14 ) AS col2 FROM tab0
----
14

query I rowsort
SELECT DISTINCT - 62 + - + col2 - - - 65 * + - col1 FROM tab1
----
204
2925
752

query I rowsort
SELECT ( - ( - col2 ) ) - - - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT 83 + + - COUNT( * ) col1 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2137
SELECT DISTINCT 83 + + - COUNT ( * ) col1 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - MIN( ALL + + col0 ) + - 82 AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2138
SELECT - MIN ( ALL + + col0 ) + - 82 AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2139
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( - - 35 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2139
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( - - 35 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - 37 + + - COUNT( * ) * + 38 * 65 AS col0 FROM tab0 cor0
----
-7447

skipif mysql # not compatible
query I rowsort label-2140
SELECT - 37 + + - COUNT ( * ) * + 38 * 65 AS col0 FROM tab0 cor0
----
-7447

query I rowsort
SELECT + col1 + col1 * - - col2 * - col1 FROM tab2 AS cor0
----
-237083
-260295
-59772

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT + col1 DIV col0 * + - col1 FROM tab0 cor0
----
-405
0
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT + col1 / col0 * + - col1 FROM tab0 cor0
----
-405
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 + + + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( NULL )
----
0

query II rowsort
SELECT ALL + ( 12 ) AS col1, + col1 AS col2 FROM tab1 AS cor0
----
12
14
12
47
12
5

query I rowsort
SELECT - col2 * - + 40 AS col1 FROM tab0 AS cor0
----
1880
3960
400

query I rowsort
SELECT 90 * col2 FROM tab1 cor0
----
5310
6120
8640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 <> + col2 OR NOT - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT + COUNT( * ) * - 8 col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2149
SELECT + COUNT ( * ) * - 8 col1 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL col1 * - ( 10 ) AS col1 FROM tab2
----
-510
-670
-770

query I rowsort
SELECT col2 * - - 66 * - col0 AS col0 FROM tab2
----
-168960
-287100
-69828

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2152
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL MAX( ALL + 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL MAX ( ALL + 68 ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT + MAX( ALL + 31 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT + MAX ( ALL + 31 ) FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT DISTINCT MIN( ALL - 18 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT MIN ( ALL - 18 ) FROM tab2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT 97 DIV - - col1 FROM tab0
----
1
4
97

skipif mysql # not compatible
query I rowsort label-2156
SELECT 97 / - - col1 FROM tab0
----
1
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT ALL - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 94 AS col1 FROM tab0 cor0 WHERE 65 <> 97
----
-94
-94
-94

query I rowsort
SELECT ALL + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 27 + + - ( col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col2 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL SUM( DISTINCT - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL SUM ( DISTINCT - + col0 ) FROM tab2
----
-185

query I rowsort
SELECT ALL + 56 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT + SUM( - 36 ) col2 FROM tab0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2164
SELECT DISTINCT + SUM ( - 36 ) col2 FROM tab0
----
-108

query I rowsort
SELECT ALL 64 * - 83 AS col2 FROM tab1 AS cor0
----
-5312
-5312
-5312

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - COUNT( * ) * 33 AS col1 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2166
SELECT - COUNT ( * ) * 33 AS col1 FROM tab1 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT MAX( DISTINCT + 90 ) + MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2167
SELECT MAX ( DISTINCT + 90 ) + MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL - col0 * 94 FROM tab1 AS cor0
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + 74 + + COUNT( * ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2169
SELECT + 74 + + COUNT ( * ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL col0 + 33 + - 64 * 9 FROM tab0 AS cor0
----
-446
-456
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT - COUNT( * ) * + + 57 AS col0 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - COUNT ( * ) * + + 57 AS col0 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT DISTINCT col1 * 18 * - col2 + col0 * - 74 * + + col1 FROM tab2 AS cor0
----
-194718
-420112
-441798

query I rowsort
SELECT 86 + - + col2 FROM tab2 AS cor0
----
28
46
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 * - 37 col1 FROM tab0, tab0 AS cor0
----
888

query II rowsort
SELECT DISTINCT 47 + - col1 AS col1, 88 * - + col2 FROM tab0
----
-34
-4136
26
-880
46
-8712

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col1 + ( 71 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT ALL + col0 DIV + 5 FROM tab0
----
17
19
3

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL + col0 / + 5 FROM tab0
----
17
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL COUNT( DISTINCT - 58 ) * - 7 AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL COUNT ( DISTINCT - 58 ) * - 7 AS col1 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT + 85 * COUNT( * ) * + + 23 + - + 0 AS col1 FROM tab1 AS cor0
----
5865

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + 85 * COUNT ( * ) * + + 23 + - + 0 AS col1 FROM tab1 AS cor0
----
5865

query I rowsort
SELECT ALL - ( - 15 ) FROM tab0 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + ( - - SUM( ALL col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2181
SELECT + ( - - SUM ( ALL col1 ) ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT ALL + ( - + col1 ) DIV 10 AS col1 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL + ( - + col1 ) / 10 AS col1 FROM tab1 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT 71 * + + ( + MIN( ALL + col2 ) ) AS col1, - 39 FROM tab2
----
1633
-39

skipif mysql # not compatible
query II rowsort label-2185
SELECT 71 * + + ( + MIN ( ALL + col2 ) ) AS col1, - 39 FROM tab2
----
1633
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2186
SELECT ALL * FROM tab2 WHERE NOT - col1 * + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2186
SELECT ALL * FROM tab2 WHERE NOT - col1 * + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + COUNT( - ( - 3 ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2187
SELECT + COUNT ( - ( - 3 ) ) col0 FROM tab1
----
3

query I rowsort
SELECT 2 * - 84 FROM tab2
----
-168
-168
-168

query I rowsort
SELECT DISTINCT col2 * 7 + 25 AS col1 FROM tab0 AS cor0
----
354
718
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT - + SUM( col2 ) FROM tab0 AS cor0 WHERE - col1 * col0 + - col2 BETWEEN 45 AND - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - + SUM ( col2 ) FROM tab0 AS cor0 WHERE - col1 * col0 + - col2 BETWEEN 45 AND - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT MIN( DISTINCT - ( + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2191
SELECT MIN ( DISTINCT - ( + col2 ) ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + col2 + + + col1 + - + 23 + - 30 * + - col0 * - - col0 + - col0 FROM tab2 cor0
----
124470
172083
63991

query I rowsort
SELECT ALL 71 + - col1 + + + col1 AS col0 FROM tab1
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT - MIN( - col2 ) + 19 + + COUNT( + 2 ) + - + COUNT( * ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2196
SELECT - MIN ( - col2 ) + 19 + + COUNT ( + 2 ) + - + COUNT ( * ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT COUNT( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL - - MAX( ALL + 26 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - - MAX ( ALL + 26 ) FROM tab1 AS cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 37 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT + col1 DIV + col1 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT + col1 / + col1 AS col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT - SUM( ALL - col0 ) * + 24 + + - 37 AS col1 FROM tab0 AS cor0
----
4739

skipif mysql # not compatible
query I rowsort label-2202
SELECT - SUM ( ALL - col0 ) * + 24 + + - 37 AS col1 FROM tab0 AS cor0
----
4739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 + + col1 col2 FROM tab2 AS cor0
----
43
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + 90 - - + ( - SUM( col2 ) ) FROM tab1
----
-133

skipif mysql # not compatible
query I rowsort label-2204
SELECT + 90 - - + ( - SUM ( col2 ) ) FROM tab1
----
-133

query I rowsort
SELECT 1 - + col0 FROM tab0
----
-14
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT col0 + - 11 + - - 19 - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT col0 + - 11 + - - 19 - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2207
SELECT + COUNT( * ) FROM tab2 WHERE - 68 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT + COUNT ( * ) FROM tab2 WHERE - 68 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT DISTINCT col0 + - col2 - + col2 AS col0 FROM tab0
----
-101
-79
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT DISTINCT + col1 DIV - 52 + 72 col1 FROM tab0
----
71
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2209
SELECT DISTINCT + col1 / - 52 + 72 col1 FROM tab0
----
71
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - 72
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col1 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT + + MIN( DISTINCT col2 ) AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2212
SELECT + + MIN ( DISTINCT col2 ) AS col0 FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL COUNT( * ) - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2215
SELECT + CAST( + - 80 AS SIGNED ) AS col2, + col1 - - col2 * + col1 + + 5 AS col2 FROM tab1 AS cor0
----
-80
1363
-80
305
-80
3248

skipif mysql # not compatible
query II rowsort label-2215
SELECT + CAST ( + - 80 AS INTEGER ) AS col2, + col1 - - col2 * + col1 + + 5 AS col2 FROM tab1 AS cor0
----
-80
1363
-80
305
-80
3248

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2216
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) * 39 * - - col2 - col1 * - col1 + ( + - col2 ) + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2216
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) * 39 * - - col2 - col1 * - col1 + ( + - col2 ) + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - + 73 * + - col2 AS col1 FROM tab1 AS cor0
----
4307
4964
7008

query II rowsort
SELECT - - ( + col0 ) AS col2, 92 + - col2 + + + 60 AS col1 FROM tab1 AS cor0
----
51
56
85
93
91
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / col0 / - col0 <> NULL
----

query I rowsort
SELECT ALL - - 30 AS col1 FROM tab1 AS cor0 WHERE NOT + 17 + - 17 * - 35 = NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( ( - col1 IS NULL ) )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL + col2 FROM tab0 WHERE NOT NULL NOT IN ( + + ( - 23 ), 7 * + CAST( col2 AS SIGNED ), + col2, - col1 - + col0 )
----

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + col2 FROM tab0 WHERE NOT NULL NOT IN ( + + ( - 23 ), 7 * + CAST ( col2 AS INTEGER ), + col2, - col1 - + col0 )
----

query I rowsort
SELECT ALL + 48 + + col1 FROM tab0
----
129
49
69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT - COUNT( * ) * - 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT - COUNT ( * ) * - 65 FROM tab1
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT + col2 * + col1 + col1 DIV + col2 col2 FROM tab0
----
212
3808
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2227
SELECT + col2 * + col1 + col1 / + col2 col2 FROM tab0
----
212
3808
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT ALL + col0 DIV - - 50 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + col0 / - - 50 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT - CAST( - + 18 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-2229
SELECT - CAST ( - + 18 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2230
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2231
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT col0 * - ( - col1 ) + + col1 AS col2 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - 95 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) <= ( 63 )
----

query I rowsort
SELECT DISTINCT + 60 * col1 FROM tab2
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - col1 NOT BETWEEN - col0 + col2 AND col2 + col2
----
2

skipif mysql # not compatible
query I rowsort label-2236
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - col1 NOT BETWEEN - col0 + col2 AND col2 + col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT - 6 / - 67 AS col0 FROM tab0 WHERE - col1 + + col0 IN ( - CAST( + 28 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query I rowsort label-2237
SELECT - 6 / - 67 AS col0 FROM tab0 WHERE - col1 + + col0 IN ( - CAST ( + 28 AS INTEGER ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT COUNT( * ) - + COUNT( ALL - col2 ) * COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT COUNT ( * ) - + COUNT ( ALL - col2 ) * COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + 86 * col2 NOT IN ( 49 )
----

query I rowsort
SELECT + ( 78 ) * 32 AS col2 FROM tab1
----
2496
2496
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT 67 * ( COUNT( + 93 ) ) col2 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2241
SELECT 67 * ( COUNT ( + 93 ) ) col2 FROM tab2
----
201

query I rowsort
SELECT col2 * - 89 AS col0 FROM tab0
----
-4183
-8811
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 + - col2 * col1 col0 FROM tab0
----
-148
-37
-3745

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT - col2 * + col0 IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2244
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - col2 * + col0 IN ( - col1 )
----
3

query I rowsort
SELECT 24 FROM tab2 WHERE - col1 - + col1 IS NOT NULL
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * col0 col1 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - SUM( DISTINCT - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-2247
SELECT - SUM ( DISTINCT - col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT 46 * - COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-2248
SELECT 46 * - COUNT ( * ) FROM tab1
----
-138

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN ( col1 + 54 ) AND + 8 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT - SUM( + col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - SUM ( + col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT + col1 + + ( - col1 ) AS col0 FROM tab2 WHERE - col2 / col1 <= NULL
----

query I rowsort
SELECT 2 + + 6 * col2 FROM tab1
----
356
410
578

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT COUNT( * ) * MIN( + 90 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT COUNT ( * ) * MIN ( + 90 ) FROM tab2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT - SUM( DISTINCT + col0 ) * + COUNT( * ) AS col2 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - SUM ( DISTINCT + col0 ) * + COUNT ( * ) AS col2 FROM tab2
----
-555

query I rowsort
SELECT ALL 43 AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2256
SELECT * FROM tab2 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2256
SELECT * FROM tab2 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL - col1 DIV - 33 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL - col1 / - 33 AS col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT COUNT( * ) * + MIN( DISTINCT + 88 ) col0 FROM tab2 WHERE NOT col1 < CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2258
SELECT COUNT ( * ) * + MIN ( DISTINCT + 88 ) col0 FROM tab2 WHERE NOT col1 < CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - ( + col2 ) / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT DISTINCT ( MIN( col1 ) ) - - COUNT( * ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT ( MIN ( col1 ) ) - - COUNT ( * ) AS col0 FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 + + 51 NOT BETWEEN - col2 - 63 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 + + 51 NOT BETWEEN - col2 - 63 AND col2
----
0

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( ( + col1 ) ) / 8 ) <> - 94
----

query I rowsort
SELECT ALL 60 * 56 FROM tab2
----
3360
3360
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT DISTINCT - ( - col2 ) DIV + 9 col1 FROM tab1
----
10
6
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2266
SELECT DISTINCT - ( - col2 ) / + 9 col1 FROM tab1
----
10
6
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT 64 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2267
SELECT 64 / + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab0 cor0 CROSS JOIN tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2269
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - col1 BETWEEN ( + col0 / 72 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2269
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - col1 BETWEEN ( + col0 / 72 ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL SUM( + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( 94 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL SUM ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( 94 ) = NULL
----
NULL

query I rowsort
SELECT - 71 FROM tab0 AS cor0 WHERE NOT col1 / - col0 <= - col1 + col0 * col0
----

query I rowsort
SELECT - 96 * - col2 FROM tab1 AS cor0
----
5664
6528
9216

query I rowsort
SELECT + - col2 * ( col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 = col1
----

query I rowsort
SELECT ALL 71 * - col2 FROM tab2 AS cor0
----
-1633
-2840
-4118

query I rowsort
SELECT ALL + ( - 63 ) * 58 FROM tab0
----
-3654
-3654
-3654

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT col1 DIV + col2 * - 66 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2277
SELECT DISTINCT col1 / + col2 * - 66 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - COUNT( * ) * + 95 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-2278
SELECT - COUNT ( * ) * + 95 FROM tab1
----
-285

query I rowsort
SELECT DISTINCT - col2 + 8 AS col2 FROM tab1
----
-51
-60
-88

query I rowsort
SELECT ALL 58 * + + col2 FROM tab0
----
2726
5742
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT - ( - ( CAST( NULL AS SIGNED ) ) ) * 62 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT - ( - ( CAST ( NULL AS INTEGER ) ) ) * 62 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 46 * - 99 AS col0 FROM tab2
----
4554
4554
4554

query I rowsort
SELECT ALL ( - 21 ) FROM tab2
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT MAX( 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT MAX ( 91 ) FROM tab1
----
91

query I rowsort
SELECT ALL + 3 + - - 6 AS col0 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + col2 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query II rowsort
SELECT ALL col1, + col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT - ( col0 ) DIV - ( col1 ) - ( col0 ) FROM tab0 AS cor0
----
-15
-83
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - ( col0 ) / - ( col1 ) - ( col0 ) FROM tab0 AS cor0
----
-15
-83
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 4 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT 53 + ( - 64 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + + 49 AND col1 * ( - col0 )
----

query I rowsort
SELECT - - col2 - + 54 AS col0 FROM tab0 AS cor0
----
-44
-7
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL - MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ( - + ( - - 1 ) ) * - col0 - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT 51 - + + 38 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL + SUM( + - 88 ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + SUM ( + - 88 ) FROM tab2 AS cor0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT ALL + 54 + + - 55 DIV col0 - + col1 col1 FROM tab1 AS cor0
----
39
49
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT ALL + 54 + + - 55 / col0 - + col1 col1 FROM tab1 AS cor0
----
39
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT COUNT( * ) + - MAX( 15 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-2303
SELECT COUNT ( * ) + - MAX ( 15 ) FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT ALL - col0 / + + CAST( NULL AS SIGNED ) * - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - col0 / + + CAST ( NULL AS INTEGER ) * - + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT + 83 DIV col2 AS col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 83 / col2 AS col1 FROM tab0
----
0
1
8

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 15 ) NOT BETWEEN 95 + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT + MAX( ALL col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + MAX ( ALL col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 WHERE NOT + - 3 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2308
SELECT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - 3 IS NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col2 FROM tab1 cor0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2310
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2310
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) / col2 IS NOT NULL
----

query I rowsort
SELECT - 33 * + 56 FROM tab0 AS cor0
----
-1848
-1848
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE ( - ( CAST( NULL AS SIGNED ) ) / + + col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE ( - ( CAST ( NULL AS INTEGER ) ) / + + col0 ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT + COUNT( * ) * + 95 FROM tab1 WHERE NOT NULL = ( 24 * - - 64 + + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT + COUNT ( * ) * + 95 FROM tab1 WHERE NOT NULL = ( 24 * - - 64 + + + col1 )
----
0

query I rowsort
SELECT - 38 AS col1 FROM tab2 WHERE NOT + - 27 IS NULL
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL + SUM( + 33 ) col0 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2316
SELECT ALL + SUM ( + 33 ) col0 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2317
SELECT + + 53 DIV - COUNT( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2317
SELECT + + 53 / - COUNT ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + COUNT( * ) * - 37 col0 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2318
SELECT + COUNT ( * ) * - 37 col0 FROM tab2 AS cor0
----
-111

query I rowsort
SELECT ( - 66 ) FROM tab0 AS cor0
----
-66
-66
-66

query II rowsort
SELECT - col2, col0 + - col2 AS col2 FROM tab1 AS cor0
----
-59
26
-68
23
-96
-45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 12 * + col2 / col0 * + 20 + + col1 >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 74 IS NULL
----

query I rowsort
SELECT ALL + col2 * - 29 AS col2 FROM tab2 AS cor0
----
-1160
-1682
-667

query I rowsort
SELECT + col0 FROM tab0 WHERE + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT + COUNT( DISTINCT CAST( + + 24 AS SIGNED ) ) * - + COUNT( * ) + - - 20 + + 34 + - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2325
SELECT + COUNT ( DISTINCT CAST ( + + 24 AS INTEGER ) ) * - + COUNT ( * ) + - - 20 + + 34 + - COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT + 43 AS col2 FROM tab2 WHERE ( + col0 ) + + + ( + col1 ) * - col0 IS NOT NULL
----
43
43
43

query II rowsort
SELECT ALL + 64 * col0, col0 AS col0 FROM tab2
----
2944
46
4096
64
4800
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT - - CAST( NULL AS SIGNED ) * col0 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2328
SELECT - - CAST ( NULL AS INTEGER ) * col0 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 5 * - 83 FROM tab0 AS cor0
----
-415

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT ALL col1 + col1 DIV col2 AS col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL col1 + col1 / col2 AS col2 FROM tab2
----
53
68
78

query I rowsort
SELECT col0 * + + 40 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( - + col0, - col2 ) )
----

query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

query I rowsort
SELECT + - col1 + + 68 FROM tab2 AS cor0
----
-9
1
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2334
SELECT 6 DIV + SUM( - 84 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT 6 / + SUM ( - 84 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT ALL ( col1 ) DIV - 5 FROM tab2
----
-10
-13
-15

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL ( col1 ) / - 5 FROM tab2
----
-10
-13
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2336
SELECT + ( + - CAST( NULL AS SIGNED ) ) / col2 / + - col0 * - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT + ( + - CAST ( NULL AS INTEGER ) ) / col2 / + - col0 * - - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2337
SELECT DISTINCT + col1, + CAST( - 8 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( - + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2337
SELECT DISTINCT + col1, + CAST ( - 8 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2338
SELECT ALL + col2, + 6 * + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2338
SELECT ALL + col2, + 6 * + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT - col0 AS col0, - col1 - + col2 FROM tab1
----
-51
-110
-85
-64
-91
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 8 col1, - col1 AS col2 FROM tab0 AS cor0
----
-8
-1
-8
-21
-8
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - COUNT( * ) * 86 AS col1 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2341
SELECT - COUNT ( * ) * 86 AS col1 FROM tab1 AS cor0
----
-258

onlyif mysql # DIV for integer division: 
query II rowsort label-2342
SELECT - col0 DIV - - col1 col0, col1 * + col0 + + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1
4324
-17
430
-3
728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2342
SELECT - col0 / - - col1 col0, col1 * + col0 + + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1
4324
-17
430
-3
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 42 col0 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT 52 + + COUNT( * ) col1 FROM tab0 cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2344
SELECT DISTINCT 52 + + COUNT ( * ) col1 FROM tab0 cor0
----
55

query I rowsort
SELECT ALL - col1 * - - col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + ( + + col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2347
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2347
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT ALL - + col0 + + 77 + + - col2 + CAST( - - 95 AS SIGNED ) * - 42 FROM tab2 AS cor0
----
-3982
-4017
-4046

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - + col0 + + 77 + + - col2 + CAST ( - - 95 AS INTEGER ) * - 42 FROM tab2 AS cor0
----
-3982
-4017
-4046

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT ( COUNT( * ) ) + - 48 AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT ( COUNT ( * ) ) + - 48 AS col2 FROM tab1
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 21 col0 FROM tab0
----
-15
21
-87
21
-97
21

query I rowsort
SELECT ALL 53 + - - 52 AS col0 FROM tab1
----
105
105
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT 96 DIV col2 + + ( - - col1 ) FROM tab0 WHERE ( NULL ) IS NULL
----
1
30
83

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT 96 / col2 + + ( - - col1 ) FROM tab0 WHERE ( NULL ) IS NULL
----
1
30
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT + CAST( NULL AS SIGNED ) / + ( + - col2 ) - - - col2 * - col0 * col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT + CAST ( NULL AS INTEGER ) / + ( + - col2 ) - - - col2 * - col0 * col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( + + 19 ) + + ( + col1 ) col0 FROM tab0
----
115
117
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + COUNT( ALL col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + COUNT ( ALL col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2356
SELECT DISTINCT 37 + + 33 * + + CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2356
SELECT DISTINCT 37 + + 33 * + + CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 + + 15 * + - col0 + - + ( 18 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 + + 15 * + - col0 + - + ( 18 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT - COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT - COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - - COUNT( * ) + + 51 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2360
SELECT - - COUNT ( * ) + + 51 FROM tab0 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT - + 44 + - col1 DIV + 49 FROM tab0 AS cor0
----
-44
-44
-45

skipif mysql # not compatible
query I rowsort label-2361
SELECT - + 44 + - col1 / + 49 FROM tab0 AS cor0
----
-44
-44
-45

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 10 + - - col2 ) IS NULL
----

query II rowsort
SELECT 18, + ( + col1 ) AS col1 FROM tab1
----
18
14
18
47
18
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 75 + - col1 BETWEEN NULL AND ( + col2 ) + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT DISTINCT + col2 DIV col1 * col2 FROM tab1
----
576
649
68

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + col2 / col1 * col2 FROM tab1
----
576
649
68

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT ALL + - col0 DIV + 21 FROM tab0 AS cor0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + - col0 / + 21 FROM tab0 AS cor0
----
-4
-4
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT DISTINCT + - COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2368
SELECT DISTINCT + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL - COUNT( * ) + + AVG ( DISTINCT - col2 ) + + SUM( col1 ) * 36 FROM tab2 AS cor0 WHERE NOT NULL = + 15 * + + col0 * + 74 * + col0 + - - col1 - + - 69 * - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - COUNT ( * ) + + AVG ( DISTINCT - col2 ) + + SUM ( col1 ) * 36 FROM tab2 AS cor0 WHERE NOT NULL = + 15 * + + col0 * + 74 * + col0 + - - col1 - + - 69 * - - col2
----
NULL

query I rowsort
SELECT ALL col1 * col1 - - 60 AS col0 FROM tab2 AS cor0
----
2661
4549
5989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab2 AS cor0 WHERE NOT + ( + ( - 68 ) ) - - col0 - - col2 IS NULL
----
41
41
41

query II rowsort
SELECT DISTINCT + + col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2374
SELECT COUNT( * ) DIV MAX( + - CAST( 32 AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2374
SELECT COUNT ( * ) / MAX ( + - CAST ( 32 AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT + 97 * - SUM( + + 0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT + 97 * - SUM ( + + 0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT col1 * + col1 * + 56 AS col2 FROM tab1
----
10976
123704
1400

query III rowsort
SELECT * FROM tab2 WHERE NOT - 81 + - col2 * col0 - + - col0 < NULL
----

query I rowsort
SELECT ALL ( - - col0 ) * col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ( SUM( + - 25 ) ) + - - 77 + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT col1 * - col0 IS NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2379
SELECT ( SUM ( + - 25 ) ) + - - 77 + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT col1 * - col0 IS NULL
----
5

query I rowsort
SELECT DISTINCT 76 + col1 FROM tab2
----
127
143
153

query I rowsort
SELECT 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT - 34 DIV - - col1 AS col1 FROM tab0 AS cor0
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT - 34 / - - col1 AS col1 FROM tab0 AS cor0
----
-1
-34
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2383
SELECT - col1 * + ( - 11 ) / + col0 / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT - col1 * + ( - 11 ) / + col0 / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 13 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 NOT IN ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT - 90 * 42 + - COUNT( ALL - 10 ) * - 61 AS col1 FROM tab1 AS cor0
----
-3597

skipif mysql # not compatible
query I rowsort label-2385
SELECT - 90 * 42 + - COUNT ( ALL - 10 ) * - 61 AS col1 FROM tab1 AS cor0
----
-3597

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col0 * - + ( - 94 ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT DISTINCT + 42 DIV + 98 + + - col1 + + 25 AS col1 FROM tab1 AS cor0
----
-22
11
20

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + 42 / + 98 + + - col1 + + 25 AS col1 FROM tab1 AS cor0
----
-22
11
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2388
SELECT ALL 35, 37 * + ( + CAST( - + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
35
-111

skipif mysql # not compatible
query II rowsort label-2388
SELECT ALL 35, 37 * + ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
35
-111

query I rowsort
SELECT DISTINCT + - col1 + 65 FROM tab0 AS cor0
----
-16
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT DISTINCT + SUM( - + 86 ) * + + 33 + + - COUNT( * ) FROM tab0 cor0
----
-8517

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + SUM ( - + 86 ) * + + 33 + + - COUNT ( * ) FROM tab0 cor0
----
-8517

query I rowsort
SELECT 33 AS col0 FROM tab1 WHERE ( - col0 ) < ( - col2 )
----
33
33

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + col0 * + + col0 * ( 82 ) IS NULL
----

query II rowsort
SELECT DISTINCT col0 - + col1 AS col2, 6 * - - col2 FROM tab0
----
-66
282
66
60
96
594

query I rowsort
SELECT + 57 AS col1 FROM tab1 WHERE NULL IN ( - 80 * col2 * col1 - + - 74 + + - col0 + col2 )
----

query I rowsort
SELECT DISTINCT - - ( col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + - 45 AS col2 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - col1 - - + col0 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL col1 * - 21 * 43 + - col1 AS col0 FROM tab0 WHERE NOT - + col0 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - ( - 78 ) col1 FROM tab1
----
-13
-7
27

query II rowsort
SELECT ALL 44, + 63 AS col0 FROM tab2
----
44
63
44
63
44
63

query I rowsort
SELECT DISTINCT - col1 * 83 FROM tab1
----
-1162
-3901
-415

query I rowsort
SELECT DISTINCT 68 * col0 AS col1 FROM tab1
----
3468
5780
6188

query II rowsort
SELECT + col0 AS col1, 20 * - 77 * col0 + col2 FROM tab1 AS cor0
----
51
-78444
85
-130841
91
-140072

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2404
SELECT DISTINCT + + COUNT( * ) / + SUM( ALL + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT + + COUNT ( * ) / + SUM ( ALL + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 17 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( + + col2 ) AS col0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT 3 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - + COUNT( - 75 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - + COUNT ( - 75 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT col1 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT col1 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL col2 * - 4 FROM tab0
----
-188
-396
-40

query II rowsort
SELECT col2, - col1 * - col2 * - col1 AS col1 FROM tab0
----
10
-4410
47
-308367
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT DISTINCT + col1 DIV + - col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + col1 / + - col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT ALL col2 DIV - - 25 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL col2 / - - 25 FROM tab0 AS cor0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2417
SELECT - col0 * - col0 + - 33 AS col2, col2 DIV + col1 + + - 10 FROM tab2 cor0
----
2083
-10
4063
-10
5592
-10

skipif mysql # not compatible
query II rowsort label-2417
SELECT - col0 * - col0 + - 33 AS col2, col2 / + col1 + + - 10 FROM tab2 cor0
----
2083
-10
4063
-10
5592
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2418
SELECT * FROM tab2 cor0 WHERE ( - col1 ) * CAST( NULL AS SIGNED ) * - + col0 / - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2418
SELECT * FROM tab2 cor0 WHERE ( - col1 ) * CAST ( NULL AS INTEGER ) * - + col0 / - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT COUNT( * ) * - - 18 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2419
SELECT COUNT ( * ) * - - 18 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL + 54 - - COUNT( * ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + 54 - - COUNT ( * ) AS col0 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT 78 * + ( - + COUNT( * ) ) AS col0 FROM tab2, tab0 AS cor0
----
-702

skipif mysql # not compatible
query I rowsort label-2421
SELECT 78 * + ( - + COUNT ( * ) ) AS col0 FROM tab2, tab0 AS cor0
----
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 * + - col2 col0 FROM tab1
----
1395
3287
380

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab2 WHERE NULL BETWEEN + + 21 / + col0 + + - 4 * - col1 AND - - col2 * - 17 - col2
----

query I rowsort
SELECT ALL col1 + - - col1 AS col0 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ALL 72 - - + MIN( + + col0 ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL 72 - - + MIN ( + + col0 ) FROM tab2
----
118

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 69 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT - CAST( MAX( DISTINCT 4 ) AS SIGNED ) + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2427
SELECT - CAST ( MAX ( DISTINCT 4 ) AS INTEGER ) + COUNT ( * ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - - ( 46 ) + + col1 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - + col0 + 16 AS col1 FROM tab2 AS cor0 WHERE col1 + + 22 IS NOT NULL
----
-30
-48
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 56, - col0 col1 FROM tab0 AS cor0
----
56
-15
56
-87
56
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 37 - col1 AND NULL
----

query I rowsort
SELECT ALL - + 18 AS col2 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2434
SELECT DISTINCT ( - col1 ), + CAST( ( 45 ) AS SIGNED ) AS col2 FROM tab2
----
-51
45
-67
45
-77
45

skipif mysql # not compatible
query II rowsort label-2434
SELECT DISTINCT ( - col1 ), + CAST ( ( 45 ) AS INTEGER ) AS col2 FROM tab2
----
-51
45
-67
45
-77
45

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 39 + + 79 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 58 = + col1 + col0 + + 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + - ( - - col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - 38 ) col2, + col1 FROM tab0 AS cor0
----
-38
1
-38
21
-38
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - MIN( ALL - + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - MIN ( ALL - + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT 0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 34 * - - 58 + + + ( - col1 ) * + col1 * + - col2 FROM tab1 AS cor0
----
152184
20788
3447

query I rowsort
SELECT ALL + 38 AS col2 FROM tab1 cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - COUNT( * ) * - 45 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2445
SELECT - COUNT ( * ) * - 45 FROM tab2 AS cor0
----
135

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT NULL < - col2 + - - col2 + 10 / + 84 - - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL + CAST( + + ( col2 ) AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + CAST ( + + ( col2 ) AS INTEGER ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2448
SELECT * FROM tab2 WHERE NOT - - 22 / - ( + - CAST( + - 48 AS SIGNED ) ) + + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2448
SELECT * FROM tab2 WHERE NOT - - 22 / - ( + - CAST ( + - 48 AS INTEGER ) ) + + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - 2 + 58 FROM tab2
----
160
192
212

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE + - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT SUM( ALL - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT SUM ( ALL - - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT col0 + col2 - - - col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT + - col2, col1 * + col1 AS col1 FROM tab0 AS cor0
----
-10
441
-47
6561
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT ALL col1 + - col1 DIV + 51 col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2454
SELECT ALL col1 + - col1 / + 51 col1 FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT col1 AS col2, + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT ALL col1 DIV - ( - - col1 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL col1 / - ( - - col1 ) FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT COUNT( * ) AS col1 FROM tab1 WHERE + - 4 IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2457
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE + - 4 IN ( - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + 39 col1 FROM tab1
----
59
39
68
39
96
39

query I rowsort
SELECT 12 + + ( + + col0 ) FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT ALL + col0 * - 21 + + col0 AS col2 FROM tab1 AS cor0
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL + MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT 29 + 17 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT + + 71 + ( + col0 ) FROM tab2 cor0
----
117
135
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT - col0 + + - 11 + + + 59 + + + col0 * + CAST( + - col0 AS SIGNED ) * - + col2 + + col2 + - - 67 * - 58 AS col2 FROM tab2 AS cor0
----
159978
322395
44807

skipif mysql # not compatible
query I rowsort label-2464
SELECT - col0 + + - 11 + + + 59 + + + col0 * + CAST ( + - col0 AS INTEGER ) * - + col2 + + col2 + - - 67 * - 58 AS col2 FROM tab2 AS cor0
----
159978
322395
44807

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + ( 78 ) + col2 AS col1 FROM tab2 AS cor0
----
101
118
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 - - - 41, - col2 / + col0 col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * + col2 col0 FROM tab2
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT + COUNT( DISTINCT 50 ) * - MIN( ALL - col0 ) - + - 36 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-2469
SELECT + COUNT ( DISTINCT 50 ) * - MIN ( ALL - col0 ) - + - 36 FROM tab2
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT - col1 * col1 * CAST( 95 AS SIGNED ) FROM tab2
----
-247095
-426455
-563255

skipif mysql # not compatible
query I rowsort label-2470
SELECT - col1 * col1 * CAST ( 95 AS INTEGER ) FROM tab2
----
-247095
-426455
-563255

query I rowsort
SELECT ALL col2 + + 65 AS col1 FROM tab0
----
112
164
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT DISTINCT CAST( MIN( - + ( - - col1 ) ) AS SIGNED ) - + 77 FROM tab2
----
-154

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT CAST ( MIN ( - + ( - - col1 ) ) AS INTEGER ) - + 77 FROM tab2
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2473
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( + 26, + CAST( NULL AS SIGNED ), + - col0 * - - col0 * ( - + CAST( NULL AS SIGNED ) ) * + - 31 )
----

skipif mysql # not compatible
query III rowsort label-2473
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( + 26, + CAST ( NULL AS INTEGER ), + - col0 * - - col0 * ( - + CAST ( NULL AS INTEGER ) ) * + - 31 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT col2 DIV - + col0 - + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2474
SELECT col2 / - + col0 - + col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col1 - + 54 * - 84 FROM tab0 AS cor0
----
4537
4557
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 + + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 + + - col1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 51 + ( - col2 ) BETWEEN + + col1 + - + col2 AND NULL
----
64
77
40
75
67
58

query II rowsort
SELECT DISTINCT col0, col1 * + - 11 + - col2 * 8 FROM tab2
----
46
-745
64
-1167
75
-1201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT ALL CAST( 32 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL CAST ( 32 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
32
32
32

query II rowsort
SELECT DISTINCT + col2 AS col0, + col0 * 30 * - 95 FROM tab1 AS cor0
----
59
-242250
68
-259350
96
-145350

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT SUM( + + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT SUM ( + + col1 ) AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + ( + - ( + + 35 ) ) AND - 32 * + + 91 + ( col0 ) + + - col2
----

query I rowsort
SELECT + col0 * - - 42 AS col1 FROM tab1
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT COUNT( * ) * - 12 AS col0 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-2484
SELECT COUNT ( * ) * - 12 AS col0 FROM tab2
----
-36

query I rowsort
SELECT + 27 * - col2 AS col1 FROM tab2
----
-1080
-1566
-621

query I rowsort
SELECT 85 * - - col2 FROM tab0
----
3995
8415
850

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 > - ( - 79 ) * + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col0 + - 20 + - col0 FROM tab0 AS cor0
----
-194
-214
-50

query I rowsort
SELECT col2 + + 39 FROM tab0 AS cor0
----
138
49
86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 17 + 90 + + - 17 IS NULL
----

query I rowsort
SELECT - - 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - col0 * - col0 + col0 + col2 AS col0 FROM tab2
----
2185
4200
5758

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2493
SELECT ALL - MAX( - 33 ) + - CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2493
SELECT ALL - MAX ( - 33 ) + - CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 + col1 + - - col1 AS col1 FROM tab0
----
129
177
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2495
SELECT ALL - CAST( NULL AS SIGNED ) - MIN( DISTINCT col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - CAST ( NULL AS INTEGER ) - MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT MIN( ALL - - col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2496
SELECT MIN ( ALL - - col0 ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT + 53 * COUNT( * ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT + 53 * COUNT ( * ) FROM tab1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT + - col0 ) AS col0 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT + - col0 ) AS col0 FROM tab1 AS cor0
----
273

query I rowsort
SELECT + col1 * - + 55 FROM tab1 AS cor0
----
-2585
-275
-770

query II rowsort
SELECT + col1, col0 * 51 FROM tab2 AS cor0 WHERE ( NULL >= + - col2 )
----

query I rowsort
SELECT + - col2 - + - 90 AS col1 FROM tab0 AS cor0
----
-9
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT - COUNT( * ) * + SUM( - 6 ) + - 55 + - COUNT( - + col1 ) AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - COUNT ( * ) * + SUM ( - 6 ) + - 55 + - COUNT ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT + col0 - + + ( ( + col0 ) ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 59 + + col1 FROM tab2
----
110
126
136

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col2 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 33 + + 83 + + ( + 43 ) FROM tab2
----
159
159
159

query II rowsort
SELECT ALL + col0 - + + ( + + 66 ) - - col1 * - 76 + - + col0, col2 AS col0 FROM tab1
----
-1130
96
-3638
68
-446
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ALL + + SUM( + 28 ) * 48 * + 8 + + COUNT( ( + - col0 ) ) AS col2 FROM tab2 cor0
----
32259

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + + SUM ( + 28 ) * 48 * + 8 + + COUNT ( ( + - col0 ) ) AS col2 FROM tab2 cor0
----
32259

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT - 73 * - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - 73 * - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT COUNT( - 62 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT COUNT ( - 62 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 89 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT - - col2 * - 76 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 * col0 * - - col2 - + col2 AND + col1 + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= - 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 45 * + 56 FROM tab1 AS cor0
----
2520

query I rowsort
SELECT ALL + + ( ( - 83 ) ) AS col2 FROM tab2 AS cor0
----
-83
-83
-83

query II rowsort
SELECT + ( - + 97 ) AS col0, 67 + - 28 * + col0 FROM tab0 AS cor0
----
-97
-2369
-97
-2649
-97
-353

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2518
SELECT + - MAX( ALL + CAST( NULL AS SIGNED ) ), - 10 AS col2 FROM tab2 AS cor0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2518
SELECT + - MAX ( ALL + CAST ( NULL AS INTEGER ) ), - 10 AS col2 FROM tab2 AS cor0
----
NULL
-10

query I rowsort
SELECT ALL + - 35 + + col1 AS col2 FROM tab0 AS cor0
----
-14
-34
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT COUNT( * ) + - 66 AS col0 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT COUNT ( * ) + - 66 AS col0 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT col0, - col0 + - + col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 41 * - 83 + + col0 FROM tab0 AS cor0
----
-3306
-3316
-3388

query III rowsort
SELECT * FROM tab0 WHERE NOT 65 * - - 70 + + + col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - 98 FROM tab2
----
144
162
173

query I rowsort
SELECT DISTINCT col0 + 29 FROM tab2 WHERE + + col0 + - ( + - 17 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 35 AS col0 FROM tab0
----
-52
-62
20

query I rowsort
SELECT 54 * + 93 AS col2 FROM tab0
----
5022
5022
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - MIN( + 57 ) FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2528
SELECT - MIN ( + 57 ) FROM tab2 cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - - COUNT( - col0 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2530
SELECT ALL - - COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + 81 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND + ( col2 ) * col2
----

query I rowsort
SELECT DISTINCT col0 * - 73 * - + col2 FROM tab2 AS cor0
----
186880
317550
77234

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - 98 * COUNT( * ) * - + 40 FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
11760

skipif mysql # not compatible
query I rowsort label-2534
SELECT - 98 * COUNT ( * ) * - + 40 FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
11760

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 * - col0 + + 35 - - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT + col0 DIV + - 16 + + col1 FROM tab1
----
0
11
42

skipif mysql # not compatible
query I rowsort label-2536
SELECT + col0 / + - 16 + + col1 FROM tab1
----
0
11
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2537
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + 96 + 49 FROM tab1
----
145
145
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT COUNT( * ) + 32 AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2539
SELECT COUNT ( * ) + 32 AS col1 FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT - 87 * - CAST( NULL AS SIGNED ) - + 10 - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT - 87 * - CAST ( NULL AS INTEGER ) - + 10 - - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( - col2 ) + 51 AS col2 FROM tab0 AS cor0
----
150
61
98

query II rowsort
SELECT ALL 40 * - ( + ( + - 41 ) ), + col1 FROM tab2 AS cor0
----
1640
51
1640
67
1640
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT + + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT + + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2544
SELECT DISTINCT + + 36 DIV col1 AS col1, - 85 AS col1 FROM tab1 cor0
----
0
-85
2
-85
7
-85

skipif mysql # not compatible
query II rowsort label-2544
SELECT DISTINCT + + 36 / col1 AS col1, - 85 AS col1 FROM tab1 cor0
----
0
-85
2
-85
7
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - 20 + - COUNT( * ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 20 + - COUNT ( * ) FROM tab0 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT DISTINCT - + 28 * - CAST( col0 AS SIGNED ) + + 54 AS col2 FROM tab2 cor0
----
1342
1846
2154

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - + 28 * - CAST ( col0 AS INTEGER ) + + 54 AS col2 FROM tab2 cor0
----
1342
1846
2154

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL - 20 * - 95 + 65 + - - COUNT( ALL col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1968

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - 20 * - 95 + 65 + - - COUNT ( ALL col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2550
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT col2 DIV - - col1 AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2551
SELECT col2 / - - col1 AS col2 FROM tab1
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT + CAST( + 26 AS SIGNED ) * + - col2 FROM tab1
----
-1534
-1768
-2496

skipif mysql # not compatible
query I rowsort label-2552
SELECT + CAST ( + 26 AS INTEGER ) * + - col2 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT MIN( ALL + ( + - col1 ) ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2553
SELECT MIN ( ALL + ( + - col1 ) ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2554
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * CAST( NULL AS SIGNED ) IN ( + 31 )
----

skipif mysql # not compatible
query III rowsort label-2554
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IN ( + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL - - ( - + COUNT( - - 25 ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - - ( - + COUNT ( - - 25 ) ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT + + MIN( - col2 ) FROM tab2 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT + + MIN ( - col2 ) FROM tab2 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col1 AS col2, + col1 * - 30 AS col2 FROM tab1 AS cor0
----
14
-420
47
-1410
5
-150

query I rowsort
SELECT + col1 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - - 48 * col1 AS col1 FROM tab1 AS cor0
----
2256
240
672

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT ALL + 23 DIV + 21 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + 23 / + 21 AS col0 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT ALL - - col1 + - 83, + col2 * + 53 AS col2 FROM tab2 AS cor0
----
-16
3074
-32
1219
-6
2120

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> - - 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 33 + - col2 FROM tab1 AS cor0
----
-26
-35
-63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 * + - col2 / - - col2 IS NULL
----

query I rowsort
SELECT - col1 * - col0 * + - ( + + col2 ) AS col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT 53 + col0 + col1 FROM tab2
----
150
194
195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - 15 + + - col2 * col1 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + col1 + - - 74 + - col2 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE + 12 * + 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT + - 24 DIV + 68 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2571
SELECT + - 24 / + 68 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2, 6 AS col1 FROM tab1 cor0
----
59
6
68
6
96
6

query II rowsort
SELECT ALL col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 98 NOT BETWEEN - 24 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + SUM( DISTINCT - - 28 ) * - 27 AS col2 FROM tab1
----
-756

skipif mysql # not compatible
query I rowsort label-2577
SELECT + SUM ( DISTINCT - - 28 ) * - 27 AS col2 FROM tab1
----
-756

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2578
SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) AS col1, col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2578
SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) AS col1, col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT col2 * col0 * + col0 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT DISTINCT + col0 * + col1 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + col0 * + col1 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 BETWEEN - col0 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2582
SELECT ALL + 81 * - CAST( - CAST( + 94 AS DECIMAL ) AS SIGNED ) * MAX( col1 ) AS col2 FROM tab2
----
586278

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + 81 * - CAST ( - CAST ( + 94 AS REAL ) AS INTEGER ) * MAX ( col1 ) AS col2 FROM tab2
----
586278

query I rowsort
SELECT DISTINCT + - col2 * + 77 FROM tab0 AS cor0
----
-3619
-7623
-770

query I rowsort
SELECT + 92 * - col2 * - 84 FROM tab2
----
177744
309120
448224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT DISTINCT col1 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT col1 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2586
SELECT ALL - ( - 56 ) DIV col2 AS col0, col2 AS col0 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-2586
SELECT ALL - ( - 56 ) / col2 AS col0, col2 AS col0 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT col2 * + 19 AS col1 FROM tab0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT + + ( - ( + SUM( ALL + 16 ) ) ) AS col0 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT + + ( - ( + SUM ( ALL + 16 ) ) ) AS col0 FROM tab1 AS cor0
----
-48

query II rowsort
SELECT - 61 AS col0, + 66 FROM tab2 AS cor0
----
-61
66
-61
66
-61
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT DISTINCT - SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT - SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + col1 + col1 + - col2 FROM tab1 AS cor0
----
-49
-68
26

query I rowsort
SELECT ALL - 39 * col2 * + + 94 * - 62 - + ( - col2 ) + col1 AS col1 FROM tab2 AS cor0
----
13183061
5227790
9091797

query I rowsort
SELECT col2 + 99 AS col0 FROM tab1
----
158
167
195

query I rowsort
SELECT - - col0 FROM tab0 WHERE col0 + col1 * - 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - SUM( ALL - + 69 ) AS col0 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-2595
SELECT - SUM ( ALL - + 69 ) AS col0 FROM tab1
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT - CAST( NULL AS SIGNED ) - - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT - CAST ( NULL AS INTEGER ) - - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - col2 + + col0 col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT 89 + + 4 + + CAST( NULL AS SIGNED ) * + 26 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT 89 + + 4 + + CAST ( NULL AS INTEGER ) * + 26 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2599
SELECT - CAST( 80 AS SIGNED ) AS col0, + 2 FROM tab1 AS cor0
----
-80
2
-80
2
-80
2

skipif mysql # not compatible
query II rowsort label-2599
SELECT - CAST ( 80 AS INTEGER ) AS col0, + 2 FROM tab1 AS cor0
----
-80
2
-80
2
-80
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2600
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 21 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2600
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 21 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL + MIN( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + MIN ( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + - 77 FROM tab1 cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT col1 * col0 * CAST( NULL AS SIGNED ) * + 16 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT col1 * col0 * CAST ( NULL AS INTEGER ) * + 16 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 / - col1 * - col2 * - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + 72 * + - COUNT( * ) AS col1 FROM tab0 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 72 * + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-216

query I rowsort
SELECT DISTINCT - 42 FROM tab0 WHERE NOT 13 + - col0 IS NULL
----
-42

query I rowsort
SELECT DISTINCT + ( + - 67 ) AS col2 FROM tab2 WHERE NOT - + 40 <> + - col2 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 43 IS NOT NULL
----

query II rowsort
SELECT + col1, col0 * col0 AS col0 FROM tab0
----
1
9409
21
7569
81
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT - - 33 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - - 33 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - - col1 + col1 * + - 13 * 39 * - CAST( col1 AS SIGNED ) + - - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2612
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - - col1 + col1 * + - 13 * 39 * - CAST ( col1 AS INTEGER ) + - - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 69 + + 53 AS col0 FROM tab2 AS cor0
----
-16

query II rowsort
SELECT + 76 + - + col2 + - col0 + - col2 AS col1, col0 + + col2 FROM tab2
----
-115
133
-16
69
-68
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL COUNT( * ) AS col0 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT DISTINCT + ( - - 30 ) AS col1, COUNT( * ) AS col1 FROM tab1
----
30
3

skipif mysql # not compatible
query II rowsort label-2616
SELECT DISTINCT + ( - - 30 ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
30
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT + + COUNT( * ) FROM tab0 cor0 WHERE NOT - col2 * col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col2 * col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * 54 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + col1 * + - col0 + + 72 AS col0 FROM tab1 AS cor0
----
-200947
-2053
-9924

query I rowsort
SELECT ALL + 99 * - 58 * col2 AS col1 FROM tab2 cor0
----
-132066
-229680
-333036

query I rowsort
SELECT DISTINCT + - col1 * + col2 + col1 FROM tab1 cor0
----
-1330
-290
-3149

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 63 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT - COUNT( DISTINCT col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2623
SELECT - COUNT ( DISTINCT col1 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - ( - + 75 ) FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL col1 + + col0 - - + col0 * col0 FROM tab2
----
2213
4237
5767

query II rowsort
SELECT DISTINCT - col1, col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2627
SELECT * FROM tab0 WHERE + ( - + CAST( - col2 AS SIGNED ) ) <= NULL AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2627
SELECT * FROM tab0 WHERE + ( - + CAST ( - col2 AS INTEGER ) ) <= NULL AND NOT NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + 90 + - col0 col0 FROM tab0
----
-152
-187
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL - MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 + col2 + - 38 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 + col2 + - 38 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + COUNT( * ) - + COUNT( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL AND NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT + COUNT ( * ) - + COUNT ( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL AND NULL IS NOT NULL
----
0

query I rowsort
SELECT - - col1 + col2 AS col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL + col1 * - 63 FROM tab0 AS cor0
----
-1323
-5103
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL - ( 1 ) * - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - ( 1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * + + 77 FROM tab2 AS cor0
----
1771
3080
4466

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 61 col2, + 78 FROM tab0
----
-61
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2639
SELECT + + col2 AS col0, + CAST( NULL AS DECIMAL ) + + col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2639
SELECT + + col2 AS col0, + CAST ( NULL AS REAL ) + + col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + - col2 * + col1 BETWEEN + - 23 * + 63 * + col2 * + + col0 AND - col0 * + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT DISTINCT SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-2642
SELECT ALL - COUNT( * ), ( - 9 ) AS col1 FROM tab1 AS cor0
----
-3
-9

skipif mysql # not compatible
query II rowsort label-2642
SELECT ALL - COUNT ( * ), ( - 9 ) AS col1 FROM tab1 AS cor0
----
-3
-9

query II rowsort
SELECT - col2 AS col1, col2 + - + col2 AS col1 FROM tab2 cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT 24 * - COUNT( * ) * - + 75 AS col2 FROM tab1 AS cor0
----
5400

skipif mysql # not compatible
query I rowsort label-2645
SELECT 24 * - COUNT ( * ) * - + 75 AS col2 FROM tab1 AS cor0
----
5400

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT - COUNT( * ) AS col0, ( 32 ) FROM tab2 AS cor0
----
-3
32

skipif mysql # not compatible
query II rowsort label-2647
SELECT - COUNT ( * ) AS col0, ( 32 ) FROM tab2 AS cor0
----
-3
32

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 72 <> col1
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - + SUM( ALL + + col0 ) * COUNT( * ) + + COUNT( * ) FROM tab1 WHERE col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - + SUM ( ALL + + col0 ) * COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE col1 < NULL
----
NULL

query I rowsort
SELECT ALL ( + - 56 ) AS col1 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT col1 * + 52 AS col1 FROM tab0 AS cor0
----
1092
4212
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2653
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < CAST( col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2653
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < CAST ( col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT ALL - col0 * col0 / + ( + 9 ) + 22 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - col0 * col0 / + ( + 9 ) + 22 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT 32 + - COUNT( * ) col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT 32 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 1 + + 46 col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + col0 * + 74 * col2 FROM tab1 AS cor0
----
362304
371110
457912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT + - CAST( + - COUNT( * ) AS SIGNED ) + + 84 AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2659
SELECT + - CAST ( + - COUNT ( * ) AS INTEGER ) + + 84 AS col0 FROM tab2 AS cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT + COUNT( * ) * - 92 - - - COUNT( * ) FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT + COUNT ( * ) * - 92 - - - COUNT ( * ) FROM tab2
----
-279

query I rowsort
SELECT ALL col0 + + ( + col0 ) FROM tab2
----
128
150
92

query I rowsort
SELECT 79 * + col1 AS col0 FROM tab2
----
4029
5293
6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2664
SELECT MAX( ALL - 48 ) * - COUNT( ALL - 75 ) + - CAST( NULL AS SIGNED ) col2, - 45 FROM tab0
----
NULL
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2664
SELECT MAX ( ALL - 48 ) * - COUNT ( ALL - 75 ) + - CAST ( NULL AS INTEGER ) col2, - 45 FROM tab0
----
NULL
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 68 ) - col1 AS col2 FROM tab0 AS cor0
----
-149
-69
-89

query I rowsort
SELECT 36 - + ( col2 ) FROM tab1 AS cor0
----
-23
-32
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-2668
SELECT ALL - col0 DIV - + col2, col2 FROM tab0 cor0
----
0
47
0
99
8
10

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL - col0 / - + col2, col2 FROM tab0 cor0
----
0
47
0
99
8
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT + + 32 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - 7 IS NOT NULL
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2670
SELECT + + 32 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - 7 IS NOT NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2671
SELECT - COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2672
SELECT ALL + MAX( CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + MAX ( CAST ( NULL AS REAL ) ) * COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT - MIN( 5 ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2673
SELECT - MIN ( 5 ) AS col2 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT ALL 26 DIV - - MIN( ALL - - 65 ) + + - 42 col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2674
SELECT ALL 26 / - - MIN ( ALL - - 65 ) + + - 42 col0 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - + COUNT( * ) * 14 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2675
SELECT - + COUNT ( * ) * 14 FROM tab0 AS cor0
----
-42

query II rowsort
SELECT DISTINCT + col2, 75 AS col0 FROM tab2
----
23
75
40
75
58
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + 38 ) / col2 * - col2 * - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2678
SELECT ALL col2, + CAST( - 44 AS SIGNED ) + + + 28 AS col2 FROM tab2
----
23
-16
40
-16
58
-16

skipif mysql # not compatible
query II rowsort label-2678
SELECT ALL col2, + CAST ( - 44 AS INTEGER ) + + + 28 AS col2 FROM tab2
----
23
-16
40
-16
58
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT DISTINCT + 52 AS col2, SUM( - 47 ) * COUNT( * ) * + + 88 FROM tab2
----
52
-37224

skipif mysql # not compatible
query II rowsort label-2679
SELECT DISTINCT + 52 AS col2, SUM ( - 47 ) * COUNT ( * ) * + + 88 FROM tab2
----
52
-37224

query II rowsort
SELECT + col2 AS col1, - 41 FROM tab2
----
23
-41
40
-41
58
-41

query II rowsort
SELECT 4 AS col2, + ( - 99 ) * + + col2 * col1 + + - col2 FROM tab1
----
4
-133152
4
-29264
4
-316472

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL IN ( - - col1 )
----

query II rowsort
SELECT ALL - col0, + ( + - col2 ) AS col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, - 96 + col0 + - 90 + 99 * + 14 col0 FROM tab2
----
46
1246
64
1264
75
1275

query I rowsort
SELECT + 81 * + col2 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT ALL - + 94 + + + 30 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT 57 DIV - col2 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT 57 / - col2 AS col1 FROM tab0
----
-1
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2688
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN CAST( - col1 AS SIGNED ) AND ( + 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2688
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN CAST ( - col1 AS INTEGER ) AND ( + 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 34 > NULL
----

query I rowsort
SELECT DISTINCT col0 + + 82 + col2 AS col1 FROM tab2 cor0
----
151
186
215

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT ALL + 77 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT COUNT( * ) * + ( - - MAX( DISTINCT - 62 ) ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT COUNT ( * ) * + ( - - MAX ( DISTINCT - 62 ) ) FROM tab0
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2695
SELECT + 63 * + 5 * + COUNT( * ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT + 63 * + 5 * + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 67 <= + 7 + + col1
----
1

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 67 <= + 7 + + col1
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - + - col2 + - 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT - ( + ( - - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2698
SELECT - ( + ( - - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-2700
SELECT ALL - ( - 93 ) + + col1 AS col1, 52 DIV col1 AS col2 FROM tab1
----
107
3
140
1
98
10

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL - ( - 93 ) + + col1 AS col1, 52 / col1 AS col2 FROM tab1
----
107
3
140
1
98
10

query I rowsort
SELECT ALL ( ( - - col1 ) ) + 45 FROM tab1
----
50
59
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL - col0 - + - CAST( - col2 AS SIGNED ) FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - col0 - + - CAST ( - col2 AS INTEGER ) FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT COUNT( * ) + + + 61 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-2703
SELECT COUNT ( * ) + + + 61 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + COUNT( * ) - + + 1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + COUNT ( * ) - + + 1 FROM tab2
----
2

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col0 - + + col2
----

query II rowsort
SELECT DISTINCT + 25 AS col1, col1 FROM tab1 AS cor0
----
25
14
25
47
25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + COUNT( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + COUNT ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - COUNT( DISTINCT + col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2709
SELECT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col1 + col1 FROM tab0 WHERE NULL IS NULL
----
162
2
42

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + 29 AND - 4
----

query I rowsort
SELECT ALL - col2 * col1 + - col0 FROM tab0
----
-196
-297
-3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT + COUNT( * ) DIV - 18 + + 64 AS col2 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + COUNT ( * ) / - 18 + + 64 AS col2 FROM tab0
----
64

query III rowsort
SELECT ALL * FROM tab2 WHERE - 74 / ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( 30 ) AS col1 FROM tab2
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2716
SELECT ALL * FROM tab1 WHERE - 47 + - CAST( NULL AS DECIMAL ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2716
SELECT ALL * FROM tab1 WHERE - 47 + - CAST ( NULL AS REAL ) * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col2 FROM tab0
----
72
72
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 53 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 + 99 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col1 * 15 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 1 BETWEEN col2 AND 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ( + ( COUNT( * ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2723
SELECT ( + ( COUNT ( * ) ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 > ( 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL MIN( ALL 10 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL MIN ( ALL 10 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 52 * + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT CAST( MAX( DISTINCT + ( col0 ) ) AS SIGNED ) * 63 FROM tab2
----
4725

skipif mysql # not compatible
query I rowsort label-2727
SELECT CAST ( MAX ( DISTINCT + ( col0 ) ) AS INTEGER ) * 63 FROM tab2
----
4725

query I rowsort
SELECT 6 * + 57 FROM tab0
----
342
342
342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ALL - 65 * 66 + - CAST( col2 AS SIGNED ) FROM tab1
----
-4349
-4358
-4386

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL - 65 * 66 + - CAST ( col2 AS INTEGER ) FROM tab1
----
-4349
-4358
-4386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 69 * - col0 col1 FROM tab1
----
-3505
-5860
-6232

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL - COUNT( * ) * COUNT( * ) + 92 AS col1 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL - COUNT ( * ) * COUNT ( * ) + 92 AS col1 FROM tab0
----
83

query I rowsort
SELECT ALL ( col1 ) FROM tab0 WHERE col0 * - col0 - 98 IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( + ( - col2 ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2734
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 = + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2734
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 = + col1 + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col2 FROM tab2 cor0 WHERE 39 * + col1 IS NOT NULL
----
-94
-94
-94

query III rowsort
SELECT * FROM tab1 WHERE - ( col1 ) <= 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2737
SELECT - - col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT - - col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + MAX( ALL 20 ) + 54 * 23 FROM tab0 cor0
----
1262

skipif mysql # not compatible
query I rowsort label-2738
SELECT + MAX ( ALL 20 ) + 54 * 23 FROM tab0 cor0
----
1262

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT - col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2740
SELECT - col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 86 + col2 FROM tab1 AS cor0
----
-18
-27
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - col1 * - 75
----

query I rowsort
SELECT DISTINCT 32 + - col1 FROM tab2
----
-19
-35
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL 50 + + + SUM( ALL col0 ) AS col2 FROM tab2
----
235

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL 50 + + + SUM ( ALL col0 ) AS col2 FROM tab2
----
235

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT col0 DIV + 52 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2746
SELECT col0 / + 52 AS col0 FROM tab0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * col1 col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * col0 + - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col2 FROM tab2 cor0
----
-80

query I rowsort
SELECT ALL - 70 * - 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 89 IS NULL
----
9 values hashing to a10fb5c0909ded0879675d8ba240d206

query I rowsort
SELECT col0 + - 66 AS col0 FROM tab1 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL 50 * COUNT( * ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL 50 * COUNT ( * ) AS col0 FROM tab1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT + - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2754
SELECT + - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 * + - ( - - 91 ) FROM tab0 cor0
----
1365
7917
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76, col2 col1 FROM tab2 AS cor0
----
76
23
76
40
76
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT DISTINCT + 85, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
85
-3

skipif mysql # not compatible
query II rowsort label-2757
SELECT DISTINCT + 85, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
85
-3

query I rowsort
SELECT DISTINCT ( + col2 ) - - 22 FROM tab2 AS cor0 WHERE ( 19 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= ( + + col0 ) + col1
----

query I rowsort
SELECT ALL - 42 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
-3483
-43
-903

query I rowsort
SELECT - 59 * + - col2 + - col0 FROM tab2 AS cor0
----
1311
2296
3347

query I rowsort
SELECT ALL + 60 * - 64 AS col1 FROM tab0 AS cor0
----
-3840
-3840
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT DISTINCT col1 DIV + + 76 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT col1 / + + 76 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + + MAX( ALL col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2764
SELECT + + MAX ( ALL col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT SUM( CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2765
SELECT SUM ( CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT CAST( col1 AS SIGNED ) * - col2 * - - col2 FROM tab0
----
-178929
-2100
-9801

skipif mysql # not compatible
query I rowsort label-2766
SELECT CAST ( col1 AS INTEGER ) * - col2 * - - col2 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL + COUNT( * ) + COUNT( DISTINCT - 80 ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + COUNT ( * ) + COUNT ( DISTINCT - 80 ) AS col0 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT COUNT( ALL 56 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2768
SELECT COUNT ( ALL 56 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE + 51 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2770
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 51 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2771
SELECT ALL ( ( - 33 ) ) DIV 30 * + SUM( 37 ) AS col1 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL ( ( - 33 ) ) / 30 * + SUM ( 37 ) AS col1 FROM tab2
----
-111

query I rowsort
SELECT - col1 * - col0 + + - 2 FROM tab0 AS cor0
----
1213
1825
95

query I rowsort
SELECT + col2 + + 41 FROM tab0 AS cor0
----
140
51
88

query I rowsort
SELECT 60 * col1 + - + col2 FROM tab2 AS cor0
----
3037
3962
4580

query I rowsort
SELECT - - ( 24 ) + - + col0 FROM tab0 AS cor0
----
-63
-73
9

query I rowsort
SELECT col2 * 76 AS col0 FROM tab2 AS cor0 WHERE + 8 / - - col2 NOT IN ( - col2 + ( - col0 ) )
----
1748
3040
4408

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND ( col0 ) > NULL
----

query I rowsort
SELECT 80 - 41 AS col2 FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT + 50 - + col0 AS col0 FROM tab0 AS cor0
----
-37
-47
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 - + - col2 col2 FROM tab1 AS cor0
----
118
127
155

query I rowsort
SELECT + col2 - + + 53 FROM tab2 AS cor0
----
-13
-30
5

query I rowsort
SELECT DISTINCT + ( 83 ) AS col1 FROM tab1
----
83

query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab0 WHERE NOT - col2 / + col0 + col0 IN ( - ( + col1 ) * - col1 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2785
SELECT + COUNT( * ) AS col2, - 71 AS col2 FROM tab0
----
3
-71

skipif mysql # not compatible
query II rowsort label-2785
SELECT + COUNT ( * ) AS col2, - 71 AS col2 FROM tab0
----
3
-71

query I rowsort
SELECT DISTINCT - col1 * - - 4 FROM tab1
----
-188
-20
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT MAX( 54 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT MAX ( 54 ) AS col2 FROM tab0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2788
SELECT - - CAST( NULL AS DECIMAL ) * + - 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT - - CAST ( NULL AS REAL ) * + - 47 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 33 * + - 29 AS col0 FROM tab2
----
957
957
957

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL COUNT( * ) col0 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-2790
SELECT ALL COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT + CAST( AVG ( ALL - - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2791
SELECT + CAST ( AVG ( ALL - - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + MAX( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2792
SELECT + MAX ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT col2 + - - col2 - + col2 * - col0 AS col0 FROM tab0 AS cor0 WHERE ( - col1 * ( + col1 ) - - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 73 AS col0 FROM tab1 AS cor0
----
73

query I rowsort
SELECT ALL + + 8 + + 6 * + col0 AS col2 FROM tab2 AS cor0
----
284
392
458

query I rowsort
SELECT ALL + col1 + - + 55 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 85 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
85
85
85

query I rowsort
SELECT ALL col2 * - col2 * 94 * - - col1 FROM tab2 AS cor0
----
-11580800
-21186472
-2536026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) + 70 / COUNT( 22 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 70 / COUNT ( 22 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + col1 ) + + + col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + col1 + - col0 + + - 9 FROM tab0 AS cor0
----
-105
-75
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col1 col1, + 34 FROM tab1 AS cor0
----
138
34
65
34
90
34

query I rowsort
SELECT DISTINCT + col1 + 40 + 85 * - + col1 * col1 AS col2 FROM tab2
----
-220994
-381458
-503848

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN 17 AND ( - 99 + + col2 )
----

query I rowsort
SELECT - - ( col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT + + COUNT( ALL 96 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + + COUNT ( ALL 96 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 97 * - - 26 FROM tab0 cor0
----
-2522
-2522
-2522

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 8 <= + col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 7 + - col1 FROM tab0 WHERE - - 51 IS NOT NULL
----
-14
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT - COUNT( * ) * 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-837

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT - COUNT ( * ) * 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-837

query II rowsort
SELECT DISTINCT - 70 + - col0, col0 FROM tab1 WHERE NULL IN ( - - 17 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col1 col1, col1 FROM tab1 cor0
----
37
14
44
47
80
5

query II rowsort
SELECT ALL ( - col2 ) AS col0, - 44 AS col1 FROM tab2 AS cor0
----
-23
-44
-40
-44
-58
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0, col1 )
----

query I rowsort
SELECT DISTINCT 55 * col1 * + - 52 AS col0 FROM tab0 AS cor0
----
-231660
-2860
-60060

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT + 64 * COUNT( * ) col0 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2817
SELECT DISTINCT + 64 * COUNT ( * ) col0 FROM tab0 AS cor0
----
192

query I rowsort
SELECT DISTINCT - 15 AS col0 FROM tab2 cor0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND + + col0 / + + 77
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 22 >= col2 * + col0 + + 19 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - ( - ( + - col2 ) ), + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT DISTINCT - + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 74 AS col0 FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT ALL + ( + + col1 ) * col0 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT 3 + - + 50 AS col1, + 75 / 33 AS col1 FROM tab1 WHERE NOT ( + + col0 + + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 AS col0, + col0 * - + 19 col2 FROM tab2
----
66
-1216
66
-1425
66
-874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col0 FROM tab1 WHERE NOT col0 IS NULL
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT 55 DIV - COUNT( * ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-2829
SELECT 55 / - COUNT ( * ) AS col2 FROM tab0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 36 BETWEEN NULL AND - col2 * - - col2
----

query II rowsort
SELECT - col1 AS col2, - 46 * - ( - col1 ) * 16 AS col2 FROM tab1 AS cor0
----
-14
-10304
-47
-34592
-5
-3680

query I rowsort
SELECT DISTINCT + col1 * - col2 * + - col1 FROM tab2 AS cor0
----
237160
260362
59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col1 ) * + col2 + + 13 col2 FROM tab1 AS cor0
----
-1331
-282
-3183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2835
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 * col1 + + - CAST( NULL AS SIGNED ) * 99 BETWEEN - - col0 AND + col2
----

skipif mysql # not compatible
query III rowsort label-2835
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 * col1 + + - CAST ( NULL AS INTEGER ) * 99 BETWEEN - - col0 AND + col2
----

query I rowsort
SELECT ALL + 88 + + 84 + + col0 * - col0 FROM tab0
----
-53
-7397
-9237

query I rowsort
SELECT DISTINCT - col1 + - - 1 FROM tab1
----
-13
-4
-46

query II rowsort
SELECT ALL 29 + - - col1 AS col0, + col2 AS col2 FROM tab0
----
110
47
30
99
50
10

query I rowsort
SELECT + col1 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2840
SELECT col2 + col1 * - - CAST( + - 49 AS SIGNED ) FROM tab0
----
-1019
-3922
50

skipif mysql # not compatible
query I rowsort label-2840
SELECT col2 + col1 * - - CAST ( + - 49 AS INTEGER ) FROM tab0
----
-1019
-3922
50

query I rowsort
SELECT - 79 * + ( + 43 ) + - col2 AS col2 FROM tab1
----
-3456
-3465
-3493

onlyif mysql # aggregate syntax: 
query II rowsort label-2842
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) AS col0, - COUNT( * ) FROM tab2
----
6
-3

skipif mysql # not compatible
query II rowsort label-2842
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2
----
6
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2843
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - + ( 73 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2843
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - + ( 73 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col2 + + col2 * - col0 - - - col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-19503
-2961
-980

onlyif mysql # DIV for integer division: 
query II rowsort label-2846
SELECT DISTINCT 82 DIV - 76 AS col2, + 12 FROM tab1 cor0
----
-1
12

skipif mysql # not compatible
query II rowsort label-2846
SELECT DISTINCT 82 / - 76 AS col2, + 12 FROM tab1 cor0
----
-1
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2847
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL + ( CAST ( NULL AS REAL ) ) / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 47 ) + col2 AS col1 FROM tab0
----
146
57
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + - + col1 + col0 + + col0 AS col2 FROM tab0
----
-4
163
292

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT ALL + col1 + + - col1 DIV + 96 + + col0 + 37 * col0 FROM tab0
----
3327
3687
651

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + col1 + + - col1 / + 96 + + col0 + 37 * col0 FROM tab0
----
3327
3687
651

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 45 * - col1 <= - 20
----

query II rowsort
SELECT DISTINCT 11, + col0 AS col1 FROM tab0 AS cor0
----
11
15
11
87
11
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL COUNT( * ) * 85 * + - 22 AS col2 FROM tab1 AS cor0
----
-5610

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL COUNT ( * ) * 85 * + - 22 AS col2 FROM tab1 AS cor0
----
-5610

query II rowsort
SELECT DISTINCT - col0 * ( - 60 ) AS col0, - col2 AS col1 FROM tab0 cor0
----
5220
-10
5820
-99
900
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT + - 49 * + COUNT( DISTINCT + 93 ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT + - 49 * + COUNT ( DISTINCT + 93 ) FROM tab2 AS cor0
----
-49

query II rowsort
SELECT - col1 AS col0, - col1 + + + 41 AS col1 FROM tab1 cor0
----
-14
27
-47
-6
-5
36

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query II rowsort label-2859
SELECT ALL - 7 DIV + ( - - col0 ) * + col0 + col2 + - 13 AS col0, col1 + col1 - + + col2 AS col1 FROM tab1 AS cor0
----
46
-49
55
26
83
-68

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL - 7 / + ( - - col0 ) * + col0 + col2 + - 13 AS col0, col1 + col1 - + + col2 AS col1 FROM tab1 AS cor0
----
46
-49
55
26
83
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT - - COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - - COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT ALL - SUM( DISTINCT - + col0 ) AS col2, 33 AS col0 FROM tab0
----
199
33

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL - SUM ( DISTINCT - + col0 ) AS col2, 33 AS col0 FROM tab0
----
199
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT + col1 * - 0 DIV + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + col1 * - 0 / + col0 FROM tab0
----
0

query I rowsort
SELECT ALL + 60 * - 68 AS col1 FROM tab0
----
-4080
-4080
-4080

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - 74 ) * + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT MAX( - 25 ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT MAX ( - 25 ) AS col0 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT - 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT COUNT( * ) * 80 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
720

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT COUNT ( * ) * 80 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
720

query I rowsort
SELECT - + col1 / 12 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT col0 + + 0 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + + col1 + + 22 - + + col1 AS col0 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT + 15 + + - 54 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 20 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 <> NULL
----

query I rowsort
SELECT - col1 + 26 FROM tab1 cor0
----
-21
12
21

query II rowsort
SELECT - + ( + - col1 ), col1 AS col1 FROM tab1 AS cor0 WHERE 48 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 * + col0 + 64 col2, + 50 FROM tab0 AS cor0
----
769
50
934
50
9667
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL - 63 + col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-65
-95
14

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - 63 + col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-65
-95
14

query I rowsort
SELECT - col0 * + 56 + - col1 FROM tab1 AS cor0
----
-2870
-4765
-5143

query I rowsort
SELECT DISTINCT - + 22 + - - col1 FROM tab0 cor0
----
-1
-21
59

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) > col0 * + + col2 * 37 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col0, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - col1 < + col0 )
----

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2887
SELECT ALL + - CAST( + 55 AS SIGNED ) AS col1, + MIN( + + 93 ) FROM tab2 AS cor0
----
-55
93

skipif mysql # not compatible
query II rowsort label-2887
SELECT ALL + - CAST ( + 55 AS INTEGER ) AS col1, + MIN ( + + 93 ) FROM tab2 AS cor0
----
-55
93

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + 68 < NULL
----

query I rowsort
SELECT + + 88 AS col0 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - 98 * + ( ( 20 ) ) AS col2 FROM tab2 AS cor0
----
-1960
-1960
-1960

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 43 * - 25 AS col2 FROM tab2
----
-1075
-1075
-1075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + + 61 col1 FROM tab0
----
3721
3721
3721

query I rowsort
SELECT ( + col0 ) * col1 * col0 AS col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL COUNT( * ) * COUNT( * ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2895
SELECT ALL COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT ALL + 76 + - + 48 + + col0 + 30 * + - col0 DIV + ( col0 ) AS col2 FROM tab1 WHERE ( NOT - col1 IS NULL )
----
49
83
89

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + 76 + - + 48 + + col0 + 30 * + - col0 / + ( col0 ) AS col2 FROM tab1 WHERE ( NOT - col1 IS NULL )
----
49
83
89

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2898
SELECT ALL - 50 DIV + COUNT( * ) AS col2 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL - 50 / + COUNT ( * ) AS col2 FROM tab1
----
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - - ( col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT ALL + COUNT( * ) AS col2, MIN( - 18 ) FROM tab2 AS cor0
----
3
-18

skipif mysql # not compatible
query II rowsort label-2900
SELECT ALL + COUNT ( * ) AS col2, MIN ( - 18 ) FROM tab2 AS cor0
----
3
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2902
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2902
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2903
SELECT ALL COUNT( * ), + 57 + - 24 AS col2 FROM tab0 AS cor0 WHERE NOT 98 * + col1 IS NOT NULL
----
0
33

skipif mysql # not compatible
query II rowsort label-2903
SELECT ALL COUNT ( * ), + 57 + - 24 AS col2 FROM tab0 AS cor0 WHERE NOT 98 * + col1 IS NOT NULL
----
0
33

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) * + + col0 + 43 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) * + + col0 + 43 <= NULL
----
0

query I rowsort
SELECT ALL - col2 + - col0 * + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
2505
7166
8213

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col2 >= - ( - + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT 82 - + COUNT( * ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT 82 - + COUNT ( * ) AS col0 FROM tab2
----
79

query I rowsort
SELECT - ( + col0 ) + + 44 + + col0 AS col1 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL - 16 + + col1 AS col0 FROM tab2
----
35
51
61

query I rowsort
SELECT 90 + - col0 AS col0 FROM tab2
----
15
26
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2912
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT ALL + col2, 67 * - 77 * - col0 * + col0 - + + col2 * col2 AS col1 FROM tab2
----
23
10915915
40
21129664
58
29016011

query I rowsort
SELECT ALL 20 - - 85 + - col2 + - 80 FROM tab2 AS cor0
----
-15
-33
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT + - col0 / - CAST( + 29 AS SIGNED ) + col0 / - col0 * + + 7 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + + 30 + - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + - col0 / - CAST ( + 29 AS INTEGER ) + col0 / - col0 * + + 7 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 + + 30 + - - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + - 34 AS col0, 42 AS col1 FROM tab0 AS cor0
----
-34
42
-34
42
-34
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - 18 * ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 18 * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ( - 78 ) AS col1 FROM tab0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT - - AVG ( DISTINCT + + col2 ) * + + AVG ( DISTINCT col2 ) / + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT - - AVG ( DISTINCT + + col2 ) * + + AVG ( DISTINCT col2 ) / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT 81, col0 FROM tab2 cor0
----
81
46
81
64
81
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT - COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2923
SELECT - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col1 * + ( + + 18 ) FROM tab1
----
252
846
90

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 60 + - - col1 FROM tab2 AS cor0
----
111
127
137

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 30 <= NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 FROM tab1 WHERE NOT NULL > + - col2 + - 61
----

query II rowsort
SELECT - ( + col2 ) + + + 84 AS col1, 65 FROM tab0
----
-15
65
37
65
74
65

onlyif mysql # DIV for integer division: 
query II rowsort label-2931
SELECT + - 25 DIV ( - + col1 ) + col0 AS col0, + 33 FROM tab0 AS cor0
----
122
33
15
33
88
33

skipif mysql # not compatible
query II rowsort label-2931
SELECT + - 25 / ( - + col1 ) + col0 AS col0, + 33 FROM tab0 AS cor0
----
122
33
15
33
88
33

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE col1 >= + 99 * 36 * + col1 + - - col2
----

query I rowsort
SELECT + 52 + - + col2 AS col2 FROM tab2 AS cor0
----
-6
12
29

query I rowsort
SELECT 9 + - 2 AS col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT + col1 * + + 40 AS col1 FROM tab1 AS cor0
----
1880
200
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT ( - col1 ) AS col1 FROM tab1 WHERE - col0 <= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2936
SELECT ( - col1 ) AS col1 FROM tab1 WHERE - col0 <= + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + + 11 ) * + col1 * + - 77 + + - col0 * - + col1 + + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 58 * 80 + + col2 AS col2 FROM tab1
----
4699
4708
4736

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab2 WHERE - col2 * + 93 > + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT + 14 * - SUM( ALL - col1 ) + + + MAX( - col0 ) + 67 AS col2 FROM tab0
----
1494

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + 14 * - SUM ( ALL - col1 ) + + + MAX ( - col0 ) + 67 AS col2 FROM tab0
----
1494

query III rowsort
SELECT * FROM tab1 WHERE - 41 IS NULL
----

query I rowsort
SELECT ALL 33 - + 18 * 98 AS col2 FROM tab1
----
-1731
-1731
-1731

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + 12 - - - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2944
SELECT + 12 - - - COUNT ( * ) AS col2 FROM tab1
----
9

query II rowsort
SELECT DISTINCT col1 * col1 AS col2, col0 + + col1 FROM tab0 AS cor0
----
1
98
441
108
6561
96

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT - - col1 + - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT NULL <= + 99 * + col1 * - col1
----

skipif mysql # not compatible
query I rowsort label-2950
SELECT - - col1 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT NULL <= + 99 * + col1 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2951
SELECT DISTINCT 37 + - col2 DIV - + col1 AS col1 FROM tab1 AS cor0
----
38
43
48

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT 37 + - col2 / - + col1 AS col1 FROM tab1 AS cor0
----
38
43
48

query I rowsort
SELECT ALL + 50 * - col1 * - col2 FROM tab0
----
10500
190350
4950

query II rowsort
SELECT 99 AS col1, col0 - 83 AS col0 FROM tab0
----
99
-68
99
14
99
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL - MAX( DISTINCT + - col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - MAX ( DISTINCT + - col1 ) AS col1 FROM tab2
----
51

query II rowsort
SELECT col1 AS col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT - col2 * col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT - col2 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2957
SELECT 51 DIV COUNT( * ) DIV ( + 18 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2957
SELECT 51 / COUNT ( * ) / ( + 18 ) FROM tab2
----
0

query II rowsort
SELECT DISTINCT col2 AS col0, 33 FROM tab1
----
59
33
68
33
96
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT + 85 * + - COUNT( * ) * + - COUNT( * ) FROM tab0
----
765

skipif mysql # not compatible
query I rowsort label-2959
SELECT + 85 * + - COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
765

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - + col2
----

query I rowsort
SELECT ALL - - 93 AS col1 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + + 94 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2962
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + + 94 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 * - col2 = NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT COUNT( * ) * + COUNT( * ) col1, - COUNT( * ) AS col1 FROM tab0
----
9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2965
SELECT COUNT ( * ) * + COUNT ( * ) col1, - COUNT ( * ) AS col1 FROM tab0
----
9
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL + MAX( - - col0 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 31 IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + MAX ( - - col0 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 31 IS NULL
----
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT COUNT( * ) - - 77 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2968
SELECT COUNT ( * ) - - 77 FROM tab0 AS cor0
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 AS col1 FROM tab0 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT 81 - col2 FROM tab1 AS cor0
----
-15
13
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT + col1 - col2 * - CAST( NULL AS SIGNED ) - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT + col1 - col2 * - CAST ( NULL AS INTEGER ) - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 * + - col0 + + 47 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 96 AS col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-96
-96
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT ALL - - COUNT( * ) DIV - + 72 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL - - COUNT ( * ) / - + 72 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + - 0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2978
SELECT DISTINCT 43 + CAST( NULL AS SIGNED ) * + + ( - 68 ) * ( COUNT( * ) ), + 28 AS col2 FROM tab2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2978
SELECT DISTINCT 43 + CAST ( NULL AS INTEGER ) * + + ( - 68 ) * ( COUNT ( * ) ), + 28 AS col2 FROM tab2
----
NULL
28

query II rowsort
SELECT - col1, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE + col2 / col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 19 AS col0, 52 AS col2 FROM tab1 AS cor0
----
19
52

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT - 62 DIV col0 AS col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2984
SELECT - 62 / col0 AS col0 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT ALL - - 98 + + - ( MAX( DISTINCT col1 ) ) AS col2, 64 AS col2 FROM tab0 AS cor0
----
17
64

skipif mysql # not compatible
query II rowsort label-2985
SELECT ALL - - 98 + + - ( MAX ( DISTINCT col1 ) ) AS col2, 64 AS col2 FROM tab0 AS cor0
----
17
64

query I rowsort
SELECT DISTINCT - 13 + + + 97 AS col0 FROM tab0 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 NOT BETWEEN - 32 AND NULL
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT + col1 + + 48 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT + col1 + + 48 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 + col2 AS col0 FROM tab2 cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + 95 + - COUNT( * ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-2990
SELECT + 95 + - COUNT ( * ) FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL - MIN( - 39 ) + + ( COUNT( * ) ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - MIN ( - 39 ) + + ( COUNT ( * ) ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL COUNT( * ) + 18 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL COUNT ( * ) + 18 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT ALL + COUNT( * ) col0, - SUM( 27 ) FROM tab1
----
3
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2993
SELECT ALL + COUNT ( * ) col0, - SUM ( 27 ) FROM tab1
----
3
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT DISTINCT SUM( + CAST( + 9 AS SIGNED ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT SUM ( + CAST ( + 9 AS INTEGER ) ) FROM tab2
----
27

query I rowsort
SELECT + + 22 * + - col2 AS col0 FROM tab1 AS cor0
----
-1298
-1496
-2112

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + col2 <> - 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2997
SELECT DISTINCT - col1 DIV - col0 * - col1 + col1 + + 26, col2 * 98 + - 32 * + col2 AS col0 FROM tab1 AS cor0
----
31
3894
40
6336
73
4488

skipif mysql # not compatible
query II rowsort label-2997
SELECT DISTINCT - col1 / - col0 * - col1 + col1 + + 26, col2 * 98 + - 32 * + col2 AS col0 FROM tab1 AS cor0
----
31
3894
40
6336
73
4488

onlyif mysql # aggregate syntax: 
query II rowsort label-2998
SELECT DISTINCT + 86 * - ( + - 31 ) * - COUNT( * ) col2, ( + 51 ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-7998
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2998
SELECT DISTINCT + 86 * - ( + - 31 ) * - COUNT ( * ) col2, ( + 51 ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-7998
51

query II rowsort
SELECT + + ( 88 ) AS col1, - 80 FROM ( tab0 cor0 CROSS JOIN tab0 cor1 )
----
18 values hashing to 72d0e5d6bf3f80356f1da0b6b24440f0

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL 53 - + + COUNT( * ) AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL 53 - + + COUNT ( * ) AS col1 FROM tab0
----
50

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( col1 + ( - 51 ) )
----

query I rowsort
SELECT ALL 7 * - col1 + - - col0 FROM tab1 AS cor0
----
-238
-47
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT - + COUNT( * ) * + 24 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3003
SELECT - + COUNT ( * ) * + 24 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
216

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NOT ( ( NOT NULL IS NOT NULL ) ) )
----

query I rowsort
SELECT + + 95 * - 16 FROM tab0 AS cor0
----
-1520
-1520
-1520

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / - col2 - - + col1 <> + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col0 FROM tab2
----
18
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 78 * - - col1 AS col0 FROM tab0
----
1638
6318
78

query II rowsort
SELECT ( - + col1 ) + ( + 41 ), ( - col1 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-40
-81
20
-21
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT + 36 * SUM( 11 ) FROM tab1 AS cor0
----
1188

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT + 36 * SUM ( 11 ) FROM tab1 AS cor0
----
1188

query I rowsort
SELECT col1 * + - 56 FROM tab0
----
-1176
-4536
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT ALL + CAST( - ( + + col1 ) AS SIGNED ) + - col2 + - 11 * - col0 * + col1 FROM tab2 AS cor0
----
25732
54091
55150

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + CAST ( - ( + + col1 ) AS INTEGER ) + - col2 + - 11 * - col0 * + col1 FROM tab2 AS cor0
----
25732
54091
55150

query I rowsort
SELECT DISTINCT + - 24 + - + 82 FROM tab1 AS cor0
----
-106

query I rowsort
SELECT + ( + col0 ) FROM tab2 AS cor0 WHERE + 20 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + - col2 col2 FROM tab0 AS cor0
----
-29
23
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 + - - col0 + - + 54 * - + 46 AS col1, - 87 + - col2 FROM tab2
----
2553
-110
2588
-127
2617
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ( + COUNT( * ) ) FROM tab0 WHERE + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3020
SELECT ( + COUNT ( * ) ) FROM tab0 WHERE + col0 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 28 + - 46 AS col2 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT + + col0 * - ( + col2 ) AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 99 FROM tab2 cor0 WHERE NOT + 92 * - 46 + col1 NOT IN ( - ( + + 8 ), - 7 * + col0 * - + col0 )
----

query II rowsort
SELECT col2, 33 FROM tab2
----
23
33
40
33
58
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT SUM( + + 11 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3025
SELECT SUM ( + + 11 ) AS col0 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3026
SELECT col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3026
SELECT col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT ( + MAX( ALL - - col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT ( + MAX ( ALL - - col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col0, col0 * - col1 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 78 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
78
-14
78
-47
78
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL - MAX( DISTINCT + 47 ) FROM tab0 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - MAX ( DISTINCT + 47 ) FROM tab0 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT + SUM( + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3032
SELECT + SUM ( + col2 ) AS col2 FROM tab0 cor0
----
156

query I rowsort
SELECT + + col1 * - + 9 + + col0 AS col1 FROM tab1 AS cor0
----
-332
-75
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3034
SELECT + COUNT( * ) col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3034
SELECT + COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - ( + COUNT( * ) ) * - 41 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-3035
SELECT - ( + COUNT ( * ) ) * - 41 FROM tab1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + COUNT( * ) * + MAX( + 29 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3036
SELECT + COUNT ( * ) * + MAX ( + 29 ) FROM tab2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3037
SELECT CAST( - COUNT( DISTINCT - col1 ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3037
SELECT CAST ( - COUNT ( DISTINCT - col1 ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT + CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT + CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT DISTINCT - ( col1 ) DIV - + 69 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT - ( col1 ) / - + 69 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + col1 * - - 39 + + col0 + - col2 FROM tab1 AS cor0
----
1856
221
501

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT DISTINCT 77 DIV - col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT 77 / - col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + - col2 * - col1 + - col0 + + col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE 79 / - col2 NOT IN ( 29, - col2 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT - COUNT( * ) + + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - COUNT ( * ) + + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 60 + + + col1 FROM tab2 AS cor0
----
-9
17
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 FROM tab1
----
-1293
-210
-3105

query II rowsort
SELECT col2, 95 FROM tab2
----
23
95
40
95
58
95

query II rowsort
SELECT col1 AS col2, + ( + + 7 ) AS col1 FROM tab0
----
1
7
21
7
81
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT COUNT( * ) * + ( - COUNT( DISTINCT - 68 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3051
SELECT COUNT ( * ) * + ( - COUNT ( DISTINCT - 68 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + MIN( 94 ) AS col2 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-3052
SELECT + MIN ( 94 ) AS col2 FROM tab2
----
94

query I rowsort
SELECT ALL - 65 AS col1 FROM tab0 WHERE NOT NULL IS NULL OR NULL <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, 40 + + col0 + 74 * + + col2 AS col0 FROM tab2 AS cor0
----
51
1788
67
4407
77
3064

query I rowsort
SELECT - 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT + AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + + 74 AS col2 FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT DISTINCT + 96 FROM tab0 cor0 WHERE col1 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 54 AS col1 FROM tab2 cor0
----
54
54
54

query I rowsort
SELECT ALL - 70 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT + ( - MAX( - - 8 ) ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + ( - MAX ( - - 8 ) ) FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 68 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 99 * + 56 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col1 * 91 * col0 FROM tab2
----
-213486
-448448
-457275

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT - ( + + COUNT( * ) ) * - SUM( DISTINCT + col1 ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT - ( + + COUNT ( * ) ) * - SUM ( DISTINCT + col1 ) AS col0 FROM tab2
----
585

query I rowsort
SELECT ALL + col2 * + 0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT COUNT( * ) * + + ( + 2 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT COUNT ( * ) * + + ( + 2 ) AS col1 FROM tab0
----
6

query I rowsort
SELECT + 99 * + col2 FROM tab2
----
2277
3960
5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * - col1 col1 FROM tab0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, + 93 - + 47 FROM tab2
----
46
46
64
46
75
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL - + CAST( - col1 AS SIGNED ) FROM tab2 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL - + CAST ( - col1 AS INTEGER ) FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - + col2 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL + 51 + + COUNT( * ) AS col2 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + 51 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 2 + + - col0 = - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT DISTINCT 88 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT 88 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + - ( 85 ) * - - col0 FROM tab2 AS cor0
----
-3910
-5440
-6375

query II rowsort
SELECT ALL 16 AS col2, col2 AS col1 FROM tab2
----
16
23
16
40
16
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT col0 * col2 DIV - + 49 + - col0 * - - 82 + + col1 FROM tab2
----
-3742
-5223
-6171

skipif mysql # not compatible
query I rowsort label-3080
SELECT col0 * col2 / - + 49 + - col0 * - - 82 + + col1 FROM tab2
----
-3742
-5223
-6171

query I rowsort
SELECT + col0 * - 9 FROM tab0
----
-135
-783
-873

query II rowsort
SELECT - col0 AS col0, 26 AS col1 FROM tab2
----
-46
26
-64
26
-75
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT ( SUM( DISTINCT - 96 ) ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT ( SUM ( DISTINCT - 96 ) ) AS col0 FROM tab0 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT + 31 - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
31

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + 31 - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
31

query II rowsort
SELECT ALL + col0, + col0 * + - col1 * - col1 FROM tab2 AS cor0
----
46
119646
64
379456
75
336675

onlyif mysql # aggregate syntax: 
query II rowsort label-3087
SELECT ALL COUNT( * ) AS col2, COUNT( * ) col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3087
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - + 53 AS col0 FROM tab1 cor0
----
-53

query I rowsort
SELECT DISTINCT + col0 + + col0 * - 2 AS col1 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3090
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT ( + 68 ) FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT + col2 - + 52 * col1 * + col1 * - 21 + 0 * ( col0 ) FROM tab2
----
2840315
4902046
6474508

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3093
SELECT ALL col2 + - - col0 AS col2, 15 * + CAST( NULL AS DECIMAL ) FROM tab2
----
104
NULL
133
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-3093
SELECT ALL col2 + - - col0 AS col2, 15 * + CAST ( NULL AS REAL ) FROM tab2
----
104
NULL
133
NULL
69
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col2 FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * + - col0 + col1 col0 FROM tab2
----
-2847
-3955
-4658

query I rowsort
SELECT - col2 + - - 13 FROM tab0
----
-34
-86
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT col2 + + 55 DIV - - 9 FROM tab2
----
29
46
64

skipif mysql # not compatible
query I rowsort label-3097
SELECT col2 + + 55 / - - 9 FROM tab2
----
29
46
64

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( col1 * + col1 ) < 87 )
----
15
81
47
87
21
10

query I rowsort
SELECT 88 * col0 + col1 * col0 FROM tab1
----
12285
5202
7905

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3100
SELECT * FROM tab2 AS cor0 WHERE + col0 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3100
SELECT * FROM tab2 AS cor0 WHERE + col0 < + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT 10 * - 14 * + - ( COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
423

skipif mysql # not compatible
query I rowsort label-3101
SELECT 10 * - 14 * + - ( COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
423

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT DISTINCT - + col0 DIV - col0 + + 51 + + - col2 + - col1 FROM tab0 AS cor0
----
-48
-76
21

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - + col0 / - col0 + + 51 + + - col2 + - col1 FROM tab0 AS cor0
----
-48
-76
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3103
SELECT - 56 AS col1, CAST( + 68 AS SIGNED ) AS col2 FROM tab2
----
-56
68
-56
68
-56
68

skipif mysql # not compatible
query II rowsort label-3103
SELECT - 56 AS col1, CAST ( + 68 AS INTEGER ) AS col2 FROM tab2
----
-56
68
-56
68
-56
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3104
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > 96 * + + col0 * - CAST( 78 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3104
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > 96 * + + col0 * - CAST ( 78 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT + CAST( + 17 AS SIGNED ) * - - col0 FROM tab1 AS cor0
----
1445
1547
867

skipif mysql # not compatible
query I rowsort label-3105
SELECT + CAST ( + 17 AS INTEGER ) * - - col0 FROM tab1 AS cor0
----
1445
1547
867

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + MAX( DISTINCT - - col0 ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3106
SELECT + MAX ( DISTINCT - - col0 ) col0 FROM tab1 AS cor0
----
91

query II rowsort
SELECT - col0, - col1 AS col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT DISTINCT col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT MIN( ALL + 38 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT MIN ( ALL + 38 ) FROM tab2 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3110
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + - 60, CAST( NULL AS SIGNED ), + 32 )
----

skipif mysql # not compatible
query III rowsort label-3110
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + - 60, CAST ( NULL AS INTEGER ), + 32 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3111
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3111
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + col0 - + 14 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT - MAX( DISTINCT - - 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - MAX ( DISTINCT - - 4 ) FROM tab2 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT ALL - col2 + + - CAST( + col1 AS SIGNED ) * + + 17 FROM tab0 AS cor0
----
-116
-1424
-367

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - col2 + + - CAST ( + col1 AS INTEGER ) * + + 17 FROM tab0 AS cor0
----
-116
-1424
-367

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT COUNT( * ) * + 66 AS col0 FROM tab2 cor0 WHERE NOT - col0 + - col2 IS NULL
----
198

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT COUNT ( * ) * + 66 AS col0 FROM tab2 cor0 WHERE NOT - col0 + - col2 IS NULL
----
198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 79 + - + col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL - MIN( DISTINCT - col0 ) + - - 6 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - MIN ( DISTINCT - col0 ) + - - 6 FROM tab2 cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3119
SELECT ALL + 55 - + COUNT( * ) FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + 55 - + COUNT ( * ) FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----
55

query I rowsort
SELECT - ( + 9 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - COUNT( * ) + + COUNT( * ) FROM tab1, tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3121
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1, tab1 cor0
----
0

query I rowsort
SELECT ( + col2 ) + - 19 * - col2 FROM tab2
----
1160
460
800

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 6 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 + - 40 AS col0 FROM tab1 AS cor0
----
-108
-136
-99

query I rowsort
SELECT col1 + + 43 FROM tab0 AS cor0
----
124
44
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3126
SELECT - 97 + - - MIN( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - 97 + - - MIN ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT + 6 DIV + col1 * - + 67 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT + 6 / + col1 * - + 67 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 61 + - col0 FROM tab0 cor0
----
-148
-158
-76

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + + col1 AND - col2 / col2 + - col0 * + col1
----

query I rowsort
SELECT ALL - ( col1 ) + 84 AS col1 FROM tab0
----
3
63
83

query II rowsort
SELECT DISTINCT 76 - - col1, ( - col1 ) + col2 * + col0 AS col0 FROM tab2
----
127
1007
143
4283
153
2483

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT MIN( DISTINCT - col2 ) - - COUNT( * ) col0 FROM tab1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3132
SELECT DISTINCT MIN ( DISTINCT - col2 ) - - COUNT ( * ) col0 FROM tab1
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL 49 - 43 AS col2 FROM tab0
----
6
6
6

query I rowsort
SELECT + col0 - + 16 FROM tab0
----
-1
71
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT DISTINCT - ( 78 ) - CAST( + - 50 AS SIGNED ) AS col2 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - ( 78 ) - CAST ( + - 50 AS INTEGER ) AS col2 FROM tab2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ( + ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3137
SELECT ( + ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3139
SELECT DISTINCT + 65 DIV - ( - ( 40 ) ) + + + COUNT( * ) + - MAX( ALL - col0 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT + 65 / - ( - ( 40 ) ) + + + COUNT ( * ) + - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT ALL ( - col2 ) DIV 55 * - col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL ( - col2 ) / 55 * - col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + col1 + + col1 FROM tab2 cor0 WHERE NOT 65 * - col2 / - col2 IS NULL
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT ALL + + CAST( + col2 AS SIGNED ) + + + 45 AS col0 FROM tab0 AS cor0 WHERE 29 >= NULL
----

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + + CAST ( + col2 AS INTEGER ) + + + 45 AS col0 FROM tab0 AS cor0 WHERE 29 >= NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col0 FROM tab1 WHERE NOT 94 / - - ( + col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - + 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - + 26 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - SUM( + 73 ) AS col0 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-3145
SELECT - SUM ( + 73 ) AS col0 FROM tab0
----
-219

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3146
SELECT CAST( NULL AS DECIMAL ) * + SUM( DISTINCT + 67 ), - COUNT( * ) col2 FROM tab2
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3146
SELECT CAST ( NULL AS REAL ) * + SUM ( DISTINCT + 67 ), - COUNT ( * ) col2 FROM tab2
----
NULL
-3

query I rowsort
SELECT 34 * col0 * ( + + 24 ) FROM tab0
----
12240
70992
79152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3148
SELECT DISTINCT COUNT( * ), CAST( + - 82 AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
-82

skipif mysql # not compatible
query II rowsort label-3148
SELECT DISTINCT COUNT ( * ), CAST ( + - 82 AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL - MAX( ALL - 34 ) col2 FROM tab0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3149
SELECT ALL - MAX ( ALL - 34 ) col2 FROM tab0
----
34

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( + 15 ) * - col0 ) < - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT DISTINCT SUM( + 58 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT SUM ( + 58 ) FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0, 32, - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0, 32, - + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 AS cor0 WHERE + col1 >= - col2
----
-46
-64
-75

query I rowsort
SELECT ALL + 5 * + 59 FROM tab0
----
295
295
295

query I rowsort
SELECT ALL 77 + 60 FROM tab0
----
137
137
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT DISTINCT + 46 + + 79 DIV + col2 FROM tab2
----
47
49

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT + 46 + + 79 / + col2 FROM tab2
----
47
49

query III rowsort
SELECT * FROM tab0 WHERE 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> 82 + - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT MIN( ALL 95 ) AS col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-3159
SELECT MIN ( ALL 95 ) AS col1 FROM tab0
----
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT + CAST( 47 AS SIGNED ) - + 42 AS col2 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3161
SELECT + CAST ( 47 AS INTEGER ) - + 42 AS col2 FROM tab2
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - 2 ) FROM tab1
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL ( MIN( ( - col2 ) ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL ( MIN ( ( - col2 ) ) ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3167
SELECT DISTINCT * FROM tab1 WHERE ( ( col2 ) ) <= + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3167
SELECT DISTINCT * FROM tab1 WHERE ( ( col2 ) ) <= + ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 + col0 * + 55 AS col1 FROM tab2
----
2576
3584
4200

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT - col1 DIV 53 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT - col1 / 53 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT - col1 DIV + 24 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT - col1 / + 24 FROM tab0
----
-3
0
0

query I rowsort
SELECT 12 + col1 AS col0 FROM tab1
----
17
26
59

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - col1 + ( col1 + + 50 )
----

query I rowsort
SELECT ALL col1 + + 8 AS col1 FROM tab1 WHERE + 38 NOT IN ( 19 )
----
13
22
55

query I rowsort
SELECT + 82 * ( 98 ) FROM tab1 WHERE NULL >= ( 91 )
----

query I rowsort
SELECT DISTINCT - col0 * - 97 AS col1 FROM tab1
----
4947
8245
8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT + ( + 99 ) - CAST( col1 AS SIGNED ) * + 77 FROM tab1 WHERE ( NULL ) NOT BETWEEN - ( col1 ) / - col2 AND col0 * - col0
----

skipif mysql # not compatible
query I rowsort label-3176
SELECT + ( + 99 ) - CAST ( col1 AS INTEGER ) * + 77 FROM tab1 WHERE ( NULL ) NOT BETWEEN - ( col1 ) / - col2 AND col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT DISTINCT - MAX( 76 ) + 47 AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT - MAX ( 76 ) + 47 AS col1 FROM tab1
----
-29

query I rowsort
SELECT ( + col2 ) * col1 AS col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 WHERE + 46 IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT - COUNT( * ) * MIN( + col2 * + 25 ) AS col1 FROM tab1 cor0
----
-4425

skipif mysql # not compatible
query I rowsort label-3181
SELECT - COUNT ( * ) * MIN ( + col2 * + 25 ) AS col1 FROM tab1 cor0
----
-4425

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 / - col1 - col1 >= ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT SUM( ALL col2 ) DIV 72 AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3183
SELECT SUM ( ALL col2 ) / 72 AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT + 28 / 35 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 48 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL + + COUNT( * ) * - 90 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL + + COUNT ( * ) * - 90 FROM tab1 AS cor0
----
-270

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 45 ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT SUM( ALL 22 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT SUM ( ALL 22 ) FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3190
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) * - col0 IS NOT NULL
----

query I rowsort
SELECT + 17 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
17
17
17

query I rowsort
SELECT ALL col0 + + 49 FROM tab1
----
100
134
140

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 68 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT 50 + ( + 91 ) * - col0 AS col1 FROM tab0
----
-1315
-7867
-8777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT DISTINCT 89 * CAST( - col1 AS SIGNED ) AS col0 FROM tab0 WHERE ( NULL ) > + col0 * ( + col0 ) + col1
----

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT 89 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 WHERE ( NULL ) > + col0 * ( + col0 ) + col1
----

query I rowsort
SELECT DISTINCT 77 * - col2 AS col2 FROM tab2
----
-1771
-3080
-4466

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - 76 AND col2 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL - MAX( ALL + col2 ) * CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - MAX ( ALL + col2 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col1 BETWEEN + 93 + 72 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col0 - 66 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT + MAX( ALL - 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3201
SELECT + MAX ( ALL - 80 ) FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT + - COUNT( * ) DIV - + 13 * 6 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT + - COUNT ( * ) / - + 13 * 6 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 75 NOT IN ( - 78 * + 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + 81 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 82 + + 20 FROM tab0, tab2 AS cor0
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT ALL - col1 - 44 * - col2 FROM tab1 AS cor0
----
2591
2945
4210

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL MAX( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL MAX ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT + col1 - + + 35 - col1 AS col2 FROM tab0 AS cor0
----
-35

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * 37 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 11 / + col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 * - 58 AS col1 FROM tab2 AS cor0
----
-1334
-2320
-3364

query I rowsort
SELECT col0 + 47 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 51 AS col2 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE - col0 * col2 + + 45 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 86 AS col1, + col1 col1 FROM tab0 AS cor0
----
-86
1
-86
21
-86
81

query I rowsort
SELECT ALL col2 * col1 AS col0 FROM tab0 AS cor0 WHERE col0 + - 16 < col0 / + 22
----
3807

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 + - 5 * + col0 )
----

query I rowsort
SELECT ALL col1 + 57 AS col1 FROM tab2 AS cor0
----
108
124
134

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - 36 ) NOT BETWEEN 74 - 84 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3221
SELECT ALL + 77 * + - 14 + - COUNT( DISTINCT col1 ) + + 98 DIV + 70 FROM tab2
----
-1080

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + 77 * + - 14 + - COUNT ( DISTINCT col1 ) + + 98 / + 70 FROM tab2
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL MAX( + 23 ) col2 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3222
SELECT ALL MAX ( + 23 ) col2 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT AVG ( DISTINCT + 97 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT AVG ( DISTINCT + 97 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * + ( + col1 ) AS col2 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 22 + col1 * col1 NOT BETWEEN NULL AND - col1 * - 76
----
15
81
47

query I rowsort
SELECT ALL col2 * - + 76 AS col1 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3228
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 83 FROM tab1 cor0 WHERE NOT - col2 / 63 * - col1 IS NULL
----
-83
-83
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 93 BETWEEN + 50 AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 FROM tab0 cor0 WHERE NOT 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT 9 * - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3233
SELECT 9 * - COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 26 * col0 AS col0 FROM tab1 WHERE NOT NULL >= - 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT col2 DIV + 34 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3236
SELECT col2 / + 34 FROM tab1
----
1
2
2

query I rowsort
SELECT DISTINCT 60 * - col1 AS col1 FROM tab1
----
-2820
-300
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL - SUM( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - SUM ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT CAST( NULL AS SIGNED ) / 59 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT CAST ( NULL AS INTEGER ) / 59 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL MAX( ALL + 93 ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL MAX ( ALL + 93 ) AS col2 FROM tab1 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 70 col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ( - ( + col0 ) ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL IN ( + col2 / - 85 ) )
----

query I rowsort
SELECT - - col2 * 61 FROM tab1 WHERE NULL <= + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT - col1 + 69 * - 91 + - ( - - 26 ) * - CAST( col1 AS SIGNED ) * ( 19 * + col1 + col1 * col2 ) AS col0 FROM tab1
----
44416
4990432
579747

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - col1 + 69 * - 91 + - ( - - 26 ) * - CAST ( col1 AS INTEGER ) * ( 19 * + col1 + col1 * col2 ) AS col0 FROM tab1
----
44416
4990432
579747

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 47 * - ( - - MAX( ALL - col1 ) ) FROM tab1
----
-235

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 47 * - ( - - MAX ( ALL - col1 ) ) FROM tab1
----
-235

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL + col0 DIV col2 col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3247
SELECT ALL + col0 / col2 col0 FROM tab0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT col1 DIV + - 65 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT col1 / + - 65 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + 90, + 13 - - col2 AS col1 FROM tab2
----
90
36
90
53
90
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3250
SELECT - col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-3250
SELECT - col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT ALL col0 AS col0, - 37 * + col0 FROM tab2
----
46
-1702
64
-2368
75
-2775

onlyif mysql # aggregate syntax: 
query II rowsort label-3252
SELECT ALL + 31, COUNT( * ) AS col1 FROM tab1
----
31
3

skipif mysql # not compatible
query II rowsort label-3252
SELECT ALL + 31, COUNT ( * ) AS col1 FROM tab1
----
31
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3253
SELECT CAST( NULL AS SIGNED ) + + col1 / 81 - - col1 AS col1, col2 - + 34 FROM tab2
----
NULL
-11
NULL
24
NULL
6

skipif mysql # not compatible
query II rowsort label-3253
SELECT CAST ( NULL AS INTEGER ) + + col1 / 81 - - col1 AS col1, col2 - + 34 FROM tab2
----
NULL
-11
NULL
24
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT 63 + - + COUNT( * ) + 25 AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3254
SELECT 63 + - + COUNT ( * ) + 25 AS col0 FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col1, - col1 * 1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT + 50 / - MIN( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + 50 / - MIN ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( ( - col1 ) )
----

query I rowsort
SELECT ( + col0 ) FROM tab0 WHERE NULL NOT IN ( + 69 )
----

query I rowsort
SELECT DISTINCT col1 - - 59 AS col2 FROM tab2
----
110
126
136

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( ( + 19 ) NOT BETWEEN col2 * col2 AND ( - col2 + col2 ) )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3262
SELECT + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0 WHERE + col0 + - + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3262
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0 WHERE + col0 + - + col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * + + col1 <= ( + - col2 )
----
1

query I rowsort
SELECT + + col2 - + - col2 + + col2 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3265
SELECT 76 * + + CAST( NULL AS SIGNED ), + 99 DIV 41 AS col1 FROM tab0 AS cor0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-3265
SELECT 76 * + + CAST ( NULL AS INTEGER ), + 99 / 41 AS col1 FROM tab0 AS cor0
----
NULL
2
NULL
2
NULL
2

query I rowsort
SELECT 48 * 40 AS col0 FROM tab1
----
1920
1920
1920

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) BETWEEN NULL AND + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT DISTINCT ( - + MAX( col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT ( - + MAX ( col1 ) ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT + col1 * + - 35 FROM tab1 WHERE NOT - + 41 = NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 * - col1 FROM tab0
----
1
-1
21
-441
81
-6561

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT - + MAX( DISTINCT 78 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - + MAX ( DISTINCT 78 ) FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - SUM( DISTINCT - col1 ) * - + SUM( ALL - 47 ) FROM tab0 AS cor0
----
14523

skipif mysql # not compatible
query I rowsort label-3273
SELECT - SUM ( DISTINCT - col1 ) * - + SUM ( ALL - 47 ) FROM tab0 AS cor0
----
14523

query I rowsort
SELECT 93 * - ( - + 37 ) AS col2 FROM tab1
----
3441
3441
3441

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT + col0 DIV col2 col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3275
SELECT + col0 / col2 col2 FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT MIN( ALL + col0 ) * + 23 + + ( - MAX( DISTINCT + 90 ) ) col0 FROM tab0 WHERE NOT ( ( + col2 + col2 ) BETWEEN 75 AND NULL )
----
1911

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3276
SELECT MIN ( ALL + col0 ) * + 23 + + ( - MAX ( DISTINCT + 90 ) ) col0 FROM tab0 WHERE NOT ( ( + col2 + col2 ) BETWEEN 75 AND NULL )
----
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3277
SELECT + COUNT( * ) DIV + - CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3277
SELECT + COUNT ( * ) / + - CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - col1 + 11 * 84 FROM tab0 AS cor0
----
1005
925
945

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT ALL col1 DIV + - 50 - + + 65 - + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-112
-130
-141

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL col1 / + - 50 - + + 65 - + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-112
-130
-141

query I rowsort
SELECT ALL + ( - 58 ) FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT col1 + - + 26 FROM tab1 AS cor0
----
-12
-21
21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 67 IS NOT NULL
----

query I rowsort
SELECT - - 80 + + col0 FROM tab1 cor0
----
131
165
171

query I rowsort
SELECT DISTINCT - col0 + - col0 + - col2 * + - 30 FROM tab1 AS cor0
----
1600
1858
2778

query I rowsort
SELECT DISTINCT - - 39 + - 96 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - col1 ) + - - col2, + 69 )
----

query I rowsort
SELECT - - 96 + + col1 AS col0 FROM tab0 AS cor0
----
117
177
97

query III rowsort
SELECT * FROM tab0 WHERE + + col1 + - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + col1 * col0 * + col0 * col1 AS col1 FROM tab1
----
180684
18292797
509892

query I rowsort
SELECT DISTINCT col1 + 50 FROM tab2
----
101
117
127

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - col2 * - + col0 * - col1 )
----

query I rowsort
SELECT + 52 AS col0 FROM tab2 WHERE - - col1 / + col0 + + + col2 * - col1 / col0 BETWEEN + col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + SUM( + - col0 ) AS col1 FROM tab0 WHERE NULL NOT IN ( - - 50, + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT + SUM ( + - col0 ) AS col1 FROM tab0 WHERE NULL NOT IN ( - - 50, + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT COUNT( * ) * - 55 * COUNT( - col1 ) * + COUNT( * ) AS col0 FROM tab1
----
-1485

skipif mysql # not compatible
query I rowsort label-3294
SELECT COUNT ( * ) * - 55 * COUNT ( - col1 ) * + COUNT ( * ) AS col0 FROM tab1
----
-1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT DISTINCT - 79 * - + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - 79 * - + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
237

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( 13 / + col0 * - col2 * 47 ) AND NULL
----

query I rowsort
SELECT + col2 * 89 * + col0 FROM tab1 AS cor0
----
435744
446335
550732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT CAST( NULL AS SIGNED ) + + + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) + + + col0 IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT DISTINCT + + 2 * - CAST( col0 AS SIGNED ) * + 98 AS col1 FROM tab1 AS cor0
----
-16660
-17836
-9996

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT + + 2 * - CAST ( col0 AS INTEGER ) * + 98 AS col1 FROM tab1 AS cor0
----
-16660
-17836
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL MAX( + - col1 ) * - 67 + + - 64 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL MAX ( + - col1 ) * - 67 + + - 64 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
8

query II rowsort
SELECT DISTINCT 71 AS col0, + col0 AS col1 FROM tab2
----
71
46
71
64
71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT 86 * + MAX( - + col1 ) + SUM( + 82 ) + - + 29 AS col0 FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-3303
SELECT 86 * + MAX ( - + col1 ) + SUM ( + 82 ) + - + 29 AS col0 FROM tab0
----
131

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 54 * + col0 * + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3305
SELECT 34, col2 + - + 56 + + CAST( - ( + 89 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
34
-105
34
-122
34
-87

skipif mysql # not compatible
query II rowsort label-3305
SELECT 34, col2 + - + 56 + + CAST ( - ( + 89 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
34
-105
34
-122
34
-87

query I rowsort
SELECT DISTINCT + col0 + + + col1 FROM tab2 AS cor0 WHERE NOT - col2 + + 74 - 64 * col0 IS NULL
----
141
142
97

query I rowsort
SELECT DISTINCT - col1 * - 81 FROM tab2 AS cor0
----
4131
5427
6237

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 92, 44 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT + SUM( DISTINCT - col1 ) col0, SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-103
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3309
SELECT + SUM ( DISTINCT - col1 ) col0, SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-103
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 38 * + ( - col2 ) = 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT DISTINCT 18 DIV 32 + + - 78 AS col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT 18 / 32 + + - 78 AS col0 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT DISTINCT + ( + + 68 ) FROM tab1 AS cor0 WHERE NOT + 2 >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL - + MIN( ALL + + col0 ) * - 96 AS col1 FROM tab1 AS cor0
----
4896

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - + MIN ( ALL + + col0 ) * - 96 AS col1 FROM tab1 AS cor0
----
4896

query II rowsort
SELECT + col0 AS col1, 4 * + col1 FROM tab0 AS cor0
----
15
324
87
84
97
4

query II rowsort
SELECT ALL col2 AS col0, + col0 + col2 * + col0 + col0 FROM tab2 AS cor0
----
23
1150
40
2688
58
4500

query I rowsort
SELECT - ( + 94 ) + + + col0 AS col1 FROM tab2 WHERE NOT ( - 64 - - col1 ) IS NULL
----
-19
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + + MIN( col2 ) col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3317
SELECT + + MIN ( col2 ) col0 FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT + col2 + + + col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + ( + 28 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
28

query II rowsort
SELECT DISTINCT + 29 AS col0, 73 FROM tab2
----
29
73

query I rowsort
SELECT - - 15 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - + col1 AND + + col1
----

query I rowsort
SELECT col2 * - col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT DISTINCT + + 68 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + + 68 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 44 ) IS NULL
----

query I rowsort
SELECT ALL 21 + - col0 - col0 * + 45 * ( - - col0 ) FROM tab1
----
-117075
-325189
-372715

query II rowsort
SELECT col1 * + + col1 AS col0, - col2 AS col0 FROM tab1
----
196
-96
2209
-68
25
-59

query I rowsort
SELECT - col2 - - 31 AS col1 FROM tab0
----
-16
-68
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3328
SELECT DISTINCT + col0 + col1 AS col2, CAST( NULL AS SIGNED ) + - col0 col0 FROM tab2
----
141
NULL
142
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3328
SELECT DISTINCT + col0 + col1 AS col2, CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab2
----
141
NULL
142
NULL
97
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 12 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 14 + + col1 IS NOT NULL OR ( + + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3331
SELECT COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT DISTINCT 39 * + col2 * + CAST( NULL AS SIGNED ) - - + 52 * col1 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3332
SELECT DISTINCT 39 * + col2 * + CAST ( NULL AS INTEGER ) - - + 52 * col1 col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT DISTINCT ( CAST( + col1 AS SIGNED ) ) / - - col1 col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 / + + 46 * 3 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3333
SELECT DISTINCT ( CAST ( + col1 AS INTEGER ) ) / - - col1 col0 FROM tab1 AS cor0 WHERE NOT col0 * col1 / + + 46 * 3 <= NULL
----

query I rowsort
SELECT + col1 / - col2 * 25 + + 89 + - - ( - 29 ) * - col0 * col0 + col2 FROM tab2 AS cor0 WHERE NULL <= col0 + - ( + col1 ) + - col1 * col2
----

query I rowsort
SELECT DISTINCT - col2 + + + 31 FROM tab0 AS cor0
----
-16
-68
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 / - - 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT ALL + 79 * + - 17 * + col0 - - col0 + + col2 * + 99 + - + 3 DIV - 85 * + col2 * + col0 * - ( + 42 ) FROM tab0
----
-115764
-120373
-15477

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL + 79 * + - 17 * + col0 - - col0 + + col2 * + 99 + - + 3 / - 85 * + col2 * + col0 * - ( + 42 ) FROM tab0
----
-115764
-120373
-15477

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT + COUNT( * ) - SUM( col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + COUNT ( * ) - SUM ( col0 ) FROM tab0
----
-196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 6 * + + col1 col0 FROM tab0 AS cor0
----
126
486
6

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 33 AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 <> 51
----

query I rowsort
SELECT DISTINCT - - col0 * + col1 * - 67 AS col2 FROM tab0 AS cor0
----
-122409
-6499
-81405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - CAST( - + COUNT( * ) AS SIGNED ) + + + 90 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - CAST ( - + COUNT ( * ) AS INTEGER ) + + + 90 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, col2 + - 72 + - 77 + + + 77 * + col2 * - 67, + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col1 + - ( - 27 ) )
----

query II rowsort
SELECT 73 AS col0, + 77 + - 30 FROM tab0 cor0
----
73
47
73
47
73
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * - + col0 - + col2 - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( 84 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * - + col0 - + col2 - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( 84 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + 71 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT + 71 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 95, 16 col2 FROM tab2
----
-95
16
-95
16
-95
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3351
SELECT DISTINCT + col2 AS col1, - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3351
SELECT DISTINCT + col2 AS col1, - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 81 AS col0, col0 col1 FROM tab2
----
-81
46
-81
64
-81
75

query I rowsort
SELECT ALL - 12 * - - 34 FROM tab1
----
-408
-408
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - COUNT( DISTINCT 22 ) * + - ( - - 89 ) AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-3354
SELECT - COUNT ( DISTINCT 22 ) * + - ( - - 89 ) AS col1 FROM tab1
----
89

query I rowsort
SELECT col0 + - + col2 - col0 * - - 37 FROM tab2 WHERE NOT + ( 99 ) + col1 IS NULL
----
-1679
-2344
-2758

query I rowsort
SELECT col0 * + col2 * + + col1 AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE NOT col0 + - col0 + + - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL col0 * + 69 * - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-179469
-498525
-571389

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL col0 * + 69 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-179469
-498525
-571389

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 - - 77 * col2 / + + 75 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 39 * - col1 * + col2 + - col1 + col2 AS col0 FROM tab2 WHERE NOT + col2 < + col0 * + + col2
----

query II rowsort
SELECT ALL - 86 AS col2, + col2 * 55 * + 9 FROM tab1 AS cor0
----
-86
29205
-86
33660
-86
47520

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 77 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 77 IS NOT NULL
----
-3

query I rowsort
SELECT - 50 * + 72 AS col1 FROM tab0 cor0
----
-3600
-3600
-3600

query I rowsort
SELECT ALL + 8 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 67 - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-118
-152
-158

query I rowsort
SELECT + col0 * + ( - col2 ) + - col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT - col2 <> - + 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT col0 FROM tab1 AS cor0 WHERE - 50 IN ( ( - CAST( NULL AS SIGNED ) ) + + - col2 + + + ( - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-3368
SELECT col0 FROM tab1 AS cor0 WHERE - 50 IN ( ( - CAST ( NULL AS INTEGER ) ) + + - col2 + + + ( - col0 ) )
----

query I rowsort
SELECT + col0 + 60 FROM tab2 cor0
----
106
124
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT 23 + - COUNT( * ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-3370
SELECT 23 + - COUNT ( * ) FROM tab1 cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3371
SELECT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) * - 85 IN ( + col2 + - ( + + 30 ), - col2, + - 46 * - - col2 + 46 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-3371
SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) * - 85 IN ( + col2 + - ( + + 30 ), - col2, + - 46 * - - col2 + 46 + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col2 - - 28 * - 2 AS col2, + 85 col2 FROM tab0 WHERE NULL IS NULL
----
-156
85
-2265
85
-9857
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE - col0 * + col1 + + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3373
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE - col0 * + col1 + + + col1 IS NULL
----
0

query I rowsort
SELECT ALL - 90 + col0 + - 57 * ( + 9 ) FROM tab0
----
-506
-516
-588

query I rowsort
SELECT ALL col1 * - - 29 * 83 FROM tab2
----
122757
161269
185339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * + - col1 col0 FROM tab1
----
-1410
-150
-420

query I rowsort
SELECT ALL + col0 * - ( + - 62 ) - + + 67 AS col2 FROM tab1 AS cor0
----
3095
5203
5575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT MAX( DISTINCT - 16 ) - - COUNT( * ) DIV SUM( + + col1 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3378
SELECT MAX ( DISTINCT - 16 ) - - COUNT ( * ) / SUM ( + + col1 ) FROM tab2 AS cor0
----
-16

query I rowsort
SELECT 81 - - col1 AS col0 FROM tab2 AS cor0
----
132
148
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT SUM( + + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3380
SELECT SUM ( + + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE - ( + + 64 ) + + col2 IN ( - ( + col1 ) - - + col2 + + + col1, + 20 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + COUNT( * ) * 10 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-3383
SELECT + COUNT ( * ) * 10 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-3384
SELECT DISTINCT + ( - 9 ) DIV col2 + + col0 col0, col0 + + 25 AS col0 FROM tab0 AS cor0
----
15
40
87
112
97
122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3384
SELECT DISTINCT + ( - 9 ) / col2 + + col0 col0, col0 + + 25 AS col0 FROM tab0 AS cor0
----
15
40
87
112
97
122

query I rowsort
SELECT ALL + 70 * - + col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) < NULL
----

query I rowsort
SELECT DISTINCT - col0 * 98 AS col0 FROM tab2
----
-4508
-6272
-7350

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ( 25 ) DIV + + col2 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3387
SELECT ( 25 ) / + + col2 AS col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT MIN( col1 ) * - - 29 + - 20 FROM tab2
----
1459

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT MIN ( col1 ) * - - 29 + - 20 FROM tab2
----
1459

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT 68 DIV 36 * - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3389
SELECT 68 / 36 * - col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NULL <> - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 50 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = - + 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 86 ) AS col2 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT - ( + 5 ) - - + col0 AS col2 FROM tab0 AS cor0
----
10
82
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + 32 col0 FROM tab0 AS cor0
----
-15
-67
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT - 74 + + + ( - CAST( NULL AS SIGNED ) ) + - + col0 * 56 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - 74 + + + ( - CAST ( NULL AS INTEGER ) ) + - + col0 * 56 FROM tab2
----
NULL

query I rowsort
SELECT 59 + col0 * + - col1 AS col0 FROM tab0
----
-1156
-1768
-38

query I rowsort
SELECT col1 + + 1 AS col2 FROM tab0
----
2
22
82

query I rowsort
SELECT DISTINCT + col2 * + 64 - col0 * - col1 AS col0 FROM tab1
----
4201
6858
8629

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL - COUNT( ALL col2 ) - - 66 AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - COUNT ( ALL col2 ) - - 66 AS col2 FROM tab0
----
63

query I rowsort
SELECT 31 + - col0 FROM tab1
----
-20
-54
-60

query II rowsort
SELECT DISTINCT + 42 * - col2 AS col2, + 41 AS col0 FROM tab0
----
-1974
41
-4158
41
-420
41

query II rowsort
SELECT + 40 + - col2, col1 FROM tab1
----
-19
5
-28
47
-56
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * + + 73 - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT - 46 DIV + + COUNT( * ) AS col2 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3405
SELECT - 46 / + + COUNT ( * ) AS col2 FROM tab2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL + COUNT( ALL - + 42 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + COUNT ( ALL - + 42 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT + COUNT( * ) AS col2, COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3407
SELECT + COUNT ( * ) AS col2, COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3408
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3408
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT MIN( - col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3409
SELECT MIN ( - col0 ) AS col2 FROM tab0 cor0
----
-97

query II rowsort
SELECT + + 92 AS col0, - 56 + col0 FROM tab1 AS cor0
----
92
-5
92
29
92
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT ALL - - CAST( - 41 AS SIGNED ) FROM tab1 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - - CAST ( - 41 AS INTEGER ) FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + ( + 1 ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3413
SELECT + + CAST( NULL AS SIGNED ), + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3413
SELECT + + CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - col1 * + 19 AND + 23 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT - CAST( NULL AS SIGNED ) * + col2 + - 33 + - - 54 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT - CAST ( NULL AS INTEGER ) * + col2 + - 33 + - - 54 * - col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + - + col2 * + - ( + col2 ) AS col1, - 84 + - - 34 FROM tab1
----
3486
-50
4671
-50
9230
-50

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - col0 + - col2 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3418
SELECT ALL col1 DIV + col2 AS col0, - col2 + - + ( - 57 ) AS col0 FROM tab0
----
0
-42
1
10
2
47

skipif mysql # not compatible
query II rowsort label-3418
SELECT ALL col1 / + col2 AS col0, - col2 + - + ( - 57 ) AS col0 FROM tab0
----
0
-42
1
10
2
47

query I rowsort
SELECT DISTINCT + 47 * 89 FROM tab1
----
4183

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col0 + 84 BETWEEN + col1 AND 56 / + - col2 + + 35 )
----

query I rowsort
SELECT ALL - - col0 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT + 93 AS col2 FROM tab2 WHERE 5 IS NOT NULL
----
93
93
93

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - 6 + 78 FROM tab2 AS cor0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT 16 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + SUM( DISTINCT 15 ) AS col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + SUM ( DISTINCT 15 ) AS col1 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL + 97 + + col0 - + col0 * col0 * + 82 * - col1 AS col1 FROM tab1 AS cor0
----
2962432
2986096
31915162

query I rowsort
SELECT DISTINCT col1 + ( - col1 ) FROM tab1
----
0

query I rowsort
SELECT ALL col2 + - col2 * + 3 AS col2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT - col1 * + col0 - - + 54 FROM tab1
----
-371
-4223
-660

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query II rowsort
SELECT - 94 AS col2, + 32 AS col2 FROM tab1
----
-94
32
-94
32
-94
32

query II rowsort
SELECT - + col1, + ( + - col1 ) FROM tab2 cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3434
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + col2 - + + col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-3434
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + col2 - + + col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT DISTINCT COUNT( * ) col2, - 98 col0 FROM tab2 AS cor0
----
3
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3435
SELECT DISTINCT COUNT ( * ) col2, - 98 col0 FROM tab2 AS cor0
----
3
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL - - COUNT( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL - - COUNT ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 69 * - 92 > NULL
----

query II rowsort
SELECT ALL - col1, col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT + COUNT( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT + COUNT ( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 col0 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT 21 AS col1 FROM tab1 AS cor0 WHERE NOT + 62 > - - 30
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT NULL NOT IN ( + 65 )
----

query I rowsort
SELECT ALL col1 + 78 FROM tab0
----
159
79
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT DISTINCT col1 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT col1 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 13 + - - 82 * + + col1 + - 8 AS col0 FROM tab2 WHERE NOT col0 * 77 < NULL
----

query I rowsort
SELECT col2 * - 35 * - 54 FROM tab2
----
109620
43470
75600

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT + col0 DIV - - ( + - 46 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT + col0 / - - ( + - 46 ) FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT + 20 AS col0 FROM tab0 WHERE NULL IN ( + + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 20 AS col0 FROM tab0 WHERE NULL IN ( + + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL + ( ( + 45 ) ) FROM tab0
----
45
45
45

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT - col1 + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT - col1 + - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT DISTINCT 51 AS col2, COUNT( * ) AS col2 FROM tab2
----
51
3

skipif mysql # not compatible
query II rowsort label-3452
SELECT DISTINCT 51 AS col2, COUNT ( * ) AS col2 FROM tab2
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT + - MIN( - 90 ) AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT + - MIN ( - 90 ) AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL + col0 + 40 FROM tab2 AS cor0
----
104
115
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL + SUM( DISTINCT col1 ) FROM tab1 WHERE NULL > ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab1 WHERE NULL > ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3457
SELECT * FROM tab1 WHERE + CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3457
SELECT * FROM tab1 WHERE + CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3458
SELECT + col0 - - CAST( NULL AS SIGNED ) + - + col2 + - col2 AS col0, col0 col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3458
SELECT + col0 - - CAST ( NULL AS INTEGER ) + - + col2 + - col2 AS col0, col0 col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT - col1 + + - 37, col1 FROM tab2 AS cor0
----
-104
67
-114
77
-88
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT DISTINCT col1 + - 16 DIV - col1 * + + col1 col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3460
SELECT DISTINCT col1 + - 16 / - col1 * + + col1 col0 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 50 / - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT 33 DIV + 61 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT 33 / + 61 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT DISTINCT + AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3464
SELECT - CAST( NULL AS SIGNED ) AS col1, + col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3464
SELECT - CAST ( NULL AS INTEGER ) AS col1, + col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3465
SELECT ALL + 46 * - - COUNT( * ) DIV - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + 46 * - - COUNT ( * ) / - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL + SUM( ALL + 28 ) FROM tab1 WHERE NOT - + col2 * + + col1 + 72 + - 99 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + SUM ( ALL + 28 ) FROM tab1 WHERE NOT - + col2 * + + col1 + 72 + - 99 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL - CAST( + 89 AS SIGNED ) AS col1 FROM tab2 cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL - CAST ( + 89 AS INTEGER ) AS col1 FROM tab2 cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT - COUNT( * ) * + 22 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3468
SELECT - COUNT ( * ) * + 22 AS col2 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT ALL + - ( - ( col1 ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT + col0 * - CAST( - col0 AS SIGNED ) FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3470
SELECT + col0 * - CAST ( - col0 AS INTEGER ) FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3471
SELECT - 90, - AVG ( CAST( NULL AS DECIMAL ) ) / - 49 * + + COUNT( * ) AS col2 FROM tab1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-3471
SELECT - 90, - AVG ( CAST ( NULL AS REAL ) ) / - 49 * + + COUNT ( * ) AS col2 FROM tab1
----
-90
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 78 + + col0 > ( + col2 ) + - - col1
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3474
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3474
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT COUNT( - col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT COUNT ( - col2 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT ALL - 15, ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-3476
SELECT ALL - 15, ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-15
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 52 FROM tab1 AS cor0
----
51
52
85
52
91
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT + + SUM( ALL - 52 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + + SUM ( ALL - 52 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT col2 * - - col0 + - 59 + + - col2 * + 14 FROM tab2 AS cor0
----
1941
3479
677

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3480
SELECT + col2 + - col1, CAST( - ( - - 36 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
21
-36
54
-36
82
-36

skipif mysql # not compatible
query II rowsort label-3480
SELECT + col2 + - col1, CAST ( - ( - - 36 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
21
-36
54
-36
82
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT - 97 + + - COUNT( ALL - col1 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 97 + + - COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT + - col2 + + col2 + + 9 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT - col0 + + col0 / + col2 / 12 + + col1 - 74 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3485
SELECT col2 * + - 87 + + - 18 DIV col0 - - 95 + + CAST( col2 AS SIGNED ) - col1 FROM tab2
----
-1934
-3422
-4960

skipif mysql # not compatible
query I rowsort label-3485
SELECT col2 * + - 87 + + - 18 / col0 - - 95 + + CAST ( col2 AS INTEGER ) - col1 FROM tab2
----
-1934
-3422
-4960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT DISTINCT + 52 + + + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3486
SELECT DISTINCT + 52 + + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT - col1 * + col2 * + col1 FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL - - 67 * - - MIN( DISTINCT - 34 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - - 67 * - - MIN ( DISTINCT - 34 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE col2 = NULL
----

query I rowsort
SELECT ALL - 72 * col2 + + + col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
-67

query I rowsort
SELECT DISTINCT col1 - + - col2 + - 8 AS col1 FROM tab2
----
109
117
66

query I rowsort
SELECT DISTINCT - - 18 * col2 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT COUNT( * ) * + 81 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3494
SELECT COUNT ( * ) * + 81 FROM tab1 AS cor0
----
243

query I rowsort
SELECT - 92 * - 66 FROM tab1 AS cor0
----
6072
6072
6072

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3496
SELECT + CAST( NULL AS DECIMAL ) * MIN( + col1 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + CAST ( NULL AS REAL ) * MIN ( + col1 ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - MAX( DISTINCT col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT - MAX ( DISTINCT col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT - + col2 FROM tab0 WHERE NOT ( + - col1 ) = - col0 * - - col1 + CAST( NULL AS SIGNED ) - - col2
----

skipif mysql # not compatible
query I rowsort label-3498
SELECT - + col2 FROM tab0 WHERE NOT ( + - col1 ) = - col0 * - - col1 + CAST ( NULL AS INTEGER ) - - col2
----

query I rowsort
SELECT ( + 15 ) AS col2 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT ALL - col0 DIV - + 13 FROM tab1 AS cor0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - col0 / - + 13 FROM tab1 AS cor0
----
3
6
7

query I rowsort
SELECT DISTINCT + col2 * - ( - 56 ) FROM tab0 AS cor0 WHERE NOT NULL >= + 66 - + 18 + ( - - col1 ) * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT 33 / + + col0 IN ( - + col2 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 87 * + col1 * + ( - col1 ) * + col0 + + col2 AS col1 FROM tab1
----
17488721
184934
869748

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT MIN( ALL - - ( + col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT MIN ( ALL - - ( + col2 ) ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT 73 + + + col0 AS col2 FROM tab2
----
119
137
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT COUNT( * ) + 33 AS col0 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3506
SELECT COUNT ( * ) + 33 AS col0 FROM tab1
----
36

query I rowsort
SELECT - 83 + - 46 * - col1 - - - 40 AS col0 FROM tab2
----
2223
2959
3419

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL 36 * + - COUNT( DISTINCT - ( - + 82 ) ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL 36 * + - COUNT ( DISTINCT - ( - + 82 ) ) FROM tab2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 WHERE NOT + 74 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 WHERE NOT + 74 IS NOT NULL
----
0

query I rowsort
SELECT col2 + - 34 * + col1 AS col2 FROM tab2
----
-1711
-2220
-2578

query I rowsort
SELECT DISTINCT col2 + + - 98 FROM tab2 cor0
----
-40
-58
-75

query I rowsort
SELECT DISTINCT col1 + 62 FROM tab0
----
143
63
83

query I rowsort
SELECT DISTINCT - - col1 * - + 27 FROM tab2 AS cor0
----
-1377
-1809
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT MAX( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-3514
SELECT MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3515
SELECT ALL + + ( COUNT( * ) ) AS col1, - ( 14 ) + - SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3515
SELECT ALL + + ( COUNT ( * ) ) AS col1, - ( 14 ) + - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT - 61 * + - col0 FROM tab2 cor0
----
2806
3904
4575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT CAST( + col1 AS SIGNED ) * + col2 * + 29 AS col1 FROM tab1 AS cor0
----
38976
8555
92684

skipif mysql # not compatible
query I rowsort label-3517
SELECT CAST ( + col1 AS INTEGER ) * + col2 * + 29 AS col1 FROM tab1 AS cor0
----
38976
8555
92684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - - col2 ) col0, - col2 * - - col1 AS col2 FROM tab1 AS cor0
----
-59
-295
-68
-3196
-96
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT + MAX( 34 ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT + MAX ( 34 ) AS col1 FROM tab1
----
34

query I rowsort
SELECT col1 * + 18 * + col0 AS col0 FROM tab2
----
42228
88704
90450

onlyif mysql # aggregate syntax: 
query II rowsort label-3521
SELECT MAX( DISTINCT 51 ) * 10 * + + 45, MAX( col2 ) + ( - + COUNT( * ) ) col2 FROM tab0
----
22950
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3521
SELECT MAX ( DISTINCT 51 ) * 10 * + + 45, MAX ( col2 ) + ( - + COUNT ( * ) ) col2 FROM tab0
----
22950
96

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( + + ( + + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 <= 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT + COUNT( * ) * + - 71 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT + COUNT ( * ) * + - 71 FROM tab2
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab2
----
9
9
9

query I rowsort
SELECT DISTINCT col1 * 8 FROM tab2
----
408
536
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3528
SELECT COUNT( * ) * MAX( col1 ) col0, - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
231
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3528
SELECT COUNT ( * ) * MAX ( col1 ) col0, - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
231
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT ALL + COUNT( * ) AS col0, + 12 AS col2 FROM tab1 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL + COUNT ( * ) AS col0, + 12 AS col2 FROM tab1 AS cor0
----
3
12

query II rowsort
SELECT col1, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL + SUM( DISTINCT + - col1 ) * - 3 AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + SUM ( DISTINCT + - col1 ) * - 3 AS col0 FROM tab1
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + + col2 + + col1 col2 FROM tab1 AS cor0
----
-8
38
43

query I rowsort
SELECT 14 * - + col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + + 25 + - - col2 * col1 AS col1 FROM tab0 AS cor0
----
124
235
3832

query I rowsort
SELECT - + col2 * - col0 + - - 18 + col0 + + col2 FROM tab1 cor0
----
5061
5177
6365

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1, col0 * 67 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( + - col0, col0, + col2 )
----

query I rowsort
SELECT 17 * + - col2 * + 89 + + col0 * + 87 AS col1 FROM tab2 AS cor0
----
-30797
-54952
-81229

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT DISTINCT + + MIN( DISTINCT col2 ) col2, - ( 97 ) FROM tab2 AS cor0
----
23
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3539
SELECT DISTINCT + + MIN ( DISTINCT col2 ) col2, - ( 97 ) FROM tab2 AS cor0
----
23
-97

query II rowsort
SELECT DISTINCT - + col2 + - - 63, - 86 AS col2 FROM tab1 AS cor0
----
-33
-86
-5
-86
4
-86

query I rowsort
SELECT + col2 + + col2 * - + col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT DISTINCT + ( - 94 ) AS col1 FROM tab1
----
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3544
SELECT DISTINCT + 74 - - 86 + - CAST( NULL AS DECIMAL ) * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT + 74 - - 86 + - CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 11 ) col1 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT COUNT( DISTINCT col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3546
SELECT COUNT ( DISTINCT col1 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3547
SELECT + col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT 66 - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3548
SELECT 66 - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
63

query II rowsort
SELECT ALL col2 AS col2, - col1 * col2 FROM tab1 AS cor0
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
10
47
99

query II rowsort
SELECT col1, - 36 FROM tab1 AS cor0
----
14
-36
47
-36
5
-36

query II rowsort
SELECT + - 88 AS col2, col0 FROM tab0 cor0
----
-88
15
-88
87
-88
97

query I rowsort
SELECT DISTINCT ( + - 47 ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT - - 97 * - CAST( NULL AS SIGNED ) + col0 * 91 + + 59 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT - - 97 * - CAST ( NULL AS INTEGER ) + col0 * 91 + + 59 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - 43 / + - MAX( - - 86 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - 43 / + - MAX ( - - 86 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3556
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col0 + - CAST( NULL AS SIGNED ) + + col0 + + 51
----

skipif mysql # not compatible
query III rowsort label-3556
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col0 + - CAST ( NULL AS INTEGER ) + + col0 + + 51
----

query I rowsort
SELECT DISTINCT 37 * col1 * + - col0 FROM tab2
----
-182336
-185925
-86802

query II rowsort
SELECT DISTINCT + col1 * + - col0 AS col0, + col0 AS col1 FROM tab2
----
-2346
46
-4928
64
-5025
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT DISTINCT 70 * - - 10 * col1 DIV + col1 AS col0 FROM tab1
----
700

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT 70 * - - 10 * col1 / + col1 AS col0 FROM tab1
----
700

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT ALL ( col2 ) DIV + col1 AS col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL ( col2 ) / + col1 AS col1 FROM tab0
----
0
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3561
SELECT ALL + CAST( NULL AS SIGNED ) * col1 col0, 55 FROM tab1
----
NULL
55
NULL
55
NULL
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3561
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 col0, 55 FROM tab1
----
NULL
55
NULL
55
NULL
55

query I rowsort
SELECT DISTINCT - ( - 8 ) AS col2 FROM tab0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT + 3 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT + 3 / - - col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - col2 col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT col1 + 58 FROM tab0
----
139
59
79

query I rowsort
SELECT col0 * + - 56 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 67 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-3567
SELECT 67 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
201

query I rowsort
SELECT ALL - ( + 26 ) FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE + col2 * + col0 IS NULL
----

query II rowsort
SELECT DISTINCT 19 AS col2, col1 * - 10 AS col0 FROM tab1 AS cor0
----
19
-140
19
-470
19
-50

query I rowsort
SELECT 43 + - AVG ( ALL - + col1 ) AS col2 FROM tab2 cor0 WHERE NULL = ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT ALL - + col2 + - ( + 54 ) DIV + 48 AS col0 FROM tab2 cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - + col2 + - ( + 54 ) / + 48 AS col0 FROM tab2 cor0
----
-24
-41
-59

query II rowsort
SELECT 87, 10 AS col1 FROM tab0 cor0
----
87
10
87
10
87
10

query I rowsort
SELECT + 6 - - - col1 FROM tab2 AS cor0
----
-45
-61
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3575
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT ALL + 38 DIV + col1 + + 73 FROM tab0
----
111
73
74

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + 38 / + col1 + + 73 FROM tab0
----
111
73
74

query I rowsort
SELECT + col0 * - ( col0 ) * - - 52 + - - 40 + - + col2 AS col0 FROM tab1
----
-135308
-375719
-430640

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col0, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT DISTINCT + 44 + - - 81 - - - col0 * - - col0 DIV + + col0 + - ( + + 94 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-56
-66
16

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + 44 + - - 81 - - - col0 * - - col0 / + + col0 + - ( + + 94 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-56
-66
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - 75 * + COUNT( * ) AS col0 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-3581
SELECT - 75 * + COUNT ( * ) AS col0 FROM tab0
----
-225

query I rowsort
SELECT + 42 * col0 * 73 FROM tab0
----
266742
297402
45990

query I rowsort
SELECT - ( + - col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - + COUNT( * ) * 33 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3584
SELECT - + COUNT ( * ) * 33 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT SUM( DISTINCT 40 ) AS col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3585
SELECT SUM ( DISTINCT 40 ) AS col1 FROM tab0 AS cor0
----
40

query I rowsort
SELECT + col1 * - 85 FROM tab1 AS cor0
----
-1190
-3995
-425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT + COUNT( - - col0 ) / - CAST( NULL AS SIGNED ) / - + 53 + + - 45 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT + COUNT ( - - col0 ) / - CAST ( NULL AS INTEGER ) / - + 53 + + - 45 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 67 * - - col2 AS col2 FROM tab2 AS cor0
----
1541
2680
3886

query I rowsort
SELECT ALL - col2 * + col0 * + + col1 AS col2 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + ( - col0 ) col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL ( - + 4 ) FROM tab0
----
-4
-4
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND + 48 * + - 22 * + col0 - + - col1
----

query II rowsort
SELECT - 6 AS col1, - col0 FROM tab2 AS cor0
----
-6
-46
-6
-64
-6
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT - MIN( + col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT - MIN ( + col1 ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - 76 + 52 AS col2 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT + + COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + + COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 + - col0 + - + 28 <> - - 90 * + 53 + - col2
----

query II rowsort
SELECT - - 86 + - col1 AS col2, col1 AS col1 FROM tab1 AS cor0
----
39
47
72
14
81
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + 21 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3600
SELECT + 21 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
18

query II rowsort
SELECT - + 62 + + col0 AS col0, - 86 * + col2 FROM tab2 cor0
----
-16
-1978
13
-4988
2
-3440

query I rowsort
SELECT ALL - 51 FROM tab1 AS cor0 WHERE + col2 IN ( + 30 )
----

query I rowsort
SELECT ALL + 23 * 11 FROM tab1 AS cor0
----
253
253
253

query I rowsort
SELECT DISTINCT - + col0 + + - col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3605
SELECT - MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
47

query III rowsort
SELECT * FROM tab2 WHERE - - 54 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) >= - 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT 87 * - SUM( + + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT 87 * - SUM ( + + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 - 79 AS col0 FROM tab0
----
-32
-69
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT + 64 * + + COUNT( * ) - MAX( - col0 ) * COUNT( * ) * - - 92 AS col1 FROM tab0
----
4332

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 64 * + + COUNT ( * ) - MAX ( - col0 ) * COUNT ( * ) * - - 92 AS col1 FROM tab0
----
4332

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 * - + col0 + + col2 * - col1 > - 37
----

query II rowsort
SELECT col1, + col2 * - - col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + 57 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3615
SELECT * FROM tab0 WHERE NOT + 31 * + CAST( - col1 AS SIGNED ) < ( 72 * col2 )
----

skipif mysql # not compatible
query III rowsort label-3615
SELECT * FROM tab0 WHERE NOT + 31 * + CAST ( - col1 AS INTEGER ) < ( 72 * col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( 21 ) * + col1 - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT + MIN( + 53 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + MIN ( + 53 ) FROM tab0
----
53

query I rowsort
SELECT ALL col0 + 45 FROM tab0
----
132
142
60

query I rowsort
SELECT DISTINCT + col2 * col0 - col2 FROM tab2
----
1035
2520
4292

query I rowsort
SELECT - ( - 29 ) AS col2 FROM tab2 WHERE ( NULL ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + COUNT( 38 ) + - 49 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-3621
SELECT + COUNT ( 38 ) + - 49 FROM tab0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3622
SELECT + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE + 64 IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0 WHERE + 64 IN ( col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( - 33 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 91 + ( - col2 ) AS col2 FROM tab0
----
-101
-138
-190

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( 19 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + 99 NOT BETWEEN + col0 - - col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3627
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + 99 NOT BETWEEN + col0 - - col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + + col1 col0 FROM tab2
----
149
165
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL + COUNT( 75 ) FROM tab1 WHERE NOT col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + COUNT ( 75 ) FROM tab1 WHERE NOT col0 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT - ( - 5 ) + + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - ( - 5 ) + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
8

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 57 - + 94 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT col1 DIV - col0 + col1 DIV col2 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3633
SELECT col1 / - col0 + col1 / col2 AS col0 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT col2 DIV - 98 + 59 AS col2 FROM tab0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-3634
SELECT col2 / - 98 + 59 AS col2 FROM tab0
----
58
59
59

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE 83 NOT IN ( - 86 + - col0 )
----
14
47
5

query I rowsort
SELECT ALL + col1 + 84 * - 59 FROM tab1 cor0
----
-4909
-4942
-4951

query I rowsort
SELECT 82 * col1 + ( + col1 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----

query I rowsort
SELECT 78 + col1 FROM tab1 AS cor0
----
125
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN NULL AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN NULL AND ( col2 )
----
0

query I rowsort
SELECT ALL - col2 + 54 FROM tab2
----
-4
14
31

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col0 + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 82 / col0 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT - 63 * CAST( AVG ( + col2 ) AS SIGNED ) AS col2 FROM tab2
----
-2520

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 63 * CAST ( AVG ( + col2 ) AS INTEGER ) AS col2 FROM tab2
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( DISTINCT - col1 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - col1 ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND col0 * ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL - col0 + 57 FROM tab2 AS cor0
----
-18
-7
11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 21 - ( - col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3649
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 81 + - col0 * - col2 BETWEEN col2 / + 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + COUNT( * ) + 91 col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3651
SELECT + COUNT ( * ) + 91 col1 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT - 72 * 94 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-6677
-6683
-6717

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - COUNT( * ) + + 81 AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3653
SELECT - COUNT ( * ) + + 81 AS col0 FROM tab0 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT + CAST( NULL AS SIGNED ) + - col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT DISTINCT col2 + 2 DIV 70 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT col2 + 2 / 70 AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3656
SELECT ALL * FROM tab1 WHERE ( + 91 + col1 ) NOT BETWEEN - 8 AND - CAST( NULL AS DECIMAL ) + col1
----

skipif mysql # not compatible
query III rowsort label-3656
SELECT ALL * FROM tab1 WHERE ( + 91 + col1 ) NOT BETWEEN - 8 AND - CAST ( NULL AS REAL ) + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + col0 FROM tab1 WHERE NULL IS NULL
----
102
170
182

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + col0 FROM tab1 WHERE NULL IS NULL
----
102
170
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3658
SELECT DISTINCT 35 DIV - MIN( + ( + col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT 35 / - MIN ( + ( + col2 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE ( + 37 ) BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3660
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3660
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT + 0 * + ( COUNT( * ) ) FROM tab1 WHERE NOT NULL <= - 67
----
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + 0 * + ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL <= - 67
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 8, col1 col0 FROM tab1
----
-8
14
-8
47
-8
5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 54 ) < ( col1 )
----

query I rowsort
SELECT ALL - col0 * col2 * - 9 AS col2 FROM tab2
----
23040
39150
9522

query I rowsort
SELECT + 2 - col2 * + col2 FROM tab0 WHERE NOT NULL <> 67
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + 88 AND NULL
----

query II rowsort
SELECT DISTINCT - col1, - col1 AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query II rowsort
SELECT col1, + col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT - 97 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-97
14
-97
47
-97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT 70 * + SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
4620

skipif mysql # not compatible
query I rowsort label-3670
SELECT 70 * + SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
4620

query I rowsort
SELECT col0 + - - col1 AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT + + col0 DIV 69 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3672
SELECT + + col0 / 69 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - COUNT( * ) + COUNT( * ) * + 35 * COUNT( * ) FROM tab1 AS cor0
----
312

skipif mysql # not compatible
query I rowsort label-3673
SELECT - COUNT ( * ) + COUNT ( * ) * + 35 * COUNT ( * ) FROM tab1 AS cor0
----
312

query I rowsort
SELECT DISTINCT col2 + col1 + + col2 + 57 AS col0 FROM tab0 AS cor0
----
232
256
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3675
SELECT + ( col1 ) / - - 57 + + ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT + ( col1 ) / - - 57 + + ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3677
SELECT + col0 AS col0 FROM tab0 WHERE - col0 + - col1 = - 10 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3677
SELECT + col0 AS col0 FROM tab0 WHERE - col0 + - col1 = - 10 * + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - 23 * - col0 * - - 86 * - col2 FROM tab2
----
-202547200
-48132652
-499049400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT - 18 / COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT - 18 / COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT + COUNT( - 61 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + COUNT ( - 61 ) FROM tab2 cor0
----
3

query I rowsort
SELECT + col1 * col2 * - 60 FROM tab1 cor0
----
-17700
-191760
-80640

query I rowsort
SELECT - + 92 FROM tab2 cor0
----
-92
-92
-92

query II rowsort
SELECT + col0 - - col1, + col2 FROM tab2 AS cor0
----
141
40
142
58
97
23

query I rowsort
SELECT + col0 * + 15 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL 60 + + + COUNT( ALL - col1 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL 60 + + + COUNT ( ALL - col1 ) FROM tab2
----
63

query I rowsort
SELECT DISTINCT - col0 * + col1 + - 96 AS col1 FROM tab1
----
-4373
-521
-810

query I rowsort
SELECT col2 + - col1 + + col0 AS col1 FROM tab1
----
112
133
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT + col0 + + col0 FROM tab2 WHERE ( NULL ) IN ( CAST( 73 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3689
SELECT + col0 + + col0 FROM tab2 WHERE ( NULL ) IN ( CAST ( 73 AS INTEGER ) )
----

query I rowsort
SELECT + 39 + + col2 AS col1 FROM tab1 AS cor0
----
107
135
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - COUNT( * ) * - + 52 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-3691
SELECT - COUNT ( * ) * - + 52 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
156

query I rowsort
SELECT + col0 + + + 15 FROM tab1 AS cor0
----
100
106
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL CAST( - ( + AVG ( ALL + - 90 ) ) AS SIGNED ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL CAST ( - ( + AVG ( ALL + - 90 ) ) AS INTEGER ) FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT - MAX( DISTINCT + + col1 ) AS col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3694
SELECT - MAX ( DISTINCT + + col1 ) AS col2 FROM tab1 cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + - col2 <= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL - MAX( ALL + + col0 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3696
SELECT ALL - MAX ( ALL + + col0 ) col1 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT + col0 DIV + - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3697
SELECT + col0 / + - col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 90 = 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 4 * col1 FROM tab2
----
204
268
308

query I rowsort
SELECT DISTINCT col0 * + 41 FROM tab0
----
3567
3977
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3702
SELECT DISTINCT - CAST( MAX( col1 ) AS SIGNED ) DIV COUNT( col2 ) col2 FROM tab2
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3702
SELECT DISTINCT - CAST ( MAX ( col1 ) AS INTEGER ) / COUNT ( col2 ) col2 FROM tab2
----
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 22 * - 30 - col0 AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN - col1 AND ( 35 ) * + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + 54 + 27 - + col2 + - col1 * col0 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col0, - col1 + - col2 FROM tab1
----
14
-110
47
-115
5
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3707
SELECT COUNT( * ), MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3707
SELECT COUNT ( * ), MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
3
NULL

query II rowsort
SELECT - col2, + col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT - ( + 90 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - ( + 90 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
270

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN 11 + - 31 AND - col0
----

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT COUNT( * ) - - MAX( ALL - + 76 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-3714
SELECT COUNT ( * ) - - MAX ( ALL - + 76 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

query I rowsort
SELECT col2 + 96 FROM tab2 WHERE NOT NULL IS NOT NULL
----
119
136
154

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE 84 NOT BETWEEN - 31 AND NULL
----

query I rowsort
SELECT DISTINCT + - 40 AS col1 FROM tab1 AS cor0
----
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 23 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT COUNT( * ) + - - ( 71 ) FROM tab1 cor0
----
74

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT COUNT ( * ) + - - ( 71 ) FROM tab1 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + MAX( DISTINCT - 26 ) AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-3720
SELECT + MAX ( DISTINCT - 26 ) AS col2 FROM tab0
----
-26

query I rowsort
SELECT ALL - col2 + 35 * + + 54 AS col2 FROM tab0
----
1791
1843
1880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT 84 * + 70 * + col2 FROM tab0
----
276360
582120
58800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + - col0 col1 FROM tab0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query II rowsort label-3725
SELECT 32 + - 62 DIV + col0 AS col0, col1 FROM tab1
----
31
14
32
47
32
5

skipif mysql # not compatible
query II rowsort label-3725
SELECT 32 + - 62 / + col0 AS col0, col1 FROM tab1
----
31
14
32
47
32
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT DISTINCT - + col2 DIV col1 * - col2 FROM tab0 AS cor0
----
0
9801

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT - + col2 / col1 * - col2 FROM tab0 AS cor0
----
0
9801

query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 + + 38 - 90 * + col2 * col1 + - 97 - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT ALL - 53 DIV + 90 + 74 + + - 66 + + col1 * col2 + - - 59 * + col0 FROM tab2 AS cor0
----
3895
6864
8319

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL - 53 / + 90 + 74 + + - 66 + + col1 * col2 + - - 59 * + col0 FROM tab2 AS cor0
----
3895
6864
8319

query I rowsort
SELECT ALL + ( + 51 ) AS col2 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
55

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL >= - ( + - 89 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NOT ( NULL ) NOT BETWEEN NULL AND 38
----

query I rowsort
SELECT DISTINCT + 51 / - col2 AS col0 FROM tab0 WHERE + - col0 + - col1 IS NULL
----

query I rowsort
SELECT ALL + 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT ALL - ( - col1 ) DIV - col0 * + 5 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - ( - col1 ) / - col0 * + 5 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - - 44 FROM tab0 cor0
----
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT + CAST( NULL AS SIGNED ) * - - col2 - 89 * col0 - - 99 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT + CAST ( NULL AS INTEGER ) * - - col2 - 89 * col0 - - 99 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NULL OR NOT - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * + col2 * - - col2 AS col2 FROM tab2 WHERE NOT NULL = ( + col2 )
----

query I rowsort
SELECT ALL ( col1 ) * + - 44 AS col2 FROM tab1
----
-2068
-220
-616

query III rowsort
SELECT * FROM tab1 WHERE NOT 81 * 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3743
SELECT COUNT( * ) DIV + + 12 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT COUNT ( * ) / + + 12 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL 34 + + COUNT( * ) FROM tab2 WHERE - + col1 IS NOT NULL
----
37

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL 34 + + COUNT ( * ) FROM tab2 WHERE - + col1 IS NOT NULL
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3745
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IN ( col1 * 11 )
----

skipif mysql # not compatible
query III rowsort label-3745
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IN ( col1 * 11 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + 52 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 + - col1 < + col1
----

query I rowsort
SELECT ALL 80 * col0 FROM tab2 AS cor0
----
3680
5120
6000

query II rowsort
SELECT col0 AS col2, 86 * col1 FROM tab0
----
15
6966
87
1806
97
86

query I rowsort
SELECT DISTINCT + 39 FROM tab0 WHERE NOT + 35 * col1 = + 6
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL MAX( - ( + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL MAX ( - ( + col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - ( + + 85 ) FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT DISTINCT + col0 * 45 + + + col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + col0 * 45 + + + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - + 20 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3757
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + CAST( - col1 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-3757
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + CAST ( - col1 AS INTEGER ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3758
SELECT + COUNT( ALL + - CAST( NULL AS SIGNED ) ) FROM tab0, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0, tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + ( 80 ) AS col0, col0 + - col1 - - col0 col2, + + col1 AS col2 FROM tab2
----
9 values hashing to 358e17b82b464cd79cb01435722057d8

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 WHERE NOT - - 70 < ( 15 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - ( + MIN( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3762
SELECT - ( + MIN ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3763
SELECT + - col0 - - + col1 AS col2, + col1 + + col2 + - col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
9 values hashing to 6f25b2833fd95395b29adacac3c9edd6

skipif mysql # not compatible
query III rowsort label-3763
SELECT + - col0 - - + col1 AS col2, + col1 + + col2 + - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
9 values hashing to 6f25b2833fd95395b29adacac3c9edd6

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT col2 - - 66 + col2 + + col0 DIV + + 48 FROM tab1 AS cor0
----
185
203
259

skipif mysql # not compatible
query I rowsort label-3764
SELECT col2 - - 66 + col2 + + col0 / + + 48 FROM tab1 AS cor0
----
185
203
259

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT DISTINCT col2 + + 49 - + 69 * + col0 + col0 AS col0, 14 + - + col2 AS col2 FROM tab0 AS cor0
----
-5857
4
-6448
-85
-924
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + COUNT( * ) - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + COUNT ( * ) - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col2 * + 47 AS col1 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT ALL - - col2 + + 49 FROM tab2 WHERE - col1 * + col1 * ( - col1 ) = - col2
----

query II rowsort
SELECT DISTINCT + + 8, col2 FROM tab2 AS cor0
----
8
23
8
40
8
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 9 AS col0, - col2 col1 FROM tab2 AS cor0
----
9
-23
9
-40
9
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - 76 AS col1 FROM tab0 AS cor0
----
-10
-76
-47
-76
-99
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 + + col0 / col2 - col2 NOT IN ( + col0, col0, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL + COUNT( 43 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + COUNT ( 43 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3776
SELECT * FROM tab2 WHERE NOT + ( + 4 ) + + CAST( NULL AS SIGNED ) * 61 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3776
SELECT * FROM tab2 WHERE NOT + ( + 4 ) + + CAST ( NULL AS INTEGER ) * 61 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 72 * col1 FROM tab0
----
1512
5832
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3778
SELECT + CAST( NULL AS SIGNED ) * + - col2 col0, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3778
SELECT + CAST ( NULL AS INTEGER ) * + - col2 col0, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3779
SELECT - SUM( col2 ) + + - MAX( ALL col0 ) AS col2, COUNT( + ( - ( - col0 ) ) ) col2 FROM tab0 AS cor0
----
-253
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3779
SELECT - SUM ( col2 ) + + - MAX ( ALL col0 ) AS col2, COUNT ( + ( - ( - col0 ) ) ) col2 FROM tab0 AS cor0
----
-253
3

query I rowsort
SELECT DISTINCT + 4 * - 92 FROM tab1
----
-368

onlyif mysql # DIV for integer division: 
query I rowsort label-3781
SELECT col2 DIV + + 45 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3781
SELECT col2 / + + 45 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3782
SELECT - col0 AS col0, 83 * + CAST( NULL AS SIGNED ) + + + col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-3782
SELECT - col0 AS col0, 83 * + CAST ( NULL AS INTEGER ) + + + col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT - col1 * - 39 FROM tab2 cor0
----
1989
2613
3003

query I rowsort
SELECT DISTINCT + - 21 * 88 * + + 31 * + col0 + - 71 * 85 + col1 + 62 * + col0 + 18 + + 82 FROM tab1 AS cor0 WHERE + col2 + + col1 + 35 * - 32 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3785
SELECT - - ( ( col1 ) ) * col1 DIV - 86 AS col0, - 76 * + col0 AS col0 FROM tab2 AS cor0
----
-30
-3496
-52
-5700
-68
-4864

skipif mysql # not compatible
query II rowsort label-3785
SELECT - - ( ( col1 ) ) * col1 / - 86 AS col0, - 76 * + col0 AS col0 FROM tab2 AS cor0
----
-30
-3496
-52
-5700
-68
-4864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT ALL - CAST( - 6 AS SIGNED ) + + SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - CAST ( - 6 AS INTEGER ) + + SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL - MAX( ALL 51 ) AS col2 FROM tab0 WHERE ( NULL ) >= col0 AND NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL - MAX ( ALL 51 ) AS col2 FROM tab0 WHERE ( NULL ) >= col0 AND NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 3 - + col1 AS col1 FROM tab2
----
-54
-70
-80

query I rowsort
SELECT ( + + 94 ) + - + col1 FROM tab2
----
17
27
43

query I rowsort
SELECT + 77 + - + col1 FROM tab0
----
-4
56
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT col1 DIV + 15 + + + 89 - - 94 AS col0 FROM tab1
----
183
183
186

skipif mysql # not compatible
query I rowsort label-3791
SELECT col1 / + 15 + + + 89 - - 94 AS col0 FROM tab1
----
183
183
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + 26 * + SUM( ALL + col0 ) AS col1 FROM tab0
----
5174

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + 26 * + SUM ( ALL + col0 ) AS col1 FROM tab0
----
5174

query I rowsort
SELECT - col2 + + col0 + + + 37 FROM tab2
----
54
60
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 NOT BETWEEN 96 AND col1 * col2 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 89 * + col1 - - 99 AS col0 FROM tab2 AS cor0
----
-4440
-5864
-6754

query II rowsort
SELECT ALL col1, col0 * + - col2 AS col0 FROM tab1 cor0
----
14
-4896
47
-6188
5
-5015

query II rowsort
SELECT + col2, col0 * - col0 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT DISTINCT + + col2 DIV - col2 + ( - 11 ) FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT + + col2 / - col2 + ( - 11 ) FROM tab2 cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 55
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 40 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3801
SELECT + CAST( + col1 AS SIGNED ), - 82 AS col1 FROM tab0 cor0
----
1
-82
21
-82
81
-82

skipif mysql # not compatible
query II rowsort label-3801
SELECT + CAST ( + col1 AS INTEGER ), - 82 AS col1 FROM tab0 cor0
----
1
-82
21
-82
81
-82

query I rowsort
SELECT ( + col2 ) * - + ( - + 21 ) FROM tab2 cor0
----
1218
483
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 AS cor0 WHERE NOT 98 * + - 69 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT - col0 DIV col2 DIV - + 9 * + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3804
SELECT - col0 / col2 / - + 9 * + col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT MIN( DISTINCT + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT MIN ( DISTINCT + + col2 ) FROM tab1
----
59

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 65 <> - - col1 + + col2 + - col0 / + col0 * col0 + - col2
----

query I rowsort
SELECT DISTINCT ( - + 22 ) FROM tab2
----
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / + - ( - col1 ) NOT IN ( - ( + col0 ), col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT COUNT( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3810
SELECT COUNT ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT - + CAST( 56 AS SIGNED ) FROM tab2 cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-3811
SELECT - + CAST ( 56 AS INTEGER ) FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT - 73 + col1 AS col0 FROM tab0 AS cor0
----
-52
-72
8

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE col2 * - + ( col2 ) / - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT ALL + 77 * + CAST( + col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
4543
5236
7392

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3814
SELECT ALL + 77 * + CAST ( + col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
4543
5236
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + COUNT( * ) + + 31 + 76 AS col0 FROM tab1 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-3815
SELECT + COUNT ( * ) + + 31 + 76 AS col0 FROM tab1 AS cor0
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT - + col2 + + - col0 + + col1 * + col0 * + ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT - + col2 + + - col0 + + col1 * + col0 * + ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 87 + 78 AS col2 FROM tab1 AS cor0
----
224
233
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL + COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - col0, 20 * + col2 col1 FROM tab1 AS cor0
----
0
1180
0
1360
0
1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 3 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT ALL col2 DIV + - 89 + 11 + + col1 * - col1 * - col0 AS col1 FROM tab0
----
107
38378
98426

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL col2 / + - 89 + 11 + + col1 * - col1 * - col0 AS col1 FROM tab0
----
107
38378
98426

query I rowsort
SELECT DISTINCT + 60 - - - 14 FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT MAX( - - 95 ) + + SUM( ALL + 67 ) AS col2 FROM tab2
----
296

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT MAX ( - - 95 ) + + SUM ( ALL + 67 ) AS col2 FROM tab2
----
296

query I rowsort
SELECT ALL AVG ( ALL col2 ) FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL 40 * - ( COUNT( * ) ) * - COUNT( * ) FROM tab1
----
360

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL 40 * - ( COUNT ( * ) ) * - COUNT ( * ) FROM tab1
----
360

query I rowsort
SELECT ALL + col1 * - col0 - + 93 + - + col1 AS col0 FROM tab1
----
-4417
-523
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + + COUNT( * ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT + + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 43 - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1216
-3123
-3929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 58 * - - col1 - + col0 col1 FROM tab0 AS cor0
----
-106053
-5723
-70485

query I rowsort
SELECT DISTINCT + 23 + + 26 FROM tab1 AS cor0
----
49

query I rowsort
SELECT - 8 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
2
39
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL + + COUNT( * ) * 24 + - ( - 8 ) + 73 + + 33 * + 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1188

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL + + COUNT ( * ) * 24 + - ( - 8 ) + 73 + + 33 * + 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1188

query III rowsort
SELECT ALL * FROM tab1 WHERE + 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - COUNT( * ) * 73 AS col0 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3836
SELECT - COUNT ( * ) * 73 AS col0 FROM tab2 AS cor0
----
-219

query I rowsort
SELECT 91 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT CAST( 54 AS SIGNED ) FROM tab1 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-3839
SELECT CAST ( 54 AS INTEGER ) FROM tab1 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT DISTINCT + + col2 DIV - 45 + - col2 AS col1 FROM tab2 cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT + + col2 / - 45 + - col2 AS col1 FROM tab2 cor0
----
-23
-40
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 81 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT col1 DIV + + col2 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3842
SELECT col1 / + + col2 AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - - 18 * - col1 * - + 18 + col0 FROM tab2 AS cor0
----
16570
21783
25012

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 74 IN ( - - col1 * - + col0, col0 )
----

query I rowsort
SELECT ( + 79 ) * - col1 AS col2 FROM tab0
----
-1659
-6399
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * + + 60 + - 90 col0 FROM tab0 AS cor0
----
1830

query I rowsort
SELECT + - col1 + - 70 * + col0 FROM tab1 AS cor0
----
-3584
-5955
-6417

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT - 5 + - 7 + + - col0 DIV 52 - - - col2 AS col2 FROM tab1
----
-108
-72
-81

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 5 + - 7 + + - col0 / 52 - - - col2 AS col2 FROM tab1
----
-108
-72
-81

query I rowsort
SELECT 55 + 94 * + 11 AS col2 FROM tab1
----
1089
1089
1089

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 67, - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT + ( COUNT( + 1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3851
SELECT + ( COUNT ( + 1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL - ( + MIN( 90 ) ) AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL - ( + MIN ( 90 ) ) AS col1 FROM tab0 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 58 col0 FROM tab0 AS cor0
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3854
SELECT DISTINCT 23 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT 23 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * - 87 AS col1 FROM tab2
----
-4002
-5568
-6525

query I rowsort
SELECT ALL col0 * 28 FROM tab2 AS cor0
----
1288
1792
2100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 col0 FROM tab2 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + + MIN( DISTINCT - 75 ) AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3858
SELECT + + MIN ( DISTINCT - 75 ) AS col0 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 27 AS col2 FROM tab0 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 53 * - ( + - 57 ), + col2 col1 FROM tab1 AS cor0
----
3021
59
3021
68
3021
96

query I rowsort
SELECT - - 71 AS col1 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL - 33 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL - 33 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 + - col1, col2 col2 FROM tab1
----
-42
68
-9
96
0
59

query I rowsort
SELECT DISTINCT col1 * + ( + - col2 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + col0 * + - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + ( - + col2 ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL + 71 * + 84 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - + ( - 43 ) AND NULL
----

query I rowsort
SELECT col1 + - 49 + + - 48 FROM tab2 WHERE NOT + - col2 + - col0 IS NULL
----
-20
-30
-46

query I rowsort
SELECT + col2 * - + ( col2 ) FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab0 WHERE col1 / - col0 BETWEEN ( col0 + - - col1 ) AND - 59
----

query I rowsort
SELECT col2 * + col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 70 * 39 col2 FROM tab1 AS cor0
----
2781
2815
2821

query II rowsort
SELECT 9, + col1 FROM tab1 AS cor0
----
9
14
9
47
9
5

query I rowsort
SELECT ALL - 76 + + + col2 AS col0 FROM tab2
----
-18
-36
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3877
SELECT ALL - 38 * + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - 38 * + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
-38

query I rowsort
SELECT + col1 * - - 2 + + col2 + - ( + 0 ) AS col0 FROM tab1 AS cor0
----
124
162
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT DISTINCT - ( - + CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - ( - + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + - col2 col1 FROM tab1
----
118
136
192

query I rowsort
SELECT col0 * + col2 - col1 FROM tab1
----
4882
5010
6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT CAST( + col2 AS SIGNED ) * - + 92 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3882
SELECT CAST ( + col2 AS INTEGER ) * - + 92 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT + ( - - col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL + COUNT( ALL + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + COUNT ( ALL + - col2 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 4 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + SUM( - 68 ) FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3887
SELECT + SUM ( - 68 ) FROM tab1 AS cor0
----
-204

query I rowsort
SELECT + col0 * - 95 AS col0 FROM tab2
----
-4370
-6080
-7125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT - ( + SUM( ALL + 11 ) ) DIV + - 60 * + MIN( ALL + col1 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT - ( + SUM ( ALL + 11 ) ) / + - 60 * + MIN ( ALL + col1 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 < 82
----
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col2 <> NULL
----

query I rowsort
SELECT ALL 5 + + - col1 AS col0 FROM tab0 AS cor0
----
-16
-76
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT DISTINCT - col2 DIV col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT - col2 / col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3894
SELECT DISTINCT col2 * - col1 + + CAST( NULL AS DECIMAL ) * + 63 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT col2 * - col1 + + CAST ( NULL AS REAL ) * + 63 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 0 * + col2 * - col0 col2, + col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT + COUNT( * ) * ( + - 63 ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-3896
SELECT + COUNT ( * ) * ( + - 63 ) FROM tab0
----
-189

query I rowsort
SELECT ALL col1 * col2 + - col0 AS col2 FROM tab1
----
1293
210
3105

query I rowsort
SELECT + col0 + - 36 AS col1 FROM tab0
----
-21
51
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * 41 <> NULL
----

query I rowsort
SELECT - 84 * ( + col2 ) FROM tab0
----
-3948
-8316
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT ALL + col2 DIV + + col2 - + - col0 AS col2 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + col2 / + + col2 - + - col0 AS col2 FROM tab1
----
52
86
92

query I rowsort
SELECT DISTINCT 78 * col0 - + 81 FROM tab1
----
3897
6549
7017

query I rowsort
SELECT + + 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + col2 + + - 21 FROM tab0 AS cor0
----
-11
26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + COUNT( * ) + + MAX( ALL 57 ) AS col0 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3905
SELECT + COUNT ( * ) + + MAX ( ALL 57 ) AS col0 FROM tab1 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT ALL - CAST( 82 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - CAST ( 82 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ( + ( + 18 ) ) FROM tab0
----
18
18
18

query II rowsort
SELECT + col0 * + col0 AS col0, 12 FROM tab2
----
2116
12
4096
12
5625
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3909
SELECT + COUNT( * ) DIV - 89 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3909
SELECT + COUNT ( * ) / - 89 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3910
SELECT - MAX( ALL + col0 ), 79 AS col1 FROM tab2
----
-75
79

skipif mysql # not compatible
query II rowsort label-3910
SELECT - MAX ( ALL + col0 ), 79 AS col1 FROM tab2
----
-75
79

query I rowsort
SELECT - 40 AS col2 FROM tab2
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3912
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 59 * - col2 NOT BETWEEN ( + - CAST( NULL AS SIGNED ) ) + + 37 * ( + col1 ) AND col0 - - - 71
----

skipif mysql # not compatible
query III rowsort label-3912
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 59 * - col2 NOT BETWEEN ( + - CAST ( NULL AS INTEGER ) ) + + 37 * ( + col1 ) AND col0 - - - 71
----

query I rowsort
SELECT ALL + - col1 * - + 6 + + col1 AS col0 FROM tab0 cor0 WHERE NOT col2 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL + MIN( - + col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + MIN ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT + CAST( + AVG ( ALL + + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3916
SELECT + CAST ( + AVG ( ALL + + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - MAX( DISTINCT 25 ) + - + COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3917
SELECT - MAX ( DISTINCT 25 ) + - + COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - + col1 + - 45 FROM tab0 AS cor0
----
-126
-46
-66

query I rowsort
SELECT ALL + col1 + 68 AS col0 FROM tab2 cor0
----
119
135
145

query I rowsort
SELECT - 92 + + + col2 + ( - - col2 ) FROM tab2 AS cor0
----
-12
-46
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3921
SELECT + - CAST( NULL AS SIGNED ) + + + col2 / + col2 col0, col1 + ( - 84 ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
-4233
NULL
-5561
NULL
-6391

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3921
SELECT + - CAST ( NULL AS INTEGER ) + + + col2 / + col2 col0, col1 + ( - 84 ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
-4233
NULL
-5561
NULL
-6391

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT ALL + + MAX( + 19 ) + - COUNT( * ) col0, - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
16
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3922
SELECT ALL + + MAX ( + 19 ) + - COUNT ( * ) col0, - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
16
3

query I rowsort
SELECT - + 64 + + 11 AS col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL - col0 * col1 + + 31 FROM tab0 WHERE - - col0 IS NOT NULL
----
-1184
-1796
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 20 col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + SUM( - 51 ) FROM tab1 WHERE NOT col2 = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + SUM ( - 51 ) FROM tab1 WHERE NOT col2 = col2
----
NULL

query I rowsort
SELECT + col2 * + 52 * + col2 AS col1 FROM tab1
----
181012
240448
479232

query I rowsort
SELECT 69 * 84 FROM tab2
----
5796
5796
5796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT col2 * - CAST( col0 AS SIGNED ) + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1012
-2496
-4275

skipif mysql # not compatible
query I rowsort label-3929
SELECT col2 * - CAST ( col0 AS INTEGER ) + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL - COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT DISTINCT - CAST( + 56 AS SIGNED ) * 97 + - + COUNT( ALL ( - - col2 ) ) + + 60 AS col0 FROM tab2 AS cor0
----
-5375

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - CAST ( + 56 AS INTEGER ) * 97 + - + COUNT ( ALL ( - - col2 ) ) + + 60 AS col0 FROM tab2 AS cor0
----
-5375

query I rowsort
SELECT DISTINCT + + col0 + col2 - + + col1 FROM tab2 AS cor0
----
18
27
66

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + col1 * - ( + col2 ) + - - 94 + - col1 * - col2 - - col1
----

query I rowsort
SELECT DISTINCT + 43 * + + 24 AS col2 FROM tab0 AS cor0
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + COUNT( * ) * + - MAX( ALL + col0 ) * 50 AS col2 FROM tab2 AS cor0
----
-11250

skipif mysql # not compatible
query I rowsort label-3935
SELECT + COUNT ( * ) * + - MAX ( ALL + col0 ) * 50 AS col2 FROM tab2 AS cor0
----
-11250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3936
SELECT - - col1 * + + 61 + + col0, + col1 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
3157
NULL
4162
NULL
4761
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3936
SELECT - - col1 * + + 61 + + col0, + col1 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
3157
NULL
4162
NULL
4761
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT - 20 * + - COUNT( * ) FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - 20 * + - COUNT ( * ) FROM tab1 cor0
----
60

query I rowsort
SELECT DISTINCT 36 + - col2 FROM tab2 WHERE 2 IS NOT NULL
----
-22
-4
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3939
SELECT ALL 93 DIV - - COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL 93 / - - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT CAST( NULL AS SIGNED ) / AVG ( DISTINCT - - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT CAST ( NULL AS INTEGER ) / AVG ( DISTINCT - - col2 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - SUM( DISTINCT - 49 ) AS col0 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-3941
SELECT - SUM ( DISTINCT - 49 ) AS col0 FROM tab1
----
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col0 / + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - - col0 + - + 4 + + - ( col2 ) + - col1 * col1 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT COUNT( ALL 5 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT COUNT ( ALL 5 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + + col1, + 42, - - col2, - + col2 + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL + SUM( DISTINCT CAST( + + col0 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3946
SELECT ALL + SUM ( DISTINCT CAST ( + + col0 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 27 <= - ( + 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 * + col1 + + - col1 FROM tab0 cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT COUNT( * ) + - + MIN( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT COUNT ( * ) + - + MIN ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL - 7 + - col2 + - col0 * + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-33189
-8717
-950803

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT + - COUNT( * ) * - - MAX( col1 ) FROM tab2 AS cor0 WHERE 80 IS NOT NULL
----
-231

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT + - COUNT ( * ) * - - MAX ( col1 ) FROM tab2 AS cor0 WHERE 80 IS NOT NULL
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT + 15 DIV - - col0 * 23 + + col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3952
SELECT + 15 / - - col0 * 23 + + col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT + col0 * + - ( - col2 ) * col1 + ( - CAST( 29 AS SIGNED ) ) AS col2 FROM tab2
----
197091
291421
53929

skipif mysql # not compatible
query I rowsort label-3953
SELECT + col0 * + - ( - col2 ) * col1 + ( - CAST ( 29 AS INTEGER ) ) AS col2 FROM tab2
----
197091
291421
53929

query I rowsort
SELECT - col0 + + + 17 FROM tab0
----
-70
-80
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT ( + col1 ) DIV + col1 + + - 76 FROM tab0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-3955
SELECT ( + col1 ) / + col1 + + - 76 FROM tab0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( ALL 57 ) * 38 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( ALL 57 ) * 38 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 - + + 14 FROM tab0
----
-4
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT 90 + - MIN( - col1 ) col0 FROM tab0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3958
SELECT 90 + - MIN ( - col1 ) col0 FROM tab0
----
171

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - col2, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 / - - col2 + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 5 ) + + col2 * col0 col1 FROM tab0 AS cor0
----
700
865
9598

query I rowsort
SELECT - + 75 AS col2 FROM tab1 cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT 47 + ( col0 ) + - - 42 AS col2 FROM tab2
----
135
153
164

query I rowsort
SELECT + col2 - col0 * + + ( + 57 ) * - + col0 - col2 - + + col0 FROM tab1
----
148206
411740
471926

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = + - 13 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT - MIN( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT - MIN ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - - 53 * + - 71 FROM tab1 AS cor0
----
-3763
-3763
-3763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT + - COUNT( - + 56 ) * + CAST( NULL AS SIGNED ) * - 13 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3968
SELECT + - COUNT ( - + 56 ) * + CAST ( NULL AS INTEGER ) * - 13 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * - - col2 AS col0 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col0, - col2 + col2 + - + col2 * - col2 + + 0 AS col0 FROM tab0
----
-10
100
-47
2209
-99
9801

query II rowsort
SELECT - col2 AS col2, + 25 FROM tab0
----
-10
25
-47
25
-99
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3973
SELECT col2, col1 DIV col0 AS col2 FROM tab0
----
10
0
47
5
99
0

skipif mysql # not compatible
query II rowsort label-3973
SELECT col2, col1 / col0 AS col2 FROM tab0
----
10
0
47
5
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL MIN( ALL - ( + + col2 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL MIN ( ALL - ( + + col2 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + - col0 * 73 AS col0 FROM tab0 WHERE NOT - - 55 >= - col1 + - 49 * - 61
----
-1095
-6351
-7081

query I rowsort
SELECT DISTINCT - 26 * + ( col1 ) AS col1 FROM tab0
----
-2106
-26
-546

query II rowsort
SELECT + col1, + col2 * col0 AS col2 FROM tab0 AS cor0
----
1
9603
21
870
81
705

query I rowsort
SELECT ALL col1 + + - 48 AS col1 FROM tab1 AS cor0
----
-1
-34
-43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN - 78 AND NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 44 + + ( + 87 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT SUM( ALL + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3981
SELECT SUM ( ALL + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
59

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - ( - col2 ) + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + + col0 + - 68 AS col1 FROM tab0 AS cor0
----
-53
19
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + - - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + + 34 + COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + + 34 + COUNT ( * ) FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3988
SELECT + 40 * + col2 + - CAST( NULL AS SIGNED ) + - 39 AS col0, col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3988
SELECT + 40 * + col2 + - CAST ( NULL AS INTEGER ) + - 39 AS col0, col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT COUNT( ALL - col1 ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3990
SELECT COUNT ( ALL - col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - col1 + - + col2 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3992
SELECT * FROM tab2 WHERE NULL < - ( - + col0 ) / + col0 + + CAST( NULL AS SIGNED ) + 32 / + 65 + + 10 * - - 14 / - 11
----

skipif mysql # not compatible
query III rowsort label-3992
SELECT * FROM tab2 WHERE NULL < - ( - + col0 ) / + col0 + + CAST ( NULL AS INTEGER ) + 32 / + 65 + + 10 * - - 14 / - 11
----

query III rowsort
SELECT * FROM tab0 WHERE + + col2 NOT BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 29 * - - 88 + ( - + col2 ) AS col2 FROM tab1
----
-2611
-2620
-2648

query I rowsort
SELECT + col0 FROM tab0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL - col0 + - - col1 + col0 * + - col2 FROM tab1
----
-4933
-5095
-6232

query I rowsort
SELECT ( 10 ) * - - col2 * 74 AS col1 FROM tab1
----
43660
50320
71040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT + ( CAST( NULL AS SIGNED ) ) * - col0 * + col0 * + + ( col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT + ( CAST ( NULL AS INTEGER ) ) * - col0 * + col0 * + + ( col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 36 NOT BETWEEN NULL AND + 19
----

query I rowsort
SELECT DISTINCT + ( + 99 ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + - MAX( - + 18 ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4001
SELECT + - MAX ( - + 18 ) AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT - CAST( NULL AS SIGNED ) * - 8 * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT - CAST ( NULL AS INTEGER ) * - 8 * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * 62 - col2 * col0 + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-157
-821
317

query II rowsort
SELECT ALL col1 AS col0, - 94 FROM tab1 AS cor0
----
14
-94
47
-94
5
-94

query I rowsort
SELECT + 99 * - 57 + - 6 FROM tab0 AS cor0
----
-5649
-5649
-5649

query I rowsort
SELECT DISTINCT 61 * col1 AS col1 FROM tab2
----
3111
4087
4697

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT DISTINCT ( - - col1 ) DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT ( - - col1 ) / - col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 * - + 29 * - 61 AS col1 FROM tab0
----
-175131
-17690
-83143

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT COUNT( DISTINCT col2 ) * MIN( + + col2 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4009
SELECT COUNT ( DISTINCT col2 ) * MIN ( + + col2 ) FROM tab0
----
30

query I rowsort
SELECT + col2 * - + ( - - col1 ) AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4011
SELECT - - SUM( 72 ) AS col2, ( - COUNT( * ) ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
216
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4011
SELECT - - SUM ( 72 ) AS col2, ( - COUNT ( * ) ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
216
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND - + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT - SUM( ALL - col1 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4013
SELECT - SUM ( ALL - col1 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
198

query I rowsort
SELECT DISTINCT + ( 80 ) FROM tab0 AS cor0
----
80

query I rowsort
SELECT ALL + col1 + 14 FROM tab1 AS cor0
----
19
28
61

query I rowsort
SELECT + col2 + - + 66 FROM tab0
----
-19
-56
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT 78 AS col0, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78
9

skipif mysql # not compatible
query II rowsort label-4017
SELECT 78 AS col0, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78
9

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - col1 * + + 94 * - - col0 - + col2 / - ( - col1 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4019
SELECT CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4019
SELECT CAST ( NULL AS REAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT col2 NOT IN ( + + 89, + col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT DISTINCT + col1 * + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT + col1 * + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + 49 FROM tab2 cor0
----
-9
26
9

query I rowsort
SELECT ALL + + 69 + col2 FROM tab2 AS cor0
----
109
127
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT COUNT( * ) + + + 76 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-4024
SELECT COUNT ( * ) + + + 76 FROM tab1
----
79

query I rowsort
SELECT + 87 + + 3 AS col0 FROM tab2
----
90
90
90

query I rowsort
SELECT DISTINCT col1 + 5 - - col1 FROM tab0
----
167
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL + ( 45 ) + - - COUNT( * ) * COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + ( 45 ) + - - COUNT ( * ) * COUNT ( * ) FROM tab0
----
54

query I rowsort
SELECT - col1 + 60 FROM tab2
----
-17
-7
9

query I rowsort
SELECT col2 + + - 79 FROM tab2
----
-21
-39
-56

query II rowsort
SELECT - col2 + - - col0, col0 FROM tab0
----
-2
97
-32
15
77
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT DISTINCT + col0 + 84 DIV col0 + + 98 + - 10 AS col0 FROM tab2
----
135
153
164

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT + col0 + 84 / col0 + + 98 + - 10 AS col0 FROM tab2
----
135
153
164

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT ALL COUNT( * ) AS col1, 17 FROM tab0
----
3
17

skipif mysql # not compatible
query II rowsort label-4032
SELECT ALL COUNT ( * ) AS col1, 17 FROM tab0
----
3
17

query I rowsort
SELECT DISTINCT + 12 - + - ( + col2 ) * + col1 FROM tab0 AS cor0
----
111
222
3819

query II rowsort
SELECT DISTINCT + col2 AS col2, 13 - - 77 AS col1 FROM tab0 AS cor0
----
10
90
47
90
99
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NOT + col2 / - col2 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 83 AS col2 FROM tab0 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ( - + ( 36 ) ) * - col1 AS col0 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT DISTINCT + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - - col1 * + 78 BETWEEN - - col1 + - col0 + + col1 * + col1 * ( - col1 ) AND col0 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 / + 79 * col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 / + 79 * col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - SUM( ALL - + 70 ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-4041
SELECT - SUM ( ALL - + 70 ) FROM tab2
----
210

query II rowsort
SELECT ALL col2, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT MAX( ALL CAST( - 21 AS SIGNED ) ) col1 FROM tab0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4043
SELECT MAX ( ALL CAST ( - 21 AS INTEGER ) ) col1 FROM tab0
----
-21

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4045
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT 12 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4045
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE NOT 12 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 37 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT - 29 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT - 29 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4048
SELECT - col1 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-4048
SELECT - col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query II rowsort
SELECT ALL - col2 AS col0, - 45 FROM tab1 AS cor0
----
-59
-45
-68
-45
-96
-45

query I rowsort
SELECT DISTINCT + 15 + col1 FROM tab2 AS cor0
----
66
82
92

query III rowsort
SELECT * FROM tab0 WHERE 99 BETWEEN col1 AND col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 50 ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT - 79 * COUNT( * ) FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-4054
SELECT - 79 * COUNT ( * ) FROM tab0
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab1 WHERE ( ( 53 ) ) NOT BETWEEN NULL AND + col0
----
-85

query I rowsort
SELECT 12 * + 90 FROM tab0
----
1080
1080
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - COUNT( * ) * 65 AS col2 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-4057
SELECT - COUNT ( * ) * 65 AS col2 FROM tab1
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) - 94 col1 FROM tab2
----
-140
-158
-169

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 17 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE 91 / 43 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + col2 * ( col0 ) AS col2 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4063
SELECT MIN( ALL 25 ) FROM tab0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-4063
SELECT MIN ( ALL 25 ) FROM tab0 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
25

query I rowsort
SELECT 17 * 55 FROM tab0
----
935
935
935

query I rowsort
SELECT 55 * col1 AS col2 FROM tab1
----
2585
275
770

query I rowsort
SELECT col0 * - 14 AS col2 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 AS col1 FROM tab2 WHERE NOT 19 IN ( 89 )
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - col2 * - col2 + + 10 FROM tab1
----
3491
4634
9226

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4069
SELECT DISTINCT * FROM tab0 WHERE NOT + 69 + - ( 94 ) * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4069
SELECT DISTINCT * FROM tab0 WHERE NOT + 69 + - ( 94 ) * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL SUM( DISTINCT col1 ) + - MAX( - 74 ) FROM tab0 WHERE NOT ( NULL ) = ( 7 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL SUM ( DISTINCT col1 ) + - MAX ( - 74 ) FROM tab0 WHERE NOT ( NULL ) = ( 7 + col1 )
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT MAX( DISTINCT 46 ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-4072
SELECT MAX ( DISTINCT 46 ) AS col2 FROM tab0
----
46

query I rowsort
SELECT ALL - col1 * - 54 FROM tab1
----
2538
270
756

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + col0 BETWEEN col2 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL 63 * - ( + COUNT( * ) ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL 63 * - ( + COUNT ( * ) ) FROM tab2
----
-189

query I rowsort
SELECT - col2 + 29 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT COUNT( * ) * 71 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT COUNT ( * ) * 71 FROM tab1
----
213

query I rowsort
SELECT - 40 AS col0 FROM tab0 WHERE ( + 70 * - col1 + 75 ) >= ( NULL )
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE - col1 - col2 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) BETWEEN - col1 AND col0 - - col2 * - col1
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT DISTINCT col2 DIV + ( col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT col2 / + ( col2 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL + 34 FROM tab1 WHERE ( + CAST( col0 AS SIGNED ) ) <> col1 - + col0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + 34 FROM tab1 WHERE ( + CAST ( col0 AS INTEGER ) ) <> col1 - + col0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT - col2 DIV + ( 69 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4085
SELECT - col2 / + ( 69 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT - 93 DIV + col1 FROM tab0
----
-1
-4
-93

skipif mysql # not compatible
query I rowsort label-4086
SELECT - 93 / + col1 FROM tab0
----
-1
-4
-93

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 = 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL COUNT( col1 ) * 70 AS col1 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL COUNT ( col1 ) * 70 AS col1 FROM tab0 AS cor0
----
210

query I rowsort
SELECT - 63 * - col2 FROM tab2 AS cor0
----
1449
2520
3654

query I rowsort
SELECT DISTINCT - col1 * - 80 FROM tab2 AS cor0
----
4080
5360
6160

query I rowsort
SELECT DISTINCT col1 * 37 AS col0 FROM tab0 cor0
----
2997
37
777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL MAX( - col1 ) * + 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-4092
SELECT ALL MAX ( - col1 ) * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - ( + 44 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NULL
----
-2068
-4356
-440

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + ( + ( MIN( DISTINCT + 91 ) ) ) AS col2 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4096
SELECT + ( + ( MIN ( DISTINCT + 91 ) ) ) AS col2 FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col2 FROM tab1 cor0 WHERE NOT + col0 / col0 < + 25
----

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab1 cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4100
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col1 + + 90 <> col1 * + col0
----

skipif mysql # not compatible
query III rowsort label-4100
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col1 + + 90 <> col1 * + col0
----

query I rowsort
SELECT ALL col1 * + ( col1 * + col2 ) FROM tab0 AS cor0
----
308367
4410
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 4 + - col1 <> NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND ( 95 + col2 / col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 27 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 + + 97 AS col0 FROM tab0
----
0
10
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT + 34 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT + 34 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 * + 95 AS col0 FROM tab2
----
111435
292600
369170

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > 33
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - 36 ) + col1 * col1 NOT BETWEEN NULL AND ( + col2 * - col0 )
----

query I rowsort
SELECT + ( col2 ) + col2 FROM tab1
----
118
136
192

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL COUNT( + col0 ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL COUNT ( + col0 ) * COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT col0 * col1 * + + col2 * - 56 FROM tab2
----
-11038720
-16321200
-3021648

query I rowsort
SELECT - ( + + col0 ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT ALL - CAST( NULL AS SIGNED ) + + 36 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - CAST ( NULL AS INTEGER ) + + 36 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 56 + + ( col1 ) AS col1 FROM tab2 WHERE NOT ( + 55 ) IS NULL
----
107
123
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL COUNT( ALL - ( ( 81 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL COUNT ( ALL - ( ( 81 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 27 <> + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN col0 AND - 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 49 * + - col1 FROM tab0 AS cor0
----
10290
186543
4851

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col2 ) <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT + SUM( + 41 ) AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN - col2 AND ( + col2 )
----
123

skipif mysql # not compatible
query I rowsort label-4126
SELECT + SUM ( + 41 ) AS col1 FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN - col2 AND ( + col2 )
----
123

query I rowsort
SELECT DISTINCT - 13 + - + col1 FROM tab1 AS cor0
----
-18
-27
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + COUNT( * ) + - 12 AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4128
SELECT + COUNT ( * ) + - 12 AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - 33 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 - + col2 IN ( col0 + + col1 )
----
1551
165
462

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL + MAX( + col0 ) + 43 * MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT + 3 + - 94 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + MAX ( + col0 ) + 43 * MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT + 3 + - 94 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( + 73 ) + + + 39 AS col1 FROM tab1
----
112
112
112

query II rowsort
SELECT + col2 + + col1, col1 * + col0 + col1 * col0 AS col0 FROM tab0
----
100
194
128
2430
31
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT CAST( - - col0 AS SIGNED ) * + col0 + - 50 + col2 * + ( col2 ) AS col1 FROM tab2
----
2595
5646
8939

skipif mysql # not compatible
query I rowsort label-4133
SELECT CAST ( - - col0 AS INTEGER ) * + col0 + - 50 + col2 * + ( col2 ) AS col1 FROM tab2
----
2595
5646
8939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4134
SELECT ALL + ( + + COUNT( * ) ) DIV + 63 + - - ( - 36 ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + ( + + COUNT ( * ) ) / + 63 + - - ( - 36 ) AS col2 FROM tab2
----
-36

query I rowsort
SELECT - col1 * + + ( 24 ) * + col2 + + 15 AS col1 FROM tab2
----
-28137
-73905
-93249

query I rowsort
SELECT 25 - - 43 FROM tab1 WHERE NOT + col2 <> + 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT DISTINCT col1 DIV - 93 AS col1 FROM tab1 WHERE - 32 NOT BETWEEN + - col0 DIV 61 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT col1 / - 93 AS col1 FROM tab1 WHERE - 32 NOT BETWEEN + - col0 / 61 AND NULL
----
0

query I rowsort
SELECT 50 * + col1 FROM tab1 WHERE NOT ( + col1 + + 50 + + ( col0 ) ) BETWEEN ( col1 * + col0 ) AND + 99
----
2350
250
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT DISTINCT - + CAST( + MIN( col2 ) AS SIGNED ) * 94 AS col2 FROM tab2 cor0
----
-2162

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - + CAST ( + MIN ( col2 ) AS INTEGER ) * 94 AS col2 FROM tab2 cor0
----
-2162

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT col2 IN ( + 63 * 0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL 3 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL 3 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 84 * - col0 + - - 96 FROM tab0 AS cor0
----
-1164
-7212
-8052

query I rowsort
SELECT - ( + col0 ) + - 9 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 92 * - ( - col2 ) AS col2 FROM tab1 cor0
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT + + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * + col0 col2 FROM tab1
----
-3723
-6205
-6643

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 39 IN ( - - 51 )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 11 ) NOT IN ( col0 )
----

query I rowsort
SELECT + 17 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 61
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT ALL + + col0 DIV - - col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + + col0 / - - col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT - - col2 + - CAST( - - col0 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-21
24
59

skipif mysql # not compatible
query I rowsort label-4154
SELECT - - col2 + - CAST ( - - col0 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-21
24
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL - COUNT( * ) + + CAST( + AVG ( 99 ) AS SIGNED ) + COUNT( * ) * - 35 AS col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL - COUNT ( * ) + + CAST ( + AVG ( 99 ) AS INTEGER ) + COUNT ( * ) * - 35 AS col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + - 36 * + COUNT( * ) * - + COUNT( * ) + + 49 AS col1 FROM tab2 AS cor0
----
373

skipif mysql # not compatible
query I rowsort label-4156
SELECT + - 36 * + COUNT ( * ) * - + COUNT ( * ) + + 49 AS col1 FROM tab2 AS cor0
----
373

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 49 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + + ( + - 1 ) AS col0 FROM tab2
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4159
SELECT * FROM tab0 WHERE + CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4159
SELECT * FROM tab0 WHERE + CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4160
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4161
SELECT DISTINCT COUNT( * ), ( + + COUNT( * ) ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4161
SELECT DISTINCT COUNT ( * ), ( + + COUNT ( * ) ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + 68 + - + COUNT( * ) col1 FROM tab1
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT ALL + 68 + - + COUNT ( * ) col1 FROM tab1
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( col2 ) AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 27 <> + col0
----

query III rowsort
SELECT * FROM tab2 WHERE - - col0 / - col1 * + col0 > NULL
----

query I rowsort
SELECT col2 - - + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT - 74 * - + 31 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT - 74 * - + 31 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( col2 + + 85 * + col1 ) NOT IN ( + col2 / - + 60 )
----
51
85
91

query I rowsort
SELECT DISTINCT + - 36 * + col2 * + - col2 AS col2 FROM tab2 AS cor0
----
121104
19044
57600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4170
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - CAST( + 79 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4170
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - CAST ( + 79 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT + col2 * - 26 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT + col2 * - 26 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 81 = col0 * + 8
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT - COUNT( * ) * + COUNT( * ) * + + AVG ( DISTINCT - - ( + - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT - COUNT ( * ) * + COUNT ( * ) * + + AVG ( DISTINCT - - ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4174
SELECT - MIN( col1 ) AS col2, - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4174
SELECT - MIN ( col1 ) AS col2, - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-1
NULL

query II rowsort
SELECT 92 * + col0 AS col1, 67 * - - col2 * + 31 FROM tab1 AS cor0
----
4692
199392
7820
122543
8372
141236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( + + CAST( col1 AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( + + CAST ( col1 AS INTEGER ) ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT + - 70 DIV - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4177
SELECT + - 70 / - col2 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col2 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT - 24 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4179
SELECT - 24 / - col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT + + ( + - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT 60 BETWEEN NULL AND - 22
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4180
SELECT + + ( + - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT 60 BETWEEN NULL AND - 22
----
1
21
81

query I rowsort
SELECT col0 * + 62 AS col1 FROM tab0
----
5394
6014
930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT 70 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT 70 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4183
SELECT ALL - CAST( + - col2 AS SIGNED ) * + + ( + col0 ) AS col1, - CAST( NULL AS SIGNED ) FROM tab1
----
4896
NULL
5015
NULL
6188
NULL

skipif mysql # not compatible
query II rowsort label-4183
SELECT ALL - CAST ( + - col2 AS INTEGER ) * + + ( + col0 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
4896
NULL
5015
NULL
6188
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4184
SELECT col2, - col1 DIV - 88 * - 69 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-4184
SELECT col2, - col1 / - 88 * - 69 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + COUNT( * ) * + - 99 AS col0 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + COUNT ( * ) * + - 99 AS col0 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT col1 * + + 41 FROM tab2 AS cor0 WHERE NOT ( + 65 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 74 AS col0 FROM tab1 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * - - col2 col0 FROM tab2
----
1720
2494
989

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - 56 * MAX( col2 ) FROM tab0
----
-5544

skipif mysql # not compatible
query I rowsort label-4189
SELECT - 56 * MAX ( col2 ) FROM tab0
----
-5544

onlyif mysql # DIV for integer division: 
query II rowsort label-4190
SELECT ALL + 91 DIV col0 - + 80 + col1, + 95 AS col1 FROM tab1 AS cor0
----
-32
95
-65
95
-74
95

skipif mysql # not compatible
query II rowsort label-4190
SELECT ALL + 91 / col0 - + 80 + col1, + 95 AS col1 FROM tab1 AS cor0
----
-32
95
-65
95
-74
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - SUM( ALL + 13 ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4191
SELECT - SUM ( ALL + 13 ) FROM tab1 AS cor0
----
-39

query I rowsort
SELECT + 14 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - - col1 + - 91, 74 * - col0 AS col0 FROM tab1 cor0
----
-44
-6734
-77
-3774
-86
-6290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT - - col1 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4194
SELECT DISTINCT - - col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT 32 + - COUNT( * ) AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-4196
SELECT 32 + - COUNT ( * ) AS col0 FROM tab0
----
29

query I rowsort
SELECT + 95 + + + 42 FROM tab2
----
137
137
137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4198
SELECT ALL CAST( NULL AS DECIMAL ) / - + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL CAST ( NULL AS REAL ) / - + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - + col0 AS col1 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT * FROM tab1 WHERE 57 IS NULL AND NOT NULL > col1
----

query I rowsort
SELECT col0 + 61 AS col1 FROM tab2
----
107
125
136

query I rowsort
SELECT ALL + + ( + col1 ) FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4203
SELECT ALL + COUNT( col0 ), + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col2
----
0
0

skipif mysql # not compatible
query II rowsort label-4203
SELECT ALL + COUNT ( col0 ), + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * - col2
----
0
0

query I rowsort
SELECT DISTINCT - col0 + + 32 - - - 51 + + - col1 - ( - col2 ) + + - ( - ( - - 8 ) ) * 91 AS col2 FROM tab1 AS cor0
----
639
678
740

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + + + col1 <> NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE + 16 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT + CAST( + + 78 AS SIGNED ) * col0 * + col1 FROM tab1 WHERE - 50 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4208
SELECT + CAST ( + + 78 AS INTEGER ) * col0 * + col1 FROM tab1 WHERE - 50 IS NULL
----

query I rowsort
SELECT - - 96 AS col0 FROM tab1 AS cor0 WHERE NOT 58 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - ( + col0 ) AS col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT - 99 DIV + col1 + + col2 AS col0 FROM tab1 AS cor0
----
40
66
89

skipif mysql # not compatible
query I rowsort label-4211
SELECT - 99 / + col1 + + col2 AS col0 FROM tab1 AS cor0
----
40
66
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT ALL + - COUNT( - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + - COUNT ( - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT + ( - - col1 ) IN ( col2 )
----
10
47
99

query I rowsort
SELECT + col1 * + 83 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + col2 + col1 + 91 * - + col0 * - 54 + col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT ( + + 91 ) FROM tab1
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT - + COUNT( * ) - - + COUNT( - 51 ) FROM tab2 WHERE NOT ( ( - 55 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - + COUNT ( * ) - - + COUNT ( - 51 ) FROM tab2 WHERE NOT ( ( - 55 IS NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4219
SELECT col0 * + 80, + col0 * 27 * + CAST( + 25 AS SIGNED ) AS col1 FROM tab1
----
4080
34425
6800
57375
7280
61425

skipif mysql # not compatible
query II rowsort label-4219
SELECT col0 * + 80, + col0 * 27 * + CAST ( + 25 AS INTEGER ) AS col1 FROM tab1
----
4080
34425
6800
57375
7280
61425

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) * + col1 * col0 + + 71 AS col1 FROM tab0
----
-13828492
-273304
-912602

query I rowsort
SELECT ALL 19 * + + col1 * - - 92 FROM tab2
----
117116
134596
89148

query I rowsort
SELECT DISTINCT col1 + - col1 * + ( 97 ) FROM tab0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT MIN( - col2 ) + 57 col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4223
SELECT MIN ( - col2 ) + 57 col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-42

query I rowsort
SELECT ALL 3 * + - 83 FROM tab0 cor0
----
-249
-249
-249

query II rowsort
SELECT DISTINCT - + col0, ( 43 ) + - + 47 AS col1 FROM tab1 AS cor0
----
-51
-4
-85
-4
-91
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2 / ( col1 ) - + - 64
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 81 + col2 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT col1 + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT col1 + - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT ALL - col1 DIV + - 59 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL - col1 / + - 59 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT MAX( + + col2 ) + - 43 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT MAX ( + + col2 ) + - 43 FROM tab0
----
56

query III rowsort
SELECT * FROM tab2 WHERE - 90 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + COUNT( + 38 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4232
SELECT + COUNT ( + 38 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - + col1 - + col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT + col2 - - + col2 + + col1 AS col0 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT DISTINCT ( - 99 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT - + 25 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-25

query II rowsort
SELECT + - 28 AS col2, 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f1a290ef558e67c7d784fe0c0e4f83a0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col1 AND col0
----

query I rowsort
SELECT + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - - MAX( - 50 ) AS col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4240
SELECT - - MAX ( - 50 ) AS col0 FROM tab0 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, 60 col1 FROM tab0 AS cor0
----
-1
60
-21
60
-81
60

query II rowsort
SELECT ALL col1 AS col0, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT COUNT( - - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT COUNT ( - - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - ( - 46 ) AS col1 FROM tab1
----
46
46
46

query II rowsort
SELECT col0 * col1, - ( + 99 ) AS col1 FROM tab0
----
1215
-99
1827
-99
97
-99

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 / + 84 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col0 FROM tab2 AS cor0 WHERE NOT NULL <= - 2 + + 41 * - + col2
----

query I rowsort
SELECT - + 42 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4249
SELECT col0 AS col1, - 12 * - 64 FROM tab1 WHERE - CAST( NULL AS SIGNED ) * - + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4249
SELECT col0 AS col1, - 12 * - 64 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 58 + - 7 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-65

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab1 AS cor0
----
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 59 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 58 ) * - - col0 + - ( - col0 ) col1 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - COUNT( * ) + COUNT( * ) + 67 * - + 6 AS col2 FROM tab2 AS cor0
----
-402

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - COUNT ( * ) + COUNT ( * ) + 67 * - + 6 AS col2 FROM tab2 AS cor0
----
-402

query I rowsort
SELECT DISTINCT + 13 + - col1 FROM tab1 AS cor0
----
-1
-34
8

query I rowsort
SELECT DISTINCT - 31 * - 61 + + 54 AS col1 FROM tab1 AS cor0
----
1945

query I rowsort
SELECT ALL - - col1 + + col0 * - col1 * + 16 AS col1 FROM tab0 AS cor0
----
-1551
-19359
-29211

query II rowsort
SELECT + col2 * + - col1 + + col2 AS col1, + col2 FROM tab2
----
-1150
23
-3040
40
-3828
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT + 15 + - + COUNT( DISTINCT - col1 ) * + 86 AS col0 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-4259
SELECT + 15 + - + COUNT ( DISTINCT - col1 ) * + 86 AS col0 FROM tab1
----
-243

query I rowsort
SELECT + col1 + + 79 AS col2 FROM tab1
----
126
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT CAST( - col1 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-4261
SELECT CAST ( - col1 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT + 93 - - + ( - - 96 ) FROM tab1 AS cor0
----
189
189
189

query I rowsort
SELECT - - 60 - + col0 + - col0 + col2 FROM tab2 cor0
----
-28
-32
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4264
SELECT + COUNT( * ) DIV - SUM( - ( 3 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT + COUNT ( * ) / - SUM ( - ( 3 ) ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 87, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - MIN( - 66 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4266
SELECT - MIN ( - 66 ) FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4267
SELECT * FROM tab2 AS cor0 WHERE NOT - ( CAST( NULL AS DECIMAL ) ) NOT IN ( + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4267
SELECT * FROM tab2 AS cor0 WHERE NOT - ( CAST ( NULL AS REAL ) ) NOT IN ( + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT + + col2 DIV - 1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4268
SELECT + + col2 / - 1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT DISTINCT + col0 DIV + 14 FROM tab0 AS cor0
----
1
6

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT + col0 / + 14 FROM tab0 AS cor0
----
1
6

query I rowsort
SELECT ALL + col1 - - 88 AS col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + - 35 * + + 36 FROM tab0 AS cor0
----
-1260
-1260
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT + ( + - ( - 43 ) ) * - 98 * + COUNT( * ) * - + COUNT( + - 22 ) AS col1 FROM tab1
----
37926

skipif mysql # not compatible
query I rowsort label-4272
SELECT + ( + - ( - 43 ) ) * - 98 * + COUNT ( * ) * - + COUNT ( + - 22 ) AS col1 FROM tab1
----
37926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col0 col2 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT + 21 * col0 * + col1 FROM tab0
----
2037
25515
38367

query I rowsort
SELECT - col2 * - - col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4276
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0, + col1 * + col0 col0 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4276
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, + col1 * + col0 col0 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

query I rowsort
SELECT ALL - - 10 + col0 FROM tab2 AS cor0
----
56
74
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT COUNT( * ) AS col2, - MIN( DISTINCT ( + - col2 ) ) * - 84 - - COUNT( * ) AS col2 FROM tab0 cor0
----
3
-8313

skipif mysql # not compatible
query II rowsort label-4279
SELECT COUNT ( * ) AS col2, - MIN ( DISTINCT ( + - col2 ) ) * - 84 - - COUNT ( * ) AS col2 FROM tab0 cor0
----
3
-8313

query II rowsort
SELECT col2 + - - col1 AS col0, ( - col0 ) AS col0 FROM tab2
----
117
-64
125
-75
74
-46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 BETWEEN NULL AND col1
----
87
21
10
97
1
99

query II rowsort
SELECT ALL col1 AS col1, + col0 * 33 * - + col2 FROM tab2
----
51
-34914
67
-143550
77
-84480

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4283
SELECT * FROM tab2 AS cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) + + col0 IN ( 3, - col1 )
----

skipif mysql # not compatible
query III rowsort label-4283
SELECT * FROM tab2 AS cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) + + col0 IN ( 3, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - COUNT( * ) * ( - 2 ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - COUNT ( * ) * ( - 2 ) FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - ( + MAX( ALL + + col0 ) ) + - + 99 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4285
SELECT - ( + MAX ( ALL + + col0 ) ) + - + 99 FROM tab2 AS cor0
----
-174

query I rowsort
SELECT ALL ( - 49 ) FROM tab0 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab0 AS cor0 WHERE + 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + COUNT( * ) * + + SUM( ALL ( - col2 ) ) + - 13 + MIN( - 89 ) + + + 51 + - - ( + 29 ) AS col1 FROM tab2 AS cor0
----
-385

skipif mysql # not compatible
query I rowsort label-4288
SELECT + COUNT ( * ) * + + SUM ( ALL ( - col2 ) ) + - 13 + MIN ( - 89 ) + + + 51 + - - ( + 29 ) AS col1 FROM tab2 AS cor0
----
-385

query I rowsort
SELECT ALL col2 * + + col1 + + - col1 FROM tab2 cor0
----
1122
3003
3819

query I rowsort
SELECT DISTINCT - + col2 - col2 + + + 81 FROM tab0 AS cor0
----
-117
-13
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL MIN( DISTINCT col0 ) + 20 col2 FROM tab0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4291
SELECT ALL MIN ( DISTINCT col0 ) + 20 col2 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT DISTINCT + col2 - + 49 * - ( + + CAST( NULL AS SIGNED ) ) * col1 + + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + col2 - + 49 * - ( + + CAST ( NULL AS INTEGER ) ) * col1 + + + col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT - MAX( DISTINCT + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4293
SELECT - MAX ( DISTINCT + col2 ) FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT 17 DIV + col1 - + + col0 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4294
SELECT 17 / + col1 - + + col0 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT + CAST( 5 AS SIGNED ) - col1 FROM tab1
----
-42
-9
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT + CAST ( 5 AS INTEGER ) - col1 FROM tab1
----
-42
-9
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT - COUNT( ALL + - 94 ) - + + AVG ( ALL col1 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT - COUNT ( ALL + - 94 ) - + + AVG ( ALL col1 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < + 48
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4298
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) DIV - COUNT( * ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4298
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) / - COUNT ( * ) col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
6

query I rowsort
SELECT - - col1 + + col1 FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - + col2, - col1 AS col0 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= - col2 * + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 AS col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4304
SELECT - COUNT( * ), - 13 * + CAST( - - 36 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-468

skipif mysql # not compatible
query II rowsort label-4304
SELECT - COUNT ( * ), - 13 * + CAST ( - - 36 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4305
SELECT ALL - MAX( + - col1 ) DIV + + 96, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL - MAX ( + - col1 ) / + + 96, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
NULL

query II rowsort
SELECT ALL col0 AS col1, 46 FROM tab1 AS cor0
----
51
46
85
46
91
46

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT - 36 * - COUNT( * ) AS col0, + COUNT( * ) * + COUNT( * ) FROM tab2
----
108
9

skipif mysql # not compatible
query II rowsort label-4309
SELECT - 36 * - COUNT ( * ) AS col0, + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
108
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT CAST( + - ( + 66 ) AS SIGNED ) FROM tab2
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-4310
SELECT CAST ( + - ( + 66 ) AS INTEGER ) FROM tab2
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL + 95 * + - MIN( + - col0 ) FROM tab0
----
9215

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + 95 * + - MIN ( + - col0 ) FROM tab0
----
9215

query I rowsort
SELECT + ( 69 ) * - col1 * + - ( + + 44 ) AS col0 FROM tab2
----
154836
203412
233772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + + col1 col0, 83 AS col0 FROM tab0 AS cor0
----
100
83
128
83
31
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT ALL col2 * - col2 + - ( 60 ) + - 89 + + CAST( NULL AS SIGNED ) - - col0 - + + 22 * + 89 * - ( + 8 ) * - 98 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL col2 * - col2 + - ( 60 ) + - 89 + + CAST ( NULL AS INTEGER ) - - col0 - + + 22 * + 89 * - ( + 8 ) * - 98 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT + col0 * - - 65 FROM tab1
----
3315
5525
5915

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4317
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( + col2 AS SIGNED ) / - - 11 + + + ( col1 ) + 9 IN ( - col2, - 82, col0 * col1 + + col2 + + + 63 * - - col0, - col1 - - + col1 )
----

skipif mysql # not compatible
query III rowsort label-4317
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) / - - 11 + + + ( col1 ) + 9 IN ( - col2, - 82, col0 * col1 + + col2 + + + 63 * - - col0, - col1 - - + col1 )
----

query I rowsort
SELECT ALL - 9 + 73 + - 44 AS col0 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE col0 + - 24 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL col1 + - col1 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL col1 + - col1 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT + MIN( - col0 ) - - 14 AS col1 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT + MIN ( - col0 ) - - 14 AS col1 FROM tab1
----
-77

query I rowsort
SELECT - 57 + + col1 AS col1 FROM tab2
----
-6
10
20

query I rowsort
SELECT DISTINCT - col1 * + 20 + + - 61 + 38 * - ( col2 ) FROM tab1
----
-2403
-3585
-3989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col0 AS col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT 42 - col2 AS col1 FROM tab2
----
-16
19
2

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab0 WHERE - col2 <> - - col1
----
10
47
99

query I rowsort
SELECT ALL + + col2 * col2 AS col2 FROM tab1 cor0
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + 11 AS col2, col1 col1, col1 * col1 - + + col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to be14e2a0150ed60bb599e6ff40437214

query I rowsort
SELECT - col2 * + col2 + - + 84 * + + col2 FROM tab1 AS cor0
----
-10336
-17280
-8437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT DISTINCT + 56 + - CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + 56 + - CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 18 ) * + - col2 * ( + col0 ) * + 82 col2 FROM tab1
----
7226496
7402140
9133488

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL - + 51 * - COUNT( * ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - + 51 * - COUNT ( * ) FROM tab1 AS cor0
----
153

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= - 0 + + ( + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 46 < NULL
----

query I rowsort
SELECT + ( 17 ) AS col2 FROM tab2 WHERE NOT + + col0 BETWEEN + 28 AND + col0 * col2
----

query I rowsort
SELECT col1 * - 53 AS col2 FROM tab1
----
-2491
-265
-742

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4337
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV 86 * - 37 + col0 + 64 FROM tab0
----
151
161
79

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / 86 * - 37 + col0 + 64 FROM tab0
----
151
161
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - 62 * + ( + + MAX( + col0 ) ) * + 52 AS col0 FROM tab2
----
-241800

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 62 * + ( + + MAX ( + col0 ) ) * + 52 AS col0 FROM tab2
----
-241800

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN - col1 + - col0 + + col0 / + - col1 / + 42 AND + ( col1 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT ALL 33 / - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4340
SELECT ALL 33 / - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT - ( COUNT( + 0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - ( COUNT ( + 0 ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * ( + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4343
SELECT ALL 34 AS col1, ( + 23 ) * col1 + - ( + 69 ) DIV - ( + ( 5 ) ) + + - 1 FROM tab2 AS cor0
----
34
1185
34
1553
34
1783

skipif mysql # not compatible
query II rowsort label-4343
SELECT ALL 34 AS col1, ( + 23 ) * col1 + - ( + 69 ) / - ( + ( 5 ) ) + + - 1 FROM tab2 AS cor0
----
34
1185
34
1553
34
1783

query II rowsort
SELECT ALL + col2 AS col1, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ( col1 ) * - col0 * + col1 + col2 + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-38347
-98321
101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4346
SELECT ALL - ( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4347
SELECT col2 DIV 80 + 68 AS col2, col2 AS col0 FROM tab0 AS cor0
----
68
10
68
47
69
99

skipif mysql # not compatible
query II rowsort label-4347
SELECT col2 / 80 + 68 AS col2, col2 AS col0 FROM tab0 AS cor0
----
68
10
68
47
69
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4348
SELECT + + 80 + + MIN( DISTINCT - CAST( col1 AS SIGNED ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT + + 80 + + MIN ( DISTINCT - CAST ( col1 AS INTEGER ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + MAX( ALL - + col1 ) * 31 - + - 50 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4349
SELECT + MAX ( ALL - + col1 ) * 31 - + - 50 FROM tab0 AS cor0
----
19

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE + col2 * + + col0 IS NULL
----

query II rowsort
SELECT - col0 * + col2 * + col2 + + - col2, - col0 + col2 AS col2 FROM tab1 AS cor0
----
-295944
-26
-420852
-23
-470112
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( col0 )
----

query I rowsort
SELECT ALL - - col0 + + + col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - col0 + 37 AS col2 FROM tab2
----
-27
-38
-9

query II rowsort
SELECT + + col2 + col1 * - + 15 + + col1, col1 AS col1 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE ( NOT NULL NOT BETWEEN + CAST( col0 AS SIGNED ) AND col0 - col0 )
----

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE ( NOT NULL NOT BETWEEN + CAST ( col0 AS INTEGER ) AND col0 - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT + + ( MIN( ALL + + col1 ) ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-4358
SELECT + + ( MIN ( ALL + + col1 ) ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
51
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT DISTINCT - - 40 col0, COUNT( * ) col0 FROM tab2 AS cor0
----
40
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4359
SELECT DISTINCT - - 40 col0, COUNT ( * ) col0 FROM tab2 AS cor0
----
40
3

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4361
SELECT DISTINCT 26, col0 DIV - 27 + 65 * - col2 AS col2 FROM tab0
----
26
-3055
26
-6438
26
-653

skipif mysql # not compatible
query II rowsort label-4361
SELECT DISTINCT 26, col0 / - 27 + 65 * - col2 AS col2 FROM tab0
----
26
-3055
26
-6438
26
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT - - SUM( ALL col2 ) col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4362
SELECT - - SUM ( ALL col2 ) col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4363
SELECT * FROM tab2 AS cor0 WHERE NOT - 61 / 13 * - CAST( NULL AS SIGNED ) - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4363
SELECT * FROM tab2 AS cor0 WHERE NOT - 61 / 13 * - CAST ( NULL AS INTEGER ) - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
6

query I rowsort
SELECT ALL + 91 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT + 84, col2 FROM tab2 AS cor0
----
84
23
84
40
84
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4367
SELECT - + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + - + col0 + 18 - + + 6 col0 FROM tab1 cor0 WHERE NOT + 47 * col0 * + ( + col1 ) + - + col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT MAX( ALL col2 ) * + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT MAX ( ALL col2 ) * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT - 34, col2 AS col1 FROM tab1 AS cor0
----
-34
59
-34
68
-34
96

query I rowsort
SELECT ALL - 85 AS col2 FROM tab2 AS cor0 WHERE + 54 IS NULL
----

query II rowsort
SELECT ALL + - col0 * - + col1 AS col0, col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - col2 + col1 >= - col2 ) )
----

query I rowsort
SELECT ALL - + col1 + + - col0 + + col2 + ( - - col1 ) FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT 43 + + 70 FROM tab2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL MAX( ALL - ( - ( - 57 ) ) ) * - - MAX( - col1 ) * - - 89 FROM tab1
----
25365

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL MAX ( ALL - ( - ( - 57 ) ) ) * - - MAX ( - col1 ) * - - 89 FROM tab1
----
25365

query I rowsort
SELECT 22 * + + ( - 58 ) FROM tab2
----
-1276
-1276
-1276

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL COUNT( * ) + - 16 AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL COUNT ( * ) + - 16 AS col0 FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + - COUNT( DISTINCT + col2 ) AS col2 FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4378
SELECT + - COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ( + 3 ) + - col1 AS col2 FROM tab1
----
-11
-2
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) > + col0
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT ALL col1 + - col1 + + - CAST( NULL AS SIGNED ) * - 75 * col1 * - - col0 - 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL col1 + - col1 + + - CAST ( NULL AS INTEGER ) * - 75 * col1 * - - col0 - 85 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 94 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT ALL col1 * + col1 + - 78 + - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
-76
384
6564

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL col1 * + col1 + - 78 + - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
-76
384
6564

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - SUM( ALL 32 ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-4384
SELECT - SUM ( ALL 32 ) AS col1 FROM tab2
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * + - 39 - + 91 * + 0 col1 FROM tab2
----
-1989
-1989
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL - COUNT( ALL 95 ) AS col2 FROM tab0 WHERE + col2 - + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - COUNT ( ALL 95 ) AS col2 FROM tab0 WHERE + col2 - + col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT ALL - COUNT( * ) col1, + SUM( 50 ) AS col1 FROM tab2
----
-3
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4387
SELECT ALL - COUNT ( * ) col1, + SUM ( 50 ) AS col1 FROM tab2
----
-3
150

query I rowsort
SELECT ALL + col1 + - col1 FROM tab0 WHERE - col0 / - - col1 BETWEEN - col1 / - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab1 cor0
----
56
56
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4390
SELECT DISTINCT - - ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - - ( CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1 + - + 2 * + 35 AS col1, - ( + col2 ) + + col0 + - + col2 AS col0 FROM tab2 AS cor0
----
-121
0
-137
-41
-147
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT DISTINCT + col0 DIV + - col1 + - col0 + - - 98 AS col2 FROM tab1 AS cor0
----
-4
44
6

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + col0 / + - col1 + - col0 + - - 98 AS col2 FROM tab1 AS cor0
----
-4
44
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4393
SELECT ALL - ( COUNT( * ) ) DIV + 56 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - ( COUNT ( * ) ) / + 56 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT MAX( 81 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4394
SELECT MAX ( 81 ) FROM tab2
----
81

query I rowsort
SELECT DISTINCT - 78 + + - col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + ( 75 ) FROM tab2
----
-3825
-5025
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL - MIN( ALL + + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - MIN ( ALL + + col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4398
SELECT 62 DIV COUNT( * ) AS col1, 41 FROM tab0
----
20
41

skipif mysql # not compatible
query II rowsort label-4398
SELECT 62 / COUNT ( * ) AS col1, 41 FROM tab0
----
20
41

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 95 * ( + 8 ) + + + col1 - 6 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < ( + col0 * col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 * + ( 91 ) * - col0 + + 93 AS col2 FROM tab0
----
307218
59923866
83053336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 67 * - 81 + - 74 + col1 col0 FROM tab2 AS cor0
----
-276800
-363616
-417876

query I rowsort
SELECT + + 86 * - 54 + - 84 FROM tab0 AS cor0
----
-4728
-4728
-4728

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT 86 DIV - + 16 + col0 AS col2 FROM tab1 AS cor0
----
46
80
86

skipif mysql # not compatible
query I rowsort label-4404
SELECT 86 / - + 16 + col0 AS col2 FROM tab1 AS cor0
----
46
80
86

query I rowsort
SELECT ALL - + col2 - col2 FROM tab2 WHERE NOT ( 11 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 39 AS col1, col2 FROM tab0
----
39
10
39
47
39
99

query I rowsort
SELECT ( 36 ) FROM tab1
----
36
36
36

query II rowsort
SELECT col0 + - 94 * - 96 AS col1, col0 FROM tab0 AS cor0
----
9039
15
9111
87
9121
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL AND NOT - ( + col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL + COUNT( * ) + - 34 FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + COUNT ( * ) + - 34 FROM tab2 cor0
----
-31

query I rowsort
SELECT - col1 + + - col2 AS col0 FROM tab2 cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col0 FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT + COUNT( * ) AS col2 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4413
SELECT + COUNT ( * ) AS col2 FROM tab1, tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT + 74 * + + 70 * - CAST( - - col0 AS SIGNED ) FROM tab0
----
-450660
-502460
-77700

skipif mysql # not compatible
query I rowsort label-4414
SELECT + 74 * + + 70 * - CAST ( - - col0 AS INTEGER ) FROM tab0
----
-450660
-502460
-77700

query I rowsort
SELECT col2 - + + col1 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT + ( + 38 ) - - col1 + col1 * + col2 * 58, - col1 AS col2 FROM tab2 AS cor0
----
178755
-77
225493
-67
68123
-51

query I rowsort
SELECT ALL - col0 + + 60 FROM tab2 AS cor0
----
-15
-4
14

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 21 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + SUM( - - 35 ) AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-4419
SELECT + SUM ( - - 35 ) AS col0 FROM tab1
----
105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4420
SELECT - CAST( NULL AS DECIMAL ) - + - 41 FROM tab2 cor0 WHERE col0 >= + + 45
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT - CAST ( NULL AS REAL ) - + - 41 FROM tab2 cor0 WHERE col0 >= + + 45
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 46 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - COUNT( * ) * SUM( ALL col1 ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-4422
SELECT - COUNT ( * ) * SUM ( ALL col1 ) FROM tab0 AS cor0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT + COUNT( * ) * - COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + COUNT ( * ) * - COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT ALL - + col0 DIV - col2 AS col1 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - + col0 / - col2 AS col1 FROM tab1 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT 32 * - - COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT 32 * - - COUNT ( * ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + 68 * + - col0 FROM tab0 AS cor0 WHERE NOT + ( - - col1 ) * - - 2 IS NULL
----
-1020
-5916
-6596

onlyif mysql # DIV for integer division: 
query II rowsort label-4427
SELECT ALL 44 DIV col2 AS col1, col1 FROM tab2 AS cor0
----
0
67
1
51
1
77

skipif mysql # not compatible
query II rowsort label-4427
SELECT ALL 44 / col2 AS col1, col1 FROM tab2 AS cor0
----
0
67
1
51
1
77

query II rowsort
SELECT ALL col0, 82 FROM tab1
----
51
82
85
82
91
82

query II rowsort
SELECT ALL col0 AS col0, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT + 86 AS col0, 65 FROM tab0
----
86
65
86
65
86
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 WHERE - 35 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4431
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE - 35 IS NOT NULL
----
-3

query II rowsort
SELECT col0, + col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query II rowsort
SELECT 87, col2 AS col1 FROM tab2
----
87
23
87
40
87
58

query I rowsort
SELECT DISTINCT + 95 FROM tab2 WHERE NOT col2 * col0 >= - + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - 46 ) * - col2 col2 FROM tab2
----
1058
1840
2668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col2, - col1 FROM tab0 cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT DISTINCT - ( + 84 ) AS col1 FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT - COUNT( ALL - 86 ) * 92 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - + 87 + ( - 11 ) + - + 15, + col1 * - col0 - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT - COUNT ( ALL - 86 ) * 92 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - + 87 + ( - 11 ) + - + 15, + col1 * - col0 - col1 )
----
0

query II rowsort
SELECT DISTINCT col1, 36 + - col1 AS col0 FROM tab0 AS cor0
----
1
35
21
15
81
-45

query I rowsort
SELECT col2 / - - col1 + 89 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT - CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4442
SELECT - CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 WHERE NOT + 6 > NULL
----

query I rowsort
SELECT + 16 * 79 * + col2 FROM tab2
----
29072
50560
73312

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL col1 + + + 79 * col2 * - 18, col0 AS col1 FROM tab0 AS cor0
----
-140777
97
-14199
87
-66753
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT DISTINCT - COUNT( DISTINCT col0 ) + + 9 * - CAST( - SUM( + col1 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
1752

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4448
SELECT DISTINCT - COUNT ( DISTINCT col0 ) + + 9 * - CAST ( - SUM ( + col1 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
1752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT ALL 79 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL 79 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + + 74 FROM tab1
----
125
159
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL MIN( col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL MIN ( col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT DISTINCT - 15, COUNT( * ) AS col0 FROM tab0
----
-15
3

skipif mysql # not compatible
query II rowsort label-4452
SELECT DISTINCT - 15, COUNT ( * ) AS col0 FROM tab0
----
-15
3

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - ( - col1 )
----

query I rowsort
SELECT - - 16 AS col0 FROM tab0 WHERE - 49 NOT BETWEEN col1 * + 52 - - - col1 AND NULL
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 6 ) col2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT SUM( - + col1 ) + - - 7 DIV + - 23 AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4456
SELECT SUM ( - + col1 ) + - - 7 / + - 23 AS col0 FROM tab0
----
-103

query I rowsort
SELECT ALL ( 80 ) AS col1 FROM tab1
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + 80 col2 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT + 79 * - col1 AS col0 FROM tab2 AS cor0
----
-4029
-5293
-6083

query I rowsort
SELECT DISTINCT + - 77 * - + col1 + col0 * - - col2 AS col1 FROM tab2 AS cor0
----
4985
8489
9509

query I rowsort
SELECT col1 * col2 - - 92 AS col0 FROM tab1
----
1436
3288
387

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT COUNT( * ) + + SUM( ALL - 34 ) + + SUM( ALL 42 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT COUNT ( * ) + + SUM ( ALL - 34 ) + + SUM ( ALL 42 ) FROM tab0
----
27

query I rowsort
SELECT DISTINCT - col0 * 87 * col2 AS col0 FROM tab2
----
-222720
-378450
-92046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL col0 * - - CAST( - 31 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1581
-2635
-2821

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL col0 * - - CAST ( - 31 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1581
-2635
-2821

query I rowsort
SELECT DISTINCT + - 37 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 64 ) < NULL
----

query I rowsort
SELECT ALL - + col1 * + 28 * col0 FROM tab1 AS cor0
----
-11900
-119756
-19992

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN col1 AND + 59 * - 22 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT COUNT( 49 ) * + + SUM( + - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-4468
SELECT COUNT ( 49 ) * + + SUM ( + - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 84 ) col2 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT + 33 * + - col2 AS col2 FROM tab2 AS cor0
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT + - MAX( ALL col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + - MAX ( ALL col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT col2 * + col1 * - + col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL - 6 * + 19 AS col1 FROM tab0 AS cor0
----
-114
-114
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT MAX( + 91 ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT MAX ( + 91 ) AS col0 FROM tab0
----
91

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 31 / + 8 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT ( - + 68 ) * + COUNT( DISTINCT col2 ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT ( - + 68 ) * + COUNT ( DISTINCT col2 ) FROM tab1
----
-204

query II rowsort
SELECT DISTINCT + col2 * col0, - col2 AS col2 FROM tab0
----
705
-47
870
-10
9603
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT - COUNT( * ), + 56 * - - 72 AS col0 FROM tab2, tab2 cor0
----
-9
4032

skipif mysql # not compatible
query II rowsort label-4478
SELECT - COUNT ( * ), + 56 * - - 72 AS col0 FROM tab2, tab2 cor0
----
-9
4032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4479
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 20 col0, + 62 AS col0 FROM tab0
----
NULL
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4479
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 20 col0, + 62 AS col0 FROM tab0
----
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 10 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 10 + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT - COUNT( * ) * - 23 AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4481
SELECT - COUNT ( * ) * - 23 AS col1 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT + 83, ( COUNT( DISTINCT col1 ) ) * - - 82 AS col1 FROM tab1
----
83
246

skipif mysql # not compatible
query II rowsort label-4482
SELECT + 83, ( COUNT ( DISTINCT col1 ) ) * - - 82 AS col1 FROM tab1
----
83
246

query II rowsort
SELECT ALL col0 + + col2 + + col0 + + 11 - - col0 + + - col0 * col0 * + col1 AS col2, 22 + col0 + - + 45 * 37 * + 17 FROM tab0
----
-158667
-28196
-18122
-28268
-9008
-28186

query I rowsort
SELECT - + col2 + + col1 * + + col2 FROM tab1 WHERE NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 9 col1, + col0 AS col2 FROM tab0 cor0
----
-9
15
-9
87
-9
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT - - CAST( + 34 AS SIGNED ) + + - MAX( ALL + col2 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4486
SELECT - - CAST ( + 34 AS INTEGER ) + + - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
-62

query II rowsort
SELECT + - 22 AS col2, - col1 FROM tab0 AS cor0
----
-22
-1
-22
-21
-22
-81

query I rowsort
SELECT DISTINCT col2 + + col2 + + + col2 AS col1 FROM tab1 AS cor0
----
177
204
288

query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT ALL + - 6 * - - col1 + 59, + ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-427
15
-67
87
53
97

query I rowsort
SELECT DISTINCT + 59 * - 30 AS col1 FROM tab0 cor0 WHERE ( col1 ) + + col1 < - ( - + 25 ) - col1
----
-1770

onlyif mysql # DIV for integer division: 
query II rowsort label-4492
SELECT + - 37, col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-37
0
-37
4
-37
97

skipif mysql # not compatible
query II rowsort label-4492
SELECT + - 37, col0 / col1 AS col0 FROM tab0 AS cor0
----
-37
0
-37
4
-37
97

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col1 + + 12 + + + 2 = NULL
----

query I rowsort
SELECT ALL 48 - + col2 FROM tab0
----
-51
1
38

query I rowsort
SELECT DISTINCT + ( - col2 ) + + 36 AS col2 FROM tab0
----
-11
-63
26

query I rowsort
SELECT DISTINCT - 1 * + 93 - - col1 FROM tab2
----
-16
-26
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT - col1 - 50 * - - col0 + - 75 DIV - - col1 AS col1 FROM tab2 AS cor0
----
-2352
-3277
-3818

skipif mysql # not compatible
query I rowsort label-4497
SELECT - col1 - 50 * - - col0 + - 75 / - - col1 AS col1 FROM tab2 AS cor0
----
-2352
-3277
-3818

query I rowsort
SELECT DISTINCT + ( - - 46 ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT + col2 * - col1 + ( col0 ) + - col0 + + 27 FROM tab2 AS cor0
----
-1146
-3053
-3859

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - col2 NOT IN ( - + ( + 65 ), 7 * - - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT DISTINCT 80 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT 80 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL + + MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + + MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-4503
SELECT ALL + col0 col2, + col2 DIV - ( col0 ) + + col1 FROM tab1 AS cor0
----
51
13
85
5
91
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4503
SELECT ALL + col0 col2, + col2 / - ( col0 ) + + col1 FROM tab1 AS cor0
----
51
13
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4504
SELECT - 33 DIV 66 FROM tab1 AS cor0 WHERE NOT 17 + - + ( + + col1 ) + CAST( NULL AS SIGNED ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT - 33 / 66 FROM tab1 AS cor0 WHERE NOT 17 + - + ( + + col1 ) + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 30 / - col2 * + col2 * + 87 + - col2 * 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + - col0, col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT + col0 * + col1 + - - col1 AS col0 FROM tab2 cor0
----
2397
5005
5092

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) FROM tab1
----
-3

query I rowsort
SELECT ALL - col1 * + col2 * - col1 AS col2 FROM tab0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4511
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) * + col2 * - 65 + - + ( + col0 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4511
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) * + col2 * - 65 + - + ( + col0 ) <> NULL
----

query I rowsort
SELECT ALL col0 * col2 * - + col0 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL col2 * - 0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 39 * - ( - 62 ) FROM tab2
----
2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT COUNT( * ) DIV - 67 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT COUNT ( * ) / - 67 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 11 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT COUNT( * ) AS col2, 76 AS col2 FROM tab1
----
3
76

skipif mysql # not compatible
query II rowsort label-4517
SELECT COUNT ( * ) AS col2, 76 AS col2 FROM tab1
----
3
76

query I rowsort
SELECT ALL - 64 + - + col2 AS col2 FROM tab0 AS cor0
----
-111
-163
-74

query I rowsort
SELECT DISTINCT + 89 * 64 * - - 32 * 58 + + 21 AS col1 FROM tab2
----
10571797

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT + COUNT( * ) + - + 75 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT + COUNT ( * ) + - + 75 FROM tab1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT DISTINCT + col2 DIV + 47 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT + col2 / + 47 FROM tab0
----
0
1
2

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL + col1 DIV - 26 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + col1 / - 26 FROM tab2 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ALL ( 89 ) * 31 + + + 82 FROM tab2 cor0
----
2841
2841
2841

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL ( - - MIN( - 50 ) ) AS col0 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL ( - - MIN ( - 50 ) ) AS col0 FROM tab2 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT - col0 + - col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-4526
SELECT - col0 + - col2 / + col0 AS col0 FROM tab1 AS cor0
----
-52
-85
-91

query I rowsort
SELECT - col0 * - 93 + - - ( + + col2 ) AS col2 FROM tab0
----
1442
8101
9120

query I rowsort
SELECT col2 + + col0 * + col0 + - + 80 AS col0 FROM tab1
----
2617
7204
8269

query I rowsort
SELECT + col2 * + 39 + 90 FROM tab0
----
1923
3951
480

query I rowsort
SELECT ALL + 13 * col0 - 66 FROM tab2
----
532
766
909

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + 36 - - COUNT( DISTINCT + - ( col2 ) ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + 36 - - COUNT ( DISTINCT + - ( col2 ) ) AS col1 FROM tab1
----
39

query I rowsort
SELECT ALL + - 18 AS col1 FROM tab0 AS cor0
----
-18
-18
-18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 + + col0 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( - col0 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT ( - 63 ) DIV + 59 - - col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-4535
SELECT ( - 63 ) / + 59 - - col0 FROM tab0
----
14
86
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 82 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + col2 + + 49 AS col2 FROM tab1
----
1393
3245
344

query I rowsort
SELECT ALL 94 AS col1 FROM tab0 WHERE ( - col0 * + col1 ) IS NOT NULL
----
94
94
94

query I rowsort
SELECT DISTINCT 27 + col0 AS col1 FROM tab0
----
114
124
42

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 57 * col1 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 41 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4542
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 * CAST( NULL AS SIGNED ) + 54 AND col1
----

skipif mysql # not compatible
query III rowsort label-4542
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 * CAST ( NULL AS INTEGER ) + 54 AND col1
----

query I rowsort
SELECT col0 * - 94 FROM tab1 WHERE NOT + col0 >= + ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT - SUM( DISTINCT + 75 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - SUM ( DISTINCT + 75 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ( + SUM( DISTINCT 6 ) ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4546
SELECT ( + SUM ( DISTINCT 6 ) ) AS col1 FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE col1 * - 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT COUNT( ALL col1 ) * 7 + 80 AS col2 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT COUNT ( ALL col1 ) * 7 + 80 AS col2 FROM tab0
----
101

query I rowsort
SELECT 78 AS col2 FROM tab2 WHERE NULL IS NULL
----
78
78
78

query I rowsort
SELECT ALL 66 * col0 AS col1 FROM tab0
----
5742
6402
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT DISTINCT - 48 + + 13 AS col1 FROM tab1 WHERE ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT COUNT( * ) + COUNT( * ) * 26 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * 26 FROM tab1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE NOT ( col0 ) < ( col2 * + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 BETWEEN col2 AND ( - col0 )
----

query I rowsort
SELECT ALL + ( - col0 ) + + col2 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT - col1 + + CAST( - col1 - 93 AS SIGNED ) col0 FROM tab2
----
-195
-227
-247

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4557
SELECT - col1 + + CAST ( - col1 - 93 AS INTEGER ) col0 FROM tab2
----
-195
-227
-247

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 67 + col0 >= - col1 * - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4559
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 + 47 ) NOT BETWEEN + col1 * 24 + col0 * CAST( col1 AS DECIMAL ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4559
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 + 47 ) NOT BETWEEN + col1 * 24 + col0 * CAST ( col1 AS REAL ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4561
SELECT COUNT( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT COUNT ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4562
SELECT * FROM tab2 AS cor0 WHERE 62 * ( col1 ) <> ( + CAST( col1 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4562
SELECT * FROM tab2 AS cor0 WHERE 62 * ( col1 ) <> ( + CAST ( col1 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL ( + 84 ) + COUNT( * ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL ( + 84 ) + COUNT ( * ) FROM tab1 AS cor0
----
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + col2 = ( - 95 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL + 20 DIV - ( col0 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL + 20 / - ( col0 ) AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( ( + 88 ) * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 48 NOT IN ( + col2 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 76 + - col1 * col2 FROM tab1 AS cor0
----
-1268
-219
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT MAX( ALL - col0 ) * - 10 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4569
SELECT MAX ( ALL - col0 ) * - 10 FROM tab0 AS cor0
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4570
SELECT + ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE + col0 BETWEEN ( + col0 ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-4570
SELECT + ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE + col0 BETWEEN ( + col0 ) AND - col0
----

query I rowsort
SELECT DISTINCT - + col2 * - ( col0 ) + 23 FROM tab0 AS cor0
----
728
893
9626

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + + 19 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + + 19 FROM tab2 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT DISTINCT + ( - col2 ) - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + ( - col2 ) - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 94 ) NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + - - col0 AS col1 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab2 WHERE ( 23 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + - + col2 * col2 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE + ( + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 59 ) >= ( - col1 + + col2 * ( col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= col1
----

query I rowsort
SELECT 35 AS col2 FROM tab0 WHERE NULL IS NULL
----
35
35
35

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT + col0 - - - col1 AS col0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4586
SELECT DISTINCT + 85 AS col2 FROM tab0 WHERE + col0 IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT + 85 AS col2 FROM tab0 WHERE + col0 IN ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL MAX( + - 74 ) * COUNT( * ) - - CAST( NULL AS SIGNED ) / 53 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL MAX ( + - 74 ) * COUNT ( * ) - - CAST ( NULL AS INTEGER ) / 53 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * 5 - + col0 * - col2 col1 FROM tab2
----
1173
2760
4640

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 <> ( col2 ) + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT ALL col2 * 87 DIV ( - 47 ) AS col2 FROM tab0
----
-18
-183
-87

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL col2 * 87 / ( - 47 ) AS col2 FROM tab0
----
-18
-183
-87

query I rowsort
SELECT ALL + 87 FROM tab1 cor0 WHERE ( col0 ) NOT BETWEEN NULL AND 82
----
87
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT DISTINCT + 92 * 9 + + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
827

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT + 92 * 9 + + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
827

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL - + SUM( + 84 ) AS col0 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - + SUM ( + 84 ) AS col0 FROM tab2 AS cor0
----
-252

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 59 NOT IN ( col0 * - 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT - COUNT( 88 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - COUNT ( 88 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 6 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT - 26 DIV MAX( + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT - 26 / MAX ( + col0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL MAX( ALL - + 3 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL MAX ( ALL - + 3 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4599
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4600
SELECT 12 col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
12
NULL
12
NULL
12
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4600
SELECT 12 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
12
NULL
12
NULL
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL - ( - MAX( + col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - ( - MAX ( + col1 ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + col2 ) ) IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4603
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + col1 * col0 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4603
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + col1 * col0 IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT - SUM( DISTINCT - col2 ) + 18 FROM tab2 cor0
----
139

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - SUM ( DISTINCT - col2 ) + 18 FROM tab2 cor0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT 10 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 97 / col2 ) BETWEEN col0 AND + col0 * - col2
----
13

skipif mysql # not compatible
query I rowsort label-4605
SELECT 10 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 97 / col2 ) BETWEEN col0 AND + col0 * - col2
----
13

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE NOT - 79 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL MIN( 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL MIN ( 70 ) FROM tab0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL CAST( - col0 AS SIGNED ) * 68 FROM tab2 WHERE NOT - 58 * + + col2 / - ( + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL CAST ( - col0 AS INTEGER ) * 68 FROM tab2 WHERE NOT - 58 * + + col2 / - ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT - col0 * CAST( ( col0 ) AS SIGNED ) FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-4609
SELECT - col0 * CAST ( ( col0 ) AS INTEGER ) FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT COUNT( 10 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT COUNT ( 10 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( col1 ) - col2 * + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT + CAST( NULL AS SIGNED ) / 17 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col2 * col0 ) AND ( + 0 * + 74 )
----

skipif mysql # not compatible
query I rowsort label-4612
SELECT + CAST ( NULL AS INTEGER ) / 17 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col2 * col0 ) AND ( + 0 * + 74 )
----

query I rowsort
SELECT + col0 * 47 + col2 * 47 * col1 FROM tab1 AS cor0
----
154489
17860
65565

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 + col1 + + 53 / col2 ) NOT IN ( - 21 * - ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 / col0 + - col0 * + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + 27 AS col1 FROM tab1 cor0
----
1269
135
378

query I rowsort
SELECT ALL + col1 + + + col1 FROM tab2 cor0
----
102
134
154

query III rowsort
SELECT * FROM tab0 WHERE ( - - 92 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 4 * - 65 + + + col0 AS col2 FROM tab0
----
-163
-173
-245

query I rowsort
SELECT DISTINCT col0 - + - col0 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT 24 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE + + 64 < NULL
----

skipif mysql # not compatible
query I rowsort label-4621
SELECT 24 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE + + 64 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT DISTINCT - col2 * + CAST( 87 AS SIGNED ) AS col1 FROM tab2
----
-2001
-3480
-5046

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT - col2 * + CAST ( 87 AS INTEGER ) AS col1 FROM tab2
----
-2001
-3480
-5046

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL ( - MAX( - col2 ) ) * - COUNT( * ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL ( - MAX ( - col2 ) ) * - COUNT ( * ) AS col1 FROM tab1
----
-177

query I rowsort
SELECT DISTINCT + col0 - + col2 + 61 * + + 1 + - 21 FROM tab2
----
57
63
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT + 93 + - 4 * + col1 FROM tab1 cor0 WHERE ( + 93 ) IN ( - CAST( + 26 AS SIGNED ) ) AND col2 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 93 + - 4 * + col1 FROM tab1 cor0 WHERE ( + 93 ) IN ( - CAST ( + 26 AS INTEGER ) ) AND col2 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT + col2 * - - CAST( NULL AS SIGNED ) + col2 - + col2 + 40 * col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + col2 * - - CAST ( NULL AS INTEGER ) + col2 - + col2 + 40 * col0 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL - - COUNT( * ) * + 39 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - - COUNT ( * ) * + 39 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
114

query I rowsort
SELECT ALL 25 * - - col2 AS col1 FROM tab2 AS cor0
----
1000
1450
575

query I rowsort
SELECT 68 + col1 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + col1 * col1 + - ( - 0 ) AS col2 FROM tab1 AS cor0
----
-103823
-125
-2744

query I rowsort
SELECT + 37 FROM tab2 AS cor0 WHERE 66 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT ALL + col1 - - + col0 DIV col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + col1 - - + col0 / col0 FROM tab2
----
52
68
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + - col0 col2 FROM tab2
----
-11
0
18

query II rowsort
SELECT + col0 AS col2, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT col0 * - + col2 * - col1 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4637
SELECT ALL * FROM tab1 WHERE + + col2 NOT BETWEEN ( + col0 ) AND 62 * CAST( + 73 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-4637
SELECT ALL * FROM tab1 WHERE + + col2 NOT BETWEEN ( + col0 ) AND 62 * CAST ( + 73 AS INTEGER )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4638
SELECT ALL * FROM tab0 WHERE NULL <> - + CAST( NULL AS SIGNED ) * + + ( - 90 )
----

skipif mysql # not compatible
query III rowsort label-4638
SELECT ALL * FROM tab0 WHERE NULL <> - + CAST ( NULL AS INTEGER ) * + + ( - 90 )
----

query I rowsort
SELECT ALL + col1 * 44 FROM tab0
----
3564
44
924

query II rowsort
SELECT - 39 AS col0, - col1 * col1 + - + ( + col0 ) + - 97 AS col2 FROM tab0
----
-39
-195
-39
-625
-39
-6673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL - CAST( - col2 AS SIGNED ) * - - 29 FROM tab0
----
1363
2871
290

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - CAST ( - col2 AS INTEGER ) * - - 29 FROM tab0
----
1363
2871
290

query I rowsort
SELECT ALL - 61 + + - 13 FROM tab2 WHERE ( NULL IN ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - + MIN( ALL - - 58 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4643
SELECT - + MIN ( ALL - - 58 ) FROM tab0 AS cor0
----
-58

query I rowsort
SELECT ALL + + ( - - 76 ) FROM tab2 AS cor0
----
76
76
76

query II rowsort
SELECT DISTINCT + col0, - 8 AS col1 FROM tab1 AS cor0
----
51
-8
85
-8
91
-8

query I rowsort
SELECT col0 * - - col0 * 50 AS col2 FROM tab2
----
105800
204800
281250

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL MAX( DISTINCT + col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL MAX ( DISTINCT + col1 ) AS col1 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT + ( + + col1 ) DIV 37 + + col2 AS col0 FROM tab1 WHERE NOT - 26 IS NULL
----
59
69
96

skipif mysql # not compatible
query I rowsort label-4648
SELECT + ( + + col1 ) / 37 + + col2 AS col0 FROM tab1 WHERE NOT - 26 IS NULL
----
59
69
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col2 + - - col1 + + 91 ) AND - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - ( COUNT( * ) ) AS col2 FROM tab2 WHERE NOT + ( col1 ) NOT BETWEEN ( + col2 ) AND - col0 * 33
----
0

skipif mysql # not compatible
query I rowsort label-4651
SELECT - ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + ( col1 ) NOT BETWEEN ( + col2 ) AND - col0 * 33
----
0

query I rowsort
SELECT DISTINCT + + ( + 18 ) * - ( 68 ) FROM tab0 cor0
----
-1224

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE ( col0 - - col0 * col1 IS NOT NULL )
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4654
SELECT ALL 43 DIV + COUNT( * ) + 17 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL 43 / + COUNT ( * ) + 17 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL - 71 * + + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - 71 * + + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
-213

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + ( col1 ) > + + col1 + + + 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col2 ) / + col0 * + 38 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL - 75 * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - 75 * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----
0

query II rowsort
SELECT + col2 AS col1, - 55 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
-55
40
-55
58
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT + 95 * - 13 + - + SUM( DISTINCT - col2 ) + + - ( - ( - + COUNT( * ) ) ) * COUNT( * ) AS col2 FROM tab1 cor0
----
-1021

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT + 95 * - 13 + - + SUM ( DISTINCT - col2 ) + + - ( - ( - + COUNT ( * ) ) ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
-1021

query I rowsort
SELECT - 93 * - col2 + col2 + - col0 FROM tab0 AS cor0
----
4403
853
9209

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT 93 + - + COUNT( * ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4662
SELECT 93 + - + COUNT ( * ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT + col1 * - col2 + + col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL 55 + 3 * ( - + MIN( DISTINCT + ( - - col2 ) ) ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL 55 + 3 * ( - + MIN ( DISTINCT + ( - - col2 ) ) ) FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) * - 36 + + col0 AS col2 FROM tab0
----
-3045
-3395
-525

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) * - 36 + + col0 AS col2 FROM tab0
----
-3045
-3395
-525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * - ( + col0 ) * - col0 + 71 - - + col1 + col0 * col0 col2 FROM tab1
----
-247010
-418974
-554709

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4669
SELECT ALL col0, 20 * CAST( NULL AS SIGNED ) * col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4669
SELECT ALL col0, 20 * CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL SUM( + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL SUM ( + col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4671
SELECT ALL - CAST( NULL AS DECIMAL ) * + COUNT( * ) + AVG ( - - 27 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * ) + AVG ( - - 27 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 22 + + - col2 - col1 + col2 * - col2 * + col0 FROM tab2
----
-102495
-24386
-252403

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT DISTINCT ( - COUNT( * ) ) - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT ( - COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL - 54 + COUNT( * ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL - 54 + COUNT ( * ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT ALL - 97 * + 65 FROM tab1 AS cor0
----
-6305
-6305
-6305

query I rowsort
SELECT + - 8 * - + 23 FROM tab0 cor0
----
184
184
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 6 col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL col1 * + 34 AS col2 FROM tab2
----
1734
2278
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT + ( - MAX( ALL + 88 ) ) AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + ( - MAX ( ALL + 88 ) ) AS col1 FROM tab2
----
-88

query I rowsort
SELECT col0 - 67 - 9 FROM tab0 WHERE NOT + col0 * + + col2 < col0
----
-61
11
21

query I rowsort
SELECT ALL 29 * + 36 FROM tab1
----
1044
1044
1044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NOT + + col2 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IN ( - col1, + col0 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 11 AS col0 FROM tab1 cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - ( COUNT( - col0 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4685
SELECT - ( COUNT ( - col0 ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4686
SELECT CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4686
SELECT CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT 79, col2 FROM tab0
----
79
10
79
47
79
99

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 7 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IS NULL OR - 35 / + 55 / + + col0 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4690
SELECT - col2 DIV col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-99
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-4690
SELECT - col2 / col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-99
1
0
21
0
81

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col1 * - col2 + + 74 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - + col1 AS col2, col1 * - 94 * col0 FROM tab2 AS cor0
----
-51
-220524
-67
-472350
-77
-463232

query I rowsort
SELECT DISTINCT - - col2 * col2 + + ( + col2 ) AS col0 FROM tab1 cor0
----
3540
4692
9312

query I rowsort
SELECT ALL + - 2 AS col0 FROM tab2 AS cor0
----
-2
-2
-2

query II rowsort
SELECT ALL - - 36 * + 57 + - + 16 + col2 AS col2, - col2 FROM tab0 AS cor0
----
2046
-10
2083
-47
2135
-99

query I rowsort
SELECT DISTINCT + col1 + col2 * + 3 AS col1 FROM tab0 AS cor0
----
222
298
51

query I rowsort
SELECT DISTINCT - ( - col2 ) * + + col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT ALL - CAST( NULL AS SIGNED ) + MIN( DISTINCT + col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT COUNT( * ) + - COUNT( * ) - - MIN( + - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4699
SELECT COUNT ( * ) + - COUNT ( * ) - - MIN ( + - col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT + 32 + col1 * + + col0 + + col0 AS col1 FROM tab0
----
1262
1946
226

query I rowsort
SELECT col0 + - 18 AS col0 FROM tab0
----
-3
69
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 10 col1 FROM tab0 cor0
----
109
20
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( + + col1, col2 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 40 col1 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT + SUM( - ( + 64 ) ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT + SUM ( - ( + 64 ) ) FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT MAX( DISTINCT - ( - col0 ) ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT MAX ( DISTINCT - ( - col0 ) ) AS col0 FROM tab1 cor0
----
91

query II rowsort
SELECT + col0 AS col1, + ( + col2 ) * - 32 FROM tab2 AS cor0
----
46
-736
64
-1280
75
-1856

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT + col0 DIV + + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4709
SELECT + col0 / + + col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - col1 * + + 72 FROM tab1
----
-1008
-3384
-360

query I rowsort
SELECT DISTINCT 11 * + 34 FROM tab0
----
374

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < + 67 - + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - - MAX( - + 82 ) * - 35 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
2873

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - - MAX ( - + 82 ) * - 35 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2873

query I rowsort
SELECT DISTINCT col2 + - + col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT + + CAST( NULL AS SIGNED ) / + 66 + - 52 + - + col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4715
SELECT + + CAST ( NULL AS INTEGER ) / + 66 + - 52 + - + col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4716
SELECT CAST( NULL AS SIGNED ) AS col1, + col1 * + col2 + 6 AS col0 FROM tab2 AS cor0
----
NULL
1179
NULL
3086
NULL
3892

skipif mysql # not compatible
query II rowsort label-4716
SELECT CAST ( NULL AS INTEGER ) AS col1, + col1 * + col2 + 6 AS col0 FROM tab2 AS cor0
----
NULL
1179
NULL
3086
NULL
3892

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN ( + 45 ) AND + - 1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT DISTINCT CAST( - - col1 AS SIGNED ) + CAST( + col2 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) + CAST ( + col2 AS INTEGER ) FROM tab2
----
117
125
74

query I rowsort
SELECT ALL + 5 * - + col2 - + 9 AS col1 FROM tab1
----
-304
-349
-489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL + - CAST( SUM( - + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + - CAST ( SUM ( - + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) * - col2 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + - col1 * 32 - 8 + - 97 AS col1, 20 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1737
1078
-2249
4370
-2569
2580

query I rowsort
SELECT - col1 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ( - MIN( ALL + 75 ) ) + - 34 - 62 FROM tab0 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4725
SELECT ( - MIN ( ALL + 75 ) ) + - 34 - 62 FROM tab0 cor0
----
-171

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * - col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT DISTINCT - col2 DIV + col1 + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - col2 / + col1 + col0 FROM tab2
----
46
64
75

query II rowsort
SELECT 2 * + 65 AS col0, + col1 AS col1 FROM tab2
----
130
51
130
67
130
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4729
SELECT + - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT DISTINCT ( + - 3 ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4730
SELECT DISTINCT ( + - 3 ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - 31 ) col2, - 58 FROM tab1 AS cor0
----
-31
-58
-31
-58
-31
-58

query I rowsort
SELECT + 20 AS col0 FROM tab0 WHERE NOT - + ( - col0 ) * col1 - 24 IS NOT NULL
----

query I rowsort
SELECT - ( - col0 ) - + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 13 FROM tab2 WHERE NOT ( 36 IS NULL )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( NOT - col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( NOT - col0 IS NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4736
SELECT 81 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT 81 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + + ( - 78 ), col2 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-78
23
-78
40
-78
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT ALL - col0, + col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 56 * - col1 / - col2 * ( + + col2 ) + + 97 + + col1 * + - col0 * + ( - col0 ) + - col0 >= NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - 95 AS col2 FROM tab0 AS cor0
----
1995
7695
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - COUNT( * ) FROM tab2 WHERE - 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT - COUNT ( * ) FROM tab2 WHERE - 3 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + 16 FROM tab2
----
-30
-48
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - col0 IN ( col1 * + 71 - - col2 + - 62 + + 18 * - - 63 * - + col0, col1 + + col1 + + col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + - 27 - + + 56 AS col1 FROM tab2 AS cor0
----
-1433
-1865
-2135

query I rowsort
SELECT ALL - - ( + col2 ) AS col1 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 17 + + 68 <= + 68
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT + col2 DIV col1 - + col2 + - + 4 FROM tab0 AS cor0
----
-14
-4
-51

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + col2 / col1 - + col2 + - + 4 FROM tab0 AS cor0
----
-14
-4
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL CAST( NULL AS SIGNED ) / + SUM( ALL col0 ) + + COUNT( DISTINCT - col2 ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4750
SELECT ALL CAST ( NULL AS INTEGER ) / + SUM ( ALL col0 ) + + COUNT ( DISTINCT - col2 ) col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 + ( + - col2 ) + - + 32 FROM tab2
----
-32

query I rowsort
SELECT DISTINCT col1 - - ( + 25 ) AS col0 FROM tab1
----
30
39
72

query I rowsort
SELECT ALL + col1 + col1 * + + col1 * + 84 AS col0 FROM tab1
----
16478
185603
2105

query I rowsort
SELECT DISTINCT - 15 + col0 + - 22 AS col0 FROM tab1
----
14
48
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4755
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 58 * + CAST( NULL AS SIGNED ), + col2 )
----

skipif mysql # not compatible
query III rowsort label-4755
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 58 * + CAST ( NULL AS INTEGER ), + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT COUNT( * ) + - COUNT( + col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT COUNT ( * ) + - COUNT ( + col1 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT COUNT( * ) * - + COUNT( * ) * 63 + - SUM( 38 ) AS col2 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-4757
SELECT COUNT ( * ) * - + COUNT ( * ) * 63 + - SUM ( 38 ) AS col2 FROM tab1
----
-681

query I rowsort
SELECT ALL 12 - - col2 FROM tab0
----
111
22
59

query I rowsort
SELECT ALL - 41 * + col0 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT + 13 - - + MAX( DISTINCT + col0 ) col0 FROM tab2
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4760
SELECT DISTINCT + 13 - - + MAX ( DISTINCT + col0 ) col0 FROM tab2
----
88

query I rowsort
SELECT 20 AS col0 FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT - 71 IS NULL
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4762
SELECT ALL * FROM tab1 WHERE - col2 / - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4762
SELECT ALL * FROM tab1 WHERE - col2 / - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + 6 FROM tab2, tab2 AS cor0 WHERE ( + 52 ) IS NOT NULL
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - + 44 AS col2 FROM tab2 AS cor0
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL - SUM( DISTINCT + 99 ) AS col0 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - SUM ( DISTINCT + 99 ) AS col0 FROM tab2 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col1 * - - col2 col1 FROM tab1 AS cor0
----
14
1344
47
3196
5
295

query II rowsort
SELECT col0 AS col2, 83 FROM tab0 AS cor0
----
15
83
87
83
97
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4769
SELECT - col0 DIV - CAST( - col2 AS SIGNED ), + col2 FROM tab1
----
-1
59
-1
68
0
96

skipif mysql # not compatible
query II rowsort label-4769
SELECT - col0 / - CAST ( - col2 AS INTEGER ), + col2 FROM tab1
----
-1
59
-1
68
0
96

query II rowsort
SELECT col0 * - + col1 AS col0, col0 AS col1 FROM tab2
----
-2346
46
-4928
64
-5025
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4771
SELECT ALL * FROM tab2 WHERE NOT + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4771
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 19 * + - col1 AS col1, col1 * 84 AS col2 FROM tab1
----
-266
1176
-893
3948
-95
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <> CAST( NULL AS SIGNED ) + - col0 + 77 + - col0
----

skipif mysql # not compatible
query I rowsort label-4774
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <> CAST ( NULL AS INTEGER ) + - col0 + 77 + - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - col0 * - col1 * + col1 + + 10 + - col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4776
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4776
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT ALL COUNT( * ) AS col0, - 2 FROM tab1 AS cor0
----
3
-2

skipif mysql # not compatible
query II rowsort label-4778
SELECT ALL COUNT ( * ) AS col0, - 2 FROM tab1 AS cor0
----
3
-2

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 * + + 67 + + col0 / - col2 - 92 ) >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 15 + - 86 NOT IN ( col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 48 <= NULL
----

query I rowsort
SELECT ALL 25 + + + 12 AS col0 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - COUNT( + 22 ) * 92 AS col0 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4783
SELECT - COUNT ( + 22 ) * 92 AS col0 FROM tab0 AS cor0
----
-276

query II rowsort
SELECT + 80, - col1 AS col2 FROM tab2 AS cor0
----
80
-51
80
-67
80
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * + 52 + + + col2 * + ( ( + col2 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT + SUM( ALL - - col1 ) + 92 AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + SUM ( ALL - - col1 ) + 92 AS col1 FROM tab0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col2 / + + 93 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 0 * - 78 * - col1 + + + 88 FROM tab0
----
88
88
88

query I rowsort
SELECT DISTINCT 69 * - col1 * - col2 + col2 FROM tab1 WHERE NULL NOT BETWEEN col0 AND col2 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT ALL 55 DIV - 85 + - + 92 FROM tab1
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL 55 / - 85 + - + 92 FROM tab1
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col2 * - col0 * col0 + - - col1 * + col0 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL CAST( 13 AS SIGNED ) * - col2 + + col2 FROM tab2
----
-276
-480
-696

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL CAST ( 13 AS INTEGER ) * - col2 + + col2 FROM tab2
----
-276
-480
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT MAX( DISTINCT - + 22 ) + - 10 AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4793
SELECT MAX ( DISTINCT - + 22 ) + - 10 AS col1 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT - + 48 + + col2 + - col1 AS col2 FROM tab2 cor0
----
-57
-76
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT ALL - CAST( col1 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - CAST ( col1 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + col2 * 49 + - col0 AS col0 FROM tab1 cor0
----
2806
3241
4653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT 66 + + + 23 + - 21 * + CAST( - SUM( DISTINCT + 17 ) AS SIGNED ) FROM tab1 AS cor0
----
446

skipif mysql # not compatible
query I rowsort label-4797
SELECT 66 + + + 23 + - 21 * + CAST ( - SUM ( DISTINCT + 17 ) AS INTEGER ) FROM tab1 AS cor0
----
446

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + - MIN( + col0 ) * - 50 AS col2 FROM tab2 cor0
----
2300

skipif mysql # not compatible
query I rowsort label-4798
SELECT + - MIN ( + col0 ) * - 50 AS col2 FROM tab2 cor0
----
2300

query II rowsort
SELECT col0, + ( 77 ) * + 94 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - COUNT( ALL - - 77 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4800
SELECT - COUNT ( ALL - - 77 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ( + - COUNT( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4801
SELECT ( + - COUNT ( DISTINCT col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 * + 72 AS col1 FROM tab0 AS cor0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4803
SELECT DISTINCT - COUNT( * ) DIV + 36 * 45, + COUNT( - - col2 ) AS col2 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-4803
SELECT DISTINCT - COUNT ( * ) / + 36 * 45, + COUNT ( - - col2 ) AS col2 FROM tab2 AS cor0
----
0
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + + ( + 97 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 <= ( - - col2 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT SUM( DISTINCT 59 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT SUM ( DISTINCT 59 ) FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT ALL - CAST( + - col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL - + 98 AS col0 FROM tab1 WHERE NOT ( - col0 ) IN ( - 8 + - col2, + ( - CAST( NULL AS SIGNED ) ), col1 )
----

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - + 98 AS col0 FROM tab1 WHERE NOT ( - col0 ) IN ( - 8 + - col2, + ( - CAST ( NULL AS INTEGER ) ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT SUM( ALL - ( col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-4810
SELECT SUM ( ALL - ( col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT CAST( NULL AS SIGNED ) / - AVG ( - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT CAST ( NULL AS INTEGER ) / - AVG ( - col2 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT ( + col0 ) < col2
----
-87

query I rowsort
SELECT col1 + ( col0 ) - - col2 + ( + 79 ) - - + 66 AS col0 FROM tab2
----
265
326
345

query I rowsort
SELECT + col0 + - + col1 - col0 * + 30 FROM tab2
----
-1385
-1933
-2242

query I rowsort
SELECT - col1 + + - 46 FROM tab0
----
-127
-47
-67

query II rowsort
SELECT ALL - 21 AS col1, col0 AS col1 FROM tab1
----
-21
51
-21
85
-21
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT ( MIN( ALL - - 94 ) ) col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4817
SELECT DISTINCT ( MIN ( ALL - - 94 ) ) col2 FROM tab2 AS cor0
----
94

query II rowsort
SELECT ALL + col1 AS col2, 43 AS col0 FROM tab1 AS cor0
----
14
43
47
43
5
43

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( - col0 ) ) NOT BETWEEN col1 AND + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + 2 * + 30 FROM tab1 cor0
----
111
145
151

query I rowsort
SELECT ALL col1 + + - col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ( + + 36 ) * + 19 AS col0, col2 * - 51 + - ( - 85 ) + + col0 FROM tab1
----
684
-2839
684
-3292
684
-4760

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT - 36 / col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 51 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + 97 ) - + col2 * + col1 IN ( - 1 * + ( - col0 ) - + col0 + + col0 * + 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 48 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
48
48
48

query II rowsort
SELECT col2 + col0 AS col1, - col0 FROM tab0 AS cor0
----
196
-97
62
-15
97
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT 74 + - - col0 + - ( - CAST( NULL AS SIGNED ) ) / 10 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT 74 + - - col0 + - ( - CAST ( NULL AS INTEGER ) ) / 10 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT ALL COUNT( * ), 69 AS col1 FROM tab1 WHERE + 8 * + - 53 > - - col2
----
0
69

skipif mysql # not compatible
query II rowsort label-4829
SELECT ALL COUNT ( * ), 69 AS col1 FROM tab1 WHERE + 8 * + - 53 > - - col2
----
0
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT DISTINCT COUNT( * ) + - 46 AS col1 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT COUNT ( * ) + - 46 AS col1 FROM tab1
----
-43

query I rowsort
SELECT ALL + 33 * + col1 + col0 AS col1 FROM tab1
----
1642
250
513

query I rowsort
SELECT ALL col1 - + - 12 AS col0 FROM tab0
----
13
33
93

query I rowsort
SELECT col2 * col1 + - 0 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL col1 - - + col0 AS col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT 72 * col2 + + - 28 + - col0 * - + col1 AS col1 FROM tab1 WHERE + - CAST( - - col0 AS SIGNED ) > + 67 * + col2 * + + col0 * + 56 * - 22
----
4645
7598
9145

skipif mysql # not compatible
query I rowsort label-4835
SELECT 72 * col2 + + - 28 + - col0 * - + col1 AS col1 FROM tab1 WHERE + - CAST ( - - col0 AS INTEGER ) > + 67 * + col2 * + + col0 * + 56 * - 22
----
4645
7598
9145

query I rowsort
SELECT ALL 18 * - 47 * - col0 AS col1 FROM tab1
----
43146
71910
76986

query I rowsort
SELECT DISTINCT + ( 87 ) AS col2 FROM tab0
----
87

query II rowsort
SELECT + col1, col2 AS col0 FROM tab2 cor0 WHERE NOT 15 BETWEEN + + col2 AND NULL
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4839
SELECT - - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL + 9 * - COUNT( * ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + 9 * - COUNT ( * ) AS col1 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT + col0 * + col0 * - + 39 * - 55 AS col0 FROM tab1
----
15497625
17762745
5579145

query I rowsort
SELECT DISTINCT ( - - col2 ) * - col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT ALL ( - 44 ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL ( - 44 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4845
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 AS col2, 71 AS col2 FROM tab0 AS cor0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-4845
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 AS col2, 71 AS col2 FROM tab0 AS cor0
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT + + COUNT( * ) + + 35 col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT DISTINCT + + COUNT ( * ) + + 35 col1 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT - col2 + - 78 * + - 86 AS col2 FROM tab1 AS cor0
----
6612
6640
6649

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT + 4 + - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + 4 + - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT COUNT( * ) * + + 15 AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT COUNT ( * ) * + + 15 AS col2 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT + CAST( NULL AS SIGNED ) * - col2 / - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT + CAST ( NULL AS INTEGER ) * - col2 / - + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT 60 DIV - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT 60 / - col2 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - COUNT( * ) + + ( + - MIN( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4852
SELECT - COUNT ( * ) + + ( + - MIN ( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT DISTINCT - 94 + - col1 DIV + 65 AS col1 FROM tab0 AS cor0
----
-94
-95

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - 94 + - col1 / + 65 AS col1 FROM tab0 AS cor0
----
-94
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4854
SELECT DISTINCT - 8 DIV + MAX( ALL - col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT - 8 / + MAX ( ALL - col0 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 16 * + col2 - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL BETWEEN col2 AND NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT ALL - 23 - - col0 DIV col2 DIV + - col0 * - col0 FROM tab1 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - 23 - - col0 / col2 / + - col0 * - col0 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT DISTINCT - - COUNT( * ), - COUNT( DISTINCT - 55 ) AS col1 FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-4858
SELECT DISTINCT - - COUNT ( * ), - COUNT ( DISTINCT - 55 ) AS col1 FROM tab0 AS cor0
----
3
-1

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4861
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + CAST( ( - 98 ) AS SIGNED ) NOT IN ( + + CAST( - col0 AS SIGNED ) + - - col0, col1, + 91 )
----

skipif mysql # not compatible
query III rowsort label-4861
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + CAST ( ( - 98 ) AS INTEGER ) NOT IN ( + + CAST ( - col0 AS INTEGER ) + - - col0, col1, + 91 )
----

query II rowsort
SELECT - col2 AS col2, + 46 AS col1 FROM tab1 AS cor0
----
-59
46
-68
46
-96
46

query II rowsort
SELECT DISTINCT col2, 95 FROM tab2 AS cor0
----
23
95
40
95
58
95

query I rowsort
SELECT + ( 57 ) AS col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT - col1 * + 84 * col1 AS col1 FROM tab0 AS cor0
----
-37044
-551124
-84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL <> + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 WHERE col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT DISTINCT + ( COUNT( * ) ) AS col0, ( + + COUNT( * ) ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4868
SELECT DISTINCT + ( COUNT ( * ) ) AS col0, ( + + COUNT ( * ) ) AS col2 FROM tab1
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + 3 + + col1 <> + col1 ) OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL COUNT( * ) * + MIN( - 29 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL COUNT ( * ) * + MIN ( - 29 ) AS col0 FROM tab1
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-4871
SELECT + 38 AS col1, - col1 DIV 17 AS col2 FROM tab0 AS cor0
----
38
-1
38
-4
38
0

skipif mysql # not compatible
query II rowsort label-4871
SELECT + 38 AS col1, - col1 / 17 AS col2 FROM tab0 AS cor0
----
38
-1
38
-4
38
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 59 * col2 ) < col2
----

query II rowsort
SELECT - + col2 AS col1, 35 * 19 + ( col2 ) FROM tab0 AS cor0
----
-10
675
-47
712
-99
764

query I rowsort
SELECT DISTINCT + - 8 + - + col1 FROM tab0 AS cor0
----
-29
-89
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN ( col2 * col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + - 49, 14 * 74 * col2 )
----

query II rowsort
SELECT ALL col0 * - col0 + col2 + - 29, + col2 * col0 AS col2 FROM tab2
----
-2122
1058
-4085
2560
-5596
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT COUNT( * ) + 79 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT COUNT ( * ) + 79 FROM tab1
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-4880
SELECT ALL col1 + - 41 AS col0, + 0 DIV ( + col0 ) AS col1 FROM tab1
----
-27
0
-36
0
6
0

skipif mysql # not compatible
query II rowsort label-4880
SELECT ALL col1 + - 41 AS col0, + 0 / ( + col0 ) AS col1 FROM tab1
----
-27
0
-36
0
6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT ALL col1 DIV - 94 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL col1 / - 94 FROM tab0
----
0
0
0

query I rowsort
SELECT 91 + - 46 AS col2 FROM tab1
----
45
45
45

query I rowsort
SELECT col2 * 32 + - col1 AS col1 FROM tab2
----
1203
1789
685

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT - MAX( DISTINCT 14 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - MAX ( DISTINCT 14 ) FROM tab0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT - col2 * - col1 DIV - + col1 + + - 23 + col2 FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4886
SELECT - col2 * - col1 / - + col1 + + - 23 + col2 FROM tab0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT - ( - ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - ( - ( + COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + - 31 * + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4888
SELECT + - 31 * + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-93

query II rowsort
SELECT + col0 + - col1 AS col1, + col1 FROM tab0 AS cor0 WHERE NULL >= + col2 / 46 / + 52 + 49 * - col0
----

query I rowsort
SELECT DISTINCT - col0 * - 75 * - 88 * - col0 FROM tab0 AS cor0
----
1485000
49955400
62099400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - 71 AND NULL
----

query I rowsort
SELECT col2 * 60 AS col0 FROM tab1 AS cor0
----
3540
4080
5760

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col1 - - + col2 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 12 col2 FROM tab2
----
-552
-768
-900

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 34 <= + ( - - col2 ) + + 32
----

query I rowsort
SELECT ALL - 26 AS col1 FROM tab1 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ( SUM( DISTINCT - 19 ) ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-4898
SELECT ( SUM ( DISTINCT - 19 ) ) FROM tab1
----
-19

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / - - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT ALL CAST( + 10 AS SIGNED ) FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL CAST ( + 10 AS INTEGER ) FROM tab0
----
10
10
10

query II rowsort
SELECT DISTINCT col0, - col0 * - + ( + - col1 ) * 3 + col0 - + + 77 * + 73 AS col1 FROM tab1
----
51
-7712
85
-6811
91
-18361

query II rowsort
SELECT ALL + col0 AS col2, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-4904
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col2 col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query II rowsort
SELECT DISTINCT + ( 30 ), - col0 * + col2 AS col1 FROM tab1 AS cor0
----
30
-4896
30
-5015
30
-6188

query I rowsort
SELECT + 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col2 + - col1 + col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 68 + + col2 FROM tab2 AS cor0
----
-10
-28
-45

query I rowsort
SELECT - - 18 + + + col0 AS col1 FROM tab2 cor0
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + + COUNT( * ) + - + 74 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + + COUNT ( * ) + - + 74 FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + + - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT COUNT( - col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4915
SELECT COUNT ( - col0 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4916
SELECT + 66, - 78 DIV - - MIN( - col1 ) AS col0 FROM tab0
----
66
0

skipif mysql # not compatible
query II rowsort label-4916
SELECT + 66, - 78 / - - MIN ( - col1 ) AS col0 FROM tab0
----
66
0

query I rowsort
SELECT - + AVG ( DISTINCT - col1 ) AS col0 FROM tab0 WHERE + 96 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT CAST( 76 AS SIGNED ) FROM tab1
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4918
SELECT CAST ( 76 AS INTEGER ) FROM tab1
----
76
76
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT DISTINCT + 70, - COUNT( * ) * + MAX( DISTINCT - col2 ) + - - COUNT( * ) AS col2 FROM tab1
----
70
180

skipif mysql # not compatible
query II rowsort label-4919
SELECT DISTINCT + 70, - COUNT ( * ) * + MAX ( DISTINCT - col2 ) + - - COUNT ( * ) AS col2 FROM tab1
----
70
180

query I rowsort
SELECT - col2 + 38 AS col0 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col2 + - col0 FROM tab0 WHERE 90 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 19 * 76 - - col2 FROM tab1
----
1562
1580
1636

query I rowsort
SELECT ALL 11 + - ( + - col0 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL MAX( ( - col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL MAX ( ( - col0 ) ) FROM tab2
----
-46

query II rowsort
SELECT ALL + ( 48 ) * 66 AS col2, col2 + - - col0 FROM tab1
----
3168
144
3168
147
3168
159

query I rowsort
SELECT - 51 * - col0 AS col1 FROM tab1
----
2601
4335
4641

query I rowsort
SELECT ALL col1 * - 12 FROM tab1 AS cor0
----
-168
-564
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT + MAX( ALL + + 52 ) * + MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
5148

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + MAX ( ALL + + 52 ) * + MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT - COUNT( * ) + - MIN( - + 82 ) AS col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4929
SELECT - COUNT ( * ) + - MIN ( - + 82 ) AS col0 FROM tab1 AS cor0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4930
SELECT - 86 + + col2 DIV + 9 AS col2, col1 FROM tab0 AS cor0
----
-75
1
-81
81
-85
21

skipif mysql # not compatible
query II rowsort label-4930
SELECT - 86 + + col2 / + 9 AS col2, col1 FROM tab0 AS cor0
----
-75
1
-81
81
-85
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL - 59 + - MIN( 57 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-116

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - 59 + - MIN ( 57 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT 42 * + - col0 AS col2 FROM tab2 AS cor0
----
-1932
-2688
-3150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 47 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + COUNT( * ) * + COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4935
SELECT + COUNT ( * ) * + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT + 95 DIV + ( col0 ) AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + 95 / + ( col0 ) AS col2 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT 31 DIV + COUNT( * ) AS col1 FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4937
SELECT 31 / + COUNT ( * ) AS col1 FROM tab1 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + - 90 * 88 + COUNT( col2 ) FROM tab0 AS cor0
----
-7917

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - 90 * 88 + COUNT ( col2 ) FROM tab0 AS cor0
----
-7917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT - - col1 * - col2 + + 0 + col0 + CAST( NULL AS SIGNED ) - - + col2 * - - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4940
SELECT - - col1 * - col2 + + 0 + col0 + CAST ( NULL AS INTEGER ) - - + col2 * - - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + col1 IS NULL
----

query I rowsort
SELECT ALL - 62 FROM tab0 WHERE NULL IS NULL
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT ALL 19, COUNT( * ) AS col0 FROM tab0
----
19
3

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL 19, COUNT ( * ) AS col0 FROM tab0
----
19
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 - - - 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 38 <= + + ( + 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4946
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - col2 AND 21 * - col1 - + col0 * CAST( + ( + col1 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4946
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - col2 AND 21 * - col1 - + col0 * CAST ( + ( + col1 ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT CAST( NULL AS SIGNED ) * - col1 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT CAST ( NULL AS INTEGER ) * - col1 * - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4948
SELECT ALL col1 AS col1, + col2 DIV col2 * 86 + + + col0 FROM tab1 AS cor0
----
14
137
47
177
5
171

skipif mysql # not compatible
query II rowsort label-4948
SELECT ALL col1 AS col1, + col2 / col2 * 86 + + + col0 FROM tab1 AS cor0
----
14
137
47
177
5
171

query I rowsort
SELECT ALL 81 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
81
81
81

query II rowsort
SELECT col2, 15 FROM tab2 AS cor0
----
23
15
40
15
58
15

query I rowsort
SELECT DISTINCT - + 43 AS col2 FROM tab2 cor0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT ALL + COUNT( * ) DIV - 30 * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + COUNT ( * ) / - 30 * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT SUM( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4953
SELECT SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT DISTINCT + ( - - COUNT( * ) ) col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4954
SELECT DISTINCT + ( - - COUNT ( * ) ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4955
SELECT + - 36 DIV COUNT( * ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4955
SELECT + - 36 / COUNT ( * ) FROM tab1 cor0
----
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col1 ) * - 76 * col0 IS NULL
----

query I rowsort
SELECT ALL - 82 + + + col2 FROM tab2 AS cor0
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT + + COUNT( - col1 ) + + COUNT( ALL - 10 ) AS col2 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT + + COUNT ( - col1 ) + + COUNT ( ALL - 10 ) AS col2 FROM tab1 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + - - col1 col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL + col1 + + - 56 AS col1 FROM tab1 AS cor0
----
-42
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + 94 + + COUNT( DISTINCT - col0 ) AS col0 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-4961
SELECT + 94 + + COUNT ( DISTINCT - col0 ) AS col0 FROM tab1
----
97

query I rowsort
SELECT + - col2 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col2 + + col0 * - col1 + + col2 AS col1 FROM tab0
----
-1121
-1807
101

query I rowsort
SELECT col1 + - + col1 - - col2 FROM tab2
----
23
40
58

query I rowsort
SELECT col0 * + 24 + 82 AS col2 FROM tab0
----
2170
2410
442

query I rowsort
SELECT DISTINCT col1 * col0 + - 46 * + ( - col0 ) FROM tab0
----
1905
4559
5829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4967
SELECT DISTINCT - CAST( - 79 AS SIGNED ) AS col1, - COUNT( * ) FROM tab2
----
79
-3

skipif mysql # not compatible
query II rowsort label-4967
SELECT DISTINCT - CAST ( - 79 AS INTEGER ) AS col1, - COUNT ( * ) FROM tab2
----
79
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT COUNT( * ) + + COUNT( * ) + - 31 * + 74 FROM tab1
----
-2288

skipif mysql # not compatible
query I rowsort label-4968
SELECT COUNT ( * ) + + COUNT ( * ) + - 31 * + 74 FROM tab1
----
-2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - ( - col1 ) * + + col0 col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL - COUNT( * ) * - ( - 91 ) FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - COUNT ( * ) * - ( - 91 ) FROM tab1 cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL SUM( - - col0 ) + COUNT( col0 ) AS col1 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL SUM ( - - col0 ) + COUNT ( col0 ) AS col1 FROM tab1
----
230

query I rowsort
SELECT + col0 - - + ( - - col2 ) + - 90 FROM tab1
----
54
57
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - MIN( - - 89 ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4973
SELECT - MIN ( - - 89 ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4974
SELECT ALL col1, col1 * CAST( NULL AS DECIMAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL col1, col1 * CAST ( NULL AS REAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT col0 AS col0, ( + + col1 ) AS col0 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - col2 AND col1 + col2 * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - 57 AS col1 FROM tab0 cor0
----
-1197
-4617
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4979
SELECT DISTINCT + ( COUNT( - + col1 ) ) DIV - COUNT( * ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + ( COUNT ( - + col1 ) ) / - COUNT ( * ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL - + SUM( - 50 ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL - + SUM ( - 50 ) FROM tab1 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4981
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4981
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + + col0 * + + 86 + - + col1, - col0 AS col0 FROM tab0 AS cor0
----
1209
-15
7461
-87
8341
-97

query I rowsort
SELECT + ( + col1 ) * 91 AS col2 FROM tab1
----
1274
4277
455

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT - 61 DIV - + 7 AS col2 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 61 / - + 7 AS col2 FROM tab1
----
8
8
8

query I rowsort
SELECT DISTINCT col1 * 43 AS col0 FROM tab1
----
2021
215
602

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT col2 DIV 28 AS col1 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4986
SELECT col2 / 28 AS col1 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT DISTINCT - AVG ( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT - AVG ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * col2 - + + col0 + + 58 * col2 AS col1 FROM tab2 WHERE NOT + col1 < 27 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT - col1 * - 36 * + CAST( + col1 AS SIGNED ) + - - col1 * + 72 col1 FROM tab2 AS cor0
----
166428
218988
97308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4989
SELECT - col1 * - 36 * + CAST ( + col1 AS INTEGER ) + - - col1 * + 72 col1 FROM tab2 AS cor0
----
166428
218988
97308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT ALL + CAST( NULL AS SIGNED ) + + + 98 - + col1 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 98 - + col1 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1, 87 AS col2 FROM tab2 AS cor0
----
-51
87
-67
87
-77
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4992
SELECT ALL col2 DIV 48 + - 69 + - col1 * col1 AS col1, + col0 * col0 FROM tab1 AS cor0
----
-2277
8281
-263
2601
-93
7225

skipif mysql # not compatible
query II rowsort label-4992
SELECT ALL col2 / 48 + - 69 + - col1 * col1 AS col1, + col0 * col0 FROM tab1 AS cor0
----
-2277
8281
-263
2601
-93
7225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * - 11 col0 FROM tab1 AS cor0
----
-704
-704
-704

query I rowsort
SELECT - ( + - 93 ) FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT + 63 col2, + COUNT( * ) + ( + 56 ) AS col2 FROM tab2 AS cor0
----
63
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4995
SELECT + 63 col2, + COUNT ( * ) + ( + 56 ) AS col2 FROM tab2 AS cor0
----
63
59

query I rowsort
SELECT ALL + - col1 + - 2 FROM tab2 AS cor0
----
-53
-69
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT ALL - COUNT( * ) DIV + COUNT( * ) + + COUNT( + - col1 ) + - - 16 col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4997
SELECT ALL - COUNT ( * ) / + COUNT ( * ) + + COUNT ( + - col1 ) + - - 16 col1 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 AS cor0 WHERE NULL <= + col0
----

query I rowsort
SELECT ALL - 53 AS col2 FROM tab2 WHERE - 38 > NULL
----

query II rowsort
SELECT 35, 36 AS col1 FROM tab0
----
35
36
35
36
35
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - COUNT( 82 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5001
SELECT - COUNT ( 82 ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / - col1 NOT IN ( - col1, + ( - 7 ), col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0, col1 AS col0 FROM tab1 WHERE NULL < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5004
SELECT DISTINCT - CAST( NULL AS SIGNED ), col1 + - 47 AS col0 FROM tab0
----
NULL
-26
NULL
-46
NULL
34

skipif mysql # not compatible
query II rowsort label-5004
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col1 + - 47 AS col0 FROM tab0
----
NULL
-26
NULL
-46
NULL
34

query I rowsort
SELECT - + 74 + + + 18 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT ALL - + CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL - + CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col0 + - 1 + + col2 + - 67 + - - col2 AS col0 FROM tab0 AS cor0
----
-199
-7617
-9279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5008
SELECT - COUNT( * ) * - - SUM( DISTINCT - col2 ) - + COUNT( * ) + - ( COUNT( * ) ) DIV + - 12 FROM tab2 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-5008
SELECT - COUNT ( * ) * - - SUM ( DISTINCT - col2 ) - + COUNT ( * ) + - ( COUNT ( * ) ) / + - 12 FROM tab2 AS cor0
----
360

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - - col1 ) + + 19 / - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE 42 * - + 16 IS NULL
----

query I rowsort
SELECT col0 / - 71 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 97 * col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL + ( - - COUNT( DISTINCT + col0 ) ) * - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + ( - - COUNT ( DISTINCT + col0 ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT col0 * - 54 FROM tab0
----
-4698
-5238
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT DISTINCT - col0 DIV col0 col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5016
SELECT DISTINCT - col0 / col0 col2 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT 96 BETWEEN col1 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5019
SELECT ALL - ( - 75 ) * - 30 AS col1, - CAST( NULL AS DECIMAL ) - - + col0 AS col0 FROM tab2
----
-2250
NULL
-2250
NULL
-2250
NULL

skipif mysql # not compatible
query II rowsort label-5019
SELECT ALL - ( - 75 ) * - 30 AS col1, - CAST ( NULL AS REAL ) - - + col0 AS col0 FROM tab2
----
-2250
NULL
-2250
NULL
-2250
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT + 31, MIN( - ( - - col0 ) ) AS col0 FROM tab0
----
31
-97

skipif mysql # not compatible
query II rowsort label-5020
SELECT + 31, MIN ( - ( - - col0 ) ) AS col0 FROM tab0
----
31
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 54 ) col2 FROM tab0
----
-54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col1 + + - col2 * + col2 * 89 FROM tab1 cor0
----
-309814
-411583
-820238

query I rowsort
SELECT DISTINCT - 87 + + col2 FROM tab0 AS cor0
----
-40
-77
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT 80 * COUNT( * ) AS col2 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT 80 * COUNT ( * ) AS col2 FROM tab2
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT SUM( DISTINCT - 1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5028
SELECT SUM ( DISTINCT - 1 ) FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 WHERE NOT ( col2 * - 27 ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT COUNT( ALL col2 ) FROM tab1 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab1 WHERE NOT NULL > - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT ALL + CAST( col1 AS SIGNED ) - col0 AS col2 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + CAST ( col1 AS INTEGER ) - col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL col0 * 62 + col1 FROM tab0 WHERE NULL BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT - CAST( 99 AS SIGNED ) + + 45 * col0 FROM tab0
----
3816
4266
576

skipif mysql # not compatible
query I rowsort label-5033
SELECT - CAST ( 99 AS INTEGER ) + + 45 * col0 FROM tab0
----
3816
4266
576

query I rowsort
SELECT - 18 * col1 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT ALL col1 + col2 * col1 AS col2 FROM tab1
----
1358
300
3243

query I rowsort
SELECT - col1 * 99 FROM tab0
----
-2079
-8019
-99

query I rowsort
SELECT + 91 * 74 AS col2 FROM tab1
----
6734
6734
6734

query III rowsort
SELECT * FROM tab2 WHERE + col1 = 57 - col2
----

query I rowsort
SELECT DISTINCT + 74 * col0 + - 86 FROM tab2
----
3318
4650
5464

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT 98 DIV - col1 AS col2 FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT 98 / - col1 AS col2 FROM tab1
----
-19
-2
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5041
SELECT CAST( NULL AS SIGNED ) * + CAST( 52 AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT CAST ( NULL AS INTEGER ) * + CAST ( 52 AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 71 + 27 FROM tab2
----
3648
4784
5494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * - col0 col0 FROM tab2
----
-276
-384
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5044
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + 86 FROM tab1
----
-1204
-4042
-430

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT DISTINCT + 88 DIV + 87 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + 88 / + 87 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT - 66 + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5047
SELECT - 66 + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 47 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + ( + col2 ) NOT BETWEEN ( col1 ) AND col1 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + col2 col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT - MIN( DISTINCT 62 ) AS col1 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - MIN ( DISTINCT 62 ) AS col1 FROM tab0 AS cor0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT DISTINCT 78 * CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT 13 * - col1 <= col0 / 96
----

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT 78 * CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT 13 * - col1 <= col0 / 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT - 78 - 35 * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
237

skipif mysql # not compatible
query I rowsort label-5054
SELECT - 78 - 35 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
237

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - ( 91 ) * + ( + 72 * 2 - + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 55 NOT IN ( col0 * 34 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5057
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( col0 AS SIGNED ) * col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5057
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( col0 AS INTEGER ) * col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5058
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col0 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - + MAX( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5060
SELECT - + MAX ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col2 * + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( ( + col2 ) ) AND - 5
----

query I rowsort
SELECT - 32 * + ( + 29 ) FROM tab0 cor0
----
-928
-928
-928

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> - 63 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 * - 63 ) AND ( NULL )
----

query I rowsort
SELECT 60 * col2 FROM tab1 AS cor0
----
3540
4080
5760

query I rowsort
SELECT ( + 92 ) * - 57 AS col0 FROM tab1
----
-5244
-5244
-5244

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5067
SELECT * FROM tab2 WHERE NOT - col2 + - CAST( + col1 AS SIGNED ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-5067
SELECT * FROM tab2 WHERE NOT - col2 + - CAST ( + col1 AS INTEGER ) NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 48 AND col1 * - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT DISTINCT MAX( + 80 ) DIV 59 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT MAX ( + 80 ) / 59 FROM tab1
----
1

query I rowsort
SELECT DISTINCT col2 * + col2 + 65 * - col1 FROM tab1
----
1569
3156
8306

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT DISTINCT - 78 DIV col0 AS col1 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT - 78 / col0 AS col1 FROM tab0
----
-5
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 55 ) + 32 * 78 IN ( 7 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT DISTINCT + col2 * col2 DIV + col0 AS col2 FROM tab0
----
1
101
147

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + col2 * col2 / + col0 AS col2 FROM tab0
----
1
101
147

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * 64 NOT IN ( 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + 33 col2 FROM tab2 AS cor0
----
-100
-110
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - + ( - MAX( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5078
SELECT - + ( - MAX ( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0 AS cor0 WHERE 80 / - col2 > ( NULL )
----

query I rowsort
SELECT - + 15 + + - col0 + + col0 * col2 FROM tab2 AS cor0
----
2481
4260
997

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL 59 - COUNT( * ) AS col1 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL 59 - COUNT ( * ) AS col1 FROM tab2
----
56

query I rowsort
SELECT - 14 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5083
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) = ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-5083
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) = ( + col2 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + + 90 IS NOT NULL
----

query I rowsort
SELECT - col1 + - col0 FROM tab2 AS cor0 WHERE ( - col0 ) = + 96
----

query I rowsort
SELECT - col2 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-1560
-3306
-506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT + - SUM( DISTINCT + ( col2 ) ) DIV 58 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5088
SELECT + - SUM ( DISTINCT + ( col2 ) ) / 58 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT AVG ( - ( - col2 ) ) FROM tab2 cor0 WHERE + col1 - - 50 / 24 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT ALL 79 DIV + col2 * - 1 + + col2 + + col1 FROM tab2 AS cor0
----
116
124
71

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL 79 / + col2 * - 1 + + col2 + + col1 FROM tab2 AS cor0
----
116
124
71

query I rowsort
SELECT ALL + + 80 * - col1 AS col2 FROM tab0 AS cor0
----
-1680
-6480
-80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - col2 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT - 36 DIV + + col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5093
SELECT - 36 / + + col1 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT CAST( + + 53 AS SIGNED ) FROM tab2 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-5094
SELECT CAST ( + + 53 AS INTEGER ) FROM tab2 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) - col0 >= ( NULL )
----

query I rowsort
SELECT 75 - col0 FROM tab2 cor0
----
0
11
29

query I rowsort
SELECT ALL - 20 FROM tab2 WHERE NOT NULL IS NOT NULL AND ( NULL ) = + 57 + 22
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 35 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT - + 39 * - CAST( NULL AS SIGNED ) * + 4 + col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT - + 39 * - CAST ( NULL AS INTEGER ) * + 4 + col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col0 / col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT col2 DIV + col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5103
SELECT col2 / + col0 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - COUNT( - + 81 ) FROM tab0 WHERE NOT - 80 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT - COUNT ( - + 81 ) FROM tab0 WHERE NOT - 80 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL >= ( + 45 ) + - ( - 40 ) + col2
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 cor0 WHERE NULL NOT IN ( col0 - - - col2, + col1 * - 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT + SUM( + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5107
SELECT + SUM ( + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL + ( CAST( 19 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5108
SELECT ALL + ( CAST ( 19 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + + col1 + col0 + - col1 + + ( 96 - col2 * col0 ) NOT BETWEEN NULL AND 63
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 29 + + col1 * + 88 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5110
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 29 + + col1 * + 88 >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, + 63 col2 FROM tab2 AS cor0
----
51
63
67
63
77
63

query I rowsort
SELECT ALL + - 24 FROM tab0 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT 31 AS col2, - COUNT( + col0 ) * + - 94 * - + 27 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
31
-7611

skipif mysql # not compatible
query II rowsort label-5113
SELECT 31 AS col2, - COUNT ( + col0 ) * + - 94 * - + 27 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
31
-7611

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + + MAX( + 38 ) FROM tab2 cor0
----
38

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + + MAX ( + 38 ) FROM tab2 cor0
----
38

query I rowsort
SELECT DISTINCT - 84 FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL - CAST( 21 AS SIGNED ) + + col2 FROM tab1 cor0
----
38
47
75

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - CAST ( 21 AS INTEGER ) + + col2 FROM tab1 cor0
----
38
47
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + col0 ) AS col2, col1 * - + col0 * - - col2 + + ( col2 ) * 73 col1 FROM tab0
----
-15
-53674
-87
-17540
-97
-2376

query I rowsort
SELECT 59 * - col0 + + - col2 * - col1 + - + 68 * col0 - + col0 FROM tab0
----
-10926
-12317
1887

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + 29 IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 38 * + - col0 + + - ( - - 64 ), + 34 AS col0 FROM tab0
----
-3370
34
-3750
34
-634
34

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col0 - - ( - + col2 ) * + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT col1 + + col2 DIV + + 9 FROM tab0
----
12
22
86

skipif mysql # not compatible
query I rowsort label-5123
SELECT col1 + + col2 / + + 9 FROM tab0
----
12
22
86

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT - - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5126
SELECT DISTINCT col0, + col1 * + - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5126
SELECT DISTINCT col0, + col1 * + - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 64 - - + 45 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 0 / - + col1 ) IS NULL
----

query I rowsort
SELECT + 2 - + - col2 AS col1 FROM tab1
----
61
70
98

query I rowsort
SELECT DISTINCT - + 87 - - + col2 - + 94 * 87 AS col0 FROM tab1 AS cor0
----
-8169
-8197
-8206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL - CAST( - col0 AS SIGNED ) * col0 * + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - CAST ( - col0 AS INTEGER ) * col0 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 + - + 52 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT + COUNT( + col0 ) * - ( - + 88 ) AS col0 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT + COUNT ( + col0 ) * - ( - + 88 ) AS col0 FROM tab2 AS cor0
----
264

query I rowsort
SELECT ALL + 77 * - 24 FROM tab2 AS cor0
----
-1848
-1848
-1848

query I rowsort
SELECT DISTINCT + col2 * 11 FROM tab1 AS cor0
----
1056
649
748

query I rowsort
SELECT DISTINCT + - col0 + + col0 - - ( 90 ) FROM tab0 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT ALL col1 DIV - 62 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL col1 / - 62 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL - col2 * + - col1 + + 97 FROM tab2 AS cor0
----
1270
3177
3983

query I rowsort
SELECT DISTINCT + col1 + - col0 - - 63 FROM tab0 AS cor0
----
-3
-33
129

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IN ( - 45, - 44 + - + 15 - - col2 * col2 + ( + 36 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + MAX( + - ( - col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5141
SELECT + MAX ( + - ( - col1 ) ) AS col0 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + SUM( DISTINCT - - 83 ) AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-5143
SELECT + SUM ( DISTINCT - - 83 ) AS col2 FROM tab0
----
83

query II rowsort
SELECT DISTINCT col2, - col2 + 61 AS col2 FROM tab1
----
59
2
68
-7
96
-35

query I rowsort
SELECT 36 * + 14 AS col2 FROM tab0
----
504
504
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + COUNT( - 39 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5146
SELECT + COUNT ( - 39 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL IN ( col2 )
----
0

query II rowsort
SELECT ALL 89 AS col2, - 37 - - col1 * + + col0 * + 38 * - ( - 43 ) * col1 - + col2 * - 93 AS col1 FROM tab0
----
89
160814444
89
167668
89
62692571

query I rowsort
SELECT ALL col0 * + - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT DISTINCT col1, + col0 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT DISTINCT 36 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
36
-3

skipif mysql # not compatible
query II rowsort label-5152
SELECT DISTINCT 36 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
36
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5153
SELECT - - COUNT( * ) DIV + MIN( ALL 99 ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5153
SELECT - - COUNT ( * ) / + MIN ( ALL 99 ) AS col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT - MIN( col0 ) DIV - 70 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT - MIN ( col0 ) / - 70 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5155
SELECT DISTINCT COUNT( * ) + - MIN( DISTINCT - + 58 ), 6 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
67
6

skipif mysql # not compatible
query II rowsort label-5155
SELECT DISTINCT COUNT ( * ) + - MIN ( DISTINCT - + 58 ), 6 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
67
6

query I rowsort
SELECT - + ( - + 58 ) + 4 FROM tab2 AS cor0
----
62
62
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 7 <= 76 / - 9 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT DISTINCT col2 DIV + - 8 + - + 32 FROM tab2 AS cor0
----
-34
-37
-39

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT col2 / + - 8 + - + 32 FROM tab2 AS cor0
----
-34
-37
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT COUNT( * ) + 63 AS col2 FROM tab0 WHERE NOT ( ( + - 89 ) ) NOT BETWEEN 16 AND 68 + col0
----
63

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT COUNT ( * ) + 63 AS col2 FROM tab0 WHERE NOT ( ( + - 89 ) ) NOT BETWEEN 16 AND 68 + col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT MIN( ALL col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5160
SELECT MIN ( ALL col2 ) AS col0 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT DISTINCT - 40 DIV col1 * + col0 DIV - 79 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - 40 / col1 * + col0 / - 79 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT 29 * COUNT( * ) + - MAX( DISTINCT + + 75 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT 29 * COUNT ( * ) + - MAX ( DISTINCT + + 75 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + ( - COUNT( * ) ) AS col0 FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - ( COUNT( * ) ) - - 61 AS col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5164
SELECT - ( COUNT ( * ) ) - - 61 AS col0 FROM tab1 AS cor0
----
58

query I rowsort
SELECT - AVG ( 76 ) / + + 67 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 52 + - + col2 FROM tab1 AS cor0
----
-16
-44
-7

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - 15 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5169
SELECT COUNT( ALL + 11 ) DIV 10 + - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5169
SELECT COUNT ( ALL + 11 ) / 10 + - + COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 * + + col1 AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
210
3807
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5171
SELECT DISTINCT 65 - - - col1, col1 - - - ( + CAST( NULL AS DECIMAL ) ) + - col1 * + 16 * 69 AS col2 FROM tab1
----
18
NULL
51
NULL
60
NULL

skipif mysql # not compatible
query II rowsort label-5171
SELECT DISTINCT 65 - - - col1, col1 - - - ( + CAST ( NULL AS REAL ) ) + - col1 * + 16 * 69 AS col2 FROM tab1
----
18
NULL
51
NULL
60
NULL

query I rowsort
SELECT ALL + - col0 * col0 * - 64 FROM tab1 cor0
----
166464
462400
529984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 - - - 14 col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT - + col1 - + - col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - 92 - + 52 FROM tab2 AS cor0
----
-144
-144
-144

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 80 * - col2 + 62 ) <= - ( - 15 ) + - col1
----

query I rowsort
SELECT col2 * col2 * + + col0 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT SUM( - - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5178
SELECT SUM ( - - col1 ) AS col2 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT - 57 DIV + + 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT - 57 / + + 87 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT DISTINCT col2 DIV col1 * - 47 FROM tab1
----
-282
-47
-517

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT col2 / col1 * - 47 FROM tab1
----
-282
-47
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + + COUNT( * ) * + 77 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5181
SELECT + + COUNT ( * ) * + 77 FROM tab1 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL + - 50 + + SUM( DISTINCT col1 ) * COUNT( * ) FROM tab2 AS cor0
----
535

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + - 50 + + SUM ( DISTINCT col1 ) * COUNT ( * ) FROM tab2 AS cor0
----
535

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5183
SELECT DISTINCT col0 + - col0 + - - CAST( + - col1 AS SIGNED ) * col1 DIV - 90 FROM tab2
----
28
49
65

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT col0 + - col0 + - - CAST ( + - col1 AS INTEGER ) * col1 / - 90 FROM tab2
----
28
49
65

query II rowsort
SELECT ALL col0 + - col0 AS col2, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( 8 ) IS NOT NULL
----

query I rowsort
SELECT col2 + + - 82 FROM tab2
----
-24
-42
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab1 AS cor0 WHERE NOT + 41 + col2 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col1 - + - col0 * - col0 FROM tab1
----
-2615
-7230
-8328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT + CAST( - col2 AS SIGNED ) - col0 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-5189
SELECT + CAST ( - col2 AS INTEGER ) - col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL + + col1 * - - col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT - - 44 * SUM( + col1 ) FROM tab2 AS cor0
----
8580

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - - 44 * SUM ( + col1 ) FROM tab2 AS cor0
----
8580

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL ( - - MAX( DISTINCT + + col0 ) ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL ( - - MAX ( DISTINCT + + col0 ) ) FROM tab1 cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5194
SELECT CAST( NULL AS DECIMAL ) / + 0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT CAST ( NULL AS REAL ) / + 0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT COUNT( + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + - col2 + + ( - - 2 ) * - col2
----
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT COUNT ( + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + - col2 + + ( - - 2 ) * - col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col1 / + + 2 < NULL
----

query I rowsort
SELECT ALL - 60 * + col1 FROM tab1
----
-2820
-300
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL - 16 * COUNT( - col1 ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - 16 * COUNT ( - col1 ) AS col1 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT COUNT( ALL + col0 ) * + - 35 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-5200
SELECT COUNT ( ALL + col0 ) * + - 35 FROM tab1
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT DISTINCT - 34 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - 34 / - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT - COUNT( * ) * - SUM( ALL - col0 ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL - col0 ) FROM tab0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT SUM( ALL + - 15 ) AS col2 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5203
SELECT SUM ( ALL + - 15 ) AS col2 FROM tab2
----
-45

query I rowsort
SELECT ALL - col0 * + 3 * - col0 * - col0 FROM tab2
----
-1265625
-292008
-786432

query II rowsort
SELECT DISTINCT col0 * + - col0 AS col0, - col0 AS col1 FROM tab1
----
-2601
-51
-7225
-85
-8281
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + col1 * - col0 + - 90 - col1 + + + col2 + + - col0 + + + 75 FROM tab0 AS cor0
----
-111
-1279
-1940

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 97 AND NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, 57 * - 29 FROM tab1 AS cor0
----
59
-1653
68
-1653
96
-1653

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT ALL 82 * + + 27 * + - 85 * col2 DIV col2 * - col2 AS col2 FROM tab2
----
10915020
4328370
7527600

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL 82 * + + 27 * + - 85 * col2 / col2 * - col2 AS col2 FROM tab2
----
10915020
4328370
7527600

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ( + - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5212
SELECT ( + - COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5213
SELECT DISTINCT 67 * - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT 67 * - + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT MAX( 18 ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-5214
SELECT MAX ( 18 ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT + CAST( NULL AS SIGNED ) + + + 73 * + + col2 + 97 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT + CAST ( NULL AS INTEGER ) + + + 73 * + + col2 + 97 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 + - 18 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
-103
59
-109
68
-69
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5218
SELECT - + 35 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT - + 35 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT + CAST( + - 81 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + CAST ( + - 81 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT + col0 DIV 17 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-5221
SELECT + col0 / 17 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5222
SELECT ALL - CAST( - col2 AS SIGNED ) DIV - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - CAST ( - col2 AS INTEGER ) / - col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT - - 71 + + 99 + + col0 FROM tab1 AS cor0
----
221
255
261

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - - 57 + COUNT( * ) * + + SUM( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-528

skipif mysql # not compatible
query I rowsort label-5224
SELECT - - 57 + COUNT ( * ) * + + SUM ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-528

query I rowsort
SELECT ALL 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NULL <= - 86
----

query I rowsort
SELECT - ( col1 ) * - col1 * - col0 * + col1 - + + 63 AS col1 FROM tab1 AS cor0
----
-10688
-140007
-9447956

query I rowsort
SELECT + + ( - - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + + 43 FROM tab1 cor0
----
43
43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5232
SELECT CAST( SUM( - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) / - 91 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT CAST ( SUM ( - + CAST ( NULL AS INTEGER ) ) AS REAL ) / - 91 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT SUM( ALL + - col1 ) * - 26 AS col0 FROM tab1
----
1716

skipif mysql # not compatible
query I rowsort label-5233
SELECT SUM ( ALL + - col1 ) * - 26 AS col0 FROM tab1
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + COUNT( DISTINCT + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5234
SELECT + COUNT ( DISTINCT + col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT - col2 AS col0, col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL - 5 * - col1 AS col1 FROM tab0
----
105
405
5

query II rowsort
SELECT ALL + 90, - col0 + + ( - ( + col1 ) ) AS col0 FROM tab2
----
90
-141
90
-142
90
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 col0, col1 * 15 * + col2 FROM tab2
----
-15
17595
-15
46200
-15
58290

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / + + 6 + - 37 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT + SUM( ALL 53 ) AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT + SUM ( ALL 53 ) AS col1 FROM tab0 AS cor0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5242
SELECT DISTINCT CAST( + col0 AS SIGNED ), col2 + - col0 AS col1 FROM tab1
----
51
45
85
-26
91
-23

skipif mysql # not compatible
query II rowsort label-5242
SELECT DISTINCT CAST ( + col0 AS INTEGER ), col2 + - col0 AS col1 FROM tab1
----
51
45
85
-26
91
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5243
SELECT ( - + COUNT( * ) ) DIV - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5243
SELECT ( - + COUNT ( * ) ) / - COUNT ( * ) FROM tab1
----
1

query II rowsort
SELECT ALL ( + col1 ) AS col1, 4 FROM tab0
----
1
4
21
4
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT 10 * - SUM( DISTINCT - ( col1 ) ) FROM tab0
----
1030

skipif mysql # not compatible
query I rowsort label-5245
SELECT 10 * - SUM ( DISTINCT - ( col1 ) ) FROM tab0
----
1030

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL - MIN( - + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - MIN ( - + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL col1 + - - 5 * + col0 FROM tab0 AS cor0
----
156
456
486

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 + + + 26 + 69 * - + col0 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN 41 AND + col1
----

query I rowsort
SELECT 20 + - 29 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT col1 * - - 80 + + col1 AS col2 FROM tab1
----
1134
3807
405

query II rowsort
SELECT ALL col1 - + col0, col0 AS col0 FROM tab0
----
-66
87
-96
97
66
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + - col0 col2 FROM tab0
----
-71
-81
1

query I rowsort
SELECT ( - 92 ) + + col2 AS col2 FROM tab2
----
-34
-52
-69

query I rowsort
SELECT col0 * - col0 * + col1 + col0 FROM tab2
----
-107870
-315328
-376800

query I rowsort
SELECT ALL + col0 - - 55 AS col1 FROM tab0
----
142
152
70

query I rowsort
SELECT + 83 + 68 FROM tab0
----
151
151
151

query II rowsort
SELECT col2 * + + col1 AS col2, + col1 FROM tab2
----
1173
51
3080
77
3886
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5259
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( + 1 * + 59 + col2 + - - CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-5259
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( + 1 * + 59 + col2 + - - CAST ( NULL AS INTEGER ), - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5260
SELECT DISTINCT - ( - col1 ) * - + 10 * - col2 - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - ( - col1 ) * - + 10 * - col2 - + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5261
SELECT * FROM tab0 WHERE - - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5261
SELECT * FROM tab0 WHERE - - CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - COUNT( DISTINCT col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5262
SELECT - COUNT ( DISTINCT col2 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 - + ( + ( + col0 ) ) + + col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 24 >= NULL
----

query I rowsort
SELECT + col0 - + ( - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - 56 * + - 21 AS col0 FROM tab0 AS cor0
----
1176
1176
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5267
SELECT DISTINCT - COUNT( * ) / - ( MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) + - 14 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - COUNT ( * ) / - ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) + - 14 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL ( + MIN( - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL ( + MIN ( - col2 ) ) FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col2 + + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5270
SELECT - ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col1 + - col0 ) < + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + SUM( ALL + - 18 ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5272
SELECT + SUM ( ALL + - 18 ) AS col0 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL - ( col0 ) * + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT col0 * - - 79 * - - col1 FROM tab2
----
185334
389312
396975

query I rowsort
SELECT + 21 * - - col2 AS col1 FROM tab1
----
1239
1428
2016

query II rowsort
SELECT + col0 * - col0 AS col1, col2 * - col2 FROM tab2
----
-2116
-529
-4096
-1600
-5625
-3364

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT + col0 DIV 78 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT + col0 / 78 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + MAX( DISTINCT ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5278
SELECT + MAX ( DISTINCT ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - 16 * - - col0 + - 73 FROM tab2 AS cor0
----
-1097
-1273
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - SUM( 62 ) AS col1 FROM tab0 WHERE - + 13 + + 57 * + 15 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT - SUM ( 62 ) AS col1 FROM tab0 WHERE - + 13 + + 57 * + 15 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + SUM( ALL - + 52 ) * - 80 + COUNT( * ) + + 73 - + + 93 * - COUNT( * ) FROM tab0 cor0 WHERE col0 > + + col1 + - - 74
----
4327

skipif mysql # not compatible
query I rowsort label-5282
SELECT + SUM ( ALL - + 52 ) * - 80 + COUNT ( * ) + + 73 - + + 93 * - COUNT ( * ) FROM tab0 cor0 WHERE col0 > + + col1 + - - 74
----
4327

query I rowsort
SELECT ALL + col0 * 31 * + ( - col0 ) + + col2 + + 88 AS col0 FROM tab0 AS cor0
----
-234541
-291492
-6840

query I rowsort
SELECT - col1 * - col1 * - 90 FROM tab0 AS cor0
----
-39690
-590490
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + + SUM( - - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5285
SELECT + + SUM ( - - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + + SUM( - 75 ) FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5286
SELECT + + SUM ( - 75 ) FROM tab1 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL + 61 + + - COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL + 61 + + - COUNT ( * ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT col2 * - col1 * col0 - + col0 + col2 FROM tab0 AS cor0
----
-18347
-57073
-9601

query I rowsort
SELECT DISTINCT col2 * + - col0 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - - 45 AND + - col1 + + 5 - 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL col1 + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL col1 + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = col0
----

query I rowsort
SELECT ALL - col0 * - - 20 * + col0 * + 11 FROM tab1 AS cor0
----
-1589500
-1821820
-572220

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col0 * + 92 AS col0, - col1 FROM tab1 AS cor0
----
-4692
-14
-7820
-5
-8372
-47

query I rowsort
SELECT 87 FROM tab1 AS cor0 WHERE NULL IS NULL OR + col0 + + 96 IS NULL
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5299
SELECT ALL * FROM tab1 WHERE NOT ( 34 ) * - col0 * + CAST( + 40 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5299
SELECT ALL * FROM tab1 WHERE NOT ( 34 ) * - col0 * + CAST ( + 40 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + 59 + - col2 + + col2 * - + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + 14 AS col0, + col2 * + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
14
1173
14
3080
14
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT MIN( DISTINCT - 10 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT MIN ( DISTINCT - 10 ) FROM tab2
----
-10

query I rowsort
SELECT + 72 + + - 98 * + col2 + + + 71 + col2 * + col2 * - col0 AS col1 FROM tab1
----
-301524
-427305
-479281

query I rowsort
SELECT DISTINCT + col0 * - + 4 FROM tab1
----
-204
-340
-364

query II rowsort
SELECT + col2 + - ( col1 ) + + 62, - 8 * + col0 AS col2 FROM tab0
----
160
-776
28
-120
51
-696

query I rowsort
SELECT DISTINCT + col2 * col2 + - 42 FROM tab1 AS cor0
----
3439
4582
9174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 42 * col1 col0, - 50 * - + 61 AS col0 FROM tab2 WHERE NULL IS NULL
----
2142
3050
2814
3050
3234
3050

query I rowsort
SELECT + 18 - + 49 AS col2 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT ALL 85 * - - col1 + - col0 AS col1 FROM tab1 AS cor0
----
1139
340
3904

query I rowsort
SELECT ALL - 13 + + 87 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT - ( - 76 ) * - - col2 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-264551
-351377
-700402

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT - + COUNT( DISTINCT - + col2 ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT - + COUNT ( DISTINCT - + col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT DISTINCT + col0 + + CAST( - - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT + col0 + + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL - + col2 + - + 62 AS col2 FROM tab1 cor0
----
-121
-130
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL + COUNT( * ) + + - COUNT( ALL - 17 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + COUNT ( * ) + + - COUNT ( ALL - 17 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * ( + + 48 ) - - + col1 + - col1 * - - 50 FROM tab0
----
-1713
-549
4703

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT DISTINCT col2 DIV 11 + + 76 + + 24 FROM tab0
----
100
104
109

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT col2 / 11 + + 76 + + 24 FROM tab0
----
100
104
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT COUNT( - + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5318
SELECT COUNT ( - + col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL col2 * - col0 - - - col0 FROM tab2
----
-1104
-2624
-4425

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT + 41 DIV col1 + - ( col2 ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT + 41 / col1 + - ( col2 ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT 71 * + col2 FROM tab1
----
4189
4828
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL 27 AS col0 FROM tab1 WHERE ( + col0 ) NOT IN ( - col1 * + 37 )
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5325
SELECT ALL - col1 DIV + CAST( 62 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL - col1 / + CAST ( 62 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col1, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5327
SELECT + + COUNT( * ), - COUNT( * ) col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5327
SELECT + + COUNT ( * ), - COUNT ( * ) col2 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ( - + 76 ) * col2 FROM tab0 cor0
----
-3572
-7524
-760

query I rowsort
SELECT - 46 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-3679
-956
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT ALL - 45 * - + col2 * - 33 DIV - - 1 FROM tab2
----
-34155
-59400
-86130

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL - 45 * - + col2 * - 33 / - - 1 FROM tab2
----
-34155
-59400
-86130

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT - MIN( DISTINCT + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - MIN ( DISTINCT + col2 ) FROM tab1
----
-59

query II rowsort
SELECT col1 * - - col1, 99 AS col2 FROM tab1
----
196
99
2209
99
25
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT SUM( DISTINCT + - col2 ), - 38 col2 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-156
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5334
SELECT SUM ( DISTINCT + - col2 ), - 38 col2 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-156
-38

query I rowsort
SELECT - + col1 * + 67 + - 13 AS col2 FROM tab0 AS cor0
----
-1420
-5440
-80

query III rowsort
SELECT * FROM tab1 WHERE 65 - + + col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 80 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 43 col1 FROM tab0
----
-124
-44
-64

query I rowsort
SELECT + + 31 * + + col2 FROM tab1 cor0
----
1829
2108
2976

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT + - col1 DIV - 41 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5340
SELECT + - col1 / - 41 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5341
SELECT + COUNT( * ) * - ( + + 93 ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE CAST( - col2 AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5341
SELECT + COUNT ( * ) * - ( + + 93 ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE CAST ( - col2 AS REAL ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT - + CAST( + COUNT( * ) AS SIGNED ) * COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5342
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT - COUNT( DISTINCT + col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5343
SELECT - COUNT ( DISTINCT + col2 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT col1 * ( - col2 ) - - col0 AS col1 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT - COUNT( * ) - - 55 FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-5345
SELECT - COUNT ( * ) - - 55 FROM tab1 cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 5 col0 FROM tab0 AS cor0
----
-4
16
76

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE - col2 > 4
----

query I rowsort
SELECT DISTINCT - + 21 + - col2 FROM tab2 AS cor0
----
-44
-61
-79

query II rowsort
SELECT ALL - col0 * + col2 / - 23 * - col1 AS col2, col0 / - col0 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col1 FROM tab0 WHERE ( + 94 - + + col2 ) <> 51 * 43 - - ( col0 )
----
-93

query I rowsort
SELECT - - ( + col2 ) FROM tab0 WHERE NOT - col0 - + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL - SUM( - ( col0 ) ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - SUM ( - ( col0 ) ) AS col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL - 16 * - ( - - COUNT( * ) ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - 16 * - ( - - COUNT ( * ) ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + col2 / 48 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5354
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + col2 / 48 ) IS NULL
----
3

query I rowsort
SELECT + - 43 * 48 * - col1 * - 47 AS col0 FROM tab2 AS cor0
----
-4947408
-6499536
-7469616

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5356
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5356
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - - 5 AS col0 FROM tab2
----
-255
-335
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5358
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) DIV COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) / COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 * + - 69 FROM tab1
----
-3243
-345
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT ALL + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL 30 + - col0 FROM tab0 cor0
----
-57
-67
15

query I rowsort
SELECT DISTINCT - 9 + 84 * - col0 AS col1 FROM tab2 AS cor0
----
-3873
-5385
-6309

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT + + ( + 50 ) FROM tab1 AS cor0 WHERE NULL > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 + + 52 col0, - col2 AS col1 FROM tab0
----
142
-10
142
-47
142
-99

query II rowsort
SELECT ALL + 64 AS col1, col2 FROM tab0
----
64
10
64
47
64
99

query I rowsort
SELECT 98 + - 6 AS col0 FROM tab2
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5369
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col1 + + + col1 + + col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5369
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col1 + + + col1 + + col1 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - 58 + 51 AS col2, - 44 AS col2 FROM tab0
----
-7
-44
-7
-44
-7
-44

query I rowsort
SELECT DISTINCT col0 + + + ( + col1 ) AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL ( + - 8 ) AS col2 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT ALL 45 * + 79 AS col0 FROM tab2
----
3555
3555
3555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT 39 + ( + 30 ) + + CAST( + 36 AS SIGNED ) + - col0 * + - col2 AS col2 FROM tab1
----
5001
5120
6293

skipif mysql # not compatible
query I rowsort label-5374
SELECT 39 + ( + 30 ) + + CAST ( + 36 AS INTEGER ) + - col0 * + - col2 AS col2 FROM tab1
----
5001
5120
6293

query I rowsort
SELECT + ( - - col1 ) + - col1 * + col2 FROM tab0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT - col2 * CAST( - - 27 AS SIGNED ) + col1 col1 FROM tab1
----
-1588
-1789
-2578

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5376
SELECT - col2 * CAST ( - - 27 AS INTEGER ) + col1 col1 FROM tab1
----
-1588
-1789
-2578

query I rowsort
SELECT DISTINCT ( + + ( + col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT + COUNT( DISTINCT ( 43 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT + COUNT ( DISTINCT ( 43 ) ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - SUM( - col1 ) * + 12 AS col0 FROM tab1 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-5379
SELECT - SUM ( - col1 ) * + 12 AS col0 FROM tab1 AS cor0
----
792

query I rowsort
SELECT ALL col0 + + col2 + - + 73 AS col0 FROM tab2 AS cor0
----
-4
31
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5381
SELECT + 97 DIV COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5381
SELECT + 97 / COUNT ( * ) FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT MIN( col1 ) col1, COUNT( * ) AS col1 FROM tab2
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5382
SELECT MIN ( col1 ) col1, COUNT ( * ) AS col1 FROM tab2
----
51
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT + CAST( NULL AS SIGNED ) - - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT + CAST ( NULL AS INTEGER ) - - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT 94 * + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
846

skipif mysql # not compatible
query I rowsort label-5384
SELECT 94 * + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
846

query I rowsort
SELECT DISTINCT + col2 * + 19 * col2 FROM tab0 cor0
----
186219
1900
41971

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 >= col0 - + + 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) * + 19 * - + 26 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - 95 ) <= + col1 + - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT + MAX( - + col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5389
SELECT DISTINCT + MAX ( - + col2 ) col0 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT col2, - 73 FROM tab1
----
59
-73
68
-73
96
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL COUNT( * ) * + - 18 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL COUNT ( * ) * + - 18 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT COUNT( * ) * COUNT( ALL - 41 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5392
SELECT COUNT ( * ) * COUNT ( ALL - 41 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - COUNT( * ) * + 67 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-5393
SELECT - COUNT ( * ) * + 67 FROM tab0
----
-201

query II rowsort
SELECT + col0, - 99 FROM tab0
----
15
-99
87
-99
97
-99

query II rowsort
SELECT - 77 AS col1, col0 AS col2 FROM tab2
----
-77
46
-77
64
-77
75

query I rowsort
SELECT DISTINCT + + 58 - + col0 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT - + MAX( col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - + MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT 95 FROM tab0 AS cor0 WHERE NOT NULL >= 22 * - + 21 + 6
----

query I rowsort
SELECT ALL + ( - col1 ) * - 27 FROM tab1
----
1269
135
378

query I rowsort
SELECT ALL + 70 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT + ( + CAST( NULL AS SIGNED ) ) + ( + - 62 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT + ( + CAST ( NULL AS INTEGER ) ) + ( + - 62 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT 81 + - + MAX( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5403
SELECT 81 + - + MAX ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL - col2 * 17 + - 91 AS col1 FROM tab0 AS cor0
----
-1774
-261
-890

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT ( MIN( - ( + + 17 ) ) ), + 43 AS col1 FROM tab0 cor0
----
-17
43

skipif mysql # not compatible
query II rowsort label-5405
SELECT ( MIN ( - ( + + 17 ) ) ), + 43 AS col1 FROM tab0 cor0
----
-17
43

query I rowsort
SELECT ALL 69 + 39 AS col0 FROM tab0
----
108
108
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col2 + + - col2 AS col2 FROM tab0 AS cor0 WHERE col2 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + col2 + + 74 * - 81 <= + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + 67 * + 93 + + COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
6234

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + 67 * + 93 + + COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
6234

query I rowsort
SELECT ALL + col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 96 * - - 21 + + col0 IS NULL
----
141
142
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( + + ( + 25 ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT + 57 + + + COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5412
SELECT + 57 + + + COUNT ( * ) FROM tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT - 40 * - col0 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
2040
3400
3640

query I rowsort
SELECT - 54 + + + col2 FROM tab1
----
14
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-5416
SELECT + 24 col0, + 9 + - - ( col1 ) DIV + - col1 FROM tab2
----
24
8
24
8
24
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5416
SELECT + 24 col0, + 9 + - - ( col1 ) / + - col1 FROM tab2
----
24
8
24
8
24
8

query I rowsort
SELECT ALL 13 * 29 + col0 FROM tab1 AS cor0
----
428
462
468

query I rowsort
SELECT 60 * + - ( 32 ) FROM tab0 AS cor0
----
-1920
-1920
-1920

query II rowsort
SELECT DISTINCT col1, + 13 - + 41 FROM tab2 AS cor0
----
51
-28
67
-28
77
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT MAX( DISTINCT 23 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5420
SELECT MAX ( DISTINCT 23 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT DISTINCT - - COUNT( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT - - COUNT ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT ALL - COUNT( * ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5423
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

query II rowsort
SELECT - - col1, - col0 AS col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - ( col1 ) BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 99 + - 11 * - col1 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT MAX( - ( 37 ) ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT MAX ( - ( 37 ) ) FROM tab1
----
-37

query I rowsort
SELECT ALL + - 51 FROM tab0 WHERE ( - 96 IS NOT NULL )
----
-51
-51
-51

query II rowsort
SELECT DISTINCT - 97 * - - 96, col2 FROM tab2 AS cor0
----
-9312
23
-9312
40
-9312
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT + + CAST( + - 6 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + + CAST ( + - 6 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 64 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 45 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT - - ( - - col2 ) DIV + + 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT - - ( - - col2 ) / + + 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - col2 col1 FROM tab0 AS cor0
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 AS col0 FROM tab1 cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL - - 22 * + 76 + - - 56 * + + col2 - + - ( 68 ) * col2 AS col0 FROM tab0 AS cor0
----
13948
2912
7500

query I rowsort
SELECT ALL - col2 + - + 31 FROM tab2 AS cor0
----
-54
-71
-89

query I rowsort
SELECT DISTINCT + 46 * - 29 + ( + 27 ) AS col1 FROM tab1 cor0
----
-1307

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * - 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 13 >= + 68 + - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 52 + + 5 * - 50 FROM tab2
----
-302
-302
-302

query I rowsort
SELECT DISTINCT - 78 * 83 * + + col0 * - col2 AS col0 FROM tab2 WHERE - - col0 IS NOT NULL
----
16573440
28161900
6849492

query I rowsort
SELECT DISTINCT col2 - - 6 AS col1 FROM tab2
----
29
46
64

query I rowsort
SELECT col2 + col2 - + + col2 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT col1 + col2 + + + col1 FROM tab1
----
124
162
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT ALL 52 - + + 64 DIV + - 42 AS col0 FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 52 - + + 64 / + - 42 AS col0 FROM tab1
----
53
53
53

query I rowsort
SELECT DISTINCT + col1 * - - col2 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT + CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT + CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT DISTINCT - 46 - + MAX( - col2 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - 46 - + MAX ( - col2 ) FROM tab0
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5452
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - col2 AS col0, 36 * + + col0 AS col2 FROM tab2
----
NULL
1656
NULL
2304
NULL
2700

skipif mysql # not compatible
query II rowsort label-5452
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - col2 AS col0, 36 * + + col0 AS col2 FROM tab2
----
NULL
1656
NULL
2304
NULL
2700

query I rowsort
SELECT DISTINCT - 99 * - - col1 * 3 AS col1 FROM tab1 AS cor0
----
-13959
-1485
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL COUNT( * ) + - MAX( col1 ) * + - MAX( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
8022

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL COUNT ( * ) + - MAX ( col1 ) * + - MAX ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
8022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * 50 col0 FROM tab0 cor0
----
-2350
-4950
-500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT ALL + + 88 DIV + + 37 + COUNT( * ) * + 2 * - 39 AS col0 FROM tab0 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL + + 88 / + + 37 + COUNT ( * ) * + 2 * - 39 AS col0 FROM tab0 AS cor0
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT - + 38 + ( 32 ) * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
250

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT - + 38 + ( 32 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
250

query I rowsort
SELECT ALL - + 54 * + col0 + + 64 * + col1 - col1 FROM tab2 WHERE NULL NOT BETWEEN 65 AND col1 + + 74 - - col1 + 44
----

query I rowsort
SELECT + + 76 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 51 + - 38 + 61 AND + col1 + + - ( + - 75 )
----

query I rowsort
SELECT - + 46 * + 17 FROM tab2 cor0
----
-782
-782
-782

query I rowsort
SELECT - col1 * + 10 AS col1 FROM tab0
----
-10
-210
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT - 70 / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT - 70 / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5464
SELECT 53 DIV + COUNT( * ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5464
SELECT 53 / + COUNT ( * ) AS col2 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT + ( - MIN( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT + ( - MIN ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-59

query II rowsort
SELECT ALL - 19, col1 FROM tab1
----
-19
14
-19
47
-19
5

query II rowsort
SELECT ALL - col1 AS col1, - 95 AS col2 FROM tab2
----
-51
-95
-67
-95
-77
-95

query I rowsort
SELECT ALL + ( - - ( col2 ) ) * + col1 - + col2 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT DISTINCT - col0 * col2 * col1 AS col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT + + col1 + - ( - col2 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - 67 + - + 24 FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT 14 DIV + 19 + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5472
SELECT 14 / + 19 + + col0 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 9 <= - ( - 82 ) + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 86 FROM tab1 AS cor0 WHERE col2 NOT IN ( + col2, col1 )
----

query I rowsort
SELECT ALL 82 * - - 49 * + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-10286080
-17478300
-4251044

query I rowsort
SELECT DISTINCT - ( col0 ) * - + col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT 87 AS col2 FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE - 68 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 48 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - + COUNT( + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5480
SELECT - + COUNT ( + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query II rowsort
SELECT + 41 - + ( - + col1 ) AS col1, - col0 FROM tab0
----
122
-15
42
-97
62
-87

query II rowsort
SELECT col2 + + col1 + - col2 AS col0, 25 * 40 * - + ( - col1 ) AS col0 FROM tab0
----
1
1000
21
21000
81
81000

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 79 NOT IN ( col2 - 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT SUM( col0 ) AS col2 FROM tab2 WHERE NOT - 76 + col0 IN ( - ( - 89 ) )
----
185

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT SUM ( col0 ) AS col2 FROM tab2 WHERE NOT - 76 + col0 IN ( - ( - 89 ) )
----
185

query III rowsort
SELECT * FROM tab2 WHERE + col0 / + col2 + + 38 * - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT + MIN( - 51 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5486
SELECT + MIN ( - 51 ) FROM tab0
----
-51

query I rowsort
SELECT 27 AS col1 FROM tab0 WHERE NOT col2 * - 45 BETWEEN col2 AND col2
----
27
27
27

query I rowsort
SELECT DISTINCT col0 * - col2 - + 94 * col1 AS col1 FROM tab0
----
-2844
-8319
-9697

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 41 NOT BETWEEN + col0 * - 25 + col2 / ( col2 * col0 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab1 WHERE - col1 + + 55 * col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-5490
SELECT CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab1 WHERE - col1 + + 55 * col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT MIN( DISTINCT 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT MIN ( DISTINCT 43 ) FROM tab1
----
43

query I rowsort
SELECT - col1 * 95 AS col1 FROM tab2 WHERE NOT col0 - - 77 IS NULL
----
-4845
-6365
-7315

query III rowsort
SELECT * FROM tab0 WHERE + 70 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT MAX( ALL + 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT MAX ( ALL + 27 ) FROM tab2
----
27

query I rowsort
SELECT 48 + + col2 * + 86 AS col1 FROM tab2
----
2026
3488
5036

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( col0 + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab0 WHERE NOT ( + 90 ) > col2
----
-1

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab0 WHERE NOT ( + 90 ) > col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL - 88 - COUNT( * ) col1 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5498
SELECT ALL - 88 - COUNT ( * ) col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL + COUNT( 31 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + COUNT ( 31 ) FROM tab0
----
3

query I rowsort
SELECT + col1 * + 82 AS col1 FROM tab1
----
1148
3854
410

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT DISTINCT + col2 DIV + col0 - + col0 * - 15 FROM tab2
----
1125
690
960

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + col2 / + col0 - + col0 * - 15 FROM tab2
----
1125
690
960

query I rowsort
SELECT + col2 + + col2 * 28 FROM tab0 AS cor0
----
1363
2871
290

query I rowsort
SELECT 86 AS col2 FROM tab0 AS cor0 WHERE NOT + 24 IN ( + 80 + + col0 )
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT 78 + MAX( col1 + + 34 * - 61 ) col0 FROM tab0 AS cor0
----
-1915

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5504
SELECT 78 + MAX ( col1 + + 34 * - 61 ) col0 FROM tab0 AS cor0
----
-1915

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL SUM( col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL SUM ( col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT SUM( ALL col1 ) + + 27 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT SUM ( ALL col1 ) + + 27 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
114

query I rowsort
SELECT DISTINCT col2 + + 32 FROM tab1
----
100
128
91

query I rowsort
SELECT ALL + col0 + 35 AS col1 FROM tab0
----
122
132
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT MIN( ALL 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-5509
SELECT MIN ( ALL 35 ) FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - ( MAX( + 26 ) ) - ( 28 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5510
SELECT - ( MAX ( + 26 ) ) - ( 28 ) FROM tab2
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5511
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST( NULL AS DECIMAL ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-5511
SELECT * FROM tab2 WHERE NULL NOT IN ( + CAST ( NULL AS REAL ) + + col2 )
----

query I rowsort
SELECT + + ( + col2 ) - - col0 AS col1 FROM tab0 cor0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT 81 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 14 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 14 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT + - COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT + - COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5517
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) < ( - col2 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-5517
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < ( - col2 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT ALL - 7 * CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL - 7 * CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + - 78 * + col2 FROM tab2
----
-1771
-3080
-4466

query I rowsort
SELECT DISTINCT - 97 - - - col1 AS col2 FROM tab1
----
-102
-111
-144

query I rowsort
SELECT ALL + col1 - col2 + + col0 * 39 AS col1 FROM tab1
----
1907
3261
3528

query III rowsort
SELECT * FROM tab0 WHERE 46 + + col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - 51 - 37 AS col1 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT + col1 * + + col2 * + 34 AS col0 FROM tab2 AS cor0
----
104720
132124
39882

query I rowsort
SELECT ALL + + 96 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT MAX( DISTINCT - - 64 ) AS col0 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT MAX ( DISTINCT - - 64 ) AS col0 FROM tab2 AS cor0
----
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL AND col2 = - 24
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - 84 BETWEEN 59 AND ( - 73 + + ( - col2 + col0 ) )
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> 16 - col2 * - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL < NULL )
----

query I rowsort
SELECT + + 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - 69 FROM tab0 WHERE NOT + col1 + col2 IN ( col1 + - col2 )
----
-69
-69
-69

query II rowsort
SELECT ALL + 8 AS col0, col2 FROM tab2 AS cor0
----
8
23
8
40
8
58

query I rowsort
SELECT DISTINCT 88 FROM tab0 AS cor0 WHERE NOT ( 72 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab1 AS cor0
----
-43

query II rowsort
SELECT + col1 AS col2, col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL + SUM( DISTINCT 72 ) AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + SUM ( DISTINCT 72 ) AS col1 FROM tab0 AS cor0
----
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 82 < - 56 + - 18 * - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + COUNT( * ) * 69 * ( ( - 68 ) ) FROM tab2 AS cor0
----
-14076

skipif mysql # not compatible
query I rowsort label-5539
SELECT + COUNT ( * ) * 69 * ( ( - 68 ) ) FROM tab2 AS cor0
----
-14076

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT + MIN( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5540
SELECT + MIN ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT - 32 * + - 25, col1 FROM tab2
----
800
51
800
67
800
77

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 WHERE NULL IN ( + 19 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 8 AND - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT DISTINCT 51 * COUNT( * ) col0, 24 AS col0 FROM tab0
----
153
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5544
SELECT DISTINCT 51 * COUNT ( * ) col0, 24 AS col0 FROM tab0
----
153
24

query I rowsort
SELECT 71 + - ( - col1 ) FROM tab0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND ( + 86 )
----

query I rowsort
SELECT + - 39 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 17 * + - ( - + col2 ) AS col1 FROM tab0
----
1683
170
799

query III rowsort
SELECT * FROM tab2 WHERE - 28 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5549
SELECT - col2 + + col2 DIV + CAST( 65 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
-20
-54
-81

skipif mysql # not compatible
query I rowsort label-5549
SELECT - col2 + + col2 / + CAST ( 65 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
-20
-54
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col2 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT MIN( DISTINCT + 7 ) AS col2 FROM tab1 AS cor0 WHERE - 20 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT MIN ( DISTINCT + 7 ) AS col2 FROM tab1 AS cor0 WHERE - 20 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT + 52 DIV - col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT + 52 / - col0 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT col2 DIV - 9 AS col0 FROM tab2 AS cor0
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-5553
SELECT col2 / - 9 AS col0 FROM tab2 AS cor0
----
-2
-4
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 18 + - 9 AS col2 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT 84 - - col2 FROM tab1 AS cor0
----
143
152
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( - 20 ) ) + + 68 col2 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT - MIN( - col2 ) - - - COUNT( - 29 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - MIN ( - col2 ) - - - COUNT ( - 29 ) FROM tab0 AS cor0
----
96

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + col0 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5560
SELECT + 73 AS col2, COUNT( * ) FROM tab1, tab2 AS cor0
----
73
9

skipif mysql # not compatible
query II rowsort label-5560
SELECT + 73 AS col2, COUNT ( * ) FROM tab1, tab2 AS cor0
----
73
9

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( - 19 ) * + 30 ) IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 71 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT MIN( ALL - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5564
SELECT MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT - + col2 AS col1, 38 AS col1 FROM tab2 AS cor0
----
-23
38
-40
38
-58
38

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col0 + + col0 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL ( - - COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5567
SELECT ALL ( - - COUNT ( * ) ) col2 FROM tab1
----
3

query I rowsort
SELECT col1 * - col2 + - 24 AS col1 FROM tab0 cor0
----
-123
-234
-3831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT - CAST( NULL AS SIGNED ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT - CAST ( NULL AS INTEGER ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 86 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * + - 32 * - col0
----

query II rowsort
SELECT + ( - 30 ) AS col1, + col1 AS col0 FROM tab1 AS cor0
----
-30
14
-30
47
-30
5

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE col2 + 25 IS NULL
----

query II rowsort
SELECT ALL col1 + - col2, + col1 FROM tab1 AS cor0
----
-21
47
-54
5
-82
14

query II rowsort
SELECT ALL 5 * col1, col0 AS col0 FROM tab0 cor0
----
105
87
405
15
5
97

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT DISTINCT + SUM( - 65 ) + 71 + + 42 AS col1 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + SUM ( - 65 ) + 71 + + 42 AS col1 FROM tab0 AS cor0
----
-82

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( + col2 ) * - 3 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 93 / 60 - 72 + col2 IS NULL
----

query I rowsort
SELECT + 90 FROM tab1 WHERE NULL IS NULL
----
90
90
90

query I rowsort
SELECT + ( + col1 ) AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT - col1 * + col0 * - + col1 + - + 86 * col1 - col2 - + + col2 DIV + - col0 col2 FROM tab2
----
115237
330855
372794

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT - col1 * + col0 * - + col1 + - + 86 * col1 - col2 - + + col2 / + - col0 col2 FROM tab2
----
115237
330855
372794

query I rowsort
SELECT ( 11 ) + - col0 FROM tab2 WHERE NOT col0 IS NULL OR NOT col1 IN ( + + col0, + col0 )
----
-35
-53
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col2 + - 30 col0 FROM tab0
----
15
17
87
-20
97
69

query I rowsort
SELECT + col0 * - + col2 * - col0 * + + 7 + col0 AS col0 FROM tab2
----
1146944
2283825
340722

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5586
SELECT col1 * - + col1 + - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT col1 * - + col1 + - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT MIN( + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5587
SELECT MIN ( + col2 ) col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 BETWEEN + col2 AND + 7
----

query I rowsort
SELECT DISTINCT col0 + + col2 * + + col2 * - + 23 FROM tab2 AS cor0
----
-12121
-36736
-77297

query I rowsort
SELECT DISTINCT - col0 * + 79 + col0 AS col2 FROM tab1
----
-3978
-6630
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT + SUM( ALL + + 42 ) FROM tab0 WHERE - col0 IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT + SUM ( ALL + + 42 ) FROM tab0 WHERE - col0 IN ( + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3564

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + - col2, - col0 + + - 78 col1 FROM tab0
----
-210
-165
-3807
-93
-99
-175

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT DISTINCT + 50 DIV - + ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5595
SELECT DISTINCT + 50 / - + ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
16

query I rowsort
SELECT - + col0 AS col2 FROM tab1 AS cor0 WHERE + col2 + 64 + - 26 + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 + + col2, col0, + - 21 * + + ( + + 81 ) + + + col2 )
----

query I rowsort
SELECT 92 * + col1 FROM tab2 AS cor0
----
4692
6164
7084

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 < + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT - MIN( DISTINCT + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5600
SELECT - MIN ( DISTINCT + col1 ) FROM tab0
----
-1

query I rowsort
SELECT - 47 * + + 0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - MIN( - ( - col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5602
SELECT - MIN ( - ( - col0 ) ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT - COUNT( + + 99 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5603
SELECT - COUNT ( + + 99 ) FROM tab1
----
-3

query II rowsort
SELECT - col0 AS col1, col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5605
SELECT DISTINCT + ( + col0 ) DIV CAST( CAST( 89 AS SIGNED ) AS SIGNED ) * col2 + - - col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + ( + col0 ) / CAST ( CAST ( 89 AS INTEGER ) AS INTEGER ) * col2 + - - col0 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + 62 * COUNT( * ) AS col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN 7 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT + 62 * COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN 7 AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

query I rowsort
SELECT 37 + - - col1 FROM tab1
----
42
51
84

query I rowsort
SELECT DISTINCT - + 20 + + col1 + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * + 28 <> + 71
----
76
78
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + col0 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + col0 + + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5611
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT - COUNT( * ) + - 17 AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - COUNT ( * ) + - 17 AS col0 FROM tab2 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - 19 * 9 * + col2 col2 FROM tab1 AS cor0
----
14
-16416
47
-11628
5
-10089

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT ALL - COUNT( * ) * - COUNT( * ) * SUM( + col0 ) + 94 AS col0 FROM tab2 AS cor0
----
1759

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * SUM ( + col0 ) + 94 AS col0 FROM tab2 AS cor0
----
1759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 73 col1 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT + SUM( DISTINCT + + 77 ) FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + SUM ( DISTINCT + + 77 ) FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL ( - col0 ) + - + col1 * col1 * - 95 / - + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL ( - col0 ) + - + col1 * col1 * - 95 / - + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - COUNT( * ) * - - COUNT( * ) FROM tab2, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5618
SELECT - COUNT ( * ) * - - COUNT ( * ) FROM tab2, tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 WHERE ( NULL NOT IN ( - col1, 82, + ( col0 ) * + col2 ) )
----

query I rowsort
SELECT ALL col0 * col2 + + col2 AS col2 FROM tab1
----
4992
5074
6256

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT DISTINCT + col1 + - 35 DIV -