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 - + 7 + col1 FROM tab0
----
167
47
7

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT + col1 + - 35 / - + 7 + col1 FROM tab0
----
167
47
7

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 43
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + 39 NOT IN ( - - 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 10 * - + 84 / - 65 / 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5628
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST( - col2 AS SIGNED ) * + 75 * + + col0 < - - col2
----

skipif mysql # not compatible
query III rowsort label-5628
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST ( - col2 AS INTEGER ) * + 75 * + + col0 < - - col2
----

query I rowsort
SELECT + - col1 + + 61 AS col1 FROM tab1 AS cor0
----
14
47
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5630
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 56, - 11, - col1 * + + 86 * + 25, + col2 * col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5630
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 56, - 11, - col1 * + + 86 * + 25, + col2 * col0 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 70 - col2 FROM tab1
----
-26
11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - 18 + + MIN( - 68 ) * - ( - - 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
2430

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 18 + + MIN ( - 68 ) * - ( - - 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT MAX( DISTINCT - - 2 ) FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-5633
SELECT MAX ( DISTINCT - - 2 ) FROM tab0 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT + - 91 - + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < 25
----
-91

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + - 91 - + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < 25
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT - COUNT( ( col1 ) ) FROM tab1 WHERE NULL <= + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - COUNT ( ( col1 ) ) FROM tab1 WHERE NULL <= + + col0
----
0

query I rowsort
SELECT DISTINCT 30 * - + col2 FROM tab2
----
-1200
-1740
-690

query I rowsort
SELECT ALL col1 * 58 * + + 4 AS col2 FROM tab1
----
10904
1160
3248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5640
SELECT - SUM( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT ( + 81 * - col1 * + 14 ) > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT ( + 81 * - col1 * + 14 ) > col0
----
NULL

query I rowsort
SELECT ALL - 67 * - + 77 FROM tab0 WHERE + col0 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT MAX( - + 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT MAX ( - + 62 ) FROM tab0
----
-62

query I rowsort
SELECT ALL + ( - + 75 ) * 96 + 74 * - col1 FROM tab2
----
-10974
-12158
-12898

query I rowsort
SELECT + - 68 * 87 AS col1 FROM tab0 cor0
----
-5916
-5916
-5916

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5645
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV col1 + - col0, col1 FROM tab1 AS cor0
----
-50
14
-84
5
-90
47

skipif mysql # not compatible
query II rowsort label-5645
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / col1 + - col0, col1 FROM tab1 AS cor0
----
-50
14
-84
5
-90
47

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + 63 * + 35 + - 92 AND ( NULL )
----
51
85
91

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

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

query I rowsort
SELECT DISTINCT - ( + col0 ) + + 19 + 15 AS col1 FROM tab1 AS cor0
----
-17
-51
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT 42 + - ( - + COUNT( - 51 ) ) col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5649
SELECT DISTINCT 42 + - ( - + COUNT ( - 51 ) ) col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT col2 < - + col2 * + 69 * + + ( - - 36 )
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 + - 58 + - - col0 + + - ( - col2 ) FROM tab1
----
145
169
185

query III rowsort
SELECT ALL - 41 AS col1, + col1 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to c7514611822ccdec6cd005c4974d0ddd

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5653
SELECT DISTINCT + col2 DIV - + col2 - CAST( - col1 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
116
124
73

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + col2 / - + col2 - CAST ( - col1 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
116
124
73

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 < NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 3 ) > + 55 * + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

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

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

query I rowsort
SELECT col2 * - + col1 * - 11 FROM tab1
----
14784
3245
35156

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT col2 DIV + col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - + col1 IN ( 2 * + - 82 )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5661
SELECT col2 / + col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - + col1 IN ( 2 * + - 82 )
----
-46
-64
-75

query III rowsort
SELECT DISTINCT - 91 * - + col1, col0 AS col1, - - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to d281e6e547d6f74b407c015e0f86e294

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 50 - 38 - - col0 * + 79 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5666
SELECT MAX ( ALL - - col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT - 23 * - COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - 23 * - COUNT ( * ) FROM tab1
----
69

query I rowsort
SELECT DISTINCT 59 * 7 FROM tab2
----
413

query I rowsort
SELECT ALL - 79 * - 78 FROM tab1
----
6162
6162
6162

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE - ( col0 ) * 23 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - + 15 FROM tab2 AS cor0
----
-1125
-690
-960

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

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + 96 * + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 48 AS col2 FROM tab1
----
-2256
-240
-672

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

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

query I rowsort
SELECT 70 AS col2 FROM tab2 AS cor0 WHERE ( - col1 ) / ( col2 ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT 53 + + 45 + 46 * + col1 - - 86 FROM tab2 AS cor0
----
2530
3266
3726

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT + MIN( ALL + 35 ) AS col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5680
SELECT + MIN ( ALL + 35 ) AS col2 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL + 39 + 87 + - col1 + - col1 AS col0 FROM tab1 AS cor0
----
116
32
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT ALL + 59 DIV - col0 + + col0 * + ( + col0 ) + + col2 * + col2 + ( - col2 ) + col2 + + + col0 AS col2 FROM tab0 AS cor0
----
19307
2446
7756

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL + 59 / - col0 + + col0 * + ( + col0 ) + + col2 * + col2 + ( - col2 ) + col2 + + + col0 AS col2 FROM tab0 AS cor0
----
19307
2446
7756

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

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 - - - 32 / col2 + - col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5684
SELECT DISTINCT - MAX( + col2 ) - - - CAST( - + 69 AS SIGNED ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT - MAX ( + col2 ) - - - CAST ( - + 69 AS INTEGER ) FROM tab2
----
11

query I rowsort
SELECT DISTINCT 32 + - col0 AS col1 FROM tab2
----
-14
-32
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT ALL 50 - col0 DIV - col0 col0 FROM tab1
----
51
51
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5686
SELECT ALL 50 - col0 / - col0 col0 FROM tab1
----
51
51
51

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

query I rowsort
SELECT 65 + - - 58 FROM tab1
----
123
123
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT - MAX( - col0 ) - - - COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - MAX ( - col0 ) - - - COUNT ( * ) FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT COUNT( - 17 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5690
SELECT COUNT ( - 17 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 31 + - - col1 AS col1 FROM tab1
----
36
45
78

query I rowsort
SELECT - 16 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
67

query I rowsort
SELECT - + 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 63, col2 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 * - 17 col1 FROM tab0
----
-1071
-1071
-1071

query III rowsort
SELECT * FROM tab2 WHERE NOT + 52 NOT BETWEEN + col1 AND + 88 * + col1 * col1 * + col2 - + 32
----
46
51
23

query III rowsort
SELECT * FROM tab0 WHERE NOT + 22 / + - col0 BETWEEN NULL AND col1 * col0 * col2 * - col2 + + 23 - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT + col0 IN ( + col1 + 29 + ( + 29 ) )
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5705
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - ( - 22 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - CAST ( NULL AS REAL ) + - ( - 22 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + + 9 AS col0 FROM tab2 AS cor0
----
-37
-55
-66

query I rowsort
SELECT DISTINCT + + 47 + + col0 FROM tab2 AS cor0
----
111
122
93

query I rowsort
SELECT DISTINCT + 99 FROM tab0 cor0 WHERE col1 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 74 + + 40 + col0 AS col2 FROM tab1
----
-3683
-6165
-6603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT DISTINCT - MAX( col0 ) DIV + COUNT( * ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT - MAX ( col0 ) / + COUNT ( * ) AS col1 FROM tab1
----
-30

query I rowsort
SELECT 50 * col1 AS col2 FROM tab2
----
2550
3350
3850

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

query I rowsort
SELECT DISTINCT - - ( - 49 ) FROM tab2 AS cor0
----
-49

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

skipif mysql # not compatible
query I rowsort label-5714
SELECT - - CAST ( - col1 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5715
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5715
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL 16 + COUNT( DISTINCT - col2 ) + 8 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL 16 + COUNT ( DISTINCT - col2 ) + 8 FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL - 12 + col2 * - - col0 AS col2 FROM tab1
----
4884
5003
6176

query II rowsort
SELECT 47 + col2 AS col1, + 58 FROM tab0
----
146
58
57
58
94
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( ( - 36 ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( ( - 36 ) IS NOT NULL )
----
3

query I rowsort
SELECT col2 + + col0 FROM tab1 WHERE NULL IS NULL
----
144
147
159

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

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + 29 - + COUNT ( * ) FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL COUNT( * ) - - 9 + + 78 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL COUNT ( * ) - - 9 + + 78 FROM tab1
----
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5726
SELECT ALL col0 DIV col1, col2 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
1
115
17
64
3
110

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL col0 / col1, col2 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
1
115
17
64
3
110

query I rowsort
SELECT + col2 * col1 * col1 * - col2 FROM tab0
----
-14493249
-44100
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT ALL + COUNT( * ) DIV - 71 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL + COUNT ( * ) / - 71 AS col0 FROM tab1
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT COUNT( * ) * 95 AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-5733
SELECT COUNT ( * ) * 95 AS col0 FROM tab2
----
285

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

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

query I rowsort
SELECT ALL col1 * + - 62 FROM tab2
----
-3162
-4154
-4774

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

skipif mysql # not compatible
query I rowsort label-5737
SELECT + ( - - 66 ) FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5739
SELECT MAX ( + col2 ) * + COUNT ( * ) + COUNT ( * ) FROM tab0
----
300

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5742
SELECT col0, col0 DIV + col2 FROM tab1 cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-5742
SELECT col0, col0 / + col2 FROM tab1 cor0
----
51
0
85
1
91
1

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

skipif mysql # not compatible
query II rowsort label-5743
SELECT - col2 AS col0, + 15 / + + col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query I rowsort
SELECT DISTINCT - 61 FROM tab2 WHERE NOT - 88 IS NOT NULL
----

query I rowsort
SELECT ALL ( - - 38 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + + col1 AS col2 FROM tab0 AS cor0 WHERE col2 * - ( 78 ) = NULL
----

query II rowsort
SELECT ALL - ( col1 ), + col0 * - - col1 AS col1 FROM tab0 AS cor0
----
-1
97
-21
1827
-81
1215

query II rowsort
SELECT ALL - col1 + 35, col0 * col1 AS col0 FROM tab2 AS cor0
----
-16
2346
-32
5025
-42
4928

query II rowsort
SELECT - + col2 * + 50, - 52 * - + 17 AS col0 FROM tab2 AS cor0
----
-1150
884
-2000
884
-2900
884

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

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

query I rowsort
SELECT DISTINCT 93 + 22 * - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-119
-873
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * 31 + + + col2 col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 + col1 AND col2
----

query I rowsort
SELECT - 65 * - ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-3055
-6435
-650

query I rowsort
SELECT ALL + col1 + - 16 FROM tab0 AS cor0
----
-15
5
65

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

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

query I rowsort
SELECT ALL + 70 + col0 * + + col0 AS col1 FROM tab0 AS cor0
----
295
7639
9479

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

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

query I rowsort
SELECT ALL + col0 + 4 FROM tab0
----
101
19
91

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

query III rowsort
SELECT * FROM tab2 WHERE - - 80 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= col0 AND - col0 <> NULL
----

query I rowsort
SELECT DISTINCT 38 + - col2 AS col0 FROM tab0
----
-61
-9
28

query I rowsort
SELECT ALL + col1 * + + 66 - - + col1 AS col1 FROM tab2
----
3417
4489
5159

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + + col0 = + 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT + col1 * - 3 * + col2 DIV + col2 AS col0 FROM tab0 cor0
----
-243
-3
-63

skipif mysql # not compatible
query I rowsort label-5766
SELECT + col1 * - 3 * + col2 / + col2 AS col0 FROM tab0 cor0
----
-243
-3
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT DISTINCT ( + + col2 ) DIV - 65 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT ( + + col2 ) / - 65 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT + CAST( + - col1 AS SIGNED ) IN ( - col1 * 6, - col1, + 15 + col1, col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5768
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT + CAST ( + - col1 AS INTEGER ) IN ( - col1 * 6, - col1, + 15 + col1, col1 )
----

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

query I rowsort
SELECT - + 34 * + + col0 AS col2 FROM tab2 AS cor0
----
-1564
-2176
-2550

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT + COUNT( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 1 / - col2 * - 92 - + 60 * + - col1 * + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT + COUNT ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 1 / - col2 * - 92 - + 60 * + - col1 * + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 NOT IN ( + 40 )
----
64
77
40

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

skipif mysql # not compatible
query I rowsort label-5774
SELECT SUM ( col1 ) AS col0 FROM tab0 cor0
----
103

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT ALL col1 * 30 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - col0 / - CAST( + 70 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL col1 * 30 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - col0 / - CAST ( + 70 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col2 + col1 AS col0 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT + col2 + ( + - 65 ) + - - col1 FROM tab0
----
-34
35
63

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

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

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT COUNT( * ) * 11 AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5783
SELECT COUNT ( * ) * 11 AS col0 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT ALL col1 * - + CAST( - 86 AS SIGNED ) AS col1 FROM tab2
----
4386
5762
6622

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL col1 * - + CAST ( - 86 AS INTEGER ) AS col1 FROM tab2
----
4386
5762
6622

query I rowsort
SELECT DISTINCT + 76 * - + col2 * col0 FROM tab1 AS cor0
----
-372096
-381140
-470288

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL - MIN( - 71 ) * - 27 col1 FROM tab0 AS cor0
----
-1917

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5786
SELECT ALL - MIN ( - 71 ) * - 27 col1 FROM tab0 AS cor0
----
-1917

query I rowsort
SELECT DISTINCT ( - ( - + 32 ) ) * + col2 FROM tab2 AS cor0
----
1280
1856
736

query I rowsort
SELECT + 19 * + + col0 * col2 AS col1 FROM tab2 cor0 WHERE - ( + col1 ) / - 16 + + - 31 / + - col1 IS NULL
----

query I rowsort
SELECT ALL + ( + ( col1 ) ) + + col1 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT SUM( ALL - 17 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5791
SELECT SUM ( ALL - 17 ) FROM tab0
----
-51

query I rowsort
SELECT ALL + 61 * col0 * + col0 FROM tab2 cor0
----
129076
249856
343125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT ALL - + COUNT( - col1 ) DIV - COUNT( ALL - + col2 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - + COUNT ( - col1 ) / - COUNT ( ALL - + col2 ) FROM tab1 AS cor0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT 33 * COUNT( * ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5796
SELECT DISTINCT 33 * COUNT ( * ) col1 FROM tab0
----
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 69 col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT ALL + + COUNT( * ) AS col1, - 12 * + - 58 AS col2 FROM tab2 AS cor0
----
3
696

skipif mysql # not compatible
query II rowsort label-5800
SELECT ALL + + COUNT ( * ) AS col1, - 12 * + - 58 AS col2 FROM tab2 AS cor0
----
3
696

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

query I rowsort
SELECT DISTINCT - col2 + - + 67 + + ( - col0 ) FROM tab1 AS cor0
----
-211
-214
-226

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

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

query I rowsort
SELECT + + col1 * 9 - - - col0 FROM tab1 cor0
----
-40
332
75

query I rowsort
SELECT ALL - 89 + 92 FROM tab1 AS cor0
----
3
3
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + 1 * + + SUM( + + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5807
SELECT + 1 * + + SUM ( + + col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT DISTINCT + ( - - col2 ) + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + 19 * - col2 * - 68 FROM tab2
----
29716
51680
74936

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT - COUNT( * ) * 50 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-5810
SELECT - COUNT ( * ) * 50 FROM tab1
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 62 col1 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT - 85 * - - col2 FROM tab2
----
-1955
-3400
-4930

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col0 AND + 2 / 58
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - - 54 BETWEEN NULL AND - 19 * + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5815
SELECT ALL col1 + col1 DIV - ( 19 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN 54 AND - col1
----
49
64
73

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL col1 + col1 / - ( 19 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN 54 AND - col1
----
49
64
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5816
SELECT * FROM tab0 WHERE col0 IN ( - + 40, CAST( NULL AS SIGNED ) * 0 / + col1 )
----

skipif mysql # not compatible
query III rowsort label-5816
SELECT * FROM tab0 WHERE col0 IN ( - + 40, CAST ( NULL AS INTEGER ) * 0 / + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 12 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5819
SELECT + - 17 * CAST( NULL AS SIGNED ) + AVG ( ALL - 0 ) + + COUNT( * ) + + MIN( ALL + 32 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT + - 17 * CAST ( NULL AS INTEGER ) + AVG ( ALL - 0 ) + + COUNT ( * ) + + MIN ( ALL + 32 ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL SUM( col0 ) + - COUNT( * ) + + 33 AS col2 FROM tab2
----
215

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL SUM ( col0 ) + - COUNT ( * ) + + 33 AS col2 FROM tab2
----
215

query I rowsort
SELECT - col1 * - 88 FROM tab2
----
4488
5896
6776

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

query I rowsort
SELECT DISTINCT + 64 * + + ( - ( + + col1 ) ) - col2 - + 3 AS col2 FROM tab2 AS cor0
----
-3290
-4349
-4971

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT DISTINCT - COUNT( * ) AS col0, + 55 FROM tab1 AS cor0
----
-3
55

skipif mysql # not compatible
query II rowsort label-5825
SELECT DISTINCT - COUNT ( * ) AS col0, + 55 FROM tab1 AS cor0
----
-3
55

query I rowsort
SELECT DISTINCT - 45 + - col0 AS col2 FROM tab0 AS cor0
----
-132
-142
-60

query I rowsort
SELECT - - col1 - - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-182
-20
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL COUNT( DISTINCT + + 79 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL COUNT ( DISTINCT + + 79 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + 84 * - 89 = - col2
----
-51
-67
-77

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

skipif mysql # not compatible
query II rowsort label-5830
SELECT ALL + COUNT ( * ) AS col2, - 65 AS col2 FROM tab0
----
3
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT - ( COUNT( * ) ) DIV 30 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT - ( COUNT ( * ) ) / 30 FROM tab2
----
0

query II rowsort
SELECT - col1, col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-51
23
-67
58
-77
40

query II rowsort
SELECT + 35 AS col2, - col2 FROM tab0
----
35
-10
35
-47
35
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN + - col0 + - - 80 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - ( + ( col1 ) ) * - ( - col2 ) FROM tab1
----
-25075
-290836
-68544

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

query I rowsort
SELECT DISTINCT 94 * - col2 FROM tab1 cor0
----
-5546
-6392
-9024

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT + 18 + + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5839
SELECT DISTINCT + 18 + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
21

query I rowsort
SELECT col0 * + - 44 AS col0 FROM tab0 AS cor0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT DISTINCT - + MIN( col0 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-5841
SELECT DISTINCT - + MIN ( col0 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-15
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 55 < - col0
----
85
5
59
91
47
68

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

query I rowsort
SELECT DISTINCT - - 31 AS col2 FROM tab0 cor0
----
31

query I rowsort
SELECT DISTINCT - col2 + + 38 + + col1 AS col0 FROM tab1
----
-16
-44
17

query I rowsort
SELECT DISTINCT col0 * + col0 + - 87 FROM tab2
----
2029
4009
5538

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT + ( 50 ) + - COUNT( * ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5847
SELECT + ( 50 ) + - COUNT ( * ) FROM tab0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT DISTINCT 64 DIV - col2 col0 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5848
SELECT DISTINCT 64 / - col2 col0 FROM tab1
----
-1
0

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

query II rowsort
SELECT col2 + col0 + col2 AS col0, 62 + + col0 FROM tab1
----
203
147
227
153
243
113

query I rowsort
SELECT + col2 + + 11 + + + 35 + col1 * - col1 FROM tab2
----
-2532
-4385
-5843

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5852
SELECT ALL + col1, + CAST( NULL AS SIGNED ) * - - col0 * - CAST( - 28 AS SIGNED ) * 24 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5852
SELECT ALL + col1, + CAST ( NULL AS INTEGER ) * - - col0 * - CAST ( - 28 AS INTEGER ) * 24 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

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

query I rowsort
SELECT ALL - 68 + + + col1 * col1 AS col0 FROM tab0
----
-67
373
6493

query I rowsort
SELECT ALL - 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - 20 * - col1 AS col0 FROM tab2 AS cor0
----
1020
1340
1540

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col0 + + 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 col0 FROM tab1 cor0
----
-425
-4277
-714

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

query I rowsort
SELECT + 75 * - 4 FROM tab2
----
-300
-300
-300

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 26 + - 17 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5865
SELECT 18 / + col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 79 + 87 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - + 66 FROM tab1 cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT DISTINCT + CAST( AVG ( - 46 ) AS SIGNED ) / + + 67 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + CAST ( AVG ( - 46 ) AS INTEGER ) / + + 67 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - 14 * - + 56 FROM tab0 AS cor0
----
784

query I rowsort
SELECT - ( + col2 ) + + + col1 * - 89 FROM tab1
----
-1342
-4251
-504

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

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

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

query II rowsort
SELECT DISTINCT - - 25 + - + 90 AS col2, + col0 * - + 32 AS col0 FROM tab2 AS cor0
----
-65
-1472
-65
-2048
-65
-2400

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

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

query I rowsort
SELECT DISTINCT - - col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * 94 FROM tab2 AS cor0
----
2162
3760
5452

query I rowsort
SELECT DISTINCT col2 * - 46 AS col0 FROM tab1 AS cor0
----
-2714
-3128
-4416

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT ALL + 63 DIV - + 40 + - col0 * - col2 * + - col0 FROM tab1 AS cor0
----
-249697
-426276
-563109

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL + 63 / - + 40 + - col0 * - col2 * + - col0 FROM tab1 AS cor0
----
-249697
-426276
-563109

query II rowsort
SELECT 21, ( col1 ) * 1 + col2 AS col1 FROM tab0
----
21
100
21
128
21
31

query I rowsort
SELECT + col1 - col2 FROM tab2 WHERE NULL IS NULL
----
28
37
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL + MAX( ALL + + 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL + MAX ( ALL + + 91 ) FROM tab0
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5894
SELECT DISTINCT - + COUNT( * ) AS col0, COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL <> - col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5894
SELECT DISTINCT - + COUNT ( * ) AS col0, COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL <> - col1
----
0
NULL

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

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

query I rowsort
SELECT DISTINCT + col2 * - 66 AS col0 FROM tab0 cor0 WHERE + 93 IN ( + col1, col0 * + col1 + - 55, col0 * + 75 * - col2 * + - 63, + col1 + - + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT COUNT( ALL col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT COUNT ( ALL col1 ) AS col2 FROM tab2
----
3

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 6 <= + col0 * + col0 OR - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT MAX( ALL + 79 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT MAX ( ALL + 79 ) FROM tab1
----
79

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - ( + ( + 81 ) ) > col2 * - 47
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT DISTINCT SUM( ALL - - ( - - 86 ) ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT SUM ( ALL - - ( - - 86 ) ) FROM tab1
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT CAST( NULL AS SIGNED ) / - 89 * col1 col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 + + 73 FROM tab1 AS cor0
----
124
158
164

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

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

query I rowsort
SELECT ALL - - 51 + - 21 * - col0 FROM tab0 cor0
----
1878
2088
366

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 35 BETWEEN - 29 * - - col1 + - col0 - - ( - 91 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL COUNT( * ) + 66 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL COUNT ( * ) + 66 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT 30 + + COUNT( 49 ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5911
SELECT 30 + + COUNT ( 49 ) AS col2 FROM tab1
----
33

query II rowsort
SELECT DISTINCT col1 + - col1 + col1 - - col0 AS col0, - 56 FROM tab2
----
141
-56
142
-56
97
-56

query II rowsort
SELECT - 47 + + col1, col0 FROM tab1 WHERE NULL IS NULL
----
-33
51
-42
85
0
91

query I rowsort
SELECT ALL + col2 - + col2 + - 78 FROM tab1
----
-78
-78
-78

query I rowsort
SELECT ALL + col1 * - 76 AS col0 FROM tab0
----
-1596
-6156
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 * - 50 * 5 col1 FROM tab0
----
24750
52500
951750

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5918
SELECT COUNT ( * ) * - 21 col1 FROM tab0
----
-63

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 + 63 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT 68 * - CAST( - + col1 AS SIGNED ) FROM tab2
----
3468
4556
5236

skipif mysql # not compatible
query I rowsort label-5921
SELECT 68 * - CAST ( - + col1 AS INTEGER ) FROM tab2
----
3468
4556
5236

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

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

query I rowsort
SELECT - + col0 * + col0 + - col1 * + col0 * - 37 FROM tab2 AS cor0
----
178240
180300
84686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5924
SELECT ALL - MAX( + CAST( - col0 AS SIGNED ) ) - + 93 + - 88 col0 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5924
SELECT ALL - MAX ( + CAST ( - col0 AS INTEGER ) ) - + 93 + - 88 col0 FROM tab2 AS cor0
----
-135

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5926
SELECT ALL - col2 DIV CAST( - col2 AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - col2 / CAST ( - col2 AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
-1
-21
-81

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

query I rowsort
SELECT DISTINCT col1 * + - col0 + col0 AS col1 FROM tab1 cor0
----
-340
-4186
-663

query I rowsort
SELECT + - 63 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 31 * + + 18 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT SUM( ALL + col0 ) AS col2, COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
199
-9

skipif mysql # not compatible
query II rowsort label-5931
SELECT SUM ( ALL + col0 ) AS col2, COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
199
-9

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > - col0
----

query I rowsort
SELECT ALL - - 82 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - - 68, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col0 FROM tab0 cor0
----
76
76
76

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

query I rowsort
SELECT + - col2 * 16 * - 41 AS col1 FROM tab0 AS cor0
----
30832
64944
6560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + SUM( - - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5940
SELECT + SUM ( - - col2 ) AS col2 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col1 * - 70 AS col0 FROM tab1
----
14
-980
47
-3290
5
-350

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - col0 * 46 * 37 IS NOT NULL
----

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

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

query II rowsort
SELECT col2, + 9 AS col0 FROM tab1
----
59
9
68
9
96
9

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

skipif mysql # not compatible
query I rowsort label-5945
SELECT - COUNT ( * ) / + + 54 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT COUNT( * ) * 22 AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT COUNT ( * ) * 22 AS col2 FROM tab2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT ALL 2 DIV + COUNT( DISTINCT + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 2 / + COUNT ( DISTINCT + col1 ) FROM tab1
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = col0 * - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT 1 * COUNT( * ) FROM tab2 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT 1 * COUNT ( * ) FROM tab2 WHERE NULL = ( NULL )
----
0

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

query I rowsort
SELECT - col1 * 95 AS col0 FROM tab1
----
-1330
-4465
-475

query I rowsort
SELECT + 43 * 20 FROM tab2
----
860
860
860

query I rowsort
SELECT + 82 * ( - col2 ) FROM tab2
----
-1886
-3280
-4756

query I rowsort
SELECT ALL + col1 + col1 FROM tab1 WHERE NULL BETWEEN ( - col2 ) AND ( 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - COUNT( * ) * - MIN( ALL 76 ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-5957
SELECT - COUNT ( * ) * - MIN ( ALL 76 ) FROM tab1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT 94 * + COUNT( - col2 / + col0 ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-5958
SELECT 94 * + COUNT ( - col2 / + col0 ) FROM tab0
----
282

query I rowsort
SELECT ALL 39 * + col1 + col0 AS col2 FROM tab0
----
136
3174
906

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

query I rowsort
SELECT col0 - col2 * 8 AS col1 FROM tab1
----
-387
-453
-717

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 26 * 3 NOT BETWEEN - col2 / - col0 + + col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT MAX( 5 ) col2 FROM tab1
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL MIN( 88 ) * 13 AS col1 FROM tab2
----
1144

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL MIN ( 88 ) * 13 AS col1 FROM tab2
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT DISTINCT + COUNT( * ) * 2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT + COUNT ( * ) * 2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT MAX( DISTINCT 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-5966
SELECT MAX ( DISTINCT 79 ) FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL 26 * + COUNT( * ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL 26 * + COUNT ( * ) AS col2 FROM tab1
----
78

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL BETWEEN ( + col1 + - col1 ) AND ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + - 82 col1 FROM tab0 WHERE NOT ( 24 ) > col0 * + col0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 57 * ( 79 ) ) NOT BETWEEN 95 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT + 55 DIV col1 AS col0 FROM tab0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-5972
SELECT + 55 / col1 AS col0 FROM tab0
----
0
2
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT ( + col1 ) DIV 21 AS col1 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT ( + col1 ) / 21 AS col1 FROM tab1
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT - ( + 1 ) + - MAX( ALL + 78 ) col0 FROM tab2
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5976
SELECT - ( + 1 ) + - MAX ( ALL + 78 ) col0 FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT - MAX( col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5977
SELECT - MAX ( col1 ) col2 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 51 * 39 BETWEEN + col1 * - 39 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT 26 DIV - ( COUNT( * ) ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT 26 / - ( COUNT ( * ) ) FROM tab2
----
-8

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL + MAX( - col1 ) * + 61 AS col2 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + MAX ( - col1 ) * + 61 AS col2 FROM tab0 AS cor0
----
-61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT DISTINCT + 40 DIV col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT + 40 / col0 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT - ( col0 ) * 63 AS col0 FROM tab2 AS cor0
----
-2898
-4032
-4725

query I rowsort
SELECT DISTINCT + 75 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 8 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NOT + ( + CAST( + col2 AS SIGNED ) ) + 18 IN ( col0 * col1 + + col0 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NOT + ( + CAST ( + col2 AS INTEGER ) ) + 18 IN ( col0 * col1 + + col0 )
----
15
87
97

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

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

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

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

query I rowsort
SELECT - col0 + - 23 AS col1 FROM tab2
----
-69
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT col1 + - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) = col1 + + col1 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5993
SELECT col1 + - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) = col1 + + col1 / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 45 + - col0 * - col1 AS col1 FROM tab2
----
2301
4883
4980

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5996
SELECT DISTINCT + col1 / ( col0 ) col2 FROM tab0
----
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT ALL col1 DIV col0 * + ( col2 ) AS col1 FROM tab2
----
0
23
40

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL col1 / col0 * + ( col2 ) AS col1 FROM tab2
----
0
23
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT + 11 + COUNT( * ) col1 FROM tab2
----
14

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

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

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

query I rowsort
SELECT - col2 * - col1 + - col2 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + + col2 + - col2 + col0 FROM tab0 AS cor0
----
15
87
97

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

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

query I rowsort
SELECT ALL - - 51 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT col1 + + + col1 * + + col2 * col1 FROM tab2
----
237237
260429
59874

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + SUM( DISTINCT 33 ) * 47 + COUNT( * ) + + 43 FROM tab0 AS cor0
----
1597

skipif mysql # not compatible
query I rowsort label-6006
SELECT + SUM ( DISTINCT 33 ) * 47 + COUNT ( * ) + + 43 FROM tab0 AS cor0
----
1597

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

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT MIN ( - - col0 ) AS col0 FROM tab2 cor0
----
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6009
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST( + col2 AS SIGNED ) ) NOT BETWEEN NULL AND ( + 14 )
----

skipif mysql # not compatible
query III rowsort label-6009
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST ( + col2 AS INTEGER ) ) NOT BETWEEN NULL AND ( + 14 )
----

query I rowsort
SELECT 3 + - + 62 + + 79 AS col2 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL MIN( 80 ) FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL MIN ( 80 ) FROM tab0 cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT ALL + CAST( - - col0 AS SIGNED ) * col1 - + + col2 AS col1 FROM tab2
----
2323
4888
4967

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + CAST ( - - col0 AS INTEGER ) * col1 - + + col2 AS col1 FROM tab2
----
2323
4888
4967

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 NOT IN ( + 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT + 17 * + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6015
SELECT + 17 * + COUNT ( * ) FROM tab1
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL SUM( ALL - 1 ) * + COUNT( * ) - + 56 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL SUM ( ALL - 1 ) * + COUNT ( * ) - + 56 FROM tab0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 14 * + col1 + - col0 )
----

query I rowsort
SELECT + col2 * 26 FROM tab0
----
1222
2574
260

query I rowsort
SELECT DISTINCT + 72 + - - col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 - - col0 + - + 61 + + 79 * col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 - - col0 + - + 61 + + 79 * col0 AND NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT 73 * + MIN( - - col2 ) AS col2 FROM tab1
----
4307

skipif mysql # not compatible
query I rowsort label-6023
SELECT 73 * + MIN ( - - col2 ) AS col2 FROM tab1
----
4307

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + + col0, col0 * + + col1 + 26 )
----

query II rowsort
SELECT col0, + 15 FROM tab1
----
51
15
85
15
91
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6026
SELECT 55 DIV COUNT( ALL 17 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-6026
SELECT 55 / COUNT ( ALL 17 ) FROM tab1
----
18

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

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

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

query I rowsort
SELECT 21 * - + col1 AS col2 FROM tab0 AS cor0
----
-1701
-21
-441

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 36 / - - col2 * + ( + 89 ) * col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 32 * + - col2
----

query I rowsort
SELECT - 55 * col0 FROM tab1
----
-2805
-4675
-5005

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6036
SELECT + 21 * + col0 AS col0, col1 + + - CAST( col1 AS SIGNED ) * + col1 + 38 AS col2 FROM tab2
----
1344
-5814
1575
-4384
966
-2512

skipif mysql # not compatible
query II rowsort label-6036
SELECT + 21 * + col0 AS col0, col1 + + - CAST ( col1 AS INTEGER ) * + col1 + 38 AS col2 FROM tab2
----
1344
-5814
1575
-4384
966
-2512

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE col0 BETWEEN - + 58 AND - col0 / + + col0
----

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE col0 BETWEEN - + 58 AND - col0 / + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + col1 col1 FROM tab1 AS cor0
----
31
40
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE 1 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - SUM( ALL - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - SUM ( ALL - col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN col0 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + 92 ) col1, - 68 FROM tab0 AS cor0
----
92
-68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT + - ( - 84 ) - - - 97 DIV 52 FROM tab1 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-6047
SELECT + - ( - 84 ) - - - 97 / 52 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - + col2 * + + col2 * - + ( - col2 ) FROM tab2 AS cor0
----
-12167
-195112
-64000

query I rowsort
SELECT + col2 * + col0 + + col0 * ( 11 ) - 26 - - col1 AS col0 FROM tab2 AS cor0
----
1589
3315
5216

query I rowsort
SELECT col0 - - col1 * + - 98 * - - col0 AS col2 FROM tab1 AS cor0
----
-41565
-419055
-69921

query I rowsort
SELECT - - col1 - - col2 + - 67 * + + 6 FROM tab2 AS cor0
----
-277
-285
-328

query I rowsort
SELECT + 8 - + col0 AS col1 FROM tab0
----
-7
-79
-89

query II rowsort
SELECT - col2 * - 60 * - col0 AS col0, 27 * 76 AS col2 FROM tab1
----
-293760
2052
-300900
2052
-371280
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT - - MIN( 59 ) col1 FROM tab2 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6054
SELECT - - MIN ( 59 ) col1 FROM tab2 cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 94 ) col2 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT + 70 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

query I rowsort
SELECT ALL - 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT + ( + 6 ) FROM tab2 cor0
----
6
6
6

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

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

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

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

query I rowsort
SELECT DISTINCT 64 + + + 22 + + ( - + col2 ) * - + col1 AS col1 FROM tab2
----
1259
3166
3972

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6065
SELECT ALL * FROM tab1 WHERE NOT + col2 + ( CAST( - col2 AS DECIMAL ) ) BETWEEN - 91 AND ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-6065
SELECT ALL * FROM tab1 WHERE NOT + col2 + ( CAST ( - col2 AS REAL ) ) BETWEEN - 91 AND ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 41 ) col2 FROM tab2
----
41

query I rowsort
SELECT DISTINCT col1 * + 78 AS col0 FROM tab2
----
3978
5226
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT 80 DIV + col2 + - 14 AS col2 FROM tab0
----
-13
-14
-6

skipif mysql # not compatible
query I rowsort label-6068
SELECT 80 / + col2 + - 14 AS col2 FROM tab0
----
-13
-14
-6

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

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

query II rowsort
SELECT ALL + 29 * col1 + - col1 AS col1, col2 * + - col2 FROM tab2 cor0
----
1428
-529
1876
-3364
2156
-1600

query I rowsort
SELECT - 45 * 85 FROM tab1 AS cor0
----
-3825
-3825
-3825

query I rowsort
SELECT ALL col2 + 42 + - + col1 + 77 FROM tab2 AS cor0
----
110
82
91

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

skipif mysql # not compatible
query I rowsort label-6074
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
3

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

query I rowsort
SELECT - 25 - + 41 FROM tab0 WHERE col1 * - + col2 IS NOT NULL
----
-66
-66
-66

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

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

query I rowsort
SELECT col0 + + - 54 FROM tab2
----
-8
10
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT ALL 62 * + 51 * - CAST( NULL AS SIGNED ) / + + COUNT( ALL - + 88 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL 62 * + 51 * - CAST ( NULL AS INTEGER ) / + + COUNT ( ALL - + 88 ) FROM tab0 AS cor0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6083
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 58 * + col0 AND + CAST( 46 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 58 * + col0 AND + CAST ( 46 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6084
SELECT ALL ( - + 88 ) DIV - ( - - col2 ) AS col0, - col0 AS col1 FROM tab2 cor0
----
1
-75
2
-64
3
-46

skipif mysql # not compatible
query II rowsort label-6084
SELECT ALL ( - + 88 ) / - ( - - col2 ) AS col0, - col0 AS col1 FROM tab2 cor0
----
1
-75
2
-64
3
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT DISTINCT + ( + + 40 ) FROM tab1 AS cor0 WHERE NOT col0 + - ( + ( - - CAST( + + ( - + 12 ) AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT + ( + + 40 ) FROM tab1 AS cor0 WHERE NOT col0 + - ( + ( - - CAST ( + + ( - + 12 ) AS INTEGER ) ) ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE 15 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT - COUNT( * ) AS col0, 7 FROM tab0, tab1 AS cor0
----
-9
7

skipif mysql # not compatible
query II rowsort label-6087
SELECT - COUNT ( * ) AS col0, 7 FROM tab0, tab1 AS cor0
----
-9
7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * 92 * + col1 * + + col0 / col1 * col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - SUM( ALL + - 34 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-6090
SELECT - SUM ( ALL + - 34 ) FROM tab0
----
102

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL col1 * - - ( + 49 ) * + 86 * - 15 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 33 AS col1 FROM tab0 cor0
----
-33
-33
-33

query I rowsort
SELECT 67 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

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

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col0, - ( - 73 ) AS col1 FROM tab0 cor0
----
10
73
47
73
99
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT - COUNT( * ) + + 24 * - - 69 FROM tab1 AS cor0
----
1653

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT - COUNT ( * ) + + 24 * - - 69 FROM tab1 AS cor0
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT + MIN( + - 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6102
SELECT + MIN ( + - 59 ) FROM tab2 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-6103
SELECT - + col0, 11 + - col1 DIV + 86 AS col1 FROM tab2 cor0
----
-46
11
-64
11
-75
11

skipif mysql # not compatible
query II rowsort label-6103
SELECT - + col0, 11 + - col1 / + 86 AS col1 FROM tab2 cor0
----
-46
11
-64
11
-75
11

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 30 col2, - ( col2 ) AS col1 FROM tab0 AS cor0
----
30
-10
30
-47
30
-99

query I rowsort
SELECT - - 20 + + + col0 * - col0 + 28 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + col0 * 65 AS col0 FROM tab0
----
5742
6402
990

query I rowsort
SELECT - + col1 + + col1 + - + col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col1 + - 73 * - col0 FROM tab0 AS cor0
----
1176
6372
7082

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - col1 - col1 + + col1 * - col0 * - 78 col2 FROM tab2 AS cor0
----
182965
384344
391892

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * col0 * col2 NOT BETWEEN ( + - col0 / - 88 + - col2 + 35 * - 87 - - col1 + col1 * - col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT 76 - + + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-6113
SELECT 76 - + + COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT DISTINCT - + col0 * - 66 AS col2 FROM tab0 cor0
----
5742
6402
990

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT DISTINCT COUNT( * ) * 36 col1 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6115
SELECT DISTINCT COUNT ( * ) * 36 col1 FROM tab2 AS cor0
----
108

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

query I rowsort
SELECT - 64 * - 62 FROM tab2 cor0
----
3968
3968
3968

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT DISTINCT + - col0 DIV + col0 + + col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + - col0 / + col0 + + col0 FROM tab1 AS cor0
----
50
84
90

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6120
SELECT col2 DIV - col1, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-6120
SELECT col2 / - col1, col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT DISTINCT 44 AS col1, col2 AS col2, - col1 AS col0 FROM tab2
----
9 values hashing to 0625fa212119bedb0cd70a2df1d305ef

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

query I rowsort
SELECT ALL + ( 78 ) AS col0 FROM tab1
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL + 92 * - - MIN( DISTINCT + col2 ) FROM tab0
----
920

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + 92 * - - MIN ( DISTINCT + col2 ) FROM tab0
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT SUM( - 90 ) AS col0 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-6125
SELECT SUM ( - 90 ) AS col0 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT DISTINCT + MIN( ALL + col2 ) * SUM( - - col2 ), SUM( ALL - 83 ) AS col2 FROM tab2
----
2783
-249

skipif mysql # not compatible
query II rowsort label-6126
SELECT DISTINCT + MIN ( ALL + col2 ) * SUM ( - - col2 ), SUM ( ALL - 83 ) AS col2 FROM tab2
----
2783
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT 88 * CAST( - 57 AS SIGNED ) * + + CAST( NULL AS SIGNED ) * - + col0 - 65 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT 88 * CAST ( - 57 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * - + col0 - 65 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + 71 * ( - col2 ) + + col2 >= - + col1
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6130
SELECT 23 AS col1, + SUM( ALL + - 69 ) FROM tab2
----
23
-207

skipif mysql # not compatible
query II rowsort label-6130
SELECT 23 AS col1, + SUM ( ALL + - 69 ) FROM tab2
----
23
-207

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6132
SELECT DISTINCT CAST( NULL AS SIGNED ), - col1 AS col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6132
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 / - 96 > 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - col2 FROM tab0 WHERE NOT - + 22 + - + ( col1 ) BETWEEN + col1 AND - 76
----
-196
-62
-97

query II rowsort
SELECT + ( - col0 ) AS col2, 7 FROM tab2 AS cor0
----
-46
7
-64
7
-75
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT + + 47 DIV - + col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6136
SELECT + + 47 / - + col2 FROM tab2 AS cor0
----
-1
-2
0

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

skipif mysql # not compatible
query I rowsort label-6137
SELECT + 51 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT ALL - 77 + + - 32 DIV - col2 FROM tab1 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - 77 + + - 32 / - col2 FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT + col1 + + col1 DIV - col1 AS col0 FROM tab2 cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-6139
SELECT + col1 + + col1 / - col1 AS col0 FROM tab2 cor0
----
50
66
76

query I rowsort
SELECT DISTINCT + + col2 + - 54 FROM tab2 AS cor0
----
-14
-31
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT DISTINCT 37 + + 64 DIV - col2 + col2 AS col1 FROM tab0 cor0
----
136
41
83

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT 37 + + 64 / - col2 + col2 AS col1 FROM tab0 cor0
----
136
41
83

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) = + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6145
SELECT DISTINCT + ( + + ( + + col1 ) ) + col0 + - col1 DIV - col1, 54 AS col2 FROM tab1
----
139
54
66
54
91
54

skipif mysql # not compatible
query II rowsort label-6145
SELECT DISTINCT + ( + + ( + + col1 ) ) + col0 + - col1 / - col1, 54 AS col2 FROM tab1
----
139
54
66
54
91
54

query I rowsort
SELECT - col1 + + 11 FROM tab1
----
-3
-36
6

query I rowsort
SELECT DISTINCT col0 * + 87 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0, - 7 FROM tab1
----
51
-7
85
-7
91
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT MIN( ALL - 76 ) AS col2 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-6149
SELECT MIN ( ALL - 76 ) AS col2 FROM tab2
----
-76

query I rowsort
SELECT DISTINCT - col1 - + + 3 FROM tab2
----
-54
-70
-80

query I rowsort
SELECT DISTINCT ( + ( - - col2 ) ) * 19 AS col1 FROM tab0
----
1881
190
893

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

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

query I rowsort
SELECT + col0 * 72 FROM tab0 cor0
----
1080
6264
6984

query I rowsort
SELECT ALL + - col1 + - 4 * col2 AS col1 FROM tab1 AS cor0
----
-241
-319
-398

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT DISTINCT col1 + - col2 + + 45 + + col1 DIV col0 * + + col1 FROM tab2
----
124
159
54

skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT col1 + - col2 + + 45 + + col1 / col0 * + + col1 FROM tab2
----
124
159
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6157
SELECT CAST( col0 AS SIGNED ) AS col1, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-6157
SELECT CAST ( col0 AS INTEGER ) AS col1, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 38 AND 90 + + - col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT DISTINCT + - MIN( ALL - 82 ) / SUM( 77 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT + - MIN ( ALL - 82 ) / SUM ( 77 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT DISTINCT + - MAX( - col1 ) FROM tab0 AS cor0 WHERE NOT ( + + col0 < + + 51 + - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT + - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( + + col0 < + + 51 + - 66 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT ALL 8 AS col2, 57 * + SUM( + col2 ) FROM tab0
----
8
8892

skipif mysql # not compatible
query II rowsort label-6163
SELECT ALL 8 AS col2, 57 * + SUM ( + col2 ) FROM tab0
----
8
8892

query I rowsort
SELECT - 63 * col0 FROM tab2
----
-2898
-4032
-4725

query II rowsort
SELECT col2 AS col1, - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

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

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + COUNT ( * ) * - 31 FROM tab2
----
-93

query II rowsort
SELECT - ( + col2 ), - col0 FROM tab1 WHERE NOT + 92 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL col2 + + + 14 + col0 AS col2 FROM tab0 cor0
----
111
210
76

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

query I rowsort
SELECT 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT 73 * + - MIN( ALL 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1752

skipif mysql # not compatible
query I rowsort label-6173
SELECT 73 * + - MIN ( ALL 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1752

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT ALL + col2 DIV - 77 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + col2 / - 77 FROM tab1 AS cor0
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + col2 + + - col1 / CAST ( NULL AS INTEGER ) - - col1 * + + 99 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 71 * col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6177
SELECT DISTINCT + COUNT( - 42 ) DIV + CAST( - - 73 AS SIGNED ) * + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT + COUNT ( - 42 ) / + CAST ( - - 73 AS INTEGER ) * + - COUNT ( * ) FROM tab0 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT ALL + col0 * col0 * - 94 FROM tab1 AS cor0 WHERE col1 * + col2 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + col0 * col0 * - 94 FROM tab1 AS cor0 WHERE col1 * + col2 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6182
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 51 + + col1 - + + col0 * + CAST( NULL AS SIGNED ) * 60 / col1 * + 73 * - col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-6182
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 51 + + col1 - + + col0 * + CAST ( NULL AS INTEGER ) * 60 / col1 * + 73 * - col1, col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6183
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST( - 6 AS DECIMAL ) + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6183
SELECT DISTINCT * FROM tab0 cor0 WHERE - CAST ( - 6 AS REAL ) + - col0 IS NULL
----

query II rowsort
SELECT - 92, + col2 AS col2 FROM tab0 AS cor0
----
-92
10
-92
47
-92
99

query I rowsort
SELECT ALL + col1 * 57 - ( - 24 ) AS col2 FROM tab1
----
2703
309
822

query I rowsort
SELECT + 74 + - col0 + - 30 - + + 67 AS col0 FROM tab2
----
-69
-87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT ALL + MAX( ALL + - col2 ) col1 FROM tab1
----
-59

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT + col0 + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-6188
SELECT + col0 + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6189
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-6189
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
3
0

query I rowsort
SELECT + 95 * - + col2 AS col0 FROM tab0
----
-4465
-9405
-950

onlyif mysql # aggregate syntax: 
query II rowsort label-6191
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6191
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

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

query I rowsort
SELECT + - 63 AS col0 FROM tab0 AS cor0
----
-63
-63
-63

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

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

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

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + SUM ( DISTINCT - + 45 ) FROM tab0 AS cor0
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6197
SELECT DISTINCT - 19, - 75 FROM tab2 AS cor0 WHERE NOT ( - - col2 ) * 97 + + + 60 NOT BETWEEN CAST( NULL AS SIGNED ) AND col0 * + - col2 * + + col2 + - ( + col1 ) * + col0
----

skipif mysql # not compatible
query II rowsort label-6197
SELECT DISTINCT - 19, - 75 FROM tab2 AS cor0 WHERE NOT ( - - col2 ) * 97 + + + 60 NOT BETWEEN CAST ( NULL AS INTEGER ) AND col0 * + - col2 * + + col2 + - ( + col1 ) * + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT + CAST( NULL AS SIGNED ) + + col1 + + 58 * - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= col1 + + - col2 + col2 * 88
----

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

query I rowsort
SELECT + col0 * + 99 AS col0 FROM tab2
----
4554
6336
7425

query I rowsort
SELECT ALL col0 + - col1 AS col2 FROM tab0 WHERE NOT + col2 > col0
----
66

query I rowsort
SELECT ALL - col0 * col1 * 59 FROM tab0
----
-107793
-5723
-71685

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - col0 * - - col1 * col2 < + col1
----
51
85
91

query I rowsort
SELECT DISTINCT - 94 * + 37 FROM tab2
----
-3478

query I rowsort
SELECT col1 + - - 13 FROM tab2 WHERE NOT + - col0 + + col0 IS NULL
----
64
80
90

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT + - col0 DIV col2 + col2 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT + - col0 / col2 + col2 FROM tab2 AS cor0
----
21
39
57

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

query I rowsort
SELECT col2 * - - 81 AS col2 FROM tab2
----
1863
3240
4698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col0 + - + col2 col1, 70 FROM tab1
----
366
70
4209
70
618
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6214
SELECT + COUNT( + 3 ) DIV 72 + + MIN( + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6214
SELECT + COUNT ( + 3 ) / 72 + + MIN ( + - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - col2 * + col1 + + col1 + col0 FROM tab1 cor0
----
-1279
-205
-3058

query I rowsort
SELECT DISTINCT col1 + ( 16 ) + + col0 * - - col1 FROM tab2 AS cor0
----
2413
5021
5108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > + col0 + col2 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 * - - 13 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1105
1183
663

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

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

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

query II rowsort
SELECT DISTINCT col1 + col1, col1 AS col2 FROM tab0
----
162
81
2
1
42
21

query I rowsort
SELECT DISTINCT col0 - - - 39 - + + col0 AS col0 FROM tab2
----
-39

query I rowsort
SELECT ALL ( col0 ) + - 77 FROM tab0
----
-62
10
20

query I rowsort
SELECT ALL col2 * col2 - - 80 - + col1 FROM tab2
----
1603
3377
558

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col0 * col0 * col0 FROM tab1 cor0
----
-14
132651
-47
753571
-5
614125

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 * - col0 / + 3 + - + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL - + 53 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - + 53 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT DISTINCT ( + CAST( - col0 AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT ( + CAST ( - col0 AS INTEGER ) ) FROM tab2
----
-46
-64
-75

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - 60 + 94 * col2 AS col1, 86 * + - 49 FROM tab0
----
4358
-4214
880
-4214
9246
-4214

query II rowsort
SELECT DISTINCT col1 * - 31 * + col0, col0 FROM tab2
----
-152768
64
-155775
75
-72726
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL ( + - COUNT( * ) ) * - COUNT( * ) * - - 12 * + ( - + 83 ) AS col2 FROM tab2
----
-8964

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL ( + - COUNT ( * ) ) * - COUNT ( * ) * - - 12 * + ( - + 83 ) AS col2 FROM tab2
----
-8964

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT ( - col1 ) / + - 26 * - 63 + - col1 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT ( - col1 ) / + - 26 * - 63 + - col1 + col1 IS NOT NULL
----
0

query I rowsort
SELECT + col0 * + + col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT DISTINCT 57 DIV + 87 * 12 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6243
SELECT DISTINCT 57 / + 87 * 12 col0 FROM tab1
----
0

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

query I rowsort
SELECT + col1 + - col0 - - + 14 + - col0 * + col2 * - - col1 FROM tab0 AS cor0
----
-18322
-57025
-9685

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT 42 * - 12 + + SUM( - + col0 ) col2 FROM tab2 cor0
----
-689

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6246
SELECT 42 * - 12 + + SUM ( - + col0 ) col2 FROM tab2 cor0
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 >= NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ALL COUNT( * ) * MAX( col0 ) * - COUNT( * ) AS col1 FROM tab2 cor0
----
-675

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL COUNT ( * ) * MAX ( col0 ) * - COUNT ( * ) AS col1 FROM tab2 cor0
----
-675

query II rowsort
SELECT col1 * + 51 AS col2, - col2 * - + col1 + - + col0 FROM tab0 AS cor0
----
1071
123
4131
3792
51
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT ALL + - 39 * - col0 AS col1 FROM tab2 cor0 WHERE NOT - CAST( col1 AS SIGNED ) IS NULL
----
1794
2496
2925

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + - 39 * - col0 AS col1 FROM tab2 cor0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NULL
----
1794
2496
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT - COUNT( + col0 ) + - 57 AS col1 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - COUNT ( + col0 ) + - 57 AS col1 FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6253
SELECT - + 1 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6254
SELECT - COUNT ( + CAST ( col0 AS REAL ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col0 * + col2 + - - col0 AS col2 FROM tab1 cor0
----
-4845
-4930
-6097

query II rowsort
SELECT ALL col0 * - col0 - col0 + - 9 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-249
47
-7665
10
-9515
99

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

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

query I rowsort
SELECT DISTINCT - col0 - - 10 FROM tab1 AS cor0
----
-41
-75
-81

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + + 3 AS col1 FROM tab1
----
17
50
8

query I rowsort
SELECT ALL - ( 6 ) - - col1 + col1 * - 35 * - col1 + 79 FROM tab0
----
109
15529
229789

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT 33 + + COUNT( * ) FROM tab0, tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6263
SELECT 33 + + COUNT ( * ) FROM tab0, tab2 AS cor0
----
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT ALL + COUNT( * ) * + + SUM( DISTINCT - + col2 ) AS col2, 65 * + - COUNT( * ) col2 FROM tab1 AS cor0
----
-669
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6266
SELECT ALL + COUNT ( * ) * + + SUM ( DISTINCT - + col2 ) AS col2, 65 * + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-669
-195

query I rowsort
SELECT - 10 * + - 52 AS col2 FROM tab2 AS cor0
----
520
520
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT ALL + 78 / + MIN( ALL - col0 ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + 78 / + MIN ( ALL - col0 ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT - MIN( ALL - 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-6269
SELECT - MIN ( ALL - 79 ) FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - COUNT( * ) * + MAX( + 97 ) FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - COUNT ( * ) * + MAX ( + 97 ) FROM tab2 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL + + SUM( ALL + - 20 ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + + SUM ( ALL + - 20 ) AS col2 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ( ( - COUNT( 87 ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6272
SELECT ( ( - COUNT ( 87 ) ) ) FROM tab0 cor0
----
-3

query II rowsort
SELECT + col1 AS col0, + 30 FROM tab2 AS cor0
----
51
30
67
30
77
30

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

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

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

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + 35 ) FROM tab0 WHERE NOT - + 6 * - 51 - - - ( + 34 ) * - col0 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT - + SUM( - + col0 ) FROM tab1 WHERE NOT 88 IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-6277
SELECT - + SUM ( - + col0 ) FROM tab1 WHERE NOT 88 IS NULL
----
227

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6279
SELECT DISTINCT CAST( + COUNT( + col2 ) AS SIGNED ) AS col1, - 22 - + MIN( + col2 ) FROM tab1
----
3
-81

skipif mysql # not compatible
query II rowsort label-6279
SELECT DISTINCT CAST ( + COUNT ( + col2 ) AS INTEGER ) AS col1, - 22 - + MIN ( + col2 ) FROM tab1
----
3
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT - ( - 41 ) + COUNT( * ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT - ( - 41 ) + COUNT ( * ) FROM tab2 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT DISTINCT 76, MIN( DISTINCT 84 ) AS col2 FROM tab0 AS cor0
----
76
84

skipif mysql # not compatible
query II rowsort label-6282
SELECT DISTINCT 76, MIN ( DISTINCT 84 ) AS col2 FROM tab0 AS cor0
----
76
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - + ( 61 ) + - SUM( ALL 55 ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-6283
SELECT - + ( 61 ) + - SUM ( ALL 55 ) FROM tab1 AS cor0
----
-226

query II rowsort
SELECT - col0 AS col0, 60 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT - 34 + 58 + - 50 AS col0 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT DISTINCT - col1 DIV col2 DIV + 70 + + - col0 + + + 70 col1 FROM tab1 AS cor0
----
-15
-21
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT DISTINCT - col1 / col2 / + 70 + + - col0 + + + 70 col1 FROM tab1 AS cor0
----
-15
-21
19

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 55 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT ALL CAST( + + col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL 70 * - col1 AS col2 FROM tab0
----
-1470
-5670
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6292
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - 35 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - 35 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 * + 97 + col1 AS col0 FROM tab0 AS cor0
----
-1374
-8418
-9408

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT DISTINCT - COUNT( * ), SUM( ALL 75 ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9
675

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6295
SELECT DISTINCT - COUNT ( * ), SUM ( ALL 75 ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9
675

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT - COUNT( * ) + + 90 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6296
SELECT - COUNT ( * ) + + 90 FROM tab2
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 * + - ( + col0 ) col1, - col0 FROM tab1 AS cor0
----
4896
-51
5015
-85
6188
-91

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

query I rowsort
SELECT DISTINCT + 60 * - col2 AS col0 FROM tab0 AS cor0
----
-2820
-5940
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT ALL 20 DIV + 68 * - - col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL 20 / + 68 * - - col2 FROM tab2 cor0
----
0
0
0

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 81 ) NOT IN ( + 29 - ( col1 ), 37 * + col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL 16 * COUNT( DISTINCT - col1 ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL 16 * COUNT ( DISTINCT - col1 ) AS col2 FROM tab1
----
48

query III rowsort
SELECT * FROM tab2 WHERE ( - 64 ) <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL COUNT ( * ) * + 34 + + MIN ( ALL 5 ) FROM tab0, tab0 AS cor0
----
311

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6309
SELECT ALL CAST( NULL AS DECIMAL ), - 19 AS col1 FROM tab1 AS cor0
----
NULL
-19
NULL
-19
NULL
-19

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL CAST ( NULL AS REAL ), - 19 AS col1 FROM tab1 AS cor0
----
NULL
-19
NULL
-19
NULL
-19

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 25, 64 / 37, - 59 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6313
SELECT + CAST( col1 AS SIGNED ) + - 0 * + + col0, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-6313
SELECT + CAST ( col1 AS INTEGER ) + - 0 * + + col0, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6314
SELECT DISTINCT + CAST( - + 79 AS SIGNED ) - ( - 21 ) AS col0 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT + CAST ( - + 79 AS INTEGER ) - ( - 21 ) AS col0 FROM tab1
----
-58

query I rowsort
SELECT + 23 / 9 + + + 41 AS col1 FROM tab2 AS cor0 WHERE - 30 IS NULL
----

query I rowsort
SELECT ALL col2 * - col2 * - + col0 * - 4 FROM tab1 AS cor0
----
-1183540
-1683136
-1880064

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + 96 - + COUNT( * ) FROM tab1 cor0 WHERE ( + 62 IS NULL )
----
96

skipif mysql # not compatible
query I rowsort label-6317
SELECT + 96 - + COUNT ( * ) FROM tab1 cor0 WHERE ( + 62 IS NULL )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + 21 - + - ( + MIN( DISTINCT + 42 ) ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6318
SELECT + 21 - + - ( + MIN ( DISTINCT + 42 ) ) FROM tab1 AS cor0
----
63

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

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

query I rowsort
SELECT ALL 35 FROM tab2 AS cor0 WHERE col1 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6322
SELECT + - col2 * - CAST( NULL AS SIGNED ) AS col2, + 79 FROM tab2 AS cor0
----
NULL
79
NULL
79
NULL
79

skipif mysql # not compatible
query II rowsort label-6322
SELECT + - col2 * - CAST ( NULL AS INTEGER ) AS col2, + 79 FROM tab2 AS cor0
----
NULL
79
NULL
79
NULL
79

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + + 96 + col2 + col1 IS NULL
----
51
85
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT DISTINCT + 61 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - - col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + 61 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - - col0 < NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - + 2 * + + 74 = NULL
----

query II rowsort
SELECT col0, + 63 FROM tab1
----
51
63
85
63
91
63

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

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

query II rowsort
SELECT ALL 79 AS col2, - 84 AS col1 FROM tab0
----
79
-84
79
-84
79
-84

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

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

query II rowsort
SELECT DISTINCT 98, col0 - + 91 AS col0 FROM tab2 AS cor0
----
98
-16
98
-27
98
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT AVG ( + col1 ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT AVG ( + col1 ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

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

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

query I rowsort
SELECT ALL 40 * + col0 AS col1 FROM tab2
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - COUNT( DISTINCT col1 ) * - 22 AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - COUNT ( DISTINCT col1 ) * - 22 AS col2 FROM tab0
----
66

query I rowsort
SELECT DISTINCT + col0 * 73 * + - col2 AS col2 FROM tab2
----
-186880
-317550
-77234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6338
SELECT 80 DIV SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6338
SELECT 80 / SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + SUM( ALL col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6339
SELECT + SUM ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT ALL col2 DIV + 30 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL col2 / + 30 FROM tab1 AS cor0
----
1
2
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6342
SELECT ALL + - COUNT( * ) + - MIN( - col1 ) DIV + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + - COUNT ( * ) + - MIN ( - col1 ) / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6343
SELECT - 12 + + col2 AS col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + - 47 < col1 * col2
----

skipif mysql # not compatible
query I rowsort label-6343
SELECT - 12 + + col2 AS col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) + - 47 < col1 * col2
----

query II rowsort
SELECT ALL + col2 + 32 AS col1, - 28 AS col2 FROM tab0 AS cor0
----
131
-28
42
-28
79
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6345
SELECT * FROM tab1 WHERE - ( + col2 ) * + - ( - col2 ) * 9 / CAST( + - col2 AS DECIMAL ) + - 28 + col2 + + col1 NOT BETWEEN 75 AND - + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6345
SELECT * FROM tab1 WHERE - ( + col2 ) * + - ( - col2 ) * 9 / CAST ( + - col2 AS REAL ) + - 28 + col2 + + col1 NOT BETWEEN 75 AND - + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + col2 + - col1 * + - col1 AS col1 FROM tab2
----
2624
4547
5969

query I rowsort
SELECT DISTINCT col0 * + 23 + + col1 + - col0 AS col1 FROM tab2
----
1063
1485
1717

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT DISTINCT + COUNT( DISTINCT 72 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT + COUNT ( DISTINCT 72 ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT COUNT( * ) + - - CAST( + ( 16 ) AS SIGNED ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6350
SELECT COUNT ( * ) + - - CAST ( + ( 16 ) AS INTEGER ) FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL + MIN( - + 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + MIN ( - + 72 ) FROM tab1
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT COUNT( * ) * - 8 AS col0 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-6353
SELECT COUNT ( * ) * - 8 AS col0 FROM tab2
----
-24

query I rowsort
SELECT + ( + - 17 ) AS col2 FROM tab1
----
-17
-17
-17

query I rowsort
SELECT 93 * - col1 AS col1 FROM tab1
----
-1302
-4371
-465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 + + - ( - ( 1 ) ) col2 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE + 94 <> col0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 17 / - + col2 * + col2 * + col2
----

query II rowsort
SELECT ALL + - col2 + + 48 * + col0 AS col0, col0 FROM tab2 AS cor0
----
2185
46
3032
64
3542
75

query I rowsort
SELECT - - 76 - - - col2 FROM tab1 cor0
----
-20
17
8

query I rowsort
SELECT 31 + - - 19 AS col2 FROM tab0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + MAX( 49 ) * + COUNT( * ) * + 93 AS col2 FROM tab0 AS cor0
----
13671

skipif mysql # not compatible
query I rowsort label-6362
SELECT + MAX ( 49 ) * + COUNT ( * ) * + 93 AS col2 FROM tab0 AS cor0
----
13671

query II rowsort
SELECT ALL - col0, - col0 AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - 83 * + COUNT( * ) FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6364
SELECT - 83 * + COUNT ( * ) FROM tab2 AS cor0
----
-249

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - 40
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90, + 25 col2 FROM tab1 AS cor0
----
-90
25
-90
25
-90
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6368
SELECT ALL CAST( - col1 AS SIGNED ) col1, 94 AS col0 FROM tab1
----
-14
94
-47
94
-5
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6368
SELECT ALL CAST ( - col1 AS INTEGER ) col1, 94 AS col0 FROM tab1
----
-14
94
-47
94
-5
94

query I rowsort
SELECT - 43 + + - ( - col0 ) FROM tab0 WHERE NOT - + 34 NOT BETWEEN + + col0 AND + 63 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT DISTINCT - MIN( - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - MIN ( - col0 ) FROM tab0
----
97

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

query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT 23 DIV - - col2 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6373
SELECT 23 / - - col2 AS col1 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT DISTINCT + MIN( + + ( + 81 ) ) AS col0 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT + MIN ( + + ( + 81 ) ) AS col0 FROM tab2 cor0
----
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + - COUNT( DISTINCT + 80 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6377
SELECT + - COUNT ( DISTINCT + 80 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT 52 AS col2, - 59 AS col0 FROM tab1 AS cor0
----
52
-59
52
-59
52
-59

query II rowsort
SELECT - 3 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
-3
-23
-3
-40
-3
-58

query I rowsort
SELECT ALL col0 + 46 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 17 * col2 FROM tab0
----
1683
170
799

query I rowsort
SELECT ALL - col2 - - 40 FROM tab0
----
-59
-7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - 83 - SUM( ALL ( + col2 ) ) * - - 47 FROM tab1
----
-10564

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 83 - SUM ( ALL ( + col2 ) ) * - - 47 FROM tab1
----
-10564

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

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

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT + + COUNT( * ) + + - COUNT( * ) - - 64 DIV - SUM( - + 30 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6386
SELECT + + COUNT ( * ) + + - COUNT ( * ) - - 64 / - SUM ( - + 30 ) FROM tab2 cor0
----
0

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

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

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

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

query I rowsort
SELECT - + col2 + 49 * - + col0 AS col2 FROM tab1 AS cor0
----
-2595
-4224
-4527

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

skipif mysql # not compatible
query I rowsort label-6390
SELECT + 29 / + 1 AS col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL + + 44 * + col2 FROM tab0 cor0
----
2068
4356
440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT - MAX( DISTINCT - col2 ) * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6393
SELECT - MAX ( DISTINCT - col2 ) * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
69

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

query II rowsort
SELECT ALL 44, col1 AS col1 FROM tab2 AS cor0
----
44
51
44
67
44
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col2 + - col0 BETWEEN + - col2 + - 5 AND - ( 35 ) + + 40 + - col1 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT ( 71 ) * col1 FROM tab2
----
3621
4757
5467

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

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

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

query I rowsort
SELECT ALL 62 * - - 11 AS col1 FROM tab2
----
682
682
682

query II rowsort
SELECT ALL + + 72 AS col0, 58 FROM tab1 WHERE + - col2 * + col1 * + - col1 >= - col0 + - - ( 60 )
----
72
58
72
58
72
58

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

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

query II rowsort
SELECT ALL + col0, col2 + + col2 AS col2 FROM tab0
----
15
94
87
20
97
198

query II rowsort
SELECT DISTINCT - 46 AS col1, 72 AS col0 FROM tab0
----
-46
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6408
SELECT ALL CAST( NULL AS SIGNED ) AS col0, col2 + + col2 AS col1 FROM tab0
----
NULL
198
NULL
20
NULL
94

skipif mysql # not compatible
query II rowsort label-6408
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, col2 + + col2 AS col1 FROM tab0
----
NULL
198
NULL
20
NULL
94

query II rowsort
SELECT - 91 AS col1, - col2 FROM tab2 AS cor0
----
-91
-23
-91
-40
-91
-58

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

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT ALL - col2 * + + col2 + + col0 DIV + 97 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - col2 * + + col2 + + col0 / + 97 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + 89 + - - 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
175

query I rowsort
SELECT ALL - 11 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT - + MIN( CAST( - 73 AS SIGNED ) ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
76

skipif mysql # not compatible
query I rowsort label-6415
SELECT - + MIN ( CAST ( - 73 AS INTEGER ) ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
76

query I rowsort
SELECT + col1 + + 69 + - 43 AS col0 FROM tab2 AS cor0
----
103
77
93

query I rowsort
SELECT + 62 + - - 29 + - + 21 AS col1 FROM tab1 AS cor0
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL - 56 + + MAX( ALL - col1 ) FROM tab2
----
-107

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL - 56 + + MAX ( ALL - col1 ) FROM tab2
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6420
SELECT DISTINCT * FROM tab2 WHERE - ( col1 ) / - + 33 * - 2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6420
SELECT DISTINCT * FROM tab2 WHERE - ( col1 ) / - + 33 * - 2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * + 43 * - - col0 + + 9 col0 FROM tab0
----
2455524
412938
785619

query I rowsort
SELECT + col2 * + 16 FROM tab1
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL COUNT( DISTINCT - ( + 20 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL COUNT ( DISTINCT - ( + 20 ) ) AS col2 FROM tab0
----
1

query II rowsort
SELECT - col2 AS col2, col1 - - col2 AS col0 FROM tab0
----
-10
31
-47
128
-99
100

query I rowsort
SELECT ALL - 19 * - col2 - - + col2 AS col2 FROM tab0
----
1980
200
940

query I rowsort
SELECT + 99 * + col0 AS col0 FROM tab2
----
4554
6336
7425

query I rowsort
SELECT DISTINCT - + col0 * - - ( col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6428
SELECT ALL 4 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL 4 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - - col1 AND NULL
----
-81

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

query I rowsort
SELECT + col2 - ( + 5 ) FROM tab0
----
42
5
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT + col1 * 25 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN CAST( col1 AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-6432
SELECT + col1 * 25 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN CAST ( col1 AS INTEGER ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT MIN( DISTINCT col0 ) + + COUNT( DISTINCT col2 ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-6433
SELECT MIN ( DISTINCT col0 ) + + COUNT ( DISTINCT col2 ) AS col0 FROM tab0
----
18

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

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab1
----
-91

query III rowsort
SELECT * FROM tab0 WHERE - 2 + + 97 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col1 / col0 + + ( col1 + col2 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT DISTINCT + ( - col0 ) + 24 DIV 20 AS col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT + ( - col0 ) + 24 / 20 AS col0 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE col0 NOT BETWEEN 85 AND ( 76 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL + 51 + COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + 51 + COUNT ( * ) AS col1 FROM tab0
----
54

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT SUM( ALL - col0 ) + + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 * col1 + + col0 = col2
----
-224

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT SUM ( ALL - col0 ) + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 * col1 + + col0 = col2
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL + ( SUM( 51 ) ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + ( SUM ( 51 ) ) FROM tab1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - ( - MIN( ALL + col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6446
SELECT - ( - MIN ( ALL + col1 ) ) FROM tab1
----
5

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 96 < - 88
----

query I rowsort
SELECT ALL - col1 + 74 * 93 FROM tab0 cor0
----
6801
6861
6881

query I rowsort
SELECT ALL - 32 + 36 AS col0 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6451
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 62 - 4 ) IN ( CAST( NULL AS SIGNED ) * - 18 )
----

skipif mysql # not compatible
query III rowsort label-6451
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 62 - 4 ) IN ( CAST ( NULL AS INTEGER ) * - 18 )
----

query I rowsort
SELECT col2 * ( + ( - col0 ) ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - 90 )
----

query I rowsort
SELECT 97 * - ( 94 ) + col1 AS col1 FROM tab0
----
-9037
-9097
-9117

query I rowsort
SELECT DISTINCT 7 FROM tab0 AS cor0 CROSS JOIN tab1
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL + 56 * ( COUNT( * ) ) + + 14 col2 FROM tab0 AS cor0
----
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6457
SELECT ALL + 56 * ( COUNT ( * ) ) + + 14 col2 FROM tab0 AS cor0
----
182

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / col0 >= ( + 98 + 66 )
----

query I rowsort
SELECT DISTINCT + - col1 * - 2 + + 16 * - col0 FROM tab2 AS cor0
----
-1066
-634
-870

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL COUNT( * ) * - 83 AS col1 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL COUNT ( * ) * - 83 AS col1 FROM tab0 AS cor0
----
-249

query I rowsort
SELECT DISTINCT - col1 + 32 AS col0 FROM tab1 AS cor0
----
-15
18
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT SUM( + + 46 ) DIV COUNT( * ) - + COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6463
SELECT SUM ( + + 46 ) / COUNT ( * ) - + COUNT ( * ) FROM tab2
----
43

query I rowsort
SELECT col2 - + - col0 * 1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL - ( - col0 ) + - 90 AS col0 FROM tab2
----
-15
-26
-44

query I rowsort
SELECT 78 * - ( col0 ) + + 48 AS col2 FROM tab0 WHERE col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col1 IS NOT NULL OR - 54 * 39 NOT BETWEEN ( col1 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col2 + + 99 AS col2 FROM tab0
----
109
146
198

query III rowsort
SELECT ALL * FROM tab0 WHERE 5 IS NULL
----

query I rowsort
SELECT col2 + 37 FROM tab1 AS cor0
----
105
133
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT col1 * col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
437
5

skipif mysql # not compatible
query I rowsort label-6474
SELECT col1 * col1 / + col0 AS col1 FROM tab0 AS cor0
----
0
437
5

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

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

query I rowsort
SELECT ALL - col0 + 53 / + 43 AS col0 FROM tab1 AS cor0 WHERE NOT col1 = ( NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - 32 + - col2 * 62 )
----

query I rowsort
SELECT + 11 + 12 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL MIN( + col2 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 + - col0 * 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL MIN ( + col2 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 + - col0 * 5 )
----
NULL

query I rowsort
SELECT + - 39 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT ALL + SUM( ALL + + col2 ) * - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-366

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + SUM ( ALL + + col2 ) * - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-366

query I rowsort
SELECT DISTINCT - col0 * col1 * col0 * + 28 AS col1 FROM tab1
----
-1011500
-1019592
-10897796

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - + 93 * - 46 + 74
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 57
----

query I rowsort
SELECT 97 + - ( - col1 ) FROM tab0
----
118
178
98

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

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

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

query I rowsort
SELECT col2 + col2 - + - col2 AS col0 FROM tab0
----
141
297
30

query I rowsort
SELECT 38 + - + col2 FROM tab0
----
-61
-9
28

query I rowsort
SELECT 76 + - AVG ( ALL - col1 ) FROM tab2 WHERE NOT NULL <> - 40 / col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT SUM( col1 ) * - SUM( DISTINCT + 95 ) + - COUNT( * ) DIV COUNT( col0 * col0 + col2 ) AS col0 FROM tab1
----
-6271

skipif mysql # not compatible
query I rowsort label-6498
SELECT SUM ( col1 ) * - SUM ( DISTINCT + 95 ) + - COUNT ( * ) / COUNT ( col0 * col0 + col2 ) AS col0 FROM tab1
----
-6271

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col0 ) NOT IN ( + col0 + + 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6501
SELECT * FROM tab0 WHERE - 24 > - 64 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6501
SELECT * FROM tab0 WHERE - 24 > - 64 * - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + - MAX( + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-6502
SELECT + - MAX ( + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT DISTINCT MIN( + 28 ) + 14 AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT MIN ( + 28 ) + 14 AS col0 FROM tab2
----
42

query I rowsort
SELECT - 54 + 12 AS col1 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT - ( 18 ) + col0 + + col1 + 98 * + 26 FROM tab1
----
2595
2620
2668

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

query I rowsort
SELECT + - 38 * col1 + - - col2 AS col2 FROM tab1 AS cor0
----
-131
-1718
-436

query I rowsort
SELECT DISTINCT + 36 FROM tab0 AS cor0 WHERE ( - ( + + 36 ) ) IS NULL AND NULL NOT IN ( - 3 )
----

query I rowsort
SELECT DISTINCT col2 + + 23 - col0 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
-2482
-7143
-8190

query I rowsort
SELECT - col1 + - - 7 FROM tab2 AS cor0
----
-44
-60
-70

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6511
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - col0 * - col0 * - + col0 * ( col1 ) - - col0 AND CAST ( col1 AS INTEGER )
----
-3

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

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

query I rowsort
SELECT ALL - col2 * + 44 AS col2 FROM tab1 WHERE - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT - CAST( - col0 AS SIGNED ) * - 18 AS col2 FROM tab1 WHERE - col2 + + 72 = NULL
----

skipif mysql # not compatible
query I rowsort label-6514
SELECT - CAST ( - col0 AS INTEGER ) * - 18 AS col2 FROM tab1 WHERE - col2 + + 72 = NULL
----

query I rowsort
SELECT + 72 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

query I rowsort
SELECT ( ( - 12 ) ) AS col1 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT col0 * - + 47 - + CAST( 66 AS SIGNED ) col0 FROM tab0
----
-4155
-4625
-771

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6518
SELECT col0 * - + 47 - + CAST ( 66 AS INTEGER ) col0 FROM tab0
----
-4155
-4625
-771

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

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

query I rowsort
SELECT ALL + 17 * col0 FROM tab0 AS cor0
----
1479
1649
255

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 47 IS NULL
----

query I rowsort
SELECT DISTINCT 46 + - 34 FROM tab0 AS cor0 WHERE NULL IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT - MIN( 11 ) * - 41 col0 FROM tab1 AS cor0
----
451

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6524
SELECT - MIN ( 11 ) * - 41 col0 FROM tab1 AS cor0
----
451

query I rowsort
SELECT - col2 * + ( - 28 ) * - ( + ( - + 21 ) ) AS col2 FROM tab0 AS cor0
----
27636
58212
5880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 WHERE col2 * + col1 <> col2 OR NOT ( col0 ) IS NOT NULL
----
-15
-87

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 WHERE col2 * + col1 <> col2 OR NOT ( col0 ) IS NOT NULL
----
-15
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT DISTINCT - 50 * + - COUNT( * ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT - 50 * + - COUNT ( * ) FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT DISTINCT - MAX( - ( - - col2 ) ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6528
SELECT DISTINCT - MAX ( - ( - - col2 ) ) col1 FROM tab1
----
59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT - + col0 + + + ( - col2 ) DIV - col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6530
SELECT - + col0 + + + ( - col2 ) / - col1 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

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

query I rowsort
SELECT + - col1 + + - col1 + + - col0 * + col2 * + col2 + - col1 FROM tab2 AS cor0
----
-102631
-24487
-252501

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT + + MAX( col0 ) + - 66 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + + MAX ( col0 ) + - 66 FROM tab0 AS cor0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT DISTINCT 34 + - - ( - 86 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
34
35

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT 34 + - - ( - 86 ) / - col0 AS col1 FROM tab1 AS cor0
----
34
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT + COUNT( * ) + + 14 + - + 42 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6536
SELECT + COUNT ( * ) + + 14 + - + 42 FROM tab2 AS cor0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT ALL - 49 DIV 17 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL - 49 / 17 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT + SUM( col0 ) + + 85 AS col0 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-6538
SELECT + SUM ( col0 ) + + 85 AS col0 FROM tab2
----
270

query I rowsort
SELECT - 65 * - - col2 FROM tab0
----
-3055
-6435
-650

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 * + 66 * - - 38 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + - MAX( + 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-52

skipif mysql # not compatible
query I rowsort label-6541
SELECT + - MAX ( + 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-52

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

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

query I rowsort
SELECT ALL - col0 + col0 * + + col2 + - + ( + col1 ) FROM tab2 AS cor0
----
2419
4208
961

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT + col1 DIV - col2 - - 46 + 80 + - - 63 FROM tab2 AS cor0
----
187
188
188

skipif mysql # not compatible
query I rowsort label-6545
SELECT + col1 / - col2 - - 46 + 80 + - - 63 FROM tab2 AS cor0
----
187
188
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT MIN( ALL + + col2 ) - + + COUNT( + 77 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT MIN ( ALL + + col2 ) - + + COUNT ( + 77 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

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

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

query II rowsort
SELECT + 80 - - 74 AS col2, - col0 - col1 + - col1 FROM tab1 AS cor0
----
154
-185
154
-79
154
-95

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

query I rowsort
SELECT ALL + 29 + - - col0 AS col0 FROM tab0 AS cor0
----
116
126
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6551
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 NOT BETWEEN NULL AND col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6551
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 NOT BETWEEN NULL AND col1 + + CAST ( NULL AS INTEGER )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 IN ( - + 30 * - col0 + col2 )
----

query I rowsort
SELECT DISTINCT 54 * + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2754
-4590
-4914

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6556
SELECT CAST( + + 7 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
7
7
7

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

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

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

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

query I rowsort
SELECT ALL col1 * + col0 + + 24 AS col0 FROM tab1 AS cor0
----
4301
449
738

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT - 90 AS col1, COUNT( * ) * + 94 AS col1 FROM tab1 AS cor0
----
-90
282

skipif mysql # not compatible
query II rowsort label-6560
SELECT - 90 AS col1, COUNT ( * ) * + 94 AS col1 FROM tab1 AS cor0
----
-90
282

query II rowsort
SELECT - ( - col0 ) AS col2, + 53 * - col0 FROM tab2 AS cor0
----
46
-2438
64
-3392
75
-3975

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

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

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

query I rowsort
SELECT - 41 * + - 82 FROM tab2
----
3362
3362
3362

query II rowsort
SELECT ( col1 ), col0 + col0 AS col0 FROM tab0 AS cor0
----
1
194
21
174
81
30

query I rowsort
SELECT DISTINCT + col1 * - + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT - - ( - - 19 ) + col1 FROM tab0 cor0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - SUM( 72 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-648

skipif mysql # not compatible
query I rowsort label-6568
SELECT - SUM ( 72 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-648

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

query I rowsort
SELECT ALL col0 + - + 61 FROM tab0 AS cor0
----
-46
26
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6571
SELECT ALL + + col1 DIV + 31 FROM tab2 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL + + col1 / + 31 FROM tab2 cor0
----
1
2
2

query I rowsort
SELECT - 33 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT - 49 * - + COUNT( * ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6573
SELECT - 49 * - + COUNT ( * ) FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT + MAX( ALL + - ( + 45 ) ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + MAX ( ALL + - ( + 45 ) ) FROM tab1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT ALL - col2 DIV + - 87 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - col2 / + - 87 AS col1 FROM tab0
----
0
0
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT 64 DIV + 75 * - 31 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT 64 / + 75 * - 31 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6578
SELECT DISTINCT 66 AS col0, + MIN( DISTINCT + 50 ) * + - COUNT( * ) + + 8 FROM tab1 AS cor0
----
66
-142

skipif mysql # not compatible
query II rowsort label-6578
SELECT DISTINCT 66 AS col0, + MIN ( DISTINCT + 50 ) * + - COUNT ( * ) + + 8 FROM tab1 AS cor0
----
66
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL + 57 + + + COUNT( * ) FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + 57 + + + COUNT ( * ) FROM tab2 cor0
----
60

query I rowsort
SELECT + ( - col1 ) * 25 * - col2 AS col0 FROM tab1 cor0
----
33600
7375
79900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6581
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + + col2 * col0 BETWEEN 30 * - CAST( NULL AS SIGNED ) * - 62 AND - - col0
----

skipif mysql # not compatible
query III rowsort label-6581
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + + col2 * col0 BETWEEN 30 * - CAST ( NULL AS INTEGER ) * - 62 AND - - col0
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6585
SELECT - 48 DIV + SUM( + col2 ) FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT - 48 / + SUM ( + col2 ) FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
0

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

query I rowsort
SELECT DISTINCT + col2 + - + col1 + + + 17 AS col1 FROM tab2
----
-11
-20
8

query II rowsort
SELECT DISTINCT 65, + col1 * + + col2 + col0 * - 1 AS col1 FROM tab1
----
65
1293
65
210
65
3105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL COUNT( * ) - - MIN( - col0 ) AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL COUNT ( * ) - - MIN ( - col0 ) AS col1 FROM tab0
----
-94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 75 * - 70 + - col0 * + - col1
----

query I rowsort
SELECT col0 + - + 73 * col2 FROM tab0 AS cor0
----
-3416
-643
-7130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) + col2 col1 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT - 86 + - ( + col0 ) FROM tab1 AS cor0
----
-137
-171
-177

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col1 + col2 < col0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT + ( - MIN( - col2 ) ) + 22 * COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + ( - MIN ( - col2 ) ) + 22 * COUNT ( * ) FROM tab1 AS cor0
----
162

query I rowsort
SELECT DISTINCT col2 + + - col0 FROM tab1
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT DISTINCT - + SUM( ALL + + 26 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT - + SUM ( ALL + + 26 ) FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT + 84 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 84 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

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

query II rowsort
SELECT ALL + 31, - col0 AS col2 FROM tab0
----
31
-15
31
-87
31
-97

query II rowsort
SELECT - 12 AS col0, 10 FROM tab1
----
-12
10
-12
10
-12
10

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

query II rowsort
SELECT ALL 74 AS col1, - col0 AS col2 FROM tab1
----
74
-51
74
-85
74
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT COUNT( DISTINCT + 92 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6606
SELECT COUNT ( DISTINCT + 92 ) FROM tab2
----
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT DISTINCT + - col2 * col0 FROM tab2 cor0 WHERE - 90 * + col2 + - ( + ( - - CAST( - 18 AS SIGNED ) ) ) - col1 IS NOT NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + - col2 * col0 FROM tab2 cor0 WHERE - 90 * + col2 + - ( + ( - - CAST ( - 18 AS INTEGER ) ) ) - col1 IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT - - 90 + + + col2 AS col2 FROM tab0 cor0
----
100
137
189

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + - COUNT( * ) + + COUNT( * ) + + 92 * - 37 col2 FROM tab0 AS cor0
----
-3404

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6612
SELECT + - COUNT ( * ) + + COUNT ( * ) + + 92 * - 37 col2 FROM tab0 AS cor0
----
-3404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT ALL + col2 + CAST( - col0 AS SIGNED ) - 36 + 98 AS col2 FROM tab2 AS cor0
----
38
39
45

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL + col2 + CAST ( - col0 AS INTEGER ) - 36 + 98 AS col2 FROM tab2 AS cor0
----
38
39
45

query I rowsort
SELECT ALL col0 * - col2 + + 36 + 96 AS col0 FROM tab1 cor0
----
-4764
-4883
-6056

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL - 22 + - 26 * + + COUNT( * ) FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - 22 + - 26 * + + COUNT ( * ) FROM tab1
----
-100

query I rowsort
SELECT DISTINCT - col0 * - col0 + - - 95 * - 73 AS col0 FROM tab0
----
-6710
2474
634

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6617
SELECT CAST( NULL AS SIGNED ) AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6617
SELECT CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT - COUNT( * ) + - 56 col0 FROM tab0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6618
SELECT DISTINCT - COUNT ( * ) + - 56 col0 FROM tab0
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT SUM( col0 ) * - COUNT( * ) AS col0 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT SUM ( col0 ) * - COUNT ( * ) AS col0 FROM tab1
----
-681

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 69 IS NOT NULL
----

query I rowsort
SELECT ALL 50 * + col0 FROM tab0
----
4350
4850
750

query I rowsort
SELECT DISTINCT - + col2 * + col1 - + + 32 + - col1 AS col0 FROM tab2 AS cor0
----
-1256
-3189
-3985

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6625
SELECT ALL 9 * col2 * + col2 + - col2 + + col0 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL < + CAST( NULL AS SIGNED ) + 68
----
-6679
19609
78701

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL 9 * col2 * + col2 + - col2 + + col0 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL < + CAST ( NULL AS INTEGER ) + 68
----
-6679
19609
78701

query I rowsort
SELECT DISTINCT - 96 * + + col2 FROM tab1 cor0
----
-5664
-6528
-9216

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

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

query I rowsort
SELECT - - 37 * col2 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL ( MAX( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL ( MAX ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

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

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

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

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

query I rowsort
SELECT 74 * + col1 AS col0 FROM tab2 cor0
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT - 6 * + COUNT( * ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT - 6 * + COUNT ( * ) AS col0 FROM tab1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT + col2 DIV + 3 AS col0 FROM tab2
----
13
19
7

skipif mysql # not compatible
query I rowsort label-6635
SELECT + col2 / + 3 AS col0 FROM tab2
----
13
19
7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - 31 / + col2 > NULL
----

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

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

query I rowsort
SELECT 84 * - - col0 + - 42 AS col1 FROM tab0 WHERE NOT 0 NOT IN ( - 8, col2 )
----

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

query I rowsort
SELECT + 30 + - col2 * col0 FROM tab1 AS cor0
----
-4866
-4985
-6158

query I rowsort
SELECT DISTINCT + 54 + - col2 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT DISTINCT 26 + - col2 AS col2 FROM tab1
----
-33
-42
-70

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

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

query I rowsort
SELECT ALL - 1 + - 82 AS col1 FROM tab0
----
-83
-83
-83

query II rowsort
SELECT + col1 AS col2, col1 * + 84 FROM tab0 AS cor0
----
1
84
21
1764
81
6804

query I rowsort
SELECT ALL 19 FROM tab0 AS cor0 WHERE - col2 * col1 > + col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - ( + - col1 ) ) AS col2, + 12 col2 FROM tab2 AS cor0
----
51
12
67
12
77
12

query I rowsort
SELECT DISTINCT - - col1 + - 14 FROM tab0 AS cor0
----
-13
67
7

query I rowsort
SELECT DISTINCT col1 - + 17 FROM tab1
----
-12
-3
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT 18 DIV ( + 86 ) + col1 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT 18 / ( + 86 ) + col1 AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6651
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN CAST( NULL AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-6651
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN CAST ( NULL AS REAL ) AND col1
----

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

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL <> - 32
----

query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) * 45 FROM tab0 AS cor0
----
4365
54675
82215

query I rowsort
SELECT ALL - col1 * 64 FROM tab2 cor0
----
-3264
-4288
-4928

query II rowsort
SELECT DISTINCT - ( - ( - 33 ) ) AS col0, col2 FROM tab2 AS cor0
----
-33
23
-33
40
-33
58

query I rowsort
SELECT DISTINCT + + ( + - 28 ) AS col0 FROM tab1 AS cor0
----
-28

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

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

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

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

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

query I rowsort
SELECT DISTINCT 51 * col2 AS col1 FROM tab0
----
2397
5049
510

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6664
SELECT ALL - ( col1 ) DIV - col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - ( col1 ) / - col1 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> - col0 / col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL 49 * COUNT( * ) AS col1 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL 49 * COUNT ( * ) AS col1 FROM tab1
----
147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT + MIN( - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6669
SELECT + MIN ( - col2 ) AS col1 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-6670
SELECT ALL - 46 col2, 81 DIV - col2 AS col0 FROM tab0
----
-46
-1
-46
-8
-46
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6670
SELECT ALL - 46 col2, 81 / - col2 AS col0 FROM tab0
----
-46
-1
-46
-8
-46
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6671
SELECT - CAST( - col0 AS SIGNED ) + + + col1, + 83 / + col1 * - + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > + 31 + + col1
----

skipif mysql # not compatible
query II rowsort label-6671
SELECT - CAST ( - col0 AS INTEGER ) + + + col1, + 83 / + col1 * - + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > + 31 + + col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 59 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6673
SELECT * FROM tab0 WHERE NULL IN ( - col0 + + - col2 * - col1, + ( - col0 ) + - CAST( NULL AS SIGNED ) + + col1, + - 8, - col1 )
----

skipif mysql # not compatible
query III rowsort label-6673
SELECT * FROM tab0 WHERE NULL IN ( - col0 + + - col2 * - col1, + ( - col0 ) + - CAST ( NULL AS INTEGER ) + + col1, + - 8, - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 89 + + - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + ( 35 ) + + col2 * + 88 AS col1 FROM tab1 AS cor0
----
11808
7257
8364

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL MAX( ALL - - 20 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 41 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL MAX ( ALL - - 20 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 41 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 29 + - + 37 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8

query I rowsort
SELECT ALL 42 - - col1 + - + 91 FROM tab2
----
18
2
28

query I rowsort
SELECT DISTINCT - 39 * col1 - + + col2 - - col2 FROM tab1
----
-1833
-195
-546

query II rowsort
SELECT 79 AS col1, - col0 FROM tab0
----
79
-15
79
-87
79
-97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT DISTINCT - MIN( 5 ) - COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - MIN ( 5 ) - COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
-6

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

query I rowsort
SELECT ALL - col1 - + 13 AS col0 FROM tab0
----
-14
-34
-94

query I rowsort
SELECT - col1 * + + col2 - - - col2 - + col0 AS col0 FROM tab1
----
-1491
-3355
-439

query II rowsort
SELECT ALL ( + - col0 ) - 24 AS col0, + col0 AS col2 FROM tab0
----
-111
87
-121
97
-39
15

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 74 + 60 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT ALL CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ( - col1 ) AS col0, 38 AS col2 FROM tab1
----
-14
38
-47
38
-5
38

query II rowsort
SELECT ( - 2 ), col0 AS col1 FROM tab2 AS cor0
----
-2
46
-2
64
-2
75

query I rowsort
SELECT DISTINCT + + 55 FROM tab2 cor0
----
55

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT ( + CAST( + - 7 AS SIGNED ) ) * 71 - ( - - col0 ) AS col2 FROM tab2
----
-543
-561
-572

skipif mysql # not compatible
query I rowsort label-6695
SELECT ( + CAST ( + - 7 AS INTEGER ) ) * 71 - ( - - col0 ) AS col2 FROM tab2
----
-543
-561
-572

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT 0 DIV - col0 col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - - col1 FROM tab2 WHERE + 71 + - col1 + - 37 * - - col0 >= col0 * + col1 + + col0 * - col2
----

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

query I rowsort
SELECT ALL - 8 + col1 + + col2 FROM tab2 cor0
----
109
117
66

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT - + SUM( ALL - col2 ) + - - COUNT( * ) AS col1 FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-6702
SELECT - + SUM ( ALL - col2 ) + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6703
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST( 72 AS DECIMAL ) * col1 / + + col1, col1 )
----

skipif mysql # not compatible
query III rowsort label-6703
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST ( 72 AS REAL ) * col1 / + + col1, col1 )
----

query I rowsort
SELECT - - col0 + 92 AS col0 FROM tab2 AS cor0
----
138
156
167

query I rowsort
SELECT - col2 * - col1 + 16 AS col1 FROM tab2
----
1189
3096
3902

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 55 * - ( + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL - 44 * + + col0 FROM tab1 AS cor0
----
-2244
-3740
-4004

query I rowsort
SELECT DISTINCT - + col2 * 88 FROM tab0 AS cor0
----
-4136
-8712
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT - SUM( - 79 ) + COUNT( * ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - SUM ( - 79 ) + COUNT ( * ) FROM tab2 AS cor0
----
240

query I rowsort
SELECT ALL + col0 + - 66 AS col0 FROM tab0 AS cor0
----
-51
21
31

query I rowsort
SELECT ALL - + 78 - + - 82 FROM tab2 AS cor0
----
4
4
4

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

query II rowsort
SELECT - 45 - col1 + col0 * + col2 - - + col1 * - 11, + col2 FROM tab2 AS cor0
----
1591
40
3501
58
401
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT DISTINCT col0 + - col2 DIV - + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT col0 + - col2 / - + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6718
SELECT + CAST( NULL AS SIGNED ) / + COUNT( * ) * + COUNT( * ) + - COUNT( + - col0 ) + + + 21 * + - MIN( + 68 ) * + + MAX( 71 ) * + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN + col2 AND - col0 * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * + COUNT ( * ) + - COUNT ( + - col0 ) + + + 21 * + - MIN ( + 68 ) * + + MAX ( 71 ) * + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + col2 AND - col0 * - 99
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 16 + - col1 FROM tab1
----
-21
-30
-63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT - 65 + + + col0 DIV - 69 FROM tab1
----
-65
-66
-66

skipif mysql # not compatible
query I rowsort label-6722
SELECT - 65 + + + col0 / - 69 FROM tab1
----
-65
-66
-66

query I rowsort
SELECT DISTINCT 53 + + + col2 + 29 FROM tab0
----
129
181
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) - + col1 col2 FROM tab2
----
-102
-134
-154

query II rowsort
SELECT + col2 AS col1, ( - col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
-59
68
-68
96
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT COUNT( DISTINCT - - 43 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT COUNT ( DISTINCT - - 43 ) FROM tab1
----
1

query I rowsort
SELECT ALL 88 * - 63 AS col1 FROM tab1 AS cor0
----
-5544
-5544
-5544

query I rowsort
SELECT ALL 35 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / - - 3 + col1 > + + 1
----

query I rowsort
SELECT DISTINCT + + 13 * + 95 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
1235

query II rowsort
SELECT col1 AS col2, 86 FROM tab2
----
51
86
67
86
77
86

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

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

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

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

query I rowsort
SELECT 13 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 80 col2 FROM tab0
----
-19
33
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT DISTINCT + + COUNT( * ) + + 59 col0, - COUNT( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
62
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6737
SELECT DISTINCT + + COUNT ( * ) + + 59 col0, - COUNT ( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
62
-3

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

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - + col2 * + col1 * + col1 + 34 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT ( - 27 ) DIV 16 DIV + col1 + + 53 AS col0 FROM tab0
----
52
53
53

skipif mysql # not compatible
query I rowsort label-6740
SELECT ( - 27 ) / 16 / + col1 + + 53 AS col0 FROM tab0
----
52
53
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6741
SELECT 28 DIV - SUM( ALL - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT 28 / - SUM ( ALL - col2 ) FROM tab0
----
0

query I rowsort
SELECT - 43 * col0 AS col1 FROM tab2
----
-1978
-2752
-3225

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 - 13 < - col2 + + - col2 + - 60
----

query I rowsort
SELECT ALL - - col2 + - col2 * - col2 FROM tab1 AS cor0
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL + MIN( DISTINCT - ( + 19 ) ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + MIN ( DISTINCT - ( + 19 ) ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE + 89 IS NOT NULL
----
59
68
96

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

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

query I rowsort
SELECT ALL col0 - - col2 * 11 AS col2 FROM tab1
----
1107
734
839

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT - - COUNT( DISTINCT + col0 ) + - SUM( - + 54 ) AS col0 FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-6749
SELECT - - COUNT ( DISTINCT + col0 ) + - SUM ( - + 54 ) AS col0 FROM tab2 cor0
----
165

query I rowsort
SELECT 26 + - - col1 FROM tab2 AS cor0
----
103
77
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col1 FROM tab2 cor0
----
104
133
69

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

skipif mysql # not compatible
query III rowsort label-6752
SELECT * FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6753
SELECT - col2 + - 95 - - - col2 DIV - - col2 FROM tab2 AS cor0
----
-119
-136
-154

skipif mysql # not compatible
query I rowsort label-6753
SELECT - col2 + - 95 - - - col2 / - - col2 FROM tab2 AS cor0
----
-119
-136
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT - COUNT( - 14 ) FROM tab1 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6754
SELECT - COUNT ( - 14 ) FROM tab1 cor0 WHERE col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 <> ( col1 + - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT + ( 29 ) AS col1 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - SUM( 76 ) AS col2 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-6758
SELECT - SUM ( 76 ) AS col2 FROM tab0
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-6759
SELECT + ( + - COUNT( * ) ) AS col2, 53 + - COUNT( * ) FROM tab2
----
-3
50

skipif mysql # not compatible
query II rowsort label-6759
SELECT + ( + - COUNT ( * ) ) AS col2, 53 + - COUNT ( * ) FROM tab2
----
-3
50

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6764
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - CAST( NULL AS SIGNED ) + - 88 AS col2 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6764
SELECT DISTINCT + CAST ( NULL AS REAL ), - CAST ( NULL AS INTEGER ) + - 88 AS col2 FROM tab1
----
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL COUNT ( * ), + 29 AS col0 FROM tab1 AS cor0
----
3
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT ALL - COUNT( * ) DIV - + 25 AS col2 FROM tab2 cor0
----
0

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

query I rowsort
SELECT ALL 35 * 40 AS col1 FROM tab1
----
1400
1400
1400

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

query I rowsort
SELECT 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6773
SELECT ALL CAST( NULL AS SIGNED ) + + col1 AS col1, ( col0 ) * col2 + - col1 + + + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
NULL
624
NULL
857
NULL
9602

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 AS col1, ( col0 ) * col2 + - col1 + + + col0 / col2 AS col0 FROM tab0 AS cor0
----
NULL
624
NULL
857
NULL
9602

query I rowsort
SELECT + col2 * - 60 * 30 AS col0 FROM tab1 AS cor0
----
-106200
-122400
-172800

query I rowsort
SELECT 17 * col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1088
1275
782

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT DISTINCT + MAX( - 18 ) AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT + MAX ( - 18 ) AS col0 FROM tab0
----
-18

query I rowsort
SELECT ALL - ( - 63 ) + - col0 FROM tab1
----
-22
-28
12

query I rowsort
SELECT - 24 FROM tab0 WHERE - col0 <= NULL
----

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

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

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

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

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

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

query I rowsort
SELECT - col2 + + col1 + + + col0 + + col2 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

query I rowsort
SELECT - 21 - + + 10 FROM tab0 AS cor0
----
-31
-31
-31

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

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

query II rowsort
SELECT + - col0 * col1 AS col0, - col0 AS col0 FROM tab0 cor0
----
-1215
-15
-1827
-87
-97
-97

query I rowsort
SELECT ALL - 15 * - - 65 - + col2 AS col1 FROM tab2 AS cor0
----
-1015
-1033
-998

query II rowsort
SELECT - - ( - + col1 ) * + ( - - col2 ) AS col2, col1 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT - 82 * CAST( NULL AS SIGNED ) * + - 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT - 82 * CAST ( NULL AS INTEGER ) * + - 24 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 * - col0 AS col1 FROM tab2
----
-2714
-3776
-4425

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

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + 34 IS NOT NULL
----
3

query I rowsort
SELECT ALL - col2 + - - 79 * + 8 FROM tab2 WHERE NULL IS NULL
----
574
592
609

query I rowsort
SELECT ALL + col0 * + - 5 * - 58 FROM tab0 cor0
----
25230
28130
4350

query I rowsort
SELECT + - col1 * + - col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6798
SELECT ALL - col0 * + col0 FROM tab1 AS cor0 WHERE CAST( + col2 AS DECIMAL ) IS NOT NULL
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - col0 * + col0 FROM tab1 AS cor0 WHERE CAST ( + col2 AS REAL ) IS NOT NULL
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT + + 82 * + COUNT( * ) AS col0 FROM tab2 cor0
----
246

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + + 82 * + COUNT ( * ) AS col0 FROM tab2 cor0
----
246

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 44 >= + 40 + - col0 + + col1
----
15
81
47

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

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

query I rowsort
SELECT + 31 * + + col2 + - 28 + - + 21 FROM tab1 AS cor0
----
1780
2059
2927

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL < 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col0 FROM tab2 AS cor0 WHERE 36 NOT BETWEEN NULL AND - + col2
----
-48
-48
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + col0 * + 78 IS NULL
----

query I rowsort
SELECT + col1 + + - col0 - + + ( - 4 ) + + 81 FROM tab2
----
77
90
98

query I rowsort
SELECT 54 * + - 10 FROM tab0
----
-540
-540
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT + col0 DIV - 20 AS col0 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-6810
SELECT + col0 / - 20 AS col0 FROM tab2
----
-2
-3
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT + 69 * - ( - COUNT( * ) ) AS col1 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-6812
SELECT + 69 * - ( - COUNT ( * ) ) AS col1 FROM tab0
----
207

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

query I rowsort
SELECT DISTINCT - 82 + - 42 - + col1 FROM tab2 AS cor0
----
-175
-191
-201

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + + 10 < + 27 * 43 / - 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL - ( + MAX( 87 ) ) FROM tab0 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - ( + MAX ( 87 ) ) FROM tab0 cor0
----
-87

query I rowsort
SELECT ALL 57 * + col0 * + col0 AS col1 FROM tab1
----
148257
411825
472017

query I rowsort
SELECT + col2 * + 99 AS col0 FROM tab2
----
2277
3960
5742

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

query I rowsort
SELECT DISTINCT 41 * - ( col2 ) FROM tab0
----
-1927
-4059
-410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6822
SELECT COUNT( * ) DIV + 79 AS col0, 76 + 4 col2 FROM tab2
----
0
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6822
SELECT COUNT ( * ) / + 79 AS col0, 76 + 4 col2 FROM tab2
----
0
80

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

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

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

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

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * - + 65 * + - 64 <> + 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT + col0 + col1 * + CAST( col2 AS SIGNED ) col0 FROM tab2
----
1219
3144
3961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6826
SELECT + col0 + col1 * + CAST ( col2 AS INTEGER ) col0 FROM tab2
----
1219
3144
3961

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

query II rowsort
SELECT ALL 74 + + col0 + - - 34 AS col2, + ( - col1 ) FROM tab2 AS cor0
----
154
-51
172
-77
183
-67

query I rowsort
SELECT ALL + - 64 + - - 75 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT - SUM( - - ( + + col1 ) ) + 47 FROM tab2 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - SUM ( - - ( + + col1 ) ) + 47 FROM tab2 AS cor0
----
-148

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6832
SELECT ALL 14 - + + COUNT( * ), 63 AS col1 FROM tab0
----
11
63

skipif mysql # not compatible
query II rowsort label-6832
SELECT ALL 14 - + + COUNT ( * ), 63 AS col1 FROM tab0
----
11
63

query I rowsort
SELECT DISTINCT + ( 43 ) * - col1 + + 43 - - col2 FROM tab0
----
-3393
-850
99

query I rowsort
SELECT DISTINCT col2 + - + ( - 11 ) AS col1 FROM tab0
----
110
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT MAX( col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT MAX ( col1 ) FROM tab1
----
47

query I rowsort
SELECT - col0 + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

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

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

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

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

query I rowsort
SELECT - 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN + col2 * + + col1 + + col1 + - col1 AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN + col2 * + + col1 + + col1 + - col1 AND - - col1
----
0

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

query II rowsort
SELECT ( + col0 ) AS col1, 3 FROM tab1 AS cor0
----
51
3
85
3
91
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT DISTINCT + CAST( - + ( + COUNT( ALL - 97 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT + CAST ( - + ( + COUNT ( ALL - 97 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL col0, 32 FROM tab2
----
46
32
64
32
75
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT - 19 * ( - MAX( + col0 ) ) FROM tab1
----
1729

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT - 19 * ( - MAX ( + col0 ) ) FROM tab1
----
1729

query I rowsort
SELECT DISTINCT ( ( 2 ) ) * - col0 AS col1 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - 1 * + col1 NOT IN ( - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-6851
SELECT + COUNT ( ALL ( + col2 ) ) FROM tab1
----
3

query I rowsort
SELECT + col0 - 98 FROM tab0
----
-1
-11
-83

query I rowsort
SELECT DISTINCT + 90 * col2 AS col1 FROM tab0
----
4230
8910
900

query I rowsort
SELECT - col1 * 5 FROM tab0
----
-105
-405
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 63 * - col1 col2 FROM tab0
----
-34
1236
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT 70 + COUNT( * ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT 70 + COUNT ( * ) AS col2 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT DISTINCT COUNT( - col2 ) FROM tab2 WHERE NULL >= ( 60 - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT COUNT ( - col2 ) FROM tab2 WHERE NULL >= ( 60 - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ALL COUNT( * ) * 50 AS col2 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL COUNT ( * ) * 50 AS col2 FROM tab1
----
150

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT ALL 12 / - col0 + col2 AS col0 FROM tab0 WHERE ( col0 ) BETWEEN NULL AND ( - CAST( 15 AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL 12 / - col0 + col2 AS col0 FROM tab0 WHERE ( col0 ) BETWEEN NULL AND ( - CAST ( 15 AS INTEGER ) * col2 )
----

query I rowsort
SELECT DISTINCT - 64 * col0 + + col2 FROM tab0
----
-5558
-6109
-913

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE ( 92 - - 36 ) BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE ( 92 - - 36 ) BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ALL col0 * ( 77 ) AS col2 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT ALL 73 FROM tab2 WHERE NOT NULL IN ( 96 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT ALL col1 DIV 3 FROM tab1
----
1
15
4

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL col1 / 3 FROM tab1
----
1
15
4

query I rowsort
SELECT ALL col0 * - ( + 41 ) FROM tab1
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT ALL COUNT( * ) DIV MAX( + 76 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL COUNT ( * ) / MAX ( + 76 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 74 * 11 AS col0 FROM tab1
----
814
814
814

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 59 * col2 ) NOT IN ( col0 + 82 )
----

query I rowsort
SELECT + col0 + + ( + col0 + col1 ) * 54 FROM tab0
----
5199
5389
5919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6871
SELECT - 53 DIV COUNT( * ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-6871
SELECT - 53 / COUNT ( * ) AS col1 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT - MAX( - 68 ) + - ( COUNT( * ) ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - MAX ( - 68 ) + - ( COUNT ( * ) ) AS col0 FROM tab2
----
65

query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab0 WHERE 11 IN ( 91 - - 66 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 + - 78 NOT IN ( + 47 )
----

query I rowsort
SELECT DISTINCT - 23 * - col1 FROM tab2 cor0
----
1173
1541
1771

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT - ( 14 ) * COUNT( * ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6878
SELECT - ( 14 ) * COUNT ( * ) FROM tab1 AS cor0
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT DISTINCT - SUM( ALL - 88 ) col0 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6880
SELECT DISTINCT - SUM ( ALL - 88 ) col0 FROM tab0 AS cor0
----
264

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

query I rowsort
SELECT - 35 * + col1 FROM tab1 AS cor0
----
-1645
-175
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT COUNT( * ) + 99 col0 FROM tab0 AS cor0 WHERE NOT col0 * + 65 BETWEEN col1 AND col2
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6883
SELECT COUNT ( * ) + 99 col0 FROM tab0 AS cor0 WHERE NOT col0 * + 65 BETWEEN col1 AND col2
----
102

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

query I rowsort
SELECT 32 * 40 AS col0 FROM tab1 cor0
----
1280
1280
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT - - 20 DIV col1 FROM tab0 cor0
----
0
0
20

skipif mysql # not compatible
query I rowsort label-6886
SELECT - - 20 / col1 FROM tab0 cor0
----
0
0
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT CAST( - 34 AS SIGNED ) * 55 FROM tab1
----
-1870
-1870
-1870

skipif mysql # not compatible
query I rowsort label-6887
SELECT CAST ( - 34 AS INTEGER ) * 55 FROM tab1
----
-1870
-1870
-1870

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT + 10 DIV col2 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6888
SELECT + 10 / col2 / col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 83 * + col1 AS col2 FROM tab2
----
4233
5561
6391

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

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

skipif mysql # not compatible
query I rowsort label-6891
SELECT - ( + - ( COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6892
SELECT 3 - + col1 DIV - 6 FROM tab2 WHERE NOT + 63 - col2 DIV - CAST( NULL AS SIGNED ) IS NOT NULL
----
11
14
15

skipif mysql # not compatible
query I rowsort label-6892
SELECT 3 - + col1 / - 6 FROM tab2 WHERE NOT + 63 - col2 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
11
14
15

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

skipif mysql # not compatible
query I rowsort label-6893
SELECT - CAST ( NULL AS REAL ) / + col1 * + 77 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 51 IN ( ( - 89 ) )
----

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 / col2 ) BETWEEN col1 * - col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT CAST( NULL AS SIGNED ) + 90 - 49 / + AVG ( + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT CAST ( NULL AS INTEGER ) + 90 - 49 / + AVG ( + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 66 + col0 AS col2 FROM tab2 AS cor0
----
112
130
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 22 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT DISTINCT 71 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT 71 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6903
SELECT DISTINCT - AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - AVG ( DISTINCT - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT 18 + col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 80 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6905
SELECT 18 + col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 80 / CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 80 * col0 - + - col0 FROM tab2 AS cor0
----
-3634
-5056
-5925

query I rowsort
SELECT + 2 - - + 52 AS col1 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT - col1 - + col2 * 4 FROM tab1 AS cor0
----
-241
-319
-398

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

query I rowsort
SELECT DISTINCT - col0 + ( - 39 ) * + col2 FROM tab0 AS cor0
----
-1848
-3958
-477

query I rowsort
SELECT ALL - col2 - - - col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT 82 - - col2 + + - col0 + col1 * ( + col0 ) AS col2 FROM tab0
----
1329
181
1832

query I rowsort
SELECT + col0 + + 94 FROM tab2 WHERE + ( 68 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + COUNT( DISTINCT col0 ) + COUNT( * ) FROM tab1 WHERE col1 / + 73 + 40 * - ( 42 ) > - col0
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT + COUNT ( DISTINCT col0 ) + COUNT ( * ) FROM tab1 WHERE col1 / + 73 + 40 * - ( 42 ) > - col0
----
0

query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 WHERE ( col1 ) >= ( + 63 ) AND NOT - ( + col2 ) <= col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NOT NULL AND NOT NULL BETWEEN - col1 AND - col2
----

query I rowsort
SELECT DISTINCT col2 * ( - - col2 ) AS col0 FROM tab2
----
1600
3364
529

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

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT BETWEEN - 13 + + 61 * + 58 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * 73 FROM tab1 AS cor0 WHERE NOT NULL <= col0 * - + col2
----

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

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col0 FROM tab1 AS cor0 WHERE + col1 * - 50 + + 28 IN ( + 90 )
----

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

skipif mysql # not compatible
query I rowsort label-6923
SELECT - COUNT ( * ) * + MIN ( + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL + SUM( ALL - + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + SUM ( ALL - + col2 ) AS col1 FROM tab1
----
-223

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 27 NOT IN ( - + col0 * - + 90 * - 8 + - col1 )
----

query I rowsort
SELECT ALL - - col1 * - 19 FROM tab0 AS cor0
----
-1539
-19
-399

query I rowsort
SELECT ( - 26 ) FROM tab0 AS cor0 WHERE NOT + 63 IN ( + col2 / col0 * col1 )
----
-26
-26
-26

query II rowsort
SELECT col0, - 48 + - col2 FROM tab2 AS cor0
----
46
-71
64
-88
75
-106

query I rowsort
SELECT + + 55 AS col0 FROM tab1 cor0
----
55
55
55

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

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

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

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

query I rowsort
SELECT ALL + - ( + 98 ) AS col0 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - 13 + - col2 - - + 25 * + 56 AS col0 FROM tab1
----
1291
1319
1328

query I rowsort
SELECT - 91 AS col0 FROM tab0 WHERE NULL NOT IN ( - 84 + ( - 4 ) + + col1 )
----

query I rowsort
SELECT ALL - 56 * col1 AS col1 FROM tab2
----
-2856
-3752
-4312

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

skipif mysql # not compatible
query I rowsort label-6937
SELECT + COUNT ( * ) / - 48 FROM tab2
----
0

query I rowsort
SELECT 22 AS col0 FROM tab2 cor0
----
22
22
22

query I rowsort
SELECT ALL + col1 * + - col0 + + col2 + - - col1 + + 54 * + col1 * + col1 AS col2 FROM tab1 AS cor0
----
115124
989
9980

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

query I rowsort
SELECT ( col2 ) + + 77 * - ( - 64 ) + - col2 + - col1 FROM tab0
----
4847
4907
4927

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL - MAX( col0 ) - 37 FROM tab0
----
-134

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - MAX ( col0 ) - 37 FROM tab0
----
-134

query II rowsort
SELECT DISTINCT col2 * - col1, col2 AS col2 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT - col0 + + - col1 + - + col1 FROM tab1 AS cor0
----
-185
-79
-95

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 / 7 + + col1 ) IS NOT NULL
----

query I rowsort
SELECT + col2 * col2 + + 81 AS col1 FROM tab0 cor0
----
181
2290
9882

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

query I rowsort
SELECT ALL + + 56 * + col2 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
2585
5445
550

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT + 26 * + col0 + col0 + 52 + + col2 DIV col2 * col2 * + 19 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1350
2591
4552

skipif mysql # not compatible
query I rowsort label-6951
SELECT + 26 * + col0 + col0 + 52 + + col2 / col2 * col2 * + 19 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1350
2591
4552

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6953
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) * + - CAST( + col2 AS DECIMAL ) - + 47 < + col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6953
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) * + - CAST ( + col2 AS REAL ) - + 47 < + col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 89 col0 FROM tab2
----
-31
-49
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL + COUNT( * ) * + + 56 AS col2 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + COUNT ( * ) * + + 56 AS col2 FROM tab2
----
168

query I rowsort
SELECT ALL 31 * - 18 FROM tab2
----
-558
-558
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT + 97 * - COUNT( * ) AS col0 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-6958
SELECT + 97 * - COUNT ( * ) AS col0 FROM tab1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL - SUM( ALL col2 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - SUM ( ALL col2 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + 35 - - SUM( 94 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT + 35 - - SUM ( 94 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + 95 * - - col2 FROM tab0 AS cor0
----
-4465
-9405
-950

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

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

query I rowsort
SELECT DISTINCT 86 * ( - ( - + 30 ) ) AS col0 FROM tab1 AS cor0
----
2580

query I rowsort
SELECT ALL - col1 + 60 + col1 AS col0 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT 98 + + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2, + 67 / - col1, - - col2 )
----
98

skipif mysql # not compatible
query I rowsort label-6965
SELECT 98 + + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2, + 67 / - col1, - - col2 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT - + 34 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6966
SELECT - + 34 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-102

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

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

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

query I rowsort
SELECT DISTINCT ( - + 38 ) * + col0 FROM tab0 AS cor0
----
-3306
-3686
-570

query I rowsort
SELECT ALL - col2 * + + 87 FROM tab0 AS cor0
----
-4089
-8613
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT COUNT( * ) * - MAX( DISTINCT + ( - ( + col0 ) ) ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6972
SELECT COUNT ( * ) * - MAX ( DISTINCT + ( - ( + col0 ) ) ) AS col2 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT - col2 FROM tab1 WHERE NOT - 3 * + CAST( NULL AS SIGNED ) <= ( 42 )
----

skipif mysql # not compatible
query I rowsort label-6973
SELECT - col2 FROM tab1 WHERE NOT - 3 * + CAST ( NULL AS INTEGER ) <= ( 42 )
----

query I rowsort
SELECT DISTINCT + 8 * + col0 FROM tab0
----
120
696
776

query I rowsort
SELECT + 89 * + col0 AS col0 FROM tab1
----
4539
7565
8099

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT col2 DIV + + 88 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6976
SELECT col2 / + + 88 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL 38 * + - col2 FROM tab2
----
-1520
-2204
-874

query I rowsort
SELECT 83 * - 26 * - 93 FROM tab0
----
200694
200694
200694

query II rowsort
SELECT ALL col2 * + col2 + - col2 AS col1, ( - - col0 ) AS col1 FROM tab2
----
1560
64
3306
75
506
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - col2 col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 38 + 93 - - ( 14 ) + - col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT col2 + + col0 + - 99 + - 52 * - col0 * CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
-133115
-226166
-55046

skipif mysql # not compatible
query I rowsort label-6982
SELECT col2 + + col0 + - 99 + - 52 * - col0 * CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
-133115
-226166
-55046

query I rowsort
SELECT ALL 26 + + - 95 AS col2 FROM tab0 AS cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 7 ) <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 9 + + col0 FROM tab2 AS cor0
----
55
73
84

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

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

query I rowsort
SELECT - col2 + - - col0 AS col2 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT col2 AS col0, col1 * + - col1 AS col0 FROM tab2
----
23
-2601
40
-5929
58
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL + COUNT( * ) + 73 + 48 AS col2 FROM tab1
----
124

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + COUNT ( * ) + 73 + 48 AS col2 FROM tab1
----
124

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

query II rowsort
SELECT DISTINCT col1 AS col2, col0 * - col2 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6992
SELECT DISTINCT - - MIN ( ALL + + col2 ) AS col2, - COUNT ( * ) col0 FROM tab2 cor0
----
23
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * col0 < - - ( 50 )
----

query I rowsort
SELECT + col2 - + 20 * col2 AS col1 FROM tab2 AS cor0
----
-1102
-437
-760

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

query I rowsort
SELECT col1 * + ( + col0 ) - col1 FROM tab0 AS cor0
----
1134
1806
96

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

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

query I rowsort
SELECT DISTINCT + ( 29 ) + - 11 * - + col2 FROM tab0 WHERE NOT + - 5 / col1 + - - 32 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 80 AS col0 FROM tab1
----
-4720
-5440
-7680

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7001
SELECT COUNT( * ) * + COUNT( * ), COUNT( DISTINCT 13 ) * - + ( ( + + ( COUNT( * ) ) ) ) - - MAX( DISTINCT - ( - - 89 ) ) AS col2 FROM tab1
----
9
-92

skipif mysql # not compatible
query II rowsort label-7001
SELECT COUNT ( * ) * + COUNT ( * ), COUNT ( DISTINCT 13 ) * - + ( ( + + ( COUNT ( * ) ) ) ) - - MAX ( DISTINCT - ( - - 89 ) ) AS col2 FROM tab1
----
9
-92

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

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

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

query I rowsort
SELECT + 28 + - 33 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

skipif mysql # not compatible
query I rowsort label-7005
SELECT - MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
5

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + + col1 + - 3 * 85 col2 FROM tab1 AS cor0
----
175
4069
473

query I rowsort
SELECT DISTINCT - col2 + + col1 * + - col0 * - - 81 FROM tab0 AS cor0
----
-147997
-7956
-98462

query I rowsort
SELECT - + col0 + + + col1 + 14 AS col2 FROM tab2 AS cor0
----
19
27
6

query I rowsort
SELECT + + 52 + 76 FROM tab0 cor0
----
128
128
128

query I rowsort
SELECT ALL - 98 + 55 + + - col1 FROM tab0 AS cor0
----
-124
-44
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT DISTINCT + SUM( DISTINCT + - col1 ) + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-192

onlyif mysql # DIV for integer division: 
query II rowsort label-7014
SELECT DISTINCT 20 DIV col1, col0 AS col2 FROM tab1
----
0
91
1
51
4
85

skipif mysql # not compatible
query II rowsort label-7014
SELECT DISTINCT 20 / col1, col0 AS col2 FROM tab1
----
0
91
1
51
4
85

query I rowsort
SELECT ALL + ( + + col2 ) + + col2 AS col0 FROM tab1
----
118
136
192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + 5 + + MIN( + 2 ) col2 FROM tab2
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7017
SELECT + 5 + + MIN ( + 2 ) col2 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + COUNT( * ) * - 53 FROM tab0 WHERE NULL IS NULL
----
-159

skipif mysql # not compatible
query I rowsort label-7018
SELECT + COUNT ( * ) * - 53 FROM tab0 WHERE NULL IS NULL
----
-159

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7020
SELECT DISTINCT + + CAST( + COUNT( * ) AS SIGNED ) * - ( - 72 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
648

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + + CAST ( + COUNT ( * ) AS INTEGER ) * - ( - 72 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
648

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7022
SELECT DISTINCT CAST( - - MAX( - 76 ) AS SIGNED ) - - 70 - SUM( DISTINCT - CAST( col2 AS SIGNED ) ) FROM tab2
----
115

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT CAST ( - - MAX ( - 76 ) AS INTEGER ) - - 70 - SUM ( DISTINCT - CAST ( col2 AS INTEGER ) ) FROM tab2
----
115

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT DISTINCT COUNT( * ) - + COUNT( * ) FROM tab0 cor0 WHERE + + col1 NOT BETWEEN - col1 AND + 14 OR NULL BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) FROM tab0 cor0 WHERE + + col1 NOT BETWEEN - col1 AND + 14 OR NULL BETWEEN NULL AND + col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7025
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS DECIMAL ) <= col1 * col2
----

skipif mysql # not compatible
query III rowsort label-7025
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS REAL ) <= col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT - - SUM( ALL + - col1 ) FROM tab1 AS cor0 WHERE NOT 80 < + - col2 * + + col2
----
-66

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - - SUM ( ALL + - col1 ) FROM tab1 AS cor0 WHERE NOT 80 < + - col2 * + + col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT ALL + col2 + + CAST( + 6 AS SIGNED ) + 71 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
136
145
173

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL + col2 + + CAST ( + 6 AS INTEGER ) + 71 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
136
145
173

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7030
SELECT 28 DIV + ( COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7030
SELECT 28 / + ( COUNT ( * ) ) FROM tab0
----
9

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + - 30 ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT col2 - + col1 FROM tab2 cor0 WHERE NOT 34 + + col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7037
SELECT - col0, - col2 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( + + 92 AS SIGNED ) * + - col1 + - col2 + + 3 AND - 68 + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7037
SELECT - col0, - col2 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( + + 92 AS INTEGER ) * + - col1 + - col2 + + 3 AND - 68 + col2
----

query III rowsort
SELECT + col2 AS col1, - 90 AS col2, - col2 - - col0 FROM tab1 AS cor0
----
9 values hashing to 0218cd776a6d3e3bd81bb74760660b1d

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT ALL 70 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL 70 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NULL < - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT + 14 * COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * - 66 + col1 NOT IN ( - 70 * - 63 )
----
45

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT + 14 * COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * - 66 + col1 NOT IN ( - 70 * - 63 )
----
45

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

query I rowsort
SELECT DISTINCT 57 * + col0 + - + 11 - - col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 0 * - - 8 + + col2 - + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 10 + - col1 + - - col0 * - - 88 >= NULL
----

query I rowsort
SELECT ALL ( - 93 ) + - col2 + col1 * - col0 FROM tab2 AS cor0
----
-2462
-5061
-5176

query I rowsort
SELECT ALL + col0 + + + col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT MIN( - 74 ) + + 11 AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7049
SELECT MIN ( - 74 ) + + 11 AS col2 FROM tab1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - ( 9 ) col0 FROM tab0
----
6
78
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col2 col1 FROM tab0 AS cor0
----
121
2290
9802

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 * - + col2 AS col0, 48 col0 FROM tab1
----
3717
48
4284
48
6048
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT - 22 * CAST( NULL AS SIGNED ) / - col2 + + 40 / - col0 * + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT - 22 * CAST ( NULL AS INTEGER ) / - col2 + + 40 / - col0 * + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

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

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

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

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

query I rowsort
SELECT 29 * 60 FROM tab2 AS cor0
----
1740
1740
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - MAX( col1 ) * - MAX( DISTINCT col2 ) * + 53 AS col1 FROM tab0 cor0
----
425007

skipif mysql # not compatible
query I rowsort label-7060
SELECT - MAX ( col1 ) * - MAX ( DISTINCT col2 ) * + 53 AS col1 FROM tab0 cor0
----
425007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7061
SELECT DISTINCT - 13 DIV - 11 + + CAST( - 43 AS SIGNED ) + + - 25 * 94 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-7092

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - 13 / - 11 + + CAST ( - 43 AS INTEGER ) + + - 25 * 94 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-7092

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

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

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

skipif mysql # not compatible
query II rowsort label-7063
SELECT COUNT ( DISTINCT ( + col0 ) ), - 34 AS col0 FROM tab2 AS cor0
----
3
-34

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

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

query I rowsort
SELECT ALL col1 * - - col1 AS col2 FROM tab1
----
196
2209
25

query II rowsort
SELECT ALL - col0, col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT 72 + 85 DIV - 71 FROM tab0 cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-7068
SELECT 72 + 85 / - 71 FROM tab0 cor0
----
71
71
71

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

query I rowsort
SELECT + 28 + col0 FROM tab1 AS cor0
----
113
119
79

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

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

query I rowsort
SELECT DISTINCT 4 + 46 AS col0 FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT col2 * - + col1 + - 70 + - col2 + + + 49 FROM tab1 AS cor0
----
-1461
-3285
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT ALL COUNT( * ) + + 40 * + MIN( + col0 ) * - 52 AS col0 FROM tab0 WHERE - col1 IS NOT NULL
----
-31197

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL COUNT ( * ) + + 40 * + MIN ( + col0 ) * - 52 AS col0 FROM tab0 WHERE - col1 IS NOT NULL
----
-31197

query II rowsort
SELECT DISTINCT col2 + - - col2 + - + col1 + + col0 + + 87, col1 AS col2 FROM tab0
----
115
81
173
21
381
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + COUNT( DISTINCT + 11 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COUNT ( DISTINCT + 11 ) FROM tab1
----
1

query I rowsort
SELECT col0 * col2 * - col0 AS col1 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL + 11 FROM tab0 WHERE NOT NULL IS NOT NULL
----
11
11
11

query I rowsort
SELECT + col1 * + 7 * + 96 * - col1 FROM tab0
----
-296352
-4408992
-672

query I rowsort
SELECT - col2 * - - col1 AS col0 FROM tab0 AS cor0 WHERE col1 < 14 * - col1 * - 29
----
-210
-3807
-99

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

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

query I rowsort
SELECT DISTINCT 7 + 65 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( col0 ) OR - 62 * - + ( + + col2 ) < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT col2, - ( - col0 ) + - - col1 + + col1 FROM tab2 cor0
----
23
148
40
218
58
209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 5 col2 FROM tab0 AS cor0
----
-435
-485
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT DISTINCT - + COUNT( * ) * - ( ( + 32 ) ) * - 48 - COUNT( * ) FROM tab2 cor0
----
-4611

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT - + COUNT ( * ) * - ( ( + 32 ) ) * - 48 - COUNT ( * ) FROM tab2 cor0
----
-4611

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

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

query I rowsort
SELECT + col2 * + 66 * - col1 * + - 53 * - 6 FROM tab1
----
-28207872
-6191460
-67077648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7092
SELECT 18 DIV + MIN( DISTINCT col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT 18 / + MIN ( DISTINCT col0 ) FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - MAX( + col0 ) * + + MIN( DISTINCT - col1 ) - + + 84 FROM tab2
----
5691

skipif mysql # not compatible
query I rowsort label-7094
SELECT - MAX ( + col0 ) * + + MIN ( DISTINCT - col1 ) - + + 84 FROM tab2
----
5691

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7095
SELECT * FROM tab0 WHERE NOT NULL = CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7095
SELECT * FROM tab0 WHERE NOT NULL = CAST ( + - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 63 * 34 FROM tab2
----
2142

onlyif mysql # DIV for integer division: 
query II rowsort label-7097
SELECT ALL + 94 DIV 89, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-7097
SELECT ALL + 94 / 89, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7098
SELECT DISTINCT + + col0 + col1 DIV col2 FROM tab0 cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT + + col0 + col1 / col2 FROM tab0 cor0
----
16
89
97

query I rowsort
SELECT 75 + 14 AS col0 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT ALL + col0 + - CAST( + col1 AS SIGNED ) + - - col1 * - col2 FROM tab1 AS cor0
----
-1307
-215
-3152

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + col0 + - CAST ( + col1 AS INTEGER ) + - - col1 * - col2 FROM tab1 AS cor0
----
-1307
-215
-3152

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT + col2 + col0 + + - ( + 5 ) + col0 + ( ( col1 ) ) DIV 3 * + 36 * col1 * + col1 AS col2 FROM tab1
----
1124
1193105
28417

skipif mysql # not compatible
query I rowsort label-7101
SELECT + col2 + col0 + + - ( + 5 ) + col0 + ( ( col1 ) ) / 3 * + 36 * col1 * + col1 AS col2 FROM tab1
----
1124
1193105
28417

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT + COUNT( ALL col1 ) FROM tab2 WHERE NOT + 31 + - col2 < - col1 / col2
----
1

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + COUNT ( ALL col1 ) FROM tab2 WHERE NOT + 31 + - col2 < - col1 / col2
----
1

query I rowsort
SELECT 12 + col2 AS col2 FROM tab1
----
108
71
80

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

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

query I rowsort
SELECT 61 * + + 72 AS col2 FROM tab2 AS cor0
----
4392
4392
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT 75 + + + COUNT( * ) * - 58 col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7106
SELECT DISTINCT 75 + + + COUNT ( * ) * - 58 col2 FROM tab0 cor0
----
-99

query I rowsort
SELECT - ( + col0 ) - - + 65 FROM tab2 AS cor0
----
-10
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT + - COUNT( * ) - - 53 + + MAX( DISTINCT - col0 ) - + COUNT( * ) * - - 69 FROM tab2 AS cor0
----
-203

skipif mysql # not compatible
query I rowsort label-7108
SELECT + - COUNT ( * ) - - 53 + + MAX ( DISTINCT - col0 ) - + COUNT ( * ) * - - 69 FROM tab2 AS cor0
----
-203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - col2 col0 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT + 17 - - col2 AS col2 FROM tab2
----
40
57
75

query I rowsort
SELECT DISTINCT col2 - + col2 + + col2 * + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + SUM( + col2 ) FROM tab2 WHERE + 62 = ( + + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT + SUM ( + col2 ) FROM tab2 WHERE + 62 = ( + + 16 )
----
NULL

query I rowsort
SELECT ALL + ( 41 ) * - col2 AS col0 FROM tab0
----
-1927
-4059
-410

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7114
SELECT DISTINCT col1 + - 77, CAST( NULL AS DECIMAL ) * + + col0 AS col1 FROM tab0
----
-56
NULL
-76
NULL
4
NULL

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT col1 + - 77, CAST ( NULL AS REAL ) * + + col0 AS col1 FROM tab0
----
-56
NULL
-76
NULL
4
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * col0 col2, + col2 + - 73 FROM tab2
----
2116
-50
4096
-33
5625
-15

query I rowsort
SELECT - + col0 + - + 92 + + 72 / - + 39 AS col2 FROM tab1 WHERE NULL <= - 75
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + 48 * - - MIN( - col0 ) + + MIN( + col2 ) * + SUM( ALL 33 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 48 * - - MIN ( - col0 ) + + MIN ( + col2 ) * + SUM ( ALL 33 ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT - + 96 DIV - col2 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-7118
SELECT - + 96 / - col2 FROM tab0 AS cor0
----
0
2
9

query I rowsort
SELECT - col2 * 89 - + 55 + col0 FROM tab2 AS cor0
----
-2056
-3551
-5142

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

query I rowsort
SELECT ALL + 85 AS col1 FROM tab2
----
85
85
85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7123
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + + 91 AS col2 FROM tab0 AS cor0
----
91
91
91

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT + 33 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - - 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT ALL + col1 DIV - 99 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + col1 / - 99 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7129
SELECT * FROM tab2 WHERE NOT NULL <= col1 + col2 * - - col2 * ( + + 95 ) + + col2 * + col2 - col1 * + + col2 * - CAST( NULL AS SIGNED ) / ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-7129
SELECT * FROM tab2 WHERE NOT NULL <= col1 + col2 * - - col2 * ( + + 95 ) + + col2 * + col2 - col1 * + + col2 * - CAST ( NULL AS INTEGER ) / ( - col0 )
----

query I rowsort
SELECT - 29 * + - col2 * + 88 AS col0 FROM tab2
----
102080
148016
58696

query I rowsort
SELECT DISTINCT + col1 * 16 FROM tab2
----
1072
1232
816

query I rowsort
SELECT DISTINCT + 8 * + - 14 AS col0 FROM tab1
----
-112

query I rowsort
SELECT - 13 * - 54 AS col0 FROM tab2
----
702
702
702

onlyif mysql # aggregate syntax: 
query II rowsort label-7134
SELECT - 74 AS col0, MAX( DISTINCT + col0 ) FROM tab2
----
-74
75

skipif mysql # not compatible
query II rowsort label-7134
SELECT - 74 AS col0, MAX ( DISTINCT + col0 ) FROM tab2
----
-74
75

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

query I rowsort
SELECT DISTINCT + col1 + - + 11 FROM tab1 AS cor0
----
-6
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - + MIN( DISTINCT + 52 ) AS col2 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7137
SELECT - + MIN ( DISTINCT + 52 ) AS col2 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT DISTINCT - - 59 + - + col2 + + col0 AS col2 FROM tab1 cor0
----
14
82
85

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

query I rowsort
SELECT 21 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / - - 77 * + 18 IS NULL
----

query I rowsort
SELECT ALL - 81 + col2 + - - col1 * ( + 9 ) AS col0 FROM tab1
----
141
23
410

query I rowsort
SELECT col0 * + 48 + + - 60 AS col0 FROM tab1
----
2388
4020
4308

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

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT + MIN ( ALL - 49 ) FROM tab0
----
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL 50 + + SUM( ALL + col1 ) + + - SUM( 62 ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL 50 + + SUM ( ALL + col1 ) + + - SUM ( 62 ) AS col2 FROM tab0 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN 2 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + - 41 * + 24 FROM tab1 AS cor0
----
-1035
-1069
-1075

query I rowsort
SELECT - col1 * col0 + + col0 + col1 FROM tab2 AS cor0
----
-2249
-4787
-4883

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT + MAX( DISTINCT - ( + 39 ) ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + MAX ( DISTINCT - ( + 39 ) ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT + 2 - + MIN( - col0 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT + 2 - + MIN ( - col0 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT ALL col1 + + ( - col1 ) + - - col1 * + 68 AS col2 FROM tab2
----
3468
4556
5236

query I rowsort
SELECT DISTINCT col2 + - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT - 99 * - - 35 - 85 FROM tab0
----
-3550
-3550
-3550

query I rowsort
SELECT ALL - 48 * - col1 - + col2 * 27 AS col2 FROM tab2
----
1650
1827
2616

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT COUNT( * ) - 8 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7157
SELECT COUNT ( * ) - 8 FROM tab2
----
-5

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 18 / + col1 * + 67 + + + col2 IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7162
SELECT DISTINCT CAST( NULL AS DECIMAL ), col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7162
SELECT DISTINCT CAST ( NULL AS REAL ), col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT DISTINCT col2 AS col1, 15 + col0 - col2 + + 79 - + col0 + ( - - ( 33 ) ) * 60 FROM tab1
----
59
2015
68
2006
96
1978

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - col2 / - + 85 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7165
SELECT DISTINCT - col0 * - 34 AS col1, - col1 + CAST( + 50 AS SIGNED ) col1 FROM tab2
----
1564
-1
2176
-27
2550
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7165
SELECT DISTINCT - col0 * - 34 AS col1, - col1 + CAST ( + 50 AS INTEGER ) col1 FROM tab2
----
1564
-1
2176
-27
2550
-17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7167
SELECT DISTINCT + 91 * + 86 + - + CAST( + + col0 AS SIGNED ) AS col2, col1 FROM tab0 AS cor0
----
7729
1
7739
21
7811
81

skipif mysql # not compatible
query II rowsort label-7167
SELECT DISTINCT + 91 * + 86 + - + CAST ( + + col0 AS INTEGER ) AS col2, col1 FROM tab0 AS cor0
----
7729
1
7739
21
7811
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7168
SELECT - col2 col2, - col0 / col2 FROM tab1 cor0
----
-59
-1
-68
-1
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT + 74 + + + ( + + COUNT( * ) ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + 74 + + + ( + + COUNT ( * ) ) AS col2 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col2 col2, col2 FROM tab1
----
4896
96
5015
59
6188
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT COUNT( * ) * 34 col1 FROM tab1
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT COUNT ( * ) * 34 col1 FROM tab1
----
102

query I rowsort
SELECT ALL - - col0 * 87 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( ( + 72 ) ) FROM tab1
----
-72

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

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

query I rowsort
SELECT ALL ( + col1 ) FROM tab2 AS cor0 WHERE - ( + 99 ) = NULL
----

query I rowsort
SELECT ALL 87 + + 10 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT + 62 + + col1 AS col1 FROM tab2 AS cor0
----
113
129
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + + 90 * col2 - + col2 col2 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7180
SELECT * FROM tab0 cor0 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7180
SELECT * FROM tab0 cor0 WHERE NULL <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - + 89 AS col1 FROM tab0 WHERE NOT - - 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT COUNT( * ) * COUNT( ALL - 25 ) * - MIN( ALL - 65 ) FROM tab1 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL - 25 ) * - MIN ( ALL - 65 ) FROM tab1 AS cor0
----
585

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

query I rowsort
SELECT DISTINCT + - 37 * - col0 AS col2 FROM tab1 AS cor0
----
1887
3145
3367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT DISTINCT 37 * col0 + col0 * + + 88 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10896
12126
1956

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT 37 * col0 + col0 * + + 88 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10896
12126
1956

query I rowsort
SELECT DISTINCT ( + - 7 ) + + - 45 FROM tab2 AS cor0
----
-52

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

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

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

query I rowsort
SELECT ALL + 36 - + ( + col2 ) AS col1 FROM tab0
----
-11
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT 45 + COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT 45 + COUNT ( * ) FROM tab0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ( + - MIN( CAST( 80 AS SIGNED ) ) ) + 15 AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-7191
SELECT ( + - MIN ( CAST ( 80 AS INTEGER ) ) ) + 15 AS col0 FROM tab2
----
-65

query I rowsort
SELECT ALL - col2 - - 7 AS col2 FROM tab0
----
-3
-40
-92

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

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

query II rowsort
SELECT DISTINCT - ( 93 ) AS col1, - col2 * - + col1 * col1 AS col0 FROM tab1
----
-93
1475
-93
150212
-93
18816

onlyif mysql # aggregate syntax: 
query II rowsort label-7195
SELECT + 73 * + 41 AS col2, - COUNT( * ) * + + COUNT( ALL + col1 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
2993
-27

skipif mysql # not compatible
query II rowsort label-7195
SELECT + 73 * + 41 AS col2, - COUNT ( * ) * + + COUNT ( ALL + col1 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2993
-27

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

skipif mysql # not compatible
query I rowsort label-7196
SELECT MAX ( DISTINCT 31 ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT 58 * - 10 FROM tab2 AS cor0
----
-580
-580
-580

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7200
SELECT DISTINCT + COUNT( * ), - SUM( + col0 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-196

skipif mysql # not compatible
query II rowsort label-7200
SELECT DISTINCT + COUNT ( * ), - SUM ( + col0 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-196

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7202
SELECT ALL - col2 * - col1 - col2, - CAST( NULL AS DECIMAL ) * + col0 / - col0 * + 4 / 91 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query II rowsort label-7202
SELECT ALL - col2 * - col1 - col2, - CAST ( NULL AS REAL ) * + col0 / - col0 * + 4 / 91 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * 99 col2 FROM tab1 AS cor0
----
4257
4257
4257

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT ALL + SUM( ALL + 17 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL + SUM ( ALL + 17 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 21 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 11 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT - col0 - - ( - - col1 ) FROM tab2 WHERE - - col1 + - - col2 / - - col0 * 49 <> + CAST( 76 AS SIGNED )
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7209
SELECT - col0 - - ( - - col1 ) FROM tab2 WHERE - - col1 + - - col2 / - - col0 * 49 <> + CAST ( 76 AS INTEGER )
----
-8
13
5

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

query I rowsort
SELECT DISTINCT col2 + - 98 FROM tab1 AS cor0
----
-2
-30
-39

query I rowsort
SELECT ALL ( 10 ) AS col1 FROM tab0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + ( + ( 11 ) ) * col2 col1, + col2 AS col0 FROM tab0
----
1188
99
120
10
564
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( 48 ) * + - col0 >= col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT ALL col2 DIV col2 + + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
1059
2561
4351

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL col2 / col2 + + + col2 * + col0 AS col1 FROM tab2 AS cor0
----
1059
2561
4351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col0 AS col0, + 22 col1 FROM tab0 AS cor0
----
-1215
22
-1827
22
-97
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 11 >= ( - col2 )
----

query I rowsort
SELECT DISTINCT - 45 * + col2 * + col1 * + col2 AS col0 FROM tab1 AS cor0
----
-5806080
-783225
-9779760

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * 69 col0 FROM tab1
----
4140
4140
4140

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 24 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT - col0 + + 58 AS col1, - col1 FROM tab0 AS cor0
----
-29
-21
-39
-1
43
-81

query I rowsort
SELECT + - 74 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT + col2 * - col0 * - - CAST( - + col2 AS SIGNED ) + 17 FROM tab1 AS cor0
----
295902
420801
470033

skipif mysql # not compatible
query I rowsort label-7229
SELECT + col2 * - col0 * - - CAST ( - + col2 AS INTEGER ) + 17 FROM tab1 AS cor0
----
295902
420801
470033

query I rowsort
SELECT + col2 FROM tab0 WHERE col1 * + ( - 11 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col1 col0 FROM tab1
----
1344
295
3196

query II rowsort
SELECT DISTINCT - col0, 42 AS col0 FROM tab2
----
-46
42
-64
42
-75
42

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

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

query I rowsort
SELECT col1 + + - 98 * - 87 + - col2 FROM tab2
----
8535
8554
8563

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

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + ( + + MAX ( col0 ) ) FROM tab1
----
91

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7238
SELECT DISTINCT col2 + - - col2 DIV - - ( + 56 ) AS col1 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT col2 + - - col2 / - - ( + 56 ) AS col1 FROM tab1 AS cor0
----
60
69
97

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

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

query I rowsort
SELECT DISTINCT - 82 - - - col2 + - 1 FROM tab2
----
-106
-123
-141

query I rowsort
SELECT 79 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT col2 * - - 38 FROM tab2 AS cor0
----
1520
2204
874

query I rowsort
SELECT DISTINCT + + 63 AS col0 FROM tab2 cor0
----
63

query II rowsort
SELECT DISTINCT - - 38 * - 45, col0 AS col0 FROM tab0 AS cor0
----
-1710
15
-1710
87
-1710
97

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

skipif mysql # not compatible
query I rowsort label-7245
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

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

skipif mysql # not compatible
query I rowsort label-7246
SELECT - - MIN ( col0 ) FROM tab0 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL ) BETWEEN - ( 47 ) AND col1 )
----

query I rowsort
SELECT DISTINCT col2 * 61 AS col2 FROM tab0
----
2867
6039
610

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

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

query I rowsort
SELECT - col1 * - col1 - + col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-195
344
6499

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

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

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

query I rowsort
SELECT ALL - col2 + 52 + - + 24 FROM tab1 AS cor0 WHERE col2 < + + 8
----

query I rowsort
SELECT 73 + - col1 AS col2 FROM tab2 AS cor0
----
-4
22
6

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

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

query I rowsort
SELECT - 60 * + 66 + - 94 FROM tab0 AS cor0
----
-4054
-4054
-4054

query I rowsort
SELECT ALL + + col0 + - 35 * + col0 AS col2 FROM tab2 cor0
----
-1564
-2176
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL + ( + MIN( 16 ) ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + ( + MIN ( 16 ) ) FROM tab1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT ALL col0 * - - CAST( NULL AS SIGNED ) - 20 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL col0 * - - CAST ( NULL AS INTEGER ) - 20 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * + + col2 AS col1, + col2 FROM tab1
----
-1344
96
-295
59
-3196
68

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

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

query I rowsort
SELECT + 75 * - col1 FROM tab0
----
-1575
-6075
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col2 FROM tab0 WHERE 9 IS NOT NULL
----
225
7569
9409

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

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

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

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

query II rowsort
SELECT DISTINCT + ( 40 ) AS col0, - col0 FROM tab2 AS cor0
----
40
-46
40
-64
40
-75

query III rowsort
SELECT * FROM tab1 WHERE + ( col1 ) * - 25 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col2 ) col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT - col2 * - CAST( + + col2 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
3540
4692
9312

skipif mysql # not compatible
query I rowsort label-7269
SELECT - col2 * - CAST ( + + col2 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
3540
4692
9312

query I rowsort
SELECT col2 * - 20 FROM tab0 AS cor0
----
-1980
-200
-940

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN col1 AND NULL
----
46
51
23
64
77
40

query II rowsort
SELECT - 19 AS col2, - 91 AS col2 FROM tab1
----
-19
-91
-19
-91
-19
-91

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

query I rowsort
SELECT ALL - col0 * col1 * + 57 * col2 AS col0 FROM tab1
----
-1429275
-16577652
-3907008

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT - - MAX( - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - - MAX ( - col2 ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT + col0 + 22 AS col0, - col0 FROM tab0 AS cor0
----
109
-87
119
-97
37
-15

query I rowsort
SELECT DISTINCT 79 * - 51 AS col1 FROM tab2
----
-4029

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT - COUNT( * ) + 22 AS col0, 74 AS col0 FROM tab0
----
19
74

skipif mysql # not compatible
query II rowsort label-7278
SELECT - COUNT ( * ) + 22 AS col0, 74 AS col0 FROM tab0
----
19
74

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7280
SELECT ALL - - CAST( - col0 AS SIGNED ) AS col0, col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
query II rowsort label-7280
SELECT ALL - - CAST ( - col0 AS INTEGER ) AS col0, col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT 37 + MIN( DISTINCT - 29 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT 37 + MIN ( DISTINCT - 29 ) FROM tab2 AS cor0
----
8

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

skipif mysql # not compatible
query III rowsort label-7283
SELECT * FROM tab2 AS cor0 WHERE NULL > + CAST ( - col2 AS INTEGER ) * + col2
----

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

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

query I rowsort
SELECT ALL - 38 + 44 AS col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL 78 * + col1 - + col1 FROM tab0
----
1617
6237
77

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE - ( 24 ) + 79 + + 52 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT + ( - + col1 ) + - col2 DIV + col0 FROM tab1
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-7288
SELECT + ( - + col1 ) + - col2 / + col0 FROM tab1
----
-15
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT MAX( ALL - ( - col1 ) ) FROM tab1 WHERE - 41 / - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT MAX ( ALL - ( - col1 ) ) FROM tab1 WHERE - 41 / - col2 IS NULL
----
NULL

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

query I rowsort
SELECT - - col0 + + 25 FROM tab1 AS cor0
----
110
116
76

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

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

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

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + 12 * + col1 <= NULL
----

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

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

query I rowsort
SELECT ALL + 91 + + 96 FROM tab1
----
187
187
187

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

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

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

query I rowsort
SELECT ALL + ( + 28 ) FROM tab2
----
28
28
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 2 * + 93 IN ( - 20 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + COUNT ( ALL - ( - col2 ) ) FROM tab1
----
3

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

query I rowsort
SELECT ALL ( - 17 ) AS col2 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT ALL col0 + 64 FROM tab0 WHERE NOT ( + col0 + + col0 ) < NULL
----

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

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

query I rowsort
SELECT 39 * 5 + col1 FROM tab2
----
246
262
272

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE NOT ( + col1 - col0 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE + 47 * 55 - + col1 NOT BETWEEN - col2 + col0 AND NULL
----

query I rowsort
SELECT - 50 + 22 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT col1 * + col1 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-98
431
6514

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

query I rowsort
SELECT col2 * - 10 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - 53 * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT - 53 * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

query I rowsort
SELECT ALL - ( - col1 ) + - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT 77 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT 77 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
231

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT ALL MAX( DISTINCT - 83 ) * - 26 FROM tab0
----
2158

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL MAX ( DISTINCT - 83 ) * - 26 FROM tab0
----
2158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT col1 IN ( col0 + + CAST( col1 AS SIGNED ) * - col0 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT col1 IN ( col0 + + CAST ( col1 AS INTEGER ) * - col0 )
----
51
67
77

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0 cor0 CROSS JOIN tab1
----
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + + 39 <> 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + ( - 5 ) FROM tab2 AS cor0
----
-51
-69
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - MAX( ALL 96 ) + 64 AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7323
SELECT - MAX ( ALL 96 ) + 64 AS col1 FROM tab0 AS cor0
----
-32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NULL < 37 / col1
----

query I rowsort
SELECT DISTINCT + + 42 * col1 FROM tab2 AS cor0
----
2142
2814
3234

query I rowsort
SELECT ALL - col0 + + 94 AS col1 FROM tab1 AS cor0
----
3
43
9

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

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

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

query I rowsort
SELECT ALL - 0 + + 6 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL + col1 * + 46 AS col1 FROM tab1 AS cor0
----
2162
230
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT - - 95 + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT - - 95 + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 + - ( col1 + col1 ) FROM tab0 AS cor0
----
-129
-177
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL 15 + + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
66
82
92

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 15 + + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
66
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7336
SELECT * FROM tab2 AS cor0 WHERE ( col2 * col2 ) BETWEEN col0 + - CAST( - col0 AS SIGNED ) AND + 77 + + col0
----

skipif mysql # not compatible
query III rowsort label-7336
SELECT * FROM tab2 AS cor0 WHERE ( col2 * col2 ) BETWEEN col0 + - CAST ( - col0 AS INTEGER ) AND + 77 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT ALL + CAST( col0 AS SIGNED ) + col2 * col2 FROM tab2
----
1664
3439
575

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + CAST ( col0 AS INTEGER ) + col2 * col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT DISTINCT + 70 - - col2 FROM tab1
----
129
138
166

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

query III rowsort
SELECT * FROM tab1 WHERE 19 / 46 + 68 IS NULL
----

query I rowsort
SELECT + 1 * 2 FROM tab1
----
2
2
2

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

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

query I rowsort
SELECT 2 * 12 * col1 AS col0 FROM tab2
----
1224
1608
1848

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7345
SELECT + COUNT( - 11 ) - - 34 DIV COUNT( * ) AS col0 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-7345
SELECT + COUNT ( - 11 ) - - 34 / COUNT ( * ) AS col0 FROM tab1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT col0 - col0 + - col1 DIV + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7346
SELECT col0 - col0 + - col1 / + col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT 56 * - - 29 - col2 FROM tab1
----
1528
1556
1565

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT ALL - - col0 * 39 DIV 73 AS col0 FROM tab2 AS cor0
----
24
34
40

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - - col0 * 39 / 73 AS col0 FROM tab2 AS cor0
----
24
34
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT DISTINCT 76 - - - CAST( - COUNT( - 2 ) AS SIGNED ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT 76 - - - CAST ( - COUNT ( - 2 ) AS INTEGER ) FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7350
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 56 = CAST( NULL AS SIGNED ) + + col2 * col0
----

skipif mysql # not compatible
query III rowsort label-7350
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 56 = CAST ( NULL AS INTEGER ) + + col2 * col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + COUNT( DISTINCT + 96 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7353
SELECT + COUNT ( DISTINCT + 96 ) FROM tab0
----
1

query I rowsort
SELECT ALL + 66 FROM tab1 cor0 WHERE + + 88 IS NOT NULL OR ( NULL ) IS NOT NULL
----
66
66
66

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT + AVG ( DISTINCT - ( 61 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT 36 * - 68 + CAST( NULL AS SIGNED ) < ( - col2 / - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT + AVG ( DISTINCT - ( 61 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT 36 * - 68 + CAST ( NULL AS INTEGER ) < ( - col2 / - col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT ALL + + ( - + 24 ) DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + + ( - + 24 ) / + col1 FROM tab2 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE ( NULL ) > col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT ALL - + 16, + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-16
3

skipif mysql # not compatible
query II rowsort label-7361
SELECT ALL - + 16, + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-16
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + 73 * - MIN( - 55 ) AS col2 FROM tab0
----
4015

skipif mysql # not compatible
query I rowsort label-7363
SELECT + 73 * - MIN ( - 55 ) AS col2 FROM tab0
----
4015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT + CAST( + col2 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + 82 IN ( - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT + CAST ( + col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + 82 IN ( - col1 )
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT COUNT( * ) DIV 57 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7368
SELECT COUNT ( * ) / 57 col2 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-7369
SELECT COUNT ( * ) FROM tab2 WHERE NOT - col1 <> + col0
----
0

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

query I rowsort
SELECT 92 + + col1 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 96 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN - col0 * - 55 AND 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - col0 + - col2 * col0 FROM tab1 cor0
----
-4851
-5041
-6211

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL - SUM( ALL - col0 ) + - COUNT( * ) col1 FROM tab0 cor0
----
196

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

query I rowsort
SELECT ALL 60 AS col2 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN col2 AND ( col1 * + 3 )
----
60
60
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT DISTINCT SUM( ALL + ( 75 ) ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT SUM ( ALL + ( 75 ) ) FROM tab1 AS cor0
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT ALL + CAST( + SUM( ALL 49 ) AS SIGNED ) AS col0 FROM tab2 cor0 WHERE ( ( ( col2 ) ) IS NOT NULL )
----
147

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL + CAST ( + SUM ( ALL 49 ) AS INTEGER ) AS col0 FROM tab2 cor0 WHERE ( ( ( col2 ) ) IS NOT NULL )
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT + col2 * 21 DIV - col0 + + col0 * - 81 AS col2 FROM tab1 AS cor0
----
-4170
-6899
-7386

skipif mysql # not compatible
query I rowsort label-7379
SELECT + col2 * 21 / - col0 + + col0 * - 81 AS col2 FROM tab1 AS cor0
----
-4170
-6899
-7386

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - 32 + - 30 * + ( COUNT( * ) ) AS col0 FROM tab1 WHERE - col2 * + 37 * - - 2 * col1 + col1 IN ( + col1 )
----
-32

skipif mysql # not compatible
query I rowsort label-7380
SELECT - 32 + - 30 * + ( COUNT ( * ) ) AS col0 FROM tab1 WHERE - col2 * + 37 * - - 2 * col1 + col1 IN ( + col1 )
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7381
SELECT - CAST( NULL AS DECIMAL ) AS col0, 61 FROM tab1
----
NULL
61
NULL
61
NULL
61

skipif mysql # not compatible
query II rowsort label-7381
SELECT - CAST ( NULL AS REAL ) AS col0, 61 FROM tab1
----
NULL
61
NULL
61
NULL
61

query I rowsort
SELECT col0 * + + 41 FROM tab2
----
1886
2624
3075

query I rowsort
SELECT DISTINCT - 14 + 94 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
80

query I rowsort
SELECT ALL + + col0 + - 57 + - 60 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-42
-53
-71

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

query I rowsort
SELECT DISTINCT 18 * + 65 FROM tab0 AS cor0
----
1170

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

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 / 14 * + 93 > ( - 37 * 57 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7389
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, col0 + + 70 FROM tab2 AS cor0
----
NULL
116
NULL
134
NULL
145

skipif mysql # not compatible
query II rowsort label-7389
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, col0 + + 70 FROM tab2 AS cor0
----
NULL
116
NULL
134
NULL
145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT DISTINCT col2 * - - CAST( + 83 AS SIGNED ) + - 68 FROM tab1 AS cor0
----
4829
5576
7900

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT col2 * - - CAST ( + 83 AS INTEGER ) + - 68 FROM tab1 AS cor0
----
4829
5576
7900

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

query II rowsort
SELECT ALL + + col1 + + col2 + + col1, - col0 AS col1 FROM tab0 AS cor0
----
101
-97
209
-15
52
-87

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

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

query I rowsort
SELECT ALL 86 + 77 FROM tab0 AS cor0
----
163
163
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT 30 + - SUM( DISTINCT - 88 ) FROM tab0
----
118

skipif mysql # not compatible
query I rowsort label-7396
SELECT 30 + - SUM ( DISTINCT - 88 ) FROM tab0
----
118

query I rowsort
SELECT 74 + - 20 AS col2 FROM tab2
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT CAST( - col0 AS SIGNED ) * + col2 + - + 77 col0 FROM tab0
----
-782
-947
-9680

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7398
SELECT CAST ( - col0 AS INTEGER ) * + col2 + - + 77 col0 FROM tab0
----
-782
-947
-9680

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE ( - col1 ) IN ( 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7400
SELECT ALL + CAST( NULL AS SIGNED ) - ( 47 ) * - col1 AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7400
SELECT ALL + CAST ( NULL AS INTEGER ) - ( 47 ) * - col1 AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - 30 * - - ( MIN( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-1770

skipif mysql # not compatible
query I rowsort label-7401
SELECT - 30 * - - ( MIN ( - - col2 ) ) AS col1 FROM tab1 AS cor0
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT MAX( + - 27 ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7402
SELECT MAX ( + - 27 ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) col0 FROM tab2 cor0
----
-46
-64
-75

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT + col1 DIV - - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + col1 / - - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

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

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + - 37 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 84 * - col0 AS col2 FROM tab2 AS cor0
----
-3864
-5376
-6300

query I rowsort
SELECT - 70 * col1 * col1 FROM tab1 AS cor0
----
-13720
-154630
-1750

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + 85 <> 35
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7416
SELECT ALL 82 AS col2, CAST( + - ( col1 ) AS DECIMAL ) * - + CAST( NULL AS SIGNED ) + - col2 / + 61 * + col0 AS col0 FROM tab1
----
82
NULL
82
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-7416
SELECT ALL 82 AS col2, CAST ( + - ( col1 ) AS REAL ) * - + CAST ( NULL AS INTEGER ) + - col2 / + 61 * + col0 AS col0 FROM tab1
----
82
NULL
82
NULL
82
NULL

query I rowsort
SELECT ALL + 15 * + + col0 FROM tab0
----
1305
1455
225

query I rowsort
SELECT - 82 * - col2 AS col0 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT - - ( + COUNT( * ) ) + - 79 + + 52 col2 FROM tab1 AS cor0
----
-24

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

query I rowsort
SELECT DISTINCT 21 + + col2 AS col1 FROM tab1 cor0
----
117
80
89

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

query I rowsort
SELECT - 55 + + + col0 + - - col1 AS col1 FROM tab2
----
42
86
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7423
SELECT + CAST( + col0 AS SIGNED ) + - 39 FROM tab0
----
-24
48
58

skipif mysql # not compatible
query I rowsort label-7423
SELECT + CAST ( + col0 AS INTEGER ) + - 39 FROM tab0
----
-24
48
58

query I rowsort
SELECT col1 + 20 AS col2 FROM tab1 AS cor0
----
25
34
67

query I rowsort
SELECT + + 10 + + col0 FROM tab0 cor0
----
107
25
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT - col0 * - col0 + col2 AS col1 FROM tab2 WHERE col1 + - - 73 + + - CAST( col1 AS SIGNED ) * col1 * - + 90 <> - col2
----
2139
4136
5683

skipif mysql # not compatible
query I rowsort label-7426
SELECT - col0 * - col0 + col2 AS col1 FROM tab2 WHERE col1 + - - 73 + + - CAST ( col1 AS INTEGER ) * col1 * - + 90 <> - col2
----
2139
4136
5683

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

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

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT ( - 54 ) FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT + 89 * SUM( + col0 ) FROM tab2
----
16465

skipif mysql # not compatible
query I rowsort label-7430
SELECT + 89 * SUM ( + col0 ) FROM tab2
----
16465

query II rowsort
SELECT col1, 93 FROM tab2
----
51
93
67
93
77
93

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

skipif mysql # not compatible
query I rowsort label-7432
SELECT ( + MIN ( DISTINCT col2 ) ) FROM tab0
----
10

query I rowsort
SELECT ( + + 75 ) * + - col1 FROM tab1
----
-1050
-3525
-375

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT + 99 * COUNT( col1 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT + 99 * COUNT ( col1 ) FROM tab0
----
297

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

query I rowsort
SELECT DISTINCT + col0 * col2 * + + col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7438
SELECT DISTINCT * FROM tab1 WHERE + + col1 * - CAST( + - col2 AS SIGNED ) / - col2 >= ( col2 / - ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-7438
SELECT DISTINCT * FROM tab1 WHERE + + col1 * - CAST ( + - col2 AS INTEGER ) / - col2 >= ( col2 / - ( - col2 ) )
----

query I rowsort
SELECT DISTINCT + + col2 + 13 AS col0 FROM tab0 AS cor0
----
112
23
60

query I rowsort
SELECT ALL - col0 * - 98 AS col0 FROM tab0 AS cor0
----
1470
8526
9506

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

query I rowsort
SELECT + + col0 + + col2 FROM tab2 AS cor0 WHERE NOT 55 + - + col0 IS NULL
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT - - ( + 29 ) * + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( + + col2 ) + col0 NOT BETWEEN NULL AND 16
----
87

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT - - ( + 29 ) * + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( + + col2 ) + col0 NOT BETWEEN NULL AND 16
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT ALL + 37 DIV - ( + - 91 ) + - 92 * - col1 FROM tab2 cor0
----
4692
6164
7084

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + 37 / - ( + - 91 ) + - 92 * - col1 FROM tab2 cor0
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL - COUNT( * ) * 5 AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL - COUNT ( * ) * 5 AS col1 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL - col1 + - - 53 + col1 FROM tab0 AS cor0
----
53
53
53

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 * 26 / - col2 + 88 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + + 62 AS col2 FROM tab2 WHERE NOT 95 + + + col1 NOT IN ( + 16, col2 + - col2 * col0 )
----

query II rowsort
SELECT ALL - col1 * - col0 AS col2, col0 * - - col0 - 69 * 56 FROM tab1
----
425
3361
4277
4417
714
-1263

query I rowsort
SELECT + 94 + + - col2 AS col2 FROM tab2
----
36
54
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT DISTINCT ( + - 97 ) DIV col2 AS col1 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT ( + - 97 ) / col2 AS col1 FROM tab0
----
-2
-9
0

query I rowsort
SELECT + col1 + - - col1 * - - col0 FROM tab0
----
1296
1848
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 7 - + + 84 IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 21 col1 FROM tab0
----
2079
210
987

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

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

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT + 33 + + col1 AS col2 FROM tab1 AS cor0
----
38
47
80

query I rowsort
SELECT col0 + col0 + + col0 + - 67 AS col1 FROM tab0 AS cor0
----
-22
194
224

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 + - 25 BETWEEN 83 * - 16 AND ( - - 74 - - 39 * - ( + + 32 ) * + - 34 * + col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - 65 * COUNT( * ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7464
SELECT - 65 * COUNT ( * ) FROM tab2
----
-195

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 45 NOT IN ( - col2 + col2, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - + - col2 col1, col1 FROM tab2 WHERE NOT - col1 IS NULL
----
116
67
46
51
80
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + ( COUNT( - + 68 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7469
SELECT + ( COUNT ( - + 68 ) ) FROM tab0
----
3

query I rowsort
SELECT - - col1 * - 24 + + col0 FROM tab1 AS cor0
----
-1037
-285
-35

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT ALL + ( + + col1 ) DIV - - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + ( + + col1 ) / - - col0 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col1, + 52 + - col1 FROM tab2
----
51
1
67
-15
77
-25

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

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

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

query I rowsort
SELECT DISTINCT ( col2 ) + + - 95 FROM tab0 AS cor0
----
-48
-85
4

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

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

query I rowsort
SELECT ALL + 32 * - + 93 AS col1 FROM tab0
----
-2976
-2976
-2976

query I rowsort
SELECT DISTINCT col1 + - - 75 FROM tab1
----
122
80
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT DISTINCT - col2 * - col0 * col2 DIV + + col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - col2 * - col0 * col2 / + + col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT DISTINCT + COUNT( * ) * ( 91 ) AS col0 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + COUNT ( * ) * ( 91 ) AS col0 FROM tab2
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-7484
SELECT ALL - 5 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - 5 / - - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7485
SELECT * FROM tab1 WHERE - 93 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7485
SELECT * FROM tab1 WHERE - 93 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7486
SELECT - COUNT( * ) DIV - 46 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT - COUNT ( * ) / - 46 col2 FROM tab0
----
0

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

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

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

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

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

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

query II rowsort
SELECT + 74 AS col2, - 2 FROM tab0
----
74
-2
74
-2
74
-2

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT MAX( ALL + col1 ), 36 AS col0 FROM tab0 AS cor0
----
81
36

skipif mysql # not compatible
query II rowsort label-7495
SELECT MAX ( ALL + col1 ), 36 AS col0 FROM tab0 AS cor0
----
81
36

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

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + + col1 * 15 FROM tab1 AS cor0
----
210
705
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT ALL col1 DIV + col0 + + - col2 FROM tab0 cor0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL col1 / + col0 + + - col2 FROM tab0 cor0
----
-10
-42
-99

query I rowsort
SELECT - 21 * - + ( - 95 ) FROM tab0 cor0
----
-1995
-1995
-1995

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col1 col2 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7503
SELECT - COUNT ( DISTINCT - ( - col0 ) ) FROM tab1
----
-3

query I rowsort
SELECT - ( 65 ) AS col1 FROM tab0
----
-65
-65
-65

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 >= col2 * - col1
----

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

query I rowsort
SELECT - 48 * - - col2 FROM tab0
----
-2256
-4752
-480

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7510
SELECT COUNT( + + CAST( + + col2 AS SIGNED ) ) DIV - + COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7510
SELECT COUNT ( + + CAST ( + + col2 AS INTEGER ) ) / - + COUNT ( * ) AS col2 FROM tab2
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT ALL - col0 DIV col2 * + ( - + col0 ) * - - col2 + + col0 FROM tab0 AS cor0
----
15
7047
97

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - col0 / col2 * + ( - + col0 ) * - - col2 + + col0 FROM tab0 AS cor0
----
15
7047
97

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + - 2 + 21 + - - col0 + 14 + - + col1 / col0 BETWEEN - + col1 AND NULL )
----

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

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

query I rowsort
SELECT DISTINCT 23 * - + 71 + + col0 FROM tab0 AS cor0
----
-1536
-1546
-1618

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT - ( ( - 11 ) ) + - MIN( + ( + col2 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7518
SELECT - ( ( - 11 ) ) + - MIN ( + ( + col2 ) ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE + col0 = + 54 * col0
----

query I rowsort
SELECT DISTINCT col0 - - 18 AS col2 FROM tab2
----
64
82
93

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

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

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

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

query I rowsort
SELECT - + 93 * - col0 * - col1 + col1 AS col1 FROM tab2 AS cor0 WHERE NULL < ( - 8 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE 88 + + col1 >= NULL
----

query IIIIII rowsort
SELECT ALL * FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 ) WHERE 89 IS NULL
----

query I rowsort
SELECT - 53 - - col0 AS col1 FROM tab1
----
-2
32
38

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

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 BETWEEN NULL AND 54
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT DISTINCT + - 0, SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <> + + col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7530
SELECT DISTINCT + - 0, SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 <> + + col2
----
0
NULL

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT DISTINCT + + col2 DIV - 35 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + + col2 / - 35 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT - col1 DIV + col1 + - - col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-7535
SELECT - col1 / + col1 + - - col0 FROM tab0 AS cor0
----
14
86
96

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

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

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

query II rowsort
SELECT + col0 * - 78, - col1 AS col1 FROM tab2
----
-3588
-51
-4992
-77
-5850
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 43 ) col1 FROM tab0
----
-43
-43
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT ( - COUNT( * ) ) * 92 AS col1 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT ( - COUNT ( * ) ) * 92 AS col1 FROM tab0
----
-276

query I rowsort
SELECT ALL - 93 * - 74 AS col2 FROM tab1
----
6882
6882
6882

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT + MAX( - col0 ) * - 90 AS col0 FROM tab2
----
4140

skipif mysql # not compatible
query I rowsort label-7543
SELECT + MAX ( - col0 ) * - 90 AS col0 FROM tab2
----
4140

query II rowsort
SELECT - col0, col0 AS col1 FROM tab1 WHERE NOT col2 + 33 + col0 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT - - SUM( + col0 ) + + 81 FROM tab1 AS cor0
----
308

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - - SUM ( + col0 ) + + 81 FROM tab1 AS cor0
----
308

query II rowsort
SELECT DISTINCT col0, + 36 FROM tab2
----
46
36
64
36
75
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + - ( COUNT( * ) ) + - 2 AS col1 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7547
SELECT + - ( COUNT ( * ) ) + - 2 AS col1 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT + 84 + + ( + 54 ) FROM tab1 cor0
----
138
138
138

query I rowsort
SELECT - 86 + - 32 + col2 FROM tab2 AS cor0
----
-60
-78
-95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + - 57 col1 FROM tab1 AS cor0
----
-146
-146
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT + 91 + + + ( + + CAST( - 47 AS SIGNED ) ) - - + 40 * + col0 + + + 68 + + ( - col0 ) FROM tab1 AS cor0
----
2101
3427
3661

skipif mysql # not compatible
query I rowsort label-7552
SELECT + 91 + + + ( + + CAST ( - 47 AS INTEGER ) ) - - + 40 * + col0 + + + 68 + + ( - col0 ) FROM tab1 AS cor0
----
2101
3427
3661

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - - MAX( DISTINCT - - col0 ) + ( + COUNT( * ) ) col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7553
SELECT - - MAX ( DISTINCT - - col0 ) + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 1 * 24 IS NULL
----

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

query I rowsort
SELECT ALL + 6 * + col1 + + + col2 FROM tab2
----
329
460
502

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT 17 IS NOT NULL
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT + ( - 92 ) AS col0 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT - 62 - + ( + 31 ) AS col0 FROM tab0
----
-93
-93
-93

query II rowsort
SELECT + col0 - col0 AS col0, + col0 + + - col0 AS col1 FROM tab2
----
0
0
0
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT COUNT( - - col0 ) * 32 * 43 FROM tab2 AS cor0
----
4128

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT COUNT ( - - col0 ) * 32 * 43 FROM tab2 AS cor0
----
4128

query I rowsort
SELECT ALL + 90 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-1311
-4321
-535

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL - MAX( - + 34 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL + MAX( DISTINCT - col2 ) * + 81 FROM tab1 cor0
----
-4779

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + MAX ( DISTINCT - col2 ) * + 81 FROM tab1 cor0
----
-4779

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

query II rowsort
SELECT - - 93, - 41 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to d59ee1275382c1559fd2ce39f2b686f5

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT DISTINCT - col0 DIV - - 45 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - col0 / - - 45 FROM tab0
----
-1
-2
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT DISTINCT - ( - COUNT( * ) ) * - 29 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - ( - COUNT ( * ) ) * - 29 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - col2 * - 27 AS col1 FROM tab2 cor0
----
1080
1566
621

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7572
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + + CAST( - 98 AS SIGNED ) ) * + - col1
----

skipif mysql # not compatible
query III rowsort label-7572
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + + CAST ( - 98 AS INTEGER ) ) * + - col1
----

query I rowsort
SELECT + col0 * - col2 * - + 38 * - ( - + col0 ) FROM tab1 AS cor0
----
16198450
21398104
9488448

query I rowsort
SELECT ALL + - 22 FROM tab2 AS cor0 WHERE NOT col2 <> - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7575
SELECT + COUNT( * ) DIV + 51 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT + COUNT ( * ) / + 51 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0 AS col0, 94 FROM tab1
----
51
94
85
94
91
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT + 90 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7577
SELECT + 90 / + col2 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - 26 col2 FROM tab0
----
1222
2574
260

query II rowsort
SELECT + 63 AS col0, 66 AS col1 FROM tab2
----
63
66
63
66
63
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT - col1 DIV + + col0 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT - col1 / + + col0 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7581
SELECT 16, + col2 + CAST( - + col1 AS SIGNED ) AS col1 FROM tab1
----
16
21
16
54
16
82

skipif mysql # not compatible
query II rowsort label-7581
SELECT 16, + col2 + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1
----
16
21
16
54
16
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT MIN( ALL + 18 ) AS col2 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-7582
SELECT MIN ( ALL + 18 ) AS col2 FROM tab2
----
18

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( + col2, 35 + - col2 * col1 * + col0 )
----

query II rowsort
SELECT DISTINCT + ( + 60 ), col0 AS col2 FROM tab0 AS cor0
----
60
15
60
87
60
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND + + 48 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT + 78 + - - MIN( + 79 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
157

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + 78 + - - MIN ( + 79 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
157

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < 39
----

query I rowsort
SELECT ALL - 21 * - col2 + col2 FROM tab0 cor0
----
1034
2178
220

query I rowsort
SELECT col1 * + col1 * + col1 - col0 FROM tab0 AS cor0
----
-96
531426
9174

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT ALL 48 + - - 1 DIV + + col1 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL 48 + - - 1 / + + col1 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT ALL - CAST( + + 32 AS SIGNED ) - + col2 + col0 FROM tab0
----
-34
-64
45

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - CAST ( + + 32 AS INTEGER ) - + col2 + col0 FROM tab0
----
-34
-64
45

query I rowsort
SELECT DISTINCT + col0 + col2 * - 46 AS col2 FROM tab0
----
-2147
-373
-4457

query I rowsort
SELECT ALL - 99 - - + col0 FROM tab2
----
-24
-35
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + + 73 ) * - ( - ( - col1 ) ) + + col2 - - col1 + + - col2 + - - col2 * - col2 - + - col2 * + col2 AS col2 FROM tab2
----
3774
4958
5698

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + ( + - 0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT col1 DIV + 4 FROM tab2 cor0
----
12
16
19

skipif mysql # not compatible
query I rowsort label-7597
SELECT col1 / + 4 FROM tab2 cor0
----
12
16
19

query II rowsort
SELECT DISTINCT + - ( + ( - 6 ) ) AS col2, col2 AS col1 FROM tab2 AS cor0
----
6
23
6
40
6
58

query I rowsort
SELECT DISTINCT - col2 * 13 AS col0 FROM tab0
----
-1287
-130
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT + COUNT( * ) * COUNT( + 39 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + COUNT ( * ) * COUNT ( + 39 ) FROM tab1 cor0
----
9

query I rowsort
SELECT DISTINCT - + 54 AS col0 FROM tab0 AS cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 82, col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - 84
----

query I rowsort
SELECT + ( + 97 ) FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 51 * 26 * + - 1 AS col2 FROM tab2
----
-1326
-1326
-1326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col2 col0 FROM tab1 WHERE + col2 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 40 ) * - - col2 + + col2 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT ALL 53 DIV col2 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL 53 / col2 AS col2 FROM tab0
----
0
1
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7610
SELECT COUNT( * ) AS col1, + MIN( - col2 ) AS col0 FROM tab0
----
3
-99

skipif mysql # not compatible
query II rowsort label-7610
SELECT COUNT ( * ) AS col1, + MIN ( - col2 ) AS col0 FROM tab0
----
3
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT + - MIN( + - 60 ) FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-7611
SELECT + - MIN ( + - 60 ) FROM tab0 cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT col0 + - + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT col0 + - + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT 56 DIV + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-47
-74
-90

skipif mysql # not compatible
query I rowsort label-7613
SELECT 56 / + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-47
-74
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col1 FROM tab2 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7615
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col1 + - - 78 AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT DISTINCT MAX( + 39 ) * + 4 + CAST( + - 71 AS SIGNED ) col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7617
SELECT DISTINCT MAX ( + 39 ) * + 4 + CAST ( + - 71 AS INTEGER ) col1 FROM tab2 AS cor0
----
85

query I rowsort
SELECT + - ( - 90 ) AS col1 FROM tab0 AS cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - - 37 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + - col1 + col1 - + 29 FROM tab2 cor0
----
-2579
-4451
-5881

query II rowsort
SELECT ALL 24 - 3 AS col2, + ( + col2 ) AS col0 FROM tab1
----
21
59
21
68
21
96

query II rowsort
SELECT - col1 - col2 AS col1, col0 FROM tab0
----
-100
97
-128
15
-31
87

query I rowsort
SELECT DISTINCT - col1 - + + 55 FROM tab0
----
-136
-56
-76

query I rowsort
SELECT - 57 - - + 27 AS col2 FROM tab2
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT DISTINCT SUM( DISTINCT + + 14 ), 73 + COUNT( * ) AS col0 FROM tab2
----
14
76

skipif mysql # not compatible
query II rowsort label-7626
SELECT DISTINCT SUM ( DISTINCT + + 14 ), 73 + COUNT ( * ) AS col0 FROM tab2
----
14
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT - MAX( + + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7627
SELECT - MAX ( + + col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT + - 77 AS col1 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT + 53 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
53
53
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 + + col1 * 12 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * + 0 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7632
SELECT 25 AS col0, - COUNT( * ) AS col0 FROM tab2
----
25
-3

skipif mysql # not compatible
query II rowsort label-7632
SELECT 25 AS col0, - COUNT ( * ) AS col0 FROM tab2
----
25
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + SUM( - 74 ) FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-7633
SELECT + SUM ( - 74 ) FROM tab0
----
-222

onlyif mysql # DIV for integer division: 
query II rowsort label-7634
SELECT col2 DIV - ( - col2 ), col1 col1 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-7634
SELECT col2 / - ( - col2 ), col1 col1 FROM tab0
----
1
1
1
21
1
81

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE - 70 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT DISTINCT - MAX( - 10 ) FROM tab1 AS cor0 WHERE ( NULL ) > + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - MAX ( - 10 ) FROM tab1 AS cor0 WHERE ( NULL ) > + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL + MAX( - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + MAX ( - col1 ) AS col2 FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 11 >= + 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 70 * + 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT + SUM( + col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + SUM ( + col2 ) AS col0 FROM tab2 cor0
----
121

query I rowsort
SELECT - ( 43 ) * 28 FROM tab0
----
-1204
-1204
-1204

query I rowsort
SELECT 37 * - 91 + col0 FROM tab0
----
-3270
-3280
-3352

query II rowsort
SELECT - - col0 + + col1, + 20 + - col2 AS col0 FROM tab2 AS cor0
----
141
-20
142
-38
97
-3

query I rowsort
SELECT 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT + 79 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
79

query I rowsort
SELECT DISTINCT - 59 + - 50 + - + 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-184

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT + col1 DIV + col0 - + - col2 + + - ( col1 ) * - - col0 + col0 AS col1 FROM tab0 cor0
----
-1148
-1730
99

skipif mysql # not compatible
query I rowsort label-7647
SELECT + col1 / + col0 - + - col2 + + - ( col1 ) * - - col0 + col0 AS col1 FROM tab0 cor0
----
-1148
-1730
99

query I rowsort
SELECT col1 - + 47 * + + 88 FROM tab2 AS cor0
----
-4059
-4069
-4085

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT + 4 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7649
SELECT + 4 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + - 65 * col1 AS col2 FROM tab2 AS cor0
----
-3315
-4355
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) + + col0 * + + ( col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) + + col0 * + + ( col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + + 74 FROM tab0 AS cor0
----
121
173
84

query I rowsort
SELECT - col1 + - 9 FROM tab1 AS cor0
----
-14
-23
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT + + COUNT( * ) + + MIN( ALL + 87 ) * COUNT( col2 ) FROM tab0 cor0
----
264

skipif mysql # not compatible
query I rowsort label-7654
SELECT + + COUNT ( * ) + + MIN ( ALL + 87 ) * COUNT ( col2 ) FROM tab0 cor0
----
264

query I rowsort
SELECT DISTINCT 54 + - 85 + + col2 + - 64 * - + 28 + - col2 + - 54 + - - 34 FROM tab0
----
1741

onlyif mysql # aggregate syntax: 
query II rowsort label-7656
SELECT COUNT( * ) AS col2, - COUNT( * ) + - 68 FROM tab2
----
3
-71

skipif mysql # not compatible
query II rowsort label-7656
SELECT COUNT ( * ) AS col2, - COUNT ( * ) + - 68 FROM tab2
----
3
-71

query II rowsort
SELECT DISTINCT col1 AS col0, col0 + - 52 FROM tab2
----
51
-6
67
23
77
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - col1 * + 22 * - - col1 AS col2 FROM tab2
----
-130438
-57222
-98758

query I rowsort
SELECT ALL col1 FROM tab0 WHERE + + col2 * - col2 - + col1 < - ( - + 12 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7661
SELECT - - MAX( DISTINCT - col0 ) * CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT - - MAX ( DISTINCT - col0 ) * CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 89 AS col0 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7663
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 96 + col2 AS col1 FROM tab1 AS cor0
----
155
164
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + - 71 + + - MAX( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-7665
SELECT + - 71 + + - MAX ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 81 + - 26 AS col0, col1 col1 FROM tab1 AS cor0
----
55
14
55
47
55
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = ( - col0 )
----

query I rowsort
SELECT - + col0 + + col1 + col1 FROM tab0 AS cor0
----
-45
-95
147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7669
SELECT + 76 + - CAST( NULL AS SIGNED ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7669
SELECT + 76 + - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7670
SELECT ALL - + 29 + - CAST( NULL AS SIGNED ), CAST( - 90 AS SIGNED ) * + - 82 col0, col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to ff8ce4a531b5881b7d0bfbeb9544d3d0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7670
SELECT ALL - + 29 + - CAST ( NULL AS INTEGER ), CAST ( - 90 AS INTEGER ) * + - 82 col0, col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to ff8ce4a531b5881b7d0bfbeb9544d3d0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7671
SELECT - - CAST( NULL AS DECIMAL ) + - SUM( ALL - col2 ) * 85 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT - - CAST ( NULL AS REAL ) + - SUM ( ALL - col2 ) * 85 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ALL + MAX( ( col2 ) ) + - - 59 AS col1 FROM tab0 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + MAX ( ( col2 ) ) + - - 59 AS col1 FROM tab0 AS cor0
----
158

query II rowsort
SELECT ALL - col1 AS col2, col0 AS col2 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT - col0 * + - 81 FROM tab1
----
4131
6885
7371

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT DISTINCT + 9, COUNT( * ) AS col1 FROM tab1
----
9
3

skipif mysql # not compatible
query II rowsort label-7676
SELECT DISTINCT + 9, COUNT ( * ) AS col1 FROM tab1
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT MIN( DISTINCT - 22 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7677
SELECT MIN ( DISTINCT - 22 ) FROM tab2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL - MIN( ALL - + 57 ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - MIN ( ALL - + 57 ) AS col1 FROM tab2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7679
SELECT ALL CAST( + - col0 AS SIGNED ) + - - ( + 48 ) FROM tab2 cor0
----
-16
-27
2

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL CAST ( + - col0 AS INTEGER ) + - - ( + 48 ) FROM tab2 cor0
----
-16
-27
2

query I rowsort
SELECT DISTINCT ( - - col1 ) - + col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT ( + + col0 ) + - 78 FROM tab0
----
-63
19
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * col0 * - + 75 col0 FROM tab1 AS cor0
----
-260100
-433500
-464100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 * - col1, - col0 col0 FROM tab0 AS cor0
----
-210
-87
-3807
-15
-99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT ALL MIN( DISTINCT + 50 ) AS col2, COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
50
3

skipif mysql # not compatible
query II rowsort label-7684
SELECT ALL MIN ( DISTINCT + 50 ) AS col2, COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
50
3

query I rowsort
SELECT 38 * - col0 AS col0 FROM tab2 cor0
----
-1748
-2432
-2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + col1, - 83 * + 75 col2 FROM tab1 AS cor0
----
-1344
-6225
-295
-6225
-3196
-6225

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT ALL - + 95 DIV - col0 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - + 95 / - col0 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT col1 * col2 * ( + col1 ) AS col0 FROM tab2
----
237160
260362
59823

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + + - col0 BETWEEN 65 * col0 AND + 4 * - 18
----

query I rowsort
SELECT ALL ( ( 66 ) ) * + 41 + col0 FROM tab1
----
2757
2791
2797

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT DISTINCT 64 * COUNT( * ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT 64 * COUNT ( * ) FROM tab0
----
192

query I rowsort
SELECT DISTINCT ( + 79 ) FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT DISTINCT - CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - 62 FROM tab0 cor0 WHERE NOT 59 * 6 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7696
SELECT + col0 DIV - col1 col2, 54 AS col2 FROM tab0
----
-4
54
-97
54
0
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7696
SELECT + col0 / - col1 col2, 54 AS col2 FROM tab0
----
-4
54
-97
54
0
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + + col2 AND + ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7697
SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + + col2 AND + ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL + MAX( ALL - - col2 ) * - + 47 FROM tab1 AS cor0
----
-4512

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + MAX ( ALL - - col2 ) * - + 47 FROM tab1 AS cor0
----
-4512

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT DISTINCT - + 72 AS col2, - 26 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-72
78

skipif mysql # not compatible
query II rowsort label-7701
SELECT DISTINCT - + 72 AS col2, - 26 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-72
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT + + MIN( DISTINCT + 37 ) AS col2 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7702
SELECT + + MIN ( DISTINCT + 37 ) AS col2 FROM tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE - 69 * - + col2 >= ( + 46 )
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7704
SELECT col2, 52 + ( - col2 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
59
51
68
51
96
51

skipif mysql # not compatible
query II rowsort label-7704
SELECT col2, 52 + ( - col2 ) / + col2 AS col2 FROM tab1 AS cor0
----
59
51
68
51
96
51

query II rowsort
SELECT - col2, col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7706
SELECT ALL ( - + 43 ) + 70, CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
27
-1
27
-21
27
-81

skipif mysql # not compatible
query II rowsort label-7706
SELECT ALL ( - + 43 ) + 70, CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
27
-1
27
-21
27
-81

query II rowsort
SELECT + col0 + col2, col2 FROM tab1
----
144
59
147
96
159
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + MIN( ALL - col1 ) FROM tab1 WHERE NULL IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-7708
SELECT + MIN ( ALL - col1 ) FROM tab1 WHERE NULL IS NULL
----
-47

query I rowsort
SELECT 96 + - + col0 AS col0 FROM tab1
----
11
45
5

query I rowsort
SELECT - 36 + + col0 FROM tab2
----
10
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 40 col1 FROM tab2 AS cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab0 WHERE NULL > + + col2
----

query I rowsort
SELECT DISTINCT + + 1 * col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - col0 * + col2 - col0 AS col1 FROM tab0 AS cor0
----
-720
-957
-9700

query II rowsort
SELECT ALL - + col2 AS col0, + col0 + - 14 + + - 34 * - - 88 + - 46 + - - 56 * - + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-23
-5536
-40
-6508
-58
-7102

query II rowsort
SELECT DISTINCT - 38 AS col0, + col2 FROM tab1 AS cor0
----
-38
59
-38
68
-38
96

query I rowsort
SELECT + - ( - 51 ) FROM tab1 AS cor0 WHERE NOT ( NULL >= - ( 78 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 38 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 38 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / + + col1 - col1 IS NULL
----

query II rowsort
SELECT + col2 * - - col2, + col2 AS col1 FROM tab0 cor0
----
100
10
2209
47
9801
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7722
SELECT DISTINCT + COUNT( * ) DIV + - 10 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT + COUNT ( * ) / + - 10 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - ( 86 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT ALL + col2 DIV + 40 col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7725
SELECT ALL + col2 / + 40 col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT 38 + + col0 FROM tab2 AS cor0
----
102
113
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT - col2 * - - ( + + CAST( NULL AS SIGNED ) ) + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT - col2 * - - ( + + CAST ( NULL AS INTEGER ) ) + col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT DISTINCT CAST( + - col1 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7728
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT - col2 * + col0 * - + col2 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT - col2 * + col0 * - + col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 13 * + - ( + col1 ) + + col2 - + col0 + - col0 + - col0 FROM tab2 AS cor0
----
-1038
-1153
-778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT + col0 col0 FROM tab0 WHERE 87 * - 7 / - + col0 + + - col2 - - + 63 * + 41 / + - col0 + + col0 + + 34 * col2 / col0 + - 55 NOT IN ( + + col1 * + 35, - col0 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7731
SELECT + col0 col0 FROM tab0 WHERE 87 * - 7 / - + col0 + + - col2 - - + 63 * + 41 / + - col0 + + col0 + + 34 * col2 / col0 + - 55 NOT IN ( + + col1 * + 35, - col0 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT ALL - COUNT( * ) AS col2, 96 AS col2 FROM tab2
----
-3
96

skipif mysql # not compatible
query II rowsort label-7732
SELECT ALL - COUNT ( * ) AS col2, 96 AS col2 FROM tab2
----
-3
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT DISTINCT + col0 - col0 DIV - col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT + col0 - col0 / - col2 FROM tab2
----
48
65
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT ALL 52 * + COUNT( * ) col0, COUNT( * ) FROM tab1
----
156
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7734
SELECT ALL 52 * + COUNT ( * ) col0, COUNT ( * ) FROM tab1
----
156
3

query I rowsort
SELECT DISTINCT + - col2 * 7 * col1 FROM tab0 AS cor0
----
-1470
-26649
-693

query I rowsort
SELECT ALL - 11 * - col1 + - col0 + 69 + - col0 FROM tab1 AS cor0
----
-46
121
404

query I rowsort
SELECT ALL + 23 + - 43 AS col2 FROM tab0 AS cor0
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + col2, + col2, - col2, + 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT col2 - 87 - - ( + CAST( - col0 AS SIGNED ) ) * - + 59 + + 47 AS col0 FROM tab1
----
3065
5034
5397

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT col2 - 87 - - ( + CAST ( - col0 AS INTEGER ) ) * - + 59 + + 47 AS col0 FROM tab1
----
3065
5034
5397

query I rowsort
SELECT - col1 + col1 + + col0 * - 98 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query II rowsort label-7741
SELECT - SUM( ALL 28 ) AS col0, + 77 * + COUNT( * ) FROM tab2
----
-84
231

skipif mysql # not compatible
query II rowsort label-7741
SELECT - SUM ( ALL 28 ) AS col0, + 77 * + COUNT ( * ) FROM tab2
----
-84
231

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( 92 ) AS col2, + col0 - + 24 FROM tab1
----
92
27
92
61
92
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT - 56 * + - MIN( - col1 ) FROM tab1 AS cor0
----
-2632

skipif mysql # not compatible
query I rowsort label-7744
SELECT - 56 * + - MIN ( - col1 ) FROM tab1 AS cor0
----
-2632

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * ( + - col1 ) BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - - 29 * + col0 AS col1 FROM tab1 AS cor0
----
1479
2465
2639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT + CAST( + 51 AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
2601
3417
3927

skipif mysql # not compatible
query I rowsort label-7747
SELECT + CAST ( + 51 AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
2601
3417
3927

query I rowsort
SELECT - - col0 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - ( - + 42 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL - 15 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - 15 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + col2 + + col1 + + ( + 10 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + MIN( DISTINCT - col2 ) col2 FROM tab0 WHERE NOT NULL > - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7751
SELECT + MIN ( DISTINCT - col2 ) col2 FROM tab0 WHERE NOT NULL > - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL COUNT( * ) * - 95 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL COUNT ( * ) * - 95 FROM tab2
----
-285

query I rowsort
SELECT + col0 * - 69 AS col1 FROM tab2
----
-3174
-4416
-5175

query II rowsort
SELECT ALL + col1 * - ( + 53 ), - col1 FROM tab1 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 23 col1, col1 AS col0 FROM tab0
----
23
1
23
21
23
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 31 IS NULL
----

query I rowsort
SELECT ALL - 35 * - 99 + col1 FROM tab1 AS cor0
----
3470
3479
3512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7759
SELECT DISTINCT - COUNT( * ) + + ( - COUNT( * ) ) DIV + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - COUNT ( * ) + + ( - COUNT ( * ) ) / + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 63
----

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE ( NULL ) > - col1 + CAST( - col0 AS SIGNED ) * col1
----

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE ( NULL ) > - col1 + CAST ( - col0 AS INTEGER ) * col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = ( + col2 )
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL >= - 55 - col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL - MIN( col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7765
SELECT ALL - MIN ( col2 ) col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT + ( - COUNT( ALL ( + 56 ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + ( - COUNT ( ALL ( + 56 ) ) ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + 2 FROM tab2
----
102
134
154

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL NOT IN ( 48 )
----

query I rowsort
SELECT ALL col2 + + 44 FROM tab1
----
103
112
140

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NULL ) BETWEEN + 49 AND ( + col2 )
----

query I rowsort
SELECT ALL col1 + 41 FROM tab1
----
46
55
88

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 + - col1 * col2 AND ( ( col2 ) ) * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 * - 42 col2 FROM tab0
----
2436
2436
2436

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 18 col0 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT 71 * col0 AS col1 FROM tab0 WHERE col0 NOT BETWEEN + col1 AND NULL
----
1065

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT DISTINCT + col0 DIV 65 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + col0 / 65 AS col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT MIN( col0 ) * COUNT( * ) AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-7779
SELECT MIN ( col0 ) * COUNT ( * ) AS col0 FROM tab2
----
138

query I rowsort
SELECT ALL 83 AS col2 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col2 * col2 + col1 AS col1 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT + col1 + 98 AS col0 FROM tab2 WHERE NULL IS NULL
----
149
165
175

query I rowsort
SELECT 29 * + 9 FROM tab2
----
261
261
261

query III rowsort
SELECT * FROM tab2 WHERE NOT + 58 NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 7 col0 FROM tab0
----
-14
-74
6

query I rowsort
SELECT - col1 * col2 FROM tab0 WHERE NULL IN ( col0 + 10 )
----

query I rowsort
SELECT - 94 AS col2 FROM tab2 WHERE NULL IS NULL
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT DISTINCT + col2 DIV + 9 col1 FROM tab0
----
1
11
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7788
SELECT DISTINCT + col2 / + 9 col1 FROM tab0
----
1
11
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7789
SELECT DISTINCT COUNT( ALL col1 ) DIV 1 + 97 AS col1 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT COUNT ( ALL col1 ) / 1 + 97 AS col1 FROM tab2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT - COUNT( - col1 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7790
SELECT DISTINCT - COUNT ( - col1 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 36 * - col2 AS col0 FROM tab0 AS cor0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 / + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT - COUNT( * ) * 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7793
SELECT - COUNT ( * ) * 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7794
SELECT DISTINCT + col2 DIV 49 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT + col2 / 49 FROM tab2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT - COUNT( * ) + + COUNT( * ) / + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7795
SELECT - COUNT ( * ) + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
NULL

query I rowsort
SELECT 20 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT 9 / + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 64 IN ( - col2 * + col2 - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT col2 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7799
SELECT col2 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - - col1 * - 95 FROM tab1 AS cor0
----
-1330
-4465
-475

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 88 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7802
SELECT - COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL ( 4 ) AS col2 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT + SUM( - 57 ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT + SUM ( - 57 ) FROM tab0 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT + + SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7805
SELECT + + SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT col0 * + 79 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT ALL + MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT MIN( ALL + 60 ) FROM tab0 AS cor0 WHERE NOT + col2 = ( + 46 )
----
60

skipif mysql # not compatible
query I rowsort label-7808
SELECT MIN ( ALL + 60 ) FROM tab0 AS cor0 WHERE NOT + col2 = ( + 46 )
----
60

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - MAX( ALL col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7810
SELECT - MAX ( ALL col0 ) AS col2 FROM tab0
----
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE + 76 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 23 / 66 + - 9 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT - col1 DIV - col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7813
SELECT - col1 / - col2 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE ( NULL ) >= col0 + 38
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7815
SELECT - + CAST( - COUNT( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7815
SELECT - + CAST ( - COUNT ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + ( + 2 ) FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ( col1 ) AS col0 FROM tab0 cor0 WHERE col2 / 83 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT ( - + MIN( DISTINCT - col0 ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT ( - + MIN ( DISTINCT - col0 ) ) AS col0 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT col1 AS col1 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IN ( col2 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-7819
SELECT col1 AS col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IN ( col2 * + col1 )
----

query I rowsort
SELECT DISTINCT 48 * 55 + + 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT - CAST( NULL AS SIGNED ) + - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT - CAST ( NULL AS INTEGER ) + - - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - COUNT( * ) + + 2 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7823
SELECT - COUNT ( * ) + + 2 AS col2 FROM tab1
----
-1

query I rowsort
SELECT - col2 + + + col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + COUNT( * ) * - 68 + - + 26 AS col0 FROM tab0 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-7825
SELECT + COUNT ( * ) * - 68 + - + 26 AS col0 FROM tab0 AS cor0
----
-230

query I rowsort
SELECT 75 + - + 31 * col1 FROM tab0 AS cor0
----
-2436
-576
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL - + MIN( ALL - CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - + MIN ( ALL - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE 69 <= ( col2 * - 5 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 58 * + 60 col1 FROM tab2 cor0
----
3480
3480
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( - 11 ) NOT IN ( + col0 / - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7831
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 11 ) NOT IN ( + col0 / - col0 )
----
3

query II rowsort
SELECT + col2 * + 56, col0 AS col0 FROM tab2
----
1288
46
2240
64
3248
75

query III rowsort
SELECT ALL * FROM tab2 WHERE - 25 * - col1 * - 92 NOT IN ( - col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT DISTINCT + + SUM( ALL + 71 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
213

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + + SUM ( ALL + 71 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL - col1 AS col0 FROM tab0 WHERE NULL BETWEEN - CAST( col1 AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - col1 AS col0 FROM tab0 WHERE NULL BETWEEN - CAST ( col1 AS INTEGER ) AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN - ( - col0 ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT - AVG ( - col0 ) * SUM( + col1 ) - + CAST( NULL AS SIGNED ) / 60 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT - AVG ( - col0 ) * SUM ( + col1 ) - + CAST ( NULL AS INTEGER ) / 60 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT + col1 AS col1 FROM tab0 WHERE + - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7838
SELECT + col1 AS col1 FROM tab0 WHERE + - CAST ( + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col1 - - ( + + 6 ) FROM tab0
----
27
7
87

query I rowsort
SELECT DISTINCT + 67 - - col1 FROM tab0 AS cor0
----
148
68
88

query I rowsort
SELECT ALL 41 * - col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 <> - ( - 60 ) * 74
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 89 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7844
SELECT ALL - 62 DIV CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - 62 / CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
20

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL >= + 4
----

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT 21 * + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT 21 * + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * + col2 * - - col1 col0 FROM tab1 AS cor0
----
2065
22372
9408

query I rowsort
SELECT ALL col1 * + col0 * - 40 + + + 34 + 40 + 48 FROM tab1 AS cor0
----
-16878
-170958
-28438

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT - col1 DIV + + 97 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7851
SELECT - col1 / + + 97 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT DISTINCT - MIN( ALL col1 ) * + COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - MIN ( ALL col1 ) * + COUNT ( * ) FROM tab2
----
-153

query I rowsort
SELECT col1 * - 44 AS col0 FROM tab2
----
-2244
-2948
-3388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 50 ) col0 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT col0 * - 5 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7856
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-7856
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 75 col0, + 64 AS col0 FROM tab0
----
75
64
75
64
75
64

query I rowsort
SELECT DISTINCT 38 + - 26 AS col2 FROM tab2 WHERE ( ( NULL >= NULL ) )
----

query I rowsort
SELECT - col1 + 45 * + + col0 FROM tab2
----
2019
2803
3308

query III rowsort
SELECT * FROM tab2 WHERE 80 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + + col1 + + 28 AS col2 FROM tab0 cor0
----
109
29
49

query I rowsort
SELECT DISTINCT col1 + + - col0 + - + col1 + - col1 * + 5 * 18 AS col2 FROM tab0 AS cor0
----
-187
-1977
-7305

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 * 27 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 * + - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7866
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) NOT IN ( + 77 )
----

skipif mysql # not compatible
query IIIIII rowsort label-7866
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + 77 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND - col1 + + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT + col0 - + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT + col0 - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + SUM( 46 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( + col1 * col0 - + col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT + SUM ( 46 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( + col1 * col0 - + col1 ) )
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * - col1 NOT IN ( - + col0 + - + col0, 5 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) >= + col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + - - col1 * + 72 AS col1 FROM tab1 AS cor0
----
1104
3452
419

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT 41 + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----
41

skipif mysql # not compatible
query I rowsort label-7874
SELECT 41 + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT - col0 IS NOT NULL )
----
41

query I rowsort
SELECT DISTINCT - - 5 + + col1 AS col1 FROM tab2 AS cor0
----
56
72
82

query I rowsort
SELECT 35 + 86 AS col0 FROM tab2 AS cor0
----
121
121
121

query I rowsort
SELECT ALL - - col2 * col1 - + 20 FROM tab2 AS cor0
----
1153
3060
3866

query I rowsort
SELECT + col0 * - 2 + col1 FROM tab2 AS cor0
----
-41
-51
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT ALL + 52 col2, - 13 * COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
52
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7879
SELECT ALL + 52 col2, - 13 * COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
52
0

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 FROM tab0 WHERE - - 64 * 13 * + + 62 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7881
SELECT ALL + COUNT( * ) DIV - 27 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL + COUNT ( * ) / - 27 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 91 col0 FROM tab2 AS cor0
----
-46
91
-64
91
-75
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7883
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - col2 * - CAST( + 49 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7883
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - col2 * - CAST ( + 49 AS INTEGER ) ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) BETWEEN NULL AND 60 * - 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - 11 AS col2 FROM tab2
----
-561
-737
-847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 58 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 58 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7887
SELECT ALL 90 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL 90 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - 53 + + col1 AS col1, 5 + col0 AS col1 FROM tab1 AS cor0
----
-39
56
-48
90
-6
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT DISTINCT - col0 - col0 AS col0 FROM tab0 WHERE NOT + 72 IN ( + CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - col0 - col0 AS col0 FROM tab0 WHERE NOT + 72 IN ( + CAST ( NULL AS INTEGER ) * + col2 )
----

query I rowsort
SELECT ALL col0 + + - col0 + col0 + 80 FROM tab1
----
131
165
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL 66 * - COUNT( * ) col0 FROM tab2 WHERE NOT col1 / - col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7891
SELECT ALL 66 * - COUNT ( * ) col0 FROM tab2 WHERE NOT col1 / - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT CAST( - - col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7892
SELECT CAST ( - - col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT ( CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7893
SELECT ( CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT - - col0 * + 65 + + col0 FROM tab2 WHERE + CAST( col0 AS SIGNED ) / - - col1 + - - ( - 95 ) - + 33 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7894
SELECT - - col0 * + 65 + + col0 FROM tab2 WHERE + CAST ( col0 AS INTEGER ) / - - col1 + - - ( - 95 ) - + 33 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT COUNT( ALL - + col0 ) * + - 33 col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7895
SELECT COUNT ( ALL - + col0 ) * + - 33 col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL + + ( + MAX( ALL - col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + + ( + MAX ( ALL - col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT col0 + + col0 + + col0 * - col1 * - + col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT col0 + + col0 + + col0 * - col1 * - + col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 AS col0, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + col0 * + col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - MIN( + - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7900
SELECT - MIN ( + - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT + COUNT( * ), COUNT( * ) * + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE - ( + col1 ) IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7902
SELECT + COUNT ( * ), COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE - ( + col1 ) IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL COUNT( * ) + 37 AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL COUNT ( * ) + 37 AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab0 WHERE NOT + - 96 + + col0 = - - col1
----
62

query I rowsort
SELECT - ( 36 ) * - + col0 * 17 AS col2 FROM tab2
----
28152
39168
45900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col0 col2, col1 + + 44 AS col1 FROM tab0
----
-1215
125
-1827
65
-97
45

query II rowsort
SELECT + col0 * - col0 AS col2, - col0 FROM tab0
----
-225
-15
-7569
-87
-9409
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - 63
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - - 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL - CAST( + ( CAST( + col0 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - CAST ( + ( CAST ( + col0 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7911
SELECT ALL - COUNT( * ) AS col0, 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
89

skipif mysql # not compatible
query II rowsort label-7911
SELECT ALL - COUNT ( * ) AS col0, 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 42 col2 FROM tab2
----
46
42
64
42
75
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT + 31 * + COUNT( * ) AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7913
SELECT + 31 * + COUNT ( * ) AS col1 FROM tab0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT col1 DIV - ( col0 ) AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT col1 / - ( col0 ) AS col0 FROM tab2
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + 66 > + 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7917
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + CAST( NULL AS SIGNED ) - - col0 )
----

skipif mysql # not compatible
query III rowsort label-7917
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + CAST ( NULL AS INTEGER ) - - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * 95 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + 28 ) + + 0 <= 41
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7920
SELECT ALL + + 32 * 29 + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 24 * - - col1 * - col1 >= - CAST( NULL AS SIGNED ) * + 97
----
928

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + + 32 * 29 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 24 * - - col1 * - col1 >= - CAST ( NULL AS INTEGER ) * + 97
----
928

query I rowsort
SELECT ALL - 86 + + 48 FROM tab0 cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - col0 * - ( + + col0 ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + col2 * col0 * - 81 AS col1 FROM tab1
----
-396576
-406215
-501228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7924
SELECT 89 / + CAST( NULL AS SIGNED ) * - ( - COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT 89 / + CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 37 * - - col1 FROM tab1
----
1739
185
518

query I rowsort
SELECT 30 + + - 72 FROM tab1
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL + MAX( DISTINCT + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL + MAX ( DISTINCT + 76 ) FROM tab0
----
76

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 59 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + 61 AS col2 FROM tab2
----
112
128
138

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * + 51 IS NOT NULL
----

query I rowsort
SELECT ( + - col2 ) + col1 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7932
SELECT COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + 51 - - col1 FROM tab1
----
56
65
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT DISTINCT + col1 - col1 DIV - col2 + col0 * col2 DIV + 39 + - 28 AS col2 FROM tab0
----
17
219
72

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT + col1 - col1 / - col2 + col0 * col2 / + 39 + - 28 AS col2 FROM tab0
----
17
219
72

query I rowsort
SELECT ALL - 24 - - 45 AS col1 FROM tab0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL - COUNT( 6 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - COUNT ( 6 ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT + + 7 * + col2 - + - col0 AS col0 FROM tab0 AS cor0
----
157
344
790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * CAST( + + ( col1 ) AS SIGNED ) + 11 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * CAST ( + + ( col1 ) AS INTEGER ) + 11 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT MIN( DISTINCT + + col0 ) FROM tab2 AS cor0 WHERE col0 <> ( - ( - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0 WHERE col0 <> ( - ( - col0 ) )
----
NULL

query I rowsort
SELECT col0 * + 75 AS col2 FROM tab0 AS cor0
----
1125
6525
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT COUNT( + - 23 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT COUNT ( + - 23 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----
0

query I rowsort
SELECT + ( + col1 ) FROM tab2 AS cor0 WHERE NOT - 17 / 96 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT DISTINCT 64, MAX( - - 65 ) AS col1 FROM tab1
----
64
65

skipif mysql # not compatible
query II rowsort label-7943
SELECT DISTINCT 64, MAX ( - - 65 ) AS col1 FROM tab1
----
64
65

query I rowsort
SELECT ALL + 69 * ( col0 ) FROM tab1
----
3519
5865
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16, 98 col1 FROM tab0
----
16
98
16
98
16
98

query I rowsort
SELECT 9 * col1 AS col0 FROM tab1 AS cor0
----
126
423
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7947
SELECT DISTINCT CAST( NULL AS SIGNED ) / SUM( - 30 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT CAST ( NULL AS INTEGER ) / SUM ( - 30 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT - 3 + - 58 - + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-52

skipif mysql # not compatible
query I rowsort label-7948
SELECT - 3 + - 58 - + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT 67 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7949
SELECT 67 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT MAX( ALL + - col2 ) + - 26 AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT MAX ( ALL + - col2 ) + - 26 AS col2 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT + + 31 AS col0 FROM tab0 AS cor0
----
31

query I rowsort
SELECT DISTINCT - col1 + - + 14 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-114
-245
-3902

query I rowsort
SELECT - col1 * - col1 + - + 28 + - 68 AS col1 FROM tab1 AS cor0
----
-71
100
2113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + + - col2, ( 24 ) col2 FROM tab1 AS cor0
----
-118
24
-136
24
-192
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT DISTINCT - CAST( NULL AS SIGNED ) + SUM( DISTINCT - col1 ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7955
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - col1 ) col1 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col1 col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT - COUNT( * ) * + COUNT( - col0 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7957
SELECT - COUNT ( * ) * + COUNT ( - col0 ) AS col0 FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col1 col0 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab2 WHERE - 48 NOT IN ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT DISTINCT + COUNT( + 17 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + COUNT ( + 17 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7961
SELECT + ( COUNT( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - CAST( 26 AS SIGNED ) * - 87 * - - 18 = + - 10 )
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT + ( COUNT ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - CAST ( 26 AS INTEGER ) * - 87 * - - 18 = + - 10 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 25 * - + col0 col0, + col1 - + + col1 FROM tab1 AS cor0
----
1275
0
2125
0
2275
0

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NOT ( NOT col0 * + - col2 IS NOT NULL )
----
76
76
76

query I rowsort
SELECT ALL + - ( - ( - 34 ) ) AS col1 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL - - 13 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7966
SELECT * FROM tab1 WHERE NOT - col1 IN ( ( - 69 ) / + - col0 * - + col2 - CAST( NULL AS DECIMAL ), col1 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7966
SELECT * FROM tab1 WHERE NOT - col1 IN ( ( - 69 ) / + - col0 * - + col2 - CAST ( NULL AS REAL ), col1 + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT MIN( + + ( + + 99 ) ) * + 60 FROM tab1
----
5940

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT MIN ( + + ( + + 99 ) ) * + 60 FROM tab1
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT COUNT( * ) * + 99 AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-7970
SELECT COUNT ( * ) * + 99 AS col1 FROM tab2
----
297

query I rowsort
SELECT DISTINCT + - 51 + - + col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT - ( - 97 ) FROM tab1
----
97
97
97

query I rowsort
SELECT ALL + ( - - 87 ) FROM tab1
----
87
87
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL + - COUNT( * ) + + + CAST( 70 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + - COUNT ( * ) + + + CAST ( 70 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
67

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - - 32 + + - ( - col2 ) * 55 AS col2 FROM tab2 cor0
----
1297
2232
3222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( - col1 ) col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT MAX( DISTINCT - - 68 ) AS col0 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT MAX ( DISTINCT - - 68 ) AS col0 FROM tab1
----
68

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( 31 * - + col2 / + - col1 IS NULL )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT DISTINCT SUM( DISTINCT 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT SUM ( DISTINCT 26 ) FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7982
SELECT DISTINCT - col0 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-7982
SELECT DISTINCT - col0 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT DISTINCT + 70 + col0 + col2 - - 32 DIV col1 + col0 + + + col0 * + + 19 * - col1 FROM tab2 AS cor0
----
-44389
-93394
-95197

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + 70 + col0 + col2 - - 32 / col1 + col0 + + + col0 * + + 19 * - col1 FROM tab2 AS cor0
----
-44389
-93394
-95197

query I rowsort
SELECT DISTINCT - + col2 + col0 * - + col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - 2 * 17 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 11 IS NULL
----

query I rowsort
SELECT + col1 * - col0 + + col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT - col2 + + 50 FROM tab1
----
-18
-46
-9

query I rowsort
SELECT col1 + + + col1 * - - 33 FROM tab1
----
1598
170
476

query I rowsort
SELECT ALL + + 86 FROM tab1 WHERE ( col2 ) BETWEEN ( 54 * + 42 ) AND 40 * + 46 AND ( ( NOT ( NULL IS NOT NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col2 <= NULL AND NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7992
SELECT ALL - col2 - + - col2 * + col2 AS col1, 99 * - - col0 / - + col0 * col2 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
1560
NULL
3306
NULL
506
NULL

skipif mysql # not compatible
query II rowsort label-7992
SELECT ALL - col2 - + - col2 * + col2 AS col1, 99 * - - col0 / - + col0 * col2 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
1560
NULL
3306
NULL
506
NULL

query I rowsort
SELECT 29 * - + col1 * + 22 - - col2 FROM tab2
----
-32515
-42688
-49086

query I rowsort
SELECT ALL - col0 + + ( 25 ) + + + 54 * + col1 FROM tab2
----
2733
3568
4119

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL ( ( + 68 ) ) * COUNT( * ) + - 6 AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL ( ( + 68 ) ) * COUNT ( * ) + - 6 AS col1 FROM tab1
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 84 col0, col0 FROM tab2 cor0
----
84
46
84
64
84
75

query I rowsort
SELECT ALL - + col1 * 23 AS col2 FROM tab0 AS cor0
----
-1863
-23
-483

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab0 cor0 WHERE NOT col2 = + + col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT - + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7999
SELECT - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 56 * 26 AS col2 FROM tab0 AS cor0
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL - + 43 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - + 43 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-129

query I rowsort
SELECT - - col1 * - 12 FROM tab2 AS cor0
----
-612
-804
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - COUNT( * ) * SUM( - + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-8003
SELECT - COUNT ( * ) * SUM ( - + col0 ) FROM tab1 AS cor0
----
681

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8004
SELECT ALL * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8004
SELECT ALL * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT - COUNT( ( - col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8005
SELECT - COUNT ( ( - col0 ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + COUNT( * ) * + - 44 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-8006
SELECT + COUNT ( * ) * + - 44 FROM tab1
----
-132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8007
SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT COUNT( - col0 ) FROM tab2 WHERE NOT ( 53 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8008
SELECT COUNT ( - col0 ) FROM tab2 WHERE NOT ( 53 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT COUNT( DISTINCT + 32 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8009
SELECT COUNT ( DISTINCT + 32 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT MIN( + 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8010
SELECT MIN ( + 24 ) FROM tab0 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 7 + + col1 * ( + col0 ) <> NULL
----

query I rowsort
SELECT - col1 + - + 8 FROM tab1 AS cor0
----
-13
-22
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + + 97 + ( + MAX( - 71 ) ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8014
SELECT + + 97 + ( + MAX ( - 71 ) ) AS col1 FROM tab2 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT - col1 + - col1 * - + col0 - - + col2 + - col1 + - + 46 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT - col1 + - col1 * - + col0 - - + col2 + - col1 + - + 46 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT ALL + col2 DIV + ( - col2 ) + - col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + col2 / + ( - col2 ) + - col1 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT col2 + + col1 * - 2 AS col1 FROM tab0 AS cor0
----
-115
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL MAX( ALL - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL - + 8 + COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - + 8 + COUNT ( * ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT DISTINCT 36 * 68 + + MIN( - - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0
----
2367

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT 36 * 68 + + MIN ( - - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0
----
2367

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8025
SELECT COUNT( * ) AS col1, + 90 FROM tab0
----
3
90

skipif mysql # not compatible
query II rowsort label-8025
SELECT COUNT ( * ) AS col1, + 90 FROM tab0
----
3
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT - CAST( NULL AS SIGNED ) * + ( - - col2 ) - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT - CAST ( NULL AS INTEGER ) * + ( - - col2 ) - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 71 ) - - col2 AS col1 FROM tab2
----
-13
-31
-48

query I rowsort
SELECT ALL col1 * + col1 * + - col0 * col1 FROM tab1
----
-10625
-139944
-9447893

query I rowsort
SELECT 91 - - col0 * col2 FROM tab1
----
4987
5106
6279

query I rowsort
SELECT DISTINCT + col2 * - - 59 AS col1 FROM tab2
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT 19 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8031
SELECT 19 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL col0 - + col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
37
44
80

query I rowsort
SELECT + - ( - + 94 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL - 71 FROM tab0 WHERE NULL NOT BETWEEN - col1 / + col0 AND col2
----

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8036
SELECT 49 DIV + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-8036
SELECT 49 / + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT DISTINCT - ( - 48 ) AS col0 FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8038
SELECT DISTINCT * FROM tab2 WHERE + col2 * col2 NOT BETWEEN + col1 AND col2 + - 73 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8038
SELECT DISTINCT * FROM tab2 WHERE + col2 * col2 NOT BETWEEN + col1 AND col2 + - 73 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL COUNT( * ) * - 28 AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL COUNT ( * ) * - 28 AS col0 FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT ALL + col1 DIV 46 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL + col1 / 46 FROM tab2
----
1
1
1

query II rowsort
SELECT DISTINCT + col0 AS col2, 31 AS col1 FROM tab2
----
46
31
64
31
75
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT CAST( 92 AS SIGNED ) FROM tab0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-8042
SELECT CAST ( 92 AS INTEGER ) FROM tab0
----
92
92
92

query I rowsort
SELECT DISTINCT + col2 * - col0 * + col2 FROM tab0 cor0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8044
SELECT * FROM tab0 cor0 WHERE ( NOT - CAST( col0 AS SIGNED ) NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8044
SELECT * FROM tab0 cor0 WHERE ( NOT - CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - 16 + + col2 AS col1 FROM tab0 AS cor0
----
-6
31
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT - - MIN( ALL + 46 ) AS col0 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8046
SELECT - - MIN ( ALL + 46 ) AS col0 FROM tab1 AS cor0
----
46

query I rowsort
SELECT - 79 * + col1 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT + 67 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( col2 ) - + col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query II rowsort
SELECT 56 * 91 - - - col2 * - + col1 AS col2, col0 FROM tab2 AS cor0
----
6269
46
8176
64
8982
75

query I rowsort
SELECT ALL col0 - - col1 * + + col1 * - + col1 AS col0 FROM tab1 AS cor0
----
-103732
-2693
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8052
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + COUNT( * ) DIV + COUNT( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8052
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) / + COUNT ( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 51 - col0 FROM tab0
----
-36
-46
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT - CAST( - - 32 AS SIGNED ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - CAST ( - - 32 AS INTEGER ) FROM tab1
----
-32

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - 99 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + col2 col2 FROM tab0
----
-19
-56
33

query I rowsort
SELECT DISTINCT col0 - + - 4 FROM tab1
----
55
89
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ( SUM( 80 ) ) * + 66 AS col2 FROM tab2 AS cor0
----
15840

skipif mysql # not compatible
query I rowsort label-8058
SELECT ( SUM ( 80 ) ) * + 66 AS col2 FROM tab2 AS cor0
----
15840

query I rowsort
SELECT + 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8060
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8062
SELECT ALL MIN( ALL - + col0 ) DIV 92 col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8062
SELECT ALL MIN ( ALL - + col0 ) / 92 col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + ( - col1 ) * + - col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 75 col2 FROM tab0 AS cor0
----
-6
54
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT ALL col1 DIV + - 47 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL col1 / + - 47 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + ( + - col2 ) * + 43 + col0 FROM tab1
----
-2452
-2833
-4077

query I rowsort
SELECT DISTINCT + col2 + + 33 * + col1 FROM tab2
----
1706
2269
2581

query I rowsort
SELECT - ( + + 72 ) * - 32 AS col1 FROM tab0
----
2304
2304
2304

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT + col2 DIV 55 + col2 col2 FROM tab0 WHERE - col1 + - 74 + 54 <> 69
----
10
100
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8070
SELECT + col2 / 55 + col2 col2 FROM tab0 WHERE - col1 + - 74 + 54 <> 69
----
10
100
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT ALL + 71, ( MAX( - col1 ) ) AS col2 FROM tab0
----
71
-1

skipif mysql # not compatible
query II rowsort label-8071
SELECT ALL + 71, ( MAX ( - col1 ) ) AS col2 FROM tab0
----
71
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) + 67 col1 FROM tab2 AS cor0
----
107
125
90

query I rowsort
SELECT DISTINCT - + col0 * + col2 FROM tab1 AS cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 39 + - 29 FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8076
SELECT + + CAST( NULL AS DECIMAL ) 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-8076
SELECT + + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT - + col2 * + - col0 * + - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT - + col2 * + - col0 * + - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 84 - col0 FROM tab2 cor0
----
20
38
9

query I rowsort
SELECT DISTINCT 48 + + + col0 * + col2 * col1 AS col2 FROM tab1
----
25123
290884
68592

query I rowsort
SELECT DISTINCT col0 - + - 27 FROM tab0
----
114
124
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8081
SELECT * FROM tab0 WHERE NOT + 43 * + 73 + + 53 + - col0 - 8 * - CAST( - col0 AS SIGNED ) BETWEEN NULL AND 91 * + - 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8081
SELECT * FROM tab0 WHERE NOT + 43 * + 73 + + 53 + - col0 - 8 * - CAST ( - col0 AS INTEGER ) BETWEEN NULL AND 91 * + - 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + ( col2 )
----

query I rowsort
SELECT - 29 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 >= - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL 32 + COUNT( * ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL 32 + COUNT ( * ) FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT + SUM( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + SUM ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT - MAX( + + 83 ) FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - MAX ( + + 83 ) FROM tab2 cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT DISTINCT 85 * 38 DIV col1 AS col2 FROM tab1 AS cor0
----
230
646
68

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT 85 * 38 / col1 AS col2 FROM tab1 AS cor0
----
230
646
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT + CAST( + col2 AS SIGNED ) * - col0 AS col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8089
SELECT + CAST ( + col2 AS INTEGER ) * - col0 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT DISTINCT 67 DIV + - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 67 / + - col0 FROM tab2
----
-1
0

query I rowsort
SELECT col0 + - - col1 - - - col0 AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT col0 + CAST( NULL AS SIGNED ) * - + col2 + - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT col0 + CAST ( NULL AS INTEGER ) * - + col2 + - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT 82 + + + ( - COUNT( * ) ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-8093
SELECT 82 + + + ( - COUNT ( * ) ) FROM tab2
----
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + 15 AS col2 FROM tab2 AS cor0
----
66
82
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT DISTINCT + 7, COUNT( * ) AS col1 FROM tab2 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-8097
SELECT DISTINCT + 7, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
7
3

query I rowsort
SELECT col2 + - - col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + 13 / + col1
----

query I rowsort
SELECT ALL + - 75 + 16 + col0 * - 61 - 46 FROM tab1 cor0
----
-3216
-5290
-5656

query I rowsort
SELECT ALL + col2 + - + col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + - col1 - - col2 - + col2 * + - col1 AS col0 FROM tab1 AS cor0
----
1426
3217
349

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL BETWEEN col0 / - - 86 AND NULL )
----

query I rowsort
SELECT ALL - + col0 * - 77 * + + col2 + 77 - + + 87 FROM tab2 AS cor0
----
197110
334940
81456

query I rowsort
SELECT + col0 + - + 19 * + col0 AS col1 FROM tab1 cor0
----
-1530
-1638
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL + col1 / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + col1 / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8108
SELECT ALL COUNT( * ) AS col2, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8108
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE NOT + - 69 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT - MAX( DISTINCT - 82 ) FROM tab0 cor0 WHERE NOT - col0 <> + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT - MAX ( DISTINCT - 82 ) FROM tab0 cor0 WHERE NOT - col0 <> + 8
----
NULL

query I rowsort
SELECT + - 11 AS col0 FROM tab2 cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT + - col2 + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT + - col2 + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 68 + - col2 AS col0, - col1 FROM tab1 AS cor0
----
-28
-14
0
-47
9
-5

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 + 30 FROM tab0 AS cor0
----
-1232
-166
-1807

query I rowsort
SELECT DISTINCT + 75 + - 37 FROM tab0 AS cor0
----
38

query I rowsort
SELECT 93 * + col1 FROM tab0
----
1953
7533
93

query I rowsort
SELECT DISTINCT 3 * + 53 - - - col0 * - - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 93, + col2 FROM tab0
----
-93
10
-93
47
-93
99

query I rowsort
SELECT + 7 + + col0 FROM tab0 WHERE NULL IS NULL
----
104
22
94

query I rowsort
SELECT ALL + col1 + - col1 + col1 AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT 25 - + col0 * - col0 FROM tab1 AS cor0
----
2626
7250
8306

query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE ( 75 - + + col0 - - - col0 NOT IN ( - + col0, - col0 ) )
----
117
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8124
SELECT DISTINCT CAST( - 33 AS SIGNED ) AS col0, COUNT( * ) AS col2 FROM tab1
----
-33
3

skipif mysql # not compatible
query II rowsort label-8124
SELECT DISTINCT CAST ( - 33 AS INTEGER ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
-33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + MAX( 44 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8125
SELECT DISTINCT + MAX ( 44 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
44

query I rowsort
SELECT + 70 + + col2 FROM tab1
----
129
138
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8127
SELECT DISTINCT CAST( - MIN( - - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT CAST ( - MIN ( - - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + col2 * - 8 FROM tab0 AS cor0
----
-376
-792
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL SUM( ( + 4 ) ) * + - 16 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL SUM ( ( + 4 ) ) * + - 16 FROM tab1 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8130
SELECT * FROM tab2 AS cor0 WHERE 49 < CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-8130
SELECT * FROM tab2 AS cor0 WHERE 49 < CAST ( NULL AS INTEGER ) + + col1
----

query II rowsort
SELECT - col1 * + 35 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-1645
91
-175
85
-490
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 27 ) BETWEEN NULL AND col1
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT + MAX( 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT + MAX ( 8 ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT MIN( DISTINCT + 37 ) AS col2 FROM tab2 WHERE NOT ( - col2 IS NULL )
----
37

skipif mysql # not compatible
query I rowsort label-8135
SELECT MIN ( DISTINCT + 37 ) AS col2 FROM tab2 WHERE NOT ( - col2 IS NULL )
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-8136
SELECT ALL - - col0 + + + col1 DIV - col1 AS col1, col0 FROM tab2 WHERE NULL IS NULL
----
45
46
63
64
74
75

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL - - col0 + + + col1 / - col1 AS col1, col0 FROM tab2 WHERE NULL IS NULL
----
45
46
63
64
74
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 IN ( - col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT MAX( ALL - 53 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-53

skipif mysql # not compatible
query I rowsort label-8138
SELECT MAX ( ALL - 53 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( + col2, + col1 + - 65, - 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT - 42 * - + col0 FROM tab1
----
2142
3570
3822

query II rowsort
SELECT ALL + col2 AS col1, 34 * + col1 * - - col0 + + 36 FROM tab1
----
59
14486
68
145454
96
24312

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT ( - - col2 ) DIV col1 - - - col2 - - 42 * - col0 AS col1 FROM tab1
----
-2232
-3618
-3889

skipif mysql # not compatible
query I rowsort label-8143
SELECT ( - - col2 ) / col1 - - - col2 - - 42 * - col0 AS col1 FROM tab1
----
-2232
-3618
-3889

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + 13 BETWEEN NULL AND - 4 * col2 * + col1
----

query I rowsort
SELECT ALL - + col0 + - - 8 * + - col2 * - - ( ( col1 ) ) FROM tab2 cor0
----
-24704
-31163
-9430

query I rowsort
SELECT 72 + + + col2 * + 90 FROM tab0
----
4302
8982
972

query I rowsort
SELECT DISTINCT col1 * col2 + + - col1 AS col2 FROM tab2
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + col1 + + + 61 IS NOT NULL
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE col2 + + + col0 NOT BETWEEN NULL AND 40
----
59
68
96

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - 92 + COUNT( ALL col0 ) AS col2 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 92 + COUNT ( ALL col0 ) AS col2 FROM tab2
----
-89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL - - 14 * col0 AS col1 FROM tab2 cor0
----
1050
644
896

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT - 43 - - + COUNT( * ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - 43 - - + COUNT ( * ) FROM tab0
----
-40

query I rowsort
SELECT DISTINCT col1 - - col0 + - + col0 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 51 * + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 97 ) * - col0 * col1 * col1 col0 FROM tab1 AS cor0
----
19498843
206125
969612

query I rowsort
SELECT + col2 * + 2 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 62 FROM tab2 AS cor0 WHERE NOT ( - + 22 ) NOT IN ( + col0 * + col1, col1, col0 )
----

query I rowsort
SELECT DISTINCT 68 * 68 FROM tab2 cor0
----
4624

query I rowsort
SELECT col0 * - col2 * - col1 * col1 - col0 AS col1 FROM tab1 AS cor0
----
125290
13669201
959565

query I rowsort
SELECT + 55 * - - col2 FROM tab2 AS cor0
----
1265
2200
3190

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - + - col0 IS NULL
----

query I rowsort
SELECT ALL - col0 * - 70 AS col1 FROM tab1 cor0
----
3570
5950
6370

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8168
SELECT ALL COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8168
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT + col2, + col1 * + col1 FROM tab2 AS cor0
----
23
2601
40
5929
58
4489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 83 * + 55 col1 FROM tab0 AS cor0
----
369765
4565
95865

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT + COUNT( 54 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8171
SELECT + COUNT ( 54 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + col1 + + col2 + + col1 FROM tab1 AS cor0
----
59
68
96

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 81 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT DISTINCT 84 DIV - col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT 84 / - col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT DISTINCT col0 * + col1 * 53 FROM tab1
----
22525
226681
37842

query I rowsort
SELECT - - 52 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT 72 * ( + - 60 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4320
-4320
-4320

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * + - col1 * - 91 col0 FROM tab2 cor0
----
213537
448525
457342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT - + col2 + - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT - + col2 + - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + 81 FROM tab1
----
128
86
95

query I rowsort
SELECT + 76 * + + col0 AS col1 FROM tab1
----
3876
6460
6916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8183
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN NULL AND col0
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL = NULL
----

query II rowsort
SELECT DISTINCT col1 * - col2 * col1, col0 FROM tab1
----
-1475
85
-150212
91
-18816
51

query I rowsort
SELECT 74 - - col1 FROM tab1
----
121
79
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8188
SELECT CAST( - col2 AS SIGNED ) - 81 DIV - col2 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-8188
SELECT CAST ( - col2 AS INTEGER ) - 81 / - col2 FROM tab1
----
-58
-67
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + 88 * + col0 - col2 * + - 95 FROM tab2 AS cor0
----
12110
6233
9432

query II rowsort
SELECT ALL 97 AS col2, + 5 AS col1 FROM tab0 AS cor0
----
97
5
97
5
97
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT - 81 + col1 + - - col2 + CAST( NULL AS SIGNED ) / - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT - 81 + col1 + - - col2 + CAST ( NULL AS INTEGER ) / - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 50 * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-2454
-4191
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT + COUNT( * ) * ( 81 ) AS col1 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-8194
SELECT + COUNT ( * ) * ( 81 ) AS col1 FROM tab0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col2 FROM tab2
----
38
38
38

query I rowsort
SELECT - ( AVG ( - col1 ) ) FROM tab1 WHERE NOT 58 NOT BETWEEN NULL AND + 61 * + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + MAX( + col0 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( + 96 + 42 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT + MAX ( + col0 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( + 96 + 42 ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + 68 - + 36 * COUNT( * ) col0 FROM tab1
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8198
SELECT + 68 - + 36 * COUNT ( * ) col0 FROM tab1
----
-40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL - COUNT( * ) - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - COUNT ( * ) - + COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT + ( - 30 ) FROM tab1
----
-30
-30
-30

query I rowsort
SELECT col0 * - ( + col2 ) + - col1 * 45 FROM tab0
----
-1815
-4350
-9648

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT DISTINCT - SUM( ALL - 64 ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT - SUM ( ALL - 64 ) FROM tab2
----
192

query I rowsort
SELECT DISTINCT col0 * - 10 + + 11 AS col1 FROM tab1
----
-499
-839
-899

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT + COUNT( - col0 ) FROM tab1 WHERE NULL < ( 73 )
----
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + COUNT ( - col0 ) FROM tab1 WHERE NULL < ( 73 )
----
0

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE - col0 - + col2 * col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col2 FROM tab0 WHERE NOT + col1 IS NULL
----
99
99
99

query III rowsort
SELECT ALL * FROM tab0 WHERE 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN + col2 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 12 * + col0 NOT BETWEEN + col1 * + col1 + 45 * - col0 AND 98
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE col1 - - 64 NOT BETWEEN ( col2 ) AND - col0 * 33
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= ( - 92 ) * - ( col1 - col0 )
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE 92 > - col2
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( 55 * col2 )
----

query I rowsort
SELECT 93 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8216
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8216
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT COUNT( * ) + 68 AS col0 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8217
SELECT COUNT ( * ) + 68 AS col0 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL + col2 * 43 AS col2 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT - 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE 73 IS NOT NULL
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT ALL + 71 * - col1 + + col2 DIV 64 FROM tab1 AS cor0
----
-3336
-355
-993

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + 71 * - col1 + + col2 / 64 FROM tab1 AS cor0
----
-3336
-355
-993

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT - + col0 * - col0 + 22 DIV - 82 AS col2 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-8223
SELECT - + col0 * - col0 + 22 / - 82 AS col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT + 26 - - ( 92 + COUNT( * ) DIV - 3 ) FROM tab2 cor0 WHERE 73 >= ( col2 * col0 + + col1 )
----
118

skipif mysql # not compatible
query I rowsort label-8224
SELECT + 26 - - ( 92 + COUNT ( * ) / - 3 ) FROM tab2 cor0 WHERE 73 >= ( col2 * col0 + + col1 )
----
118

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= - 27
----
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT + MAX( + CAST( NULL AS SIGNED ) ) + + 60 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) + + 60 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + - col0 col2 FROM tab2 AS cor0
----
-17
-6
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - 89 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8228
SELECT - 89 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab2 WHERE NULL = - 89 * 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL + 74 * + 58 + 96 DIV 92 AS col0 FROM tab2
----
4293
4293
4293

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL + 74 * + 58 + 96 / 92 AS col0 FROM tab2
----
4293
4293
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT - MAX( col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT - MAX ( col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT + col0 + - + col1 + - col0 AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( 91 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT - CAST( - col2 AS SIGNED ) + - col1 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-8235
SELECT - CAST ( - col2 AS INTEGER ) + - col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + 86 AS col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT col0 + - CAST( NULL AS SIGNED ) + 52 / - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT col0 + - CAST ( NULL AS INTEGER ) + 52 / - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN ( col2 ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN ( col2 ) AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL - COUNT( + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - COUNT ( + - col2 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) * col1 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT MIN( 69 ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT MIN ( 69 ) AS col1 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8244
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 60 / - 34 + + 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) * 70 AS col0 FROM tab2 cor0
----
3
210

skipif mysql # not compatible
query II rowsort label-8246
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) * 70 AS col0 FROM tab2 cor0
----
3
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8247
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL + SUM( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8248
SELECT ALL + SUM ( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col0 + - ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT DISTINCT + + SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT + + SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT - + CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8251
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + col0 <= - 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT ALL - CAST( - MIN( col1 ) AS SIGNED ) + SUM( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * - 29 * 96 + col2 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - CAST ( - MIN ( col1 ) AS INTEGER ) + SUM ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * - 29 * 96 + col2 ) <> NULL
----
NULL

query II rowsort
SELECT ALL 3, + col0 AS col0 FROM tab0 AS cor0
----
3
15
3
87
3
97

query I rowsort
SELECT ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT MAX( + 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8256
SELECT MAX ( + 56 ) FROM tab0 AS cor0
----
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 10 / - - col0 = ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8258
SELECT - MAX( ALL + + CAST( NULL AS DECIMAL ) ) * + ( 73 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT - MAX ( ALL + + CAST ( NULL AS REAL ) ) * + ( 73 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - 67 ) FROM tab1 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE NOT NULL > + 3
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8260
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 WHERE NOT NULL > + 3
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 74 BETWEEN - - col0 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 24 FROM tab1 WHERE NOT - col0 * + 3 / + col0 IS NULL
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8264
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 NOT IN ( CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-8264
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 NOT IN ( CAST ( NULL AS INTEGER ) + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( col1 ) col2, 69 FROM tab0
----
1
69
21
69
81
69

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 37 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 45 * - col1 + col2 IN ( + 39 )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE 62 IN ( + 33 * + + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT DISTINCT - COUNT( * ) + + + 13 DIV - + SUM( - 62 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT - COUNT ( * ) + + + 13 / - + SUM ( - 62 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 * - + col1 AS col2 FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 60 ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8272
SELECT + 46, - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
46
-3

skipif mysql # not compatible
query II rowsort label-8272
SELECT + 46, - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
46
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 col1 FROM tab1 cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT + - col1 DIV col1 * - 80 FROM tab0 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-8274
SELECT + - col1 / col1 * - 80 FROM tab0 AS cor0
----
80
80
80

query III rowsort
SELECT - 87 AS col1, + 83 + + col2, + col2 FROM tab2 AS cor0
----
9 values hashing to 31c047baf36792d51725e7b132204c7b

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * 55 * col2 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col0, 14 FROM tab1 AS cor0
----
51
14
85
14
91
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8278
SELECT - 6 / + CAST( MAX( col2 ) AS SIGNED ) + 5 FROM tab2 AS cor0 WHERE NULL <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT - 6 / + CAST ( MAX ( col2 ) AS INTEGER ) + 5 FROM tab2 AS cor0 WHERE NULL <> + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 / + + ( - col0 ) * 86 + 42 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 / + + ( - col0 ) * 86 + 42 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + 48 FROM tab0
----
135
145
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + col2 * + - col0 col0 FROM tab0
----
-689
-854
-9587

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + col1 NOT BETWEEN - col0 AND - + col0 * 32 + 36
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col0 = NULL )
----

query I rowsort
SELECT DISTINCT col0 - - 62 AS col1 FROM tab1
----
113
147
153

query I rowsort
SELECT col0 * + - ( 54 ) * + col1 - 64 AS col0 FROM tab0
----
-5302
-65674
-98722

query I rowsort
SELECT + col2 - col0 * - - col2 + + + col2 + + - col0 AS col1 FROM tab1
----
-4755
-4982
-6143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * + ( - - col0 ) col2 FROM tab2 AS cor0
----
1748
2432
2850

query II rowsort
SELECT - + 78 AS col2, 5 AS col0 FROM tab2 AS cor0
----
-78
5
-78
5
-78
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 90 * - col2 * + 21 BETWEEN + 18 AND - 30 + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT + COUNT( * ) * + + 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-8290
SELECT + COUNT ( * ) * + + 97 FROM tab0
----
291

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 96 ) > ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT ( col0 ) * + + col1 * - 25 + + col1 + - 33 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-2457
-30327
-45687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + + 72 col0 FROM tab0 AS cor0
----
-138
-27
-3735

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT MAX( + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT MAX ( + col1 ) AS col2 FROM tab1
----
47

query II rowsort
SELECT ALL 63 AS col2, ( - col2 ) + - 86 FROM tab0
----
63
-133
63
-185
63
-96

query I rowsort
SELECT ( - + col2 ) + - + 67 * col0 FROM tab2
----
-3105
-4328
-5083

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8298
SELECT ALL * FROM tab0 WHERE NOT - ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8298
SELECT ALL * FROM tab0 WHERE NOT - ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 38 + col2 + + + ( col1 ) AS col1 FROM tab1 AS cor0
----
102
148
153

query I rowsort
SELECT DISTINCT col2 + + 21 AS col1 FROM tab2 AS cor0
----
44
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT COUNT( * ) + 22 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-8301
SELECT COUNT ( * ) + 22 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
22

query I rowsort
SELECT + col0 * - - col0 FROM tab1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 61 + col0 * - + col1 + - col2 * col0 col0 FROM tab0 WHERE NOT ( NOT ( NULL ) >= NULL )
----

query I rowsort
SELECT ALL - 80 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 23 * - ( - col0 ) < - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 51 + + col2 NOT BETWEEN + col0 AND - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 8 * - - ( col2 ) + col1 * 40 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1 + - + col1 + col0, + col0 / 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT DISTINCT + 23 * - 39 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + 23 * - 39 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT - CAST( - + col0 AS SIGNED ) + - - col2 + - col2 * + ( col1 ) + - - col0 AS col0 FROM tab0 AS cor0
----
-26
-3730
194

skipif mysql # not compatible
query I rowsort label-8309
SELECT - CAST ( - + col0 AS INTEGER ) + - - col2 + - col2 * + ( col1 ) + - - col0 AS col0 FROM tab0 AS cor0
----
-26
-3730
194

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 < - - ( 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT + + SUM( - col1 ) * MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
9991

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + + SUM ( - col1 ) * MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
9991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT - 2 / - CAST( NULL AS SIGNED ) + - col2 + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 2 / - CAST ( NULL AS INTEGER ) + - col2 + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 72 + - - 67 AS col1 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 28 * + col2 AS col2 FROM tab1
----
1652
1904
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT ALL 46 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL 46 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT DISTINCT - MAX( + - col2 ) * + 69 + - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1
----
4070

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT - MAX ( + - col2 ) * + 69 + - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1
----
4070

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + MIN( - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8317
SELECT + MIN ( - - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT col0 * - col1 * 75 AS col0 FROM tab1 AS cor0
----
-31875
-320775
-53550

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, col2 col1 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT + COUNT( ALL + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8322
SELECT + COUNT ( ALL + - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - 37 + 29 + - + SUM( DISTINCT + 0 ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8323
SELECT - 37 + 29 + - + SUM ( DISTINCT + 0 ) AS col0 FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8324
SELECT - col1 * + - col2 * + CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT - col1 * + - col2 * + CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL <> 84 * 31
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + - COUNT( ALL + - 96 ) + + - 90 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8327
SELECT + - COUNT ( ALL + - 96 ) + + - 90 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT - + 86 + + col2 - col0 - - col2 FROM tab0 AS cor0
----
-153
-7
15

query I rowsort
SELECT DISTINCT + 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query I rowsort
SELECT - col2 * - col2 * - + col2 * - ( + col1 ) FROM tab2
----
13072504
4928000
620517

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT ALL + - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 + - col2 FROM tab2 AS cor0
----
37
55
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 99 - + col1 )
----

query I rowsort
SELECT ALL - col2 / + col0 FROM tab0 WHERE - + col2 - + col1 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + COUNT( * ) * - 3 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + COUNT ( * ) * - 3 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT + 82 * - ( 96 ) AS col2 FROM tab0
----
-7872

query I rowsort
SELECT ALL col1 * + 74 * + 93 AS col2 FROM tab1
----
323454
34410
96348

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 29 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8340
SELECT ( - 67 ) AS col1, + col1 DIV ( + 55 ) FROM tab2
----
-67
0
-67
1
-67
1

skipif mysql # not compatible
query II rowsort label-8340
SELECT ( - 67 ) AS col1, + col1 / ( + 55 ) FROM tab2
----
-67
0
-67
1
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL - MIN( DISTINCT + - col2 ) * - - 48 AS col0 FROM tab2
----
2784

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - MIN ( DISTINCT + - col2 ) * - - 48 AS col0 FROM tab2
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT - MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8342
SELECT - MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT ALL - col0 * 71, + col2 FROM tab0 cor0
----
-1065
47
-6177
10
-6887
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT + + 33 DIV - + MIN( - - col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8344
SELECT + + 33 / - + MIN ( - - col2 ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8345
SELECT * FROM tab2 WHERE NOT ( ( NOT - 56 NOT IN ( - 23 * col2 + + - col2, - col1, - + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-8345
SELECT * FROM tab2 WHERE NOT ( ( NOT - 56 NOT IN ( - 23 * col2 + + - col2, - col1, - + CAST ( NULL AS INTEGER ) ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 + + - col0 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT DISTINCT + COUNT( * ) * COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT + COUNT ( * ) * COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col2 * - 54 + + + col2 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT + COUNT( * ) + - + 7 * 77 AS col2 FROM tab2
----
-536

skipif mysql # not compatible
query I rowsort label-8349
SELECT + COUNT ( * ) + - + 7 * 77 AS col2 FROM tab2
----
-536

query II rowsort
SELECT DISTINCT - ( + 52 ) AS col1, col2 AS col1 FROM tab0
----
-52
10
-52
47
-52
99

query II rowsort
SELECT DISTINCT col0, col1 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT ALL 34 AS col0, + col1 FROM tab1
----
34
14
34
47
34
5

query I rowsort
SELECT + 10 + 88 FROM tab2
----
98
98
98

query I rowsort
SELECT - col0 + + 42 * + col0 FROM tab2
----
1886
2624
3075

query II rowsort
SELECT DISTINCT col0, + col1 - + + col0 - - col2 AS col2 FROM tab0
----
15
113
87
-56
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT ALL 29 DIV - - 46 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL 29 / - - 46 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + col2 / - col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL col1 + 22 FROM tab1 cor0
----
27
36
69

query I rowsort
SELECT DISTINCT 45 FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT - col1 + - + col2 IS NOT NULL
----

query I rowsort
SELECT col0 - + + 19 - - col1 AS col2 FROM tab2
----
122
123
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL - col2 * 61 - CAST( - col0 AS SIGNED ) col2 FROM tab1 cor0
----
-3514
-4057
-5805

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8361
SELECT ALL - col2 * 61 - CAST ( - col0 AS INTEGER ) col2 FROM tab1 cor0
----
-3514
-4057
-5805

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND 90 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8363
SELECT + + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 28 * + col1 - - col2 FROM tab2 AS cor0 WHERE NOT - col0 + col0 IS NULL
----
1451
1934
2196

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - ( + + col2 ) ) IS NULL
----
14
47
5

query I rowsort
SELECT - 93 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT - + 35 * + 71 * + MAX( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
-186375

skipif mysql # not compatible
query I rowsort label-8367
SELECT - + 35 * + 71 * + MAX ( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
-186375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT - col1 * col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT - col1 * col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 54 AS col2 FROM tab0
----
4698
5238
810

query I rowsort
SELECT ALL - col2 * + 10 FROM tab2
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT COUNT( ALL - 44 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8371
SELECT COUNT ( ALL - 44 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 * - 77 AS col0 FROM tab0 AS cor0
----
1617
6237
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT DISTINCT - col2 * - - 45 * + + col1 + col2 + + ( - - col0 ) DIV - col0 FROM tab0 AS cor0
----
-171269
-4357
-9441

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - col2 * - - 45 * + + col1 + col2 + + ( - - col0 ) / - col0 FROM tab0 AS cor0
----
-171269
-4357
-9441

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + - COUNT( * ) * + 37 AS col2 FROM tab0 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-8376
SELECT + - COUNT ( * ) * + 37 AS col2 FROM tab0 cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < + col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < + col2 * - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT DISTINCT - ( + 24 ) * col2 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - ( + 24 ) * col2 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL col1 + col2 + - ( + col2 ) * 40 AS col2 FROM tab0 AS cor0
----
-1752
-369
-3860

query I rowsort
SELECT - col2 * - col0 * - ( - col1 ) - - - 52 + - col2 FROM tab1 AS cor0
----
24964
290716
68396

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT col0 DIV + col1 + - col2 + - + 44 DIV - col0 col1 FROM tab0 AS cor0
----
-2
-45
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8382
SELECT col0 / + col1 + - col2 + - + 44 / - col0 col1 FROM tab0 AS cor0
----
-2
-45
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8383
SELECT + ( + + 72 ) + - CAST( + 6 AS SIGNED ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
66
-3

skipif mysql # not compatible
query II rowsort label-8383
SELECT + ( + + 72 ) + - CAST ( + 6 AS INTEGER ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
66
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 17 / 21
----

query I rowsort
SELECT + + 30 + 7 - 33 FROM tab2 AS cor0
----
4
4
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL COUNT( * ) + - 66 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL COUNT ( * ) + - 66 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL 57 FROM tab0 WHERE - - col2 IS NULL
----

query I rowsort
SELECT - + 46 FROM tab0 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND 40 * ( - col2 ) * + col0 + col0 / + + 7 + - - col1
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT - MIN( ALL + + col2 ) + COUNT( * ) AS col0 FROM tab1 WHERE NOT + 42 IS NULL
----
-56

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT - MIN ( ALL + + col2 ) + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 42 IS NULL
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT - col1 DIV + 41 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8391
SELECT - col1 / + 41 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ( + MIN( + col2 ) ) * + + 75 FROM tab2
----
1725

skipif mysql # not compatible
query I rowsort label-8392
SELECT ( + MIN ( + col2 ) ) * + + 75 FROM tab2
----
1725

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8393
SELECT ALL CAST( - - col1 AS SIGNED ) DIV 83 * + + 72 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL CAST ( - - col1 AS INTEGER ) / 83 * + + 72 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( + 91 ) ) + + + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 86 * - + col2 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT + col0 DIV 68 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8396
SELECT + col0 / 68 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT ALL + + CAST( - col1 AS SIGNED ) + + 19 FROM tab2 WHERE NOT NULL NOT IN ( + - col0 * + 79 + 63, + col0 )
----

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL + + CAST ( - col1 AS INTEGER ) + + 19 FROM tab2 WHERE NOT NULL NOT IN ( + - col0 * + 79 + 63, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT + col2 * - col1 - col1 + CAST( NULL AS SIGNED ) + + + 95 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT + col2 * - col1 - col1 + CAST ( NULL AS INTEGER ) + + + 95 * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 37 ) FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT + col1 - + col0 + + 55 * - 79 AS col0 FROM tab0 AS cor0
----
-4279
-4411
-4441

query I rowsort
SELECT - - col2 - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL + MAX( + - col2 ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8402
SELECT ALL + MAX ( + - col2 ) col2 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8403
SELECT + CAST( - CAST( - 80 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif mysql # not compatible
query I rowsort label-8403
SELECT + CAST ( - CAST ( - 80 AS REAL ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 0 + + - 53 / col0 + + col2 <= + 99 + - 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT - MAX( 73 ) col1 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8405
SELECT - MAX ( 73 ) col1 FROM tab0
----
-73

query II rowsort
SELECT - 90, col1 AS col1 FROM tab2 AS cor0
----
-90
51
-90
67
-90
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - + COUNT( DISTINCT - 37 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - + COUNT ( DISTINCT - 37 ) AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - 7 * - + ( - 92 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT ( + - col2 ) + + - col2 IS NULL
----
-644

query II rowsort
SELECT ALL 95 AS col2, 15 AS col0 FROM tab0 AS cor0
----
95
15
95
15
95
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 + + - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 + + col2 * + 39 AND - col1 + + - 12
----

query I rowsort
SELECT ALL - col1 * col2 * - + ( + col2 ) AS col1 FROM tab2
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - col0 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT 92 IS NULL
----
23
40
58

query II rowsort
SELECT - ( - - col0 ), col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ( - 58 ) FROM tab2
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL - SUM( - - 44 ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - SUM ( - - 44 ) FROM tab1 AS cor0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-8418
SELECT ALL 49 * - col1 * - col2 - - 23 DIV - col2 AS col0 FROM tab2 cor0
----
150920
190414
57476

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL 49 * - col1 * - col2 - - 23 / - col2 AS col0 FROM tab2 cor0
----
150920
190414
57476

query I rowsort
SELECT DISTINCT - col0 * + 92 FROM tab0
----
-1380
-8004
-8924

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( - col0 ) BETWEEN - - 28 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT ( + CAST( + col2 AS SIGNED ) ) col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8421
SELECT DISTINCT ( + CAST ( + col2 AS INTEGER ) ) col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - + COUNT( * ) * + COUNT( * ) * - + 95 FROM tab2 AS cor0
----
855

skipif mysql # not compatible
query I rowsort label-8422
SELECT - + COUNT ( * ) * + COUNT ( * ) * - + 95 FROM tab2 AS cor0
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT DISTINCT MIN( ALL - col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT MIN ( ALL - col0 ) AS col2 FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT + + col1 + + - col2 + - 40 FROM tab1 AS cor0
----
-122
-61
-94

query I rowsort
SELECT + ( 40 ) + - col0 AS col0 FROM tab1
----
-11
-45
-51

query I rowsort
SELECT 64 * 11 + + col1 AS col2 FROM tab0
----
705
725
785

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col0 - - ( - col0 ) FROM tab1
----
-102
-170
-182

query I rowsort
SELECT 58 * 10 FROM tab1 AS cor0
----
580
580
580

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT - SUM( ALL - - col2 ) - - MIN( ALL + col1 ) FROM tab1
----
-218

skipif mysql # not compatible
query I rowsort label-8430
SELECT - SUM ( ALL - - col2 ) - - MIN ( ALL + col1 ) FROM tab1
----
-218

query I rowsort
SELECT DISTINCT + 68 * ( col1 ) FROM tab1 AS cor0
----
3196
340
952

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 82
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + + 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT 46 * + 75 NOT BETWEEN + col2 AND + col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + COUNT( - 76 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8435
SELECT + COUNT ( - 76 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col2 * + - col2 + + + 68 * col1 AS col2 FROM tab0 AS cor0
----
-9733
1328
3299

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT MAX( + - 93 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - - col0, - col1 )
----
-93

skipif mysql # not compatible
query I rowsort label-8437
SELECT MAX ( + - 93 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - - col0, - col1 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - 51 * - COUNT( * ) + + 94 FROM tab2 AS cor0
----
247

skipif mysql # not compatible
query I rowsort label-8438
SELECT - 51 * - COUNT ( * ) + + 94 FROM tab2 AS cor0
----
247

query I rowsort
SELECT ALL - ( + ( + col1 ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT DISTINCT - MAX( - col0 ) DIV + - 85 * + 91 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT - MAX ( - col0 ) / + - 85 * + 91 FROM tab0
----
0

query I rowsort
SELECT 69 * + 10 AS col2 FROM tab0
----
690
690
690

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col2 ) IS NOT NULL
----

query II rowsort
SELECT 1, + col2 FROM tab0
----
1
10
1
47
1
99

query II rowsort
SELECT ALL + 17, + 26 * col1 AS col0 FROM tab0 AS cor0
----
17
2106
17
26
17
546

query II rowsort
SELECT + col0, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + 40 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 31, + col2 col1 FROM tab1 AS cor0
----
116
59
122
68
82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT + COUNT( * ) * - - 67 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + COUNT ( * ) * - - 67 FROM tab2 AS cor0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL - col2 DIV - ( 38 ) + 53 FROM tab1 AS cor0
----
54
54
55

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - col2 / - ( 38 ) + 53 FROM tab1 AS cor0
----
54
54
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT + CAST( + - 46 AS SIGNED ) FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-8450
SELECT + CAST ( + - 46 AS INTEGER ) FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT col2 + col1 + col0 FROM tab1 cor0
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT DISTINCT 39 * col2 - + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
1624
2337
943

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT 39 * col2 - + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
1624
2337
943

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8453
SELECT ALL AVG ( + col2 ) - + CAST( NULL AS DECIMAL ), COUNT( * ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8453
SELECT ALL AVG ( + col2 ) - + CAST ( NULL AS REAL ), COUNT ( * ) AS col0 FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) - - col0 AS col1 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) - - col0 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT 18 * COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT 18 * COUNT ( * ) FROM tab1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT ALL 65 DIV 94 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL 65 / 94 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 94 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT - + 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - SUM( col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8460
SELECT - SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8461
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8461
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8462
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8462
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, 7 FROM tab0
----
15
7
87
7
97
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 61 <> + col1
----

query I rowsort
SELECT 97 * + 7 AS col2 FROM tab0
----
679
679
679

query I rowsort
SELECT ( - + col1 ) * - col0 + - - col2 + - ( + col0 ) AS col1 FROM tab2
----
2323
4904
5008

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT 38 * - COUNT( * ) AS col1 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-8467
SELECT 38 * - COUNT ( * ) AS col1 FROM tab0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT + COUNT( * ) + + 24 + 37 * 40 AS col0 FROM tab0
----
1507

skipif mysql # not compatible
query I rowsort label-8468
SELECT + COUNT ( * ) + + 24 + 37 * 40 AS col0 FROM tab0
----
1507

query I rowsort
SELECT ALL - 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT col1 + + 85 AS col1 FROM tab2 AS cor0
----
136
152
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT COUNT( * ) DIV - - COUNT( * ) + - 1 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8471
SELECT COUNT ( * ) / - - COUNT ( * ) + - 1 col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT ALL + col0 + + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + col0 + + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8473
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + 41 < - col0
----

skipif mysql # not compatible
query III rowsort label-8473
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + 41 < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + 7 + - col1
----

query I rowsort
SELECT ALL + 45 + col2 FROM tab1 AS cor0
----
104
113
141

query I rowsort
SELECT ALL 61 - - + 52 FROM tab0
----
113
113
113

query I rowsort
SELECT DISTINCT + col0 + + - 61 AS col2 FROM tab0
----
-46
26
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT col1 + 75 * CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8478
SELECT col1 + 75 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - + + 96 AS col2 FROM tab0
----
-15
-75
-95

query I rowsort
SELECT DISTINCT + + 71 AS col2 FROM tab2 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 88 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 88 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT + COUNT( * ) AS col0, COUNT( * ) col1 FROM tab1 WHERE NOT - 60 <> NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8482
SELECT + COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab1 WHERE NOT - 60 <> NULL
----
0
0

query I rowsort
SELECT + 53 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL MAX( 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL MAX ( 89 ) FROM tab2 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-8485
SELECT - + col0 AS col2, - col2 DIV + - col2 AS col1 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

skipif mysql # not compatible
query II rowsort label-8485
SELECT - + col0 AS col2, - col2 / + - col2 AS col1 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab2 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT - - MAX( DISTINCT - 23 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT - - MAX ( DISTINCT - 23 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT - col2 DIV 76 DIV - - col2 + + 71 col1 FROM tab0 AS cor0
----
71
71
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8488
SELECT - col2 / 76 / - - col2 + + 71 col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT - - 91 * - 9 FROM tab1 AS cor0
----
-819
-819
-819

query I rowsort
SELECT DISTINCT 16 + - 6 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT col2 * - 61 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT + col1 DIV - - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8492
SELECT + col1 / - - col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8493
SELECT * FROM tab0 WHERE NOT + CAST( + col2 AS SIGNED ) BETWEEN CAST( - + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8493
SELECT * FROM tab0 WHERE NOT + CAST ( + col2 AS INTEGER ) BETWEEN CAST ( - + col2 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT ALL + CAST( - - 44 AS SIGNED ) + + col2 AS col2 FROM tab1 WHERE NOT + 27 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + CAST ( - - 44 AS INTEGER ) + + col2 AS col2 FROM tab1 WHERE NOT + 27 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col0 * - col0 * - col1 col1 FROM tab0
----
-1589490
-856575
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT ALL col1 * col2 DIV col1 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL col1 * col2 / col1 AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT DISTINCT 53 DIV col1 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT 53 / col1 AS col2 FROM tab2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8499
SELECT ALL - col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL + ( col1 ) + col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8501
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
3

query I rowsort
SELECT - - 40 AS col1 FROM tab0 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 41 col1 FROM tab2 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + ( - col2 ) col0 FROM tab0 AS cor0
----
-15
-67
22

query I rowsort
SELECT - 7 + - 36 AS col2 FROM tab0
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8507
SELECT * FROM tab2 AS cor0 WHERE 62 * - col1 + - CAST( NULL AS SIGNED ) + - + CAST( NULL AS DECIMAL ) * - 40 * CAST( - - 55 AS SIGNED ) * col2 BETWEEN - col1 AND + col0
----

skipif mysql # not compatible
query III rowsort label-8507
SELECT * FROM tab2 AS cor0 WHERE 62 * - col1 + - CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS REAL ) * - 40 * CAST ( - - 55 AS INTEGER ) * col2 BETWEEN - col1 AND + col0
----

query I rowsort
SELECT ALL ( + - 11 ) FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - - 99 AS col1 FROM tab1 cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT DISTINCT - MAX( DISTINCT - 38 ) AS col0 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - MAX ( DISTINCT - 38 ) AS col0 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL 44 * - + col0 + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-2193
-3655
-3913

query II rowsort
SELECT + + col2, + col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT - + col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT ALL col0, col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT + COUNT( * ) + + 82 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + COUNT ( * ) + + 82 FROM tab2 AS cor0
----
85

query II rowsort
SELECT + 48 AS col2, 17 + + 51 - col2 FROM tab1 AS cor0
----
48
-28
48
0
48
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT + ( - COUNT( * ) ) + COUNT( ALL - + 56 ) + 12 AS col2 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + ( - COUNT ( * ) ) + COUNT ( ALL - + 56 ) + 12 AS col2 FROM tab2 cor0
----
12

query I rowsort
SELECT DISTINCT - col0 * - - col0 + + col2 + 32 + - 67 * + 53 AS col2 FROM tab2
----
-5612
-7575
-9086

query I rowsort
SELECT + col0 - - + 41 FROM tab2
----
105
116
87

query I rowsort
SELECT DISTINCT 85 * + 66 * + - col2 AS col2 FROM tab0
----
-263670
-555390
-56100

query II rowsort
SELECT col2 AS col2, 16 FROM tab1
----
59
16
68
16
96
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL COUNT( DISTINCT - + 31 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL COUNT ( DISTINCT - + 31 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT DISTINCT - 57 AS col2, 32 * COUNT( * ) col2 FROM tab1
----
-57
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8523
SELECT DISTINCT - 57 AS col2, 32 * COUNT ( * ) col2 FROM tab1
----
-57
96

query II rowsort
SELECT col2, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT ALL - col2, col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT - col1 DIV + + ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT - col1 / + + ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + + ( col1 ) * - + ( col0 ) + + - col0 FROM tab2 cor0 WHERE NOT + ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT DISTINCT + + col2 DIV col1 + + - col1 + 73 FROM tab2 cor0
----
-4
22
6

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + + col2 / col1 + + - col1 + 73 FROM tab2 cor0
----
-4
22
6

query I rowsort
SELECT ALL + 4 * col2 + + col0 AS col0 FROM tab1 cor0
----
321
363
435

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT col2 DIV - + col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8532
SELECT col2 / - + col1 FROM tab1
----
-1
-11
-6

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + - 85
----

query I rowsort
SELECT + 11 + - - 93 AS col1 FROM tab0
----
104
104
104

query I rowsort
SELECT + + col1 * - col2 AS col1 FROM tab1 WHERE + ( + col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT DISTINCT - ( 67 ) AS col2 FROM tab1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8538
SELECT + SUM( ALL ( CAST( + ( + - col1 ) AS SIGNED ) ) ) + - COUNT( * ) + + 31 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-8538
SELECT + SUM ( ALL ( CAST ( + ( + - col1 ) AS INTEGER ) ) ) + - COUNT ( * ) + + 31 FROM tab0
----
-75

query I rowsort
SELECT ALL + col1 * + - col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - 76 + - COUNT( DISTINCT - col2 ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 76 + - COUNT ( DISTINCT - col2 ) FROM tab2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT ALL ( col2 ) * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) <= - col2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL ( col2 ) * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) <= - col2
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 17 * - col2 * - + col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + 33 <= - col2
----

query I rowsort
SELECT ALL - 70 - + - 48 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8545
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8545
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8546
SELECT ALL - CAST( NULL AS SIGNED ) / + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - CAST ( NULL AS INTEGER ) / + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 61 AS col0 FROM tab1 WHERE NULL IN ( - col1, + 99 * col0, 66 )
----

query I rowsort
SELECT ALL 1 + + 30 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL - CAST( 57 AS SIGNED ) col1 FROM tab0 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8549
SELECT ALL - CAST ( 57 AS INTEGER ) col1 FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT ALL + 6 / + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + 6 / + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( col2 * col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8551
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( col2 * col2 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8552
SELECT ( - - COUNT( * ) ) col1, ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8552
SELECT ( - - COUNT ( * ) ) col1, ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <> - - 71
----

query II rowsort
SELECT - col2 AS col1, + 2 FROM tab1
----
-59
2
-68
2
-96
2

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab0 WHERE NULL >= + 57 / - - 20 * 6 * 33
----

query I rowsort
SELECT col0 + col1 - + col0 + 74 FROM tab2 WHERE NOT + 53 + - col1 * + col0 * + col0 * + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8557
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8557
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT MIN( DISTINCT - 31 ) col0 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8558
SELECT DISTINCT MIN ( DISTINCT - 31 ) col0 FROM tab2 AS cor0
----
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = + 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - + col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT + - col1 AS col2, ( - ( + - 94 ) ) AS col1 FROM tab0 AS cor0
----
-1
94
-21
94
-81
94

query I rowsort
SELECT ALL + 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL - COUNT( * ) * - 96 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
864

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8563
SELECT ALL - COUNT ( * ) * - 96 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
864

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + col1 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT ALL 23 * - + ( - + 73 ) * + + 33 AS col2, - 27 * - COUNT( - - col2 ) FROM tab2
----
55407
81

skipif mysql # not compatible
query II rowsort label-8565
SELECT ALL 23 * - + ( - + 73 ) * + + 33 AS col2, - 27 * - COUNT ( - - col2 ) FROM tab2
----
55407
81

query I rowsort
SELECT - + 55 + 69 * + - col2 + + + 13 + - col2 * - 96 + - + col0 FROM tab1 cor0
----
1466
1703
2499

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8567
SELECT ALL 16 AS col1, col2 * - + col2 + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
16
-1523
16
-3297
16
-478

skipif mysql # not compatible
query II rowsort label-8567
SELECT ALL 16 AS col1, col2 * - + col2 + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
16
-1523
16
-3297
16
-478

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE NOT + 47 + - col0 > NULL
----

query I rowsort
SELECT DISTINCT - + col2 * - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT DISTINCT - ( - MAX( + col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - ( - MAX ( + col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT - CAST( + 27 AS SIGNED ) + + 32 AS col1 FROM tab1 cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-8571
SELECT - CAST ( + 27 AS INTEGER ) + + 32 AS col1 FROM tab1 cor0
----
5
5
5

query II rowsort
SELECT - col1 AS col0, 27 * + col0 AS col2 FROM tab2 AS cor0
----
-51
1242
-67
2025
-77
1728

query I rowsort
SELECT col0 * 8 FROM tab1
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL SUM( col2 ) + + 62 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL SUM ( col2 ) + + 62 FROM tab1 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT + COUNT( - 75 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT + COUNT ( - 75 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 60 * - 70 AS col2 FROM tab1
----
4200
4200
4200

query I rowsort
SELECT 3 AS col2 FROM tab2 WHERE col2 * ( + col1 ) / - ( + - 57 ) > - 69
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * - col2 col2 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT COUNT( * ) * - 49 col2 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8580
SELECT DISTINCT COUNT ( * ) * - 49 col2 FROM tab1 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL + ( + - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT + col0 = ( - 42 + + - col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + ( + - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT + col0 = ( - 42 + + - col2 )
----
-3

query I rowsort
SELECT + col0 * - 52 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - + 78 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8583
SELECT - + 78 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
234

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 * ( + 75 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE col2 BETWEEN NULL AND + col0 * - + 11
----

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE col2 BETWEEN NULL AND + col0 * - + 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8587
SELECT - CAST( - col2 AS SIGNED ) AS col2, - col2 + - col2 * - + col1 + + 83 AS col2 FROM tab1
----
59
319
68
3211
96
1331

skipif mysql # not compatible
query II rowsort label-8587
SELECT - CAST ( - col2 AS INTEGER ) AS col2, - col2 + - col2 * - + col1 + + 83 AS col2 FROM tab1
----
59
319
68
3211
96
1331

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, col0 * + ( - 42 ) col2 FROM tab1 WHERE NOT + - 78 * + - col2 <= ( - - 50 )
----
-59
-3570
-68
-3822
-96
-2142

onlyif mysql # DIV for integer division: 
query I rowsort label-8590
SELECT DISTINCT - col1 DIV - 79 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT - col1 / - 79 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 32 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT - 79 + + 72 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT - + ( + + 12 ) FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - 21 + + + 54 * col2 FROM tab2 AS cor0
----
1221
2139
3111

query II rowsort
SELECT ALL - 72 AS col0, ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-72
51
-72
67
-72
77

query I rowsort
SELECT 71 + - + 75 FROM tab0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8597
SELECT ALL * FROM tab0 WHERE NOT - col1 * - + col1 + + + 35 BETWEEN col0 * ( - col2 ) * CAST( NULL AS SIGNED ) + - col1 AND ( 87 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-8597
SELECT ALL * FROM tab0 WHERE NOT - col1 * - + col1 + + + 35 BETWEEN col0 * ( - col2 ) * CAST ( NULL AS INTEGER ) + - col1 AND ( 87 )
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT + 67 DIV - + col0 + + + 9 FROM tab0
----
5
9
9

skipif mysql # not compatible
query I rowsort label-8598
SELECT + 67 / - + col0 + + + 9 FROM tab0
----
5
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL - CAST( - AVG ( DISTINCT - + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - CAST ( - AVG ( DISTINCT - + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + + ( + 85 ) * - col0 IS NOT NULL
----

query I rowsort
SELECT - + ( - - 50 ) AS col0 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL col2 - - col2 AS col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - MAX( + col2 ) - - 86 col1 FROM tab1
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8603
SELECT - MAX ( + col2 ) - - 86 col1 FROM tab1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8604
SELECT - - 95, COUNT( * ) * 62 DIV 11 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
95
50

skipif mysql # not compatible
query II rowsort label-8604
SELECT - - 95, COUNT ( * ) * 62 / 11 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
95
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8605
SELECT ALL - + CAST( NULL AS DECIMAL ) / - - col0 + - - 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - + CAST ( NULL AS REAL ) / - - col0 + - - 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 * - 75 FROM tab2 AS cor0
----
-4200
-4200
-4200

query I rowsort
SELECT - col2 * + 92 + - col2 FROM tab0 AS cor0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT + + CAST( + + MAX( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8608
SELECT + + CAST ( + + MAX ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT MAX( + ( - + col1 ) ) * ( ( + 28 ) ) AS col1 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT MAX ( + ( - + col1 ) ) * ( ( + 28 ) ) AS col1 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT - + col2 * - col0 - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT ALL + + ( - 21 ) FROM tab1 AS cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 / + 87 col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT - CAST( - 19 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif mysql # not compatible
query I rowsort label-8613
SELECT - CAST ( - 19 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL - 45 * + col0 AS col2 FROM tab0
----
-3915
-4365
-675

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT ALL - COUNT( * ), + 17 AS col0 FROM tab2
----
-3
17

skipif mysql # not compatible
query II rowsort label-8615
SELECT ALL - COUNT ( * ), + 17 AS col0 FROM tab2
----
-3
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + SUM( + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-8616
SELECT + SUM ( + col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT + + AVG ( 96 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - + 61 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8618
SELECT - + 61 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - COUNT( * ) * 41 col1 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8619
SELECT - COUNT ( * ) * 41 col1 FROM tab0 AS cor0
----
-123

query III rowsort
SELECT * FROM tab0 WHERE + 73 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8621
SELECT ALL * FROM tab0 WHERE ( col0 * + col1 - CAST( 50 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8621
SELECT ALL * FROM tab0 WHERE ( col0 * + col1 - CAST ( 50 AS INTEGER ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + ( + col1 ) col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 49 * + col2 + col1 FROM tab2
----
1178
2037
2909

query III rowsort
SELECT * FROM tab2 WHERE NOT 1 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT SUM( DISTINCT col1 ) * - 8 AS col2 FROM tab1
----
-528

skipif mysql # not compatible
query I rowsort label-8625
SELECT SUM ( DISTINCT col1 ) * - 8 AS col2 FROM tab1
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT + ( MAX( + 95 ) ) + - COUNT( * ) FROM tab1 WHERE NOT ( - 64 + + col2 ) NOT BETWEEN NULL AND ( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT + ( MAX ( + 95 ) ) + - COUNT ( * ) FROM tab1 WHERE NOT ( - 64 + + col2 ) NOT BETWEEN NULL AND ( - 38 )
----
NULL

query I rowsort
SELECT + col0 * - 45 FROM tab2
----
-2070
-2880
-3375

query I rowsort
SELECT col1 + + 83 / + 18 AS col0 FROM tab2 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL col0 + 97 * + 8 FROM tab0
----
791
863
873

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + 0
----

query I rowsort
SELECT DISTINCT ( col0 ) * - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL 54 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / col2 + - ( col0 - - 34 ) IS NOT NULL
----

query I rowsort
SELECT - 1 AS col2 FROM tab1 WHERE NOT 91 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 27 + - col0 ) NOT BETWEEN col1 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT + COUNT( DISTINCT - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col2 * col1 + 55 AS col2 FROM tab0
----
154
265
3862

query I rowsort
SELECT 90 + - 9 * + col2 AS col2 FROM tab0
----
-333
-801
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 IN ( col0 * 62 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) * - 47 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 47 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT + 82 DIV - col1 AS col1 FROM tab1
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-8643
SELECT + 82 / - col1 AS col1 FROM tab1
----
-1
-16
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT 2 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8644
SELECT 2 / col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE + col1 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - 47 <> NULL
----

query I rowsort
SELECT DISTINCT 81 * - ( - ( + col2 ) * 31 ) + - col1 FROM tab0
----
117936
248588
25089

query I rowsort
SELECT ALL - col0 * - col0 FROM tab0 WHERE ( - ( - col0 ) ) BETWEEN ( col1 * 43 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT ALL - col1 DIV col1 + + ( + 58 + + col2 ) col0 FROM tab2 AS cor0
----
115
80
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8649
SELECT ALL - col1 / col1 + + ( + 58 + + col2 ) col0 FROM tab2 AS cor0
----
115
80
97

query I rowsort
SELECT ( col1 ) * + 18 + + col1 AS col0 FROM tab1 AS cor0
----
266
893
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( NULL ) AND col2
----
87
21
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 99 + + 5 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 + col0 AS col1 FROM tab2 cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL 51 * + COUNT( * ) AS col1 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 51 * + COUNT ( * ) AS col1 FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT + COUNT( * ) * 5 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + COUNT ( * ) * 5 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8656
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - MAX( ALL col2 ) * - 15 AS col0 FROM tab1 AS cor0
----
1440

skipif mysql # not compatible
query I rowsort label-8657
SELECT - MAX ( ALL col2 ) * - 15 AS col0 FROM tab1 AS cor0
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-8658
SELECT ALL col1 DIV + col1 col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8658
SELECT ALL col1 / + col1 col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8659
SELECT + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT - 28 * + COUNT( * ) AS col2 FROM tab2 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8660
SELECT - 28 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT ALL + - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT MIN( DISTINCT col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab1 cor0
----
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 30 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 14 AS col1 FROM tab0 AS cor0
----
14
14
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 ) BETWEEN col2 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT col2 DIV col2 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8666
SELECT col2 / col2 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + AVG ( - 33 ) * 72 FROM tab2 WHERE NOT NULL BETWEEN - 53 AND ( - col1 )
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + 52 * 35 FROM tab1
----
-25480
-85540
-9100

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT 49 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT 49 / - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8670
SELECT * FROM tab2 WHERE NOT ( - 8 / CAST( NULL AS SIGNED ) ) BETWEEN ( - col0 ) AND ( - 77 + 52 / col0 )
----

skipif mysql # not compatible
query III rowsort label-8670
SELECT * FROM tab2 WHERE NOT ( - 8 / CAST ( NULL AS INTEGER ) ) BETWEEN ( - col0 ) AND ( - 77 + 52 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT MIN( ALL - 43 ) AS col0 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-8671
SELECT MIN ( ALL - 43 ) AS col0 FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL + 10 * COUNT( * ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + 10 * COUNT ( * ) AS col1 FROM tab0
----
30

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN - 24 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * ( + 1 ) AS col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col2 + - col1 )
----

query I rowsort
SELECT - 85 * + 65 FROM tab0
----
-5525
-5525
-5525

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 * col1 - col1 AND + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL - MAX( col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - MAX ( col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT DISTINCT col2 DIV - + col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT col2 / - + col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - 30 + + col0 * + 46 AS col1 FROM tab2 AS cor0
----
2086
2914
3420

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * col0 * + ( col2 ) AS col2 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT + col2 * - 29 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - 54 * + COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
-486

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8685
SELECT ALL - 54 * + COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
-486

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON ( ( 53 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8687
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE 75 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT col0 DIV - + col2 + + col1 FROM tab0 AS cor0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-8688
SELECT col0 / - + col2 + + col1 FROM tab0 AS cor0
----
1
13
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT DISTINCT + ( - - 62 ) DIV - COUNT( * ) AS col1 FROM tab2 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + ( - - 62 ) / - COUNT ( * ) AS col1 FROM tab2 cor0
----
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 78 - + col1 )
----

query I rowsort
SELECT col2 * col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - ( - 10 ) FROM tab2 AS cor0 WHERE ( + ( + ( col2 ) ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT - MIN( DISTINCT ( + 52 ) ) + 53 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8693
SELECT - MIN ( DISTINCT ( + 52 ) ) + 53 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT DISTINCT + col0 DIV col1 + - 74 FROM tab2
----
-73
-74

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT + col0 / col1 + - 74 FROM tab2
----
-73
-74

query I rowsort
SELECT col2 + - + col2 + col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL 44 + - - 44 - - COUNT( * ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL 44 + - - 44 - - COUNT ( * ) AS col2 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT ALL col0 DIV 96 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL col0 / 96 AS col1 FROM tab0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 11 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - 61 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8700
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 27 + - - 23 * + 2 + 68 / COUNT( * ) * - 78 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 27 + - - 23 * + 2 + 68 / COUNT ( * ) * - 78 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col2 ) col1 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE ( - - ( + col1 ) ) IS NULL
----

query I rowsort
SELECT col2 / - col1 * - col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL + - ( - 30 ), col0 AS col2 FROM tab0 AS cor0
----
30
15
30
87
30
97

query I rowsort
SELECT ALL + - 18 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT 46 - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 50 * + 31
----

query I rowsort
SELECT ALL - col0 * + + col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT + SUM( DISTINCT 67 ) AS col2 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + SUM ( DISTINCT 67 ) AS col2 FROM tab2 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + COUNT( * ) * - 1 FROM tab2 AS cor0 WHERE NOT - 10 < - - col1 + - - col0
----
0

skipif mysql # not compatible
query I rowsort label-8710
SELECT + COUNT ( * ) * - 1 FROM tab2 AS cor0 WHERE NOT - 10 < - - col1 + - - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, - col0 AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 78, ( + col1 ) AS col0 FROM tab0 AS cor0
----
78
1
78
21
78
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - - col0 ) BETWEEN - col2 AND - col0 * 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 95 AS col2, - 80 col1 FROM tab0 AS cor0
----
95
-80
95
-80
95
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL - + COUNT( * ) + - MIN( ALL + col2 ) * 28 + COUNT( * ) FROM tab1 AS cor0
----
-1652

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - + COUNT ( * ) + - MIN ( ALL + col2 ) * 28 + COUNT ( * ) FROM tab1 AS cor0
----
-1652

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8718
SELECT col2 col0, 81 * + col0 + - + col2 DIV + - CAST( + - 17 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
3725
40
5182
58
6072

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8718
SELECT col2 col0, 81 * + col0 + - + col2 / + - CAST ( + - 17 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
3725
40
5182
58
6072

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 52 * col0 NOT BETWEEN - - 23 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 45
----

query II rowsort
SELECT + - 48 + + col0, ( + 70 ) AS col0 FROM tab0 AS cor0
----
-33
70
39
70
49
70

query I rowsort
SELECT col1 FROM tab0 WHERE - 53 / + - 35 * - + ( + 61 ) = col0 AND NULL IS NOT NULL
----

query I rowsort
SELECT 28 + + 42 AS col0 FROM tab1
----
70
70
70

query I rowsort
SELECT col0 * - + col1 + + 82 FROM tab1
----
-343
-4195
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - - COUNT( + + 74 ) * - COUNT( ALL - col2 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8725
SELECT - - COUNT ( + + 74 ) * - COUNT ( ALL - col2 ) FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT - - col2 * + col2 * - - col0 * col0 + - col1 FROM tab0 AS cor0
----
496944
756879
92217608

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT - 59 DIV - + col1 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-8727
SELECT - 59 / - + col1 FROM tab1 AS cor0
----
1
11
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - - SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8728
SELECT - - SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - 19 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab1 AS cor0 WHERE ( + 71 ) <> - ( col0 ) * col1
----
-32
-32
-32

query I rowsort
SELECT ALL - 61 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( + col1 )
----
-61
-61
-61

query I rowsort
SELECT DISTINCT 11 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
584
795
887

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL - COUNT( * ) + + 19 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - COUNT ( * ) + + 19 FROM tab1 AS cor0
----
16

query I rowsort
SELECT 59 * - ( - + col1 ) * - + col2 + col1 AS col2 FROM tab0 AS cor0 WHERE NULL < ( col0 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT ( col1 / col2 ) IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT + col2 AS col2, + col1 AS col1, 59 * + col2 * col2 * 38 * + 83 FROM tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 83a1e2b7f88e03fb7bbf8fa11d2b983f

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 75 IN ( col2 * 95 + + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 35 * + 62 - + col0 + - col1 = ( + + 22 + - col0 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE - col1 * + 76 * + - ( - ( + + col1 ) ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + 74 * + ( - COUNT( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-222

skipif mysql # not compatible
query I rowsort label-8740
SELECT + 74 * + ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-222

query I rowsort
SELECT ALL ( col0 ) - - 34 * + col2 AS col2 FROM tab1
----
2091
2403
3315

query I rowsort
SELECT DISTINCT - 72 - - col0 FROM tab1
----
-21
13
19

query I rowsort
SELECT + col0 - - 27 FROM tab1
----
112
118
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT DISTINCT 14 * CAST( + + col2 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
1330
821
905

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT 14 * CAST ( + + col2 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
1330
821
905

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8745
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / - 79 - - 79 = ( col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8745
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / - 79 - - 79 = ( col0 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + SUM( DISTINCT - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 cor0
----
-156

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE - ( - 37 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8748
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 < ( - 98 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8748
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 < ( - 98 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT - col0 * col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT - col0 * col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * + col2 * col1 NOT BETWEEN + ( + col2 ) AND + + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 < ( + col0 )
----
85
5
59
91
47
68

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - 25
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 - - + col0 + col1 + - + col1 / + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN ( col0 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + COUNT( * ) + 64 AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + COUNT ( * ) + 64 AS col2 FROM tab2
----
67

query I rowsort
SELECT + 58 AS col2 FROM tab2 WHERE NOT + - col0 * 84 IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL + SUM( - + ( - col1 ) ) * - - 14 AS col0 FROM tab1
----
924

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + SUM ( - + ( - col1 ) ) * - - 14 AS col0 FROM tab1
----
924

query I rowsort
SELECT 31 * 11 FROM tab2
----
341
341
341

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT col1 + col2 DIV - - col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8760
SELECT col1 + col2 / - - col1 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - col2 * - col1 + - + 41 - col1 + 45 + - col0 FROM tab0
----
106
3715
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL SUM( + 68 ) FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL SUM ( + 68 ) FROM tab0
----
204

query II rowsort
SELECT col0 + + + 36 - + 60 AS col1, - 55 FROM tab2
----
22
-55
40
-55
51
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT + ( - + col2 ) DIV - + 56 + - ( ( ( 81 ) ) ) * + 65 FROM tab2
----
-5264
-5265
-5265

skipif mysql # not compatible
query I rowsort label-8764
SELECT + ( - + col2 ) / - + 56 + - ( ( ( 81 ) ) ) * + 65 FROM tab2
----
-5264
-5265
-5265

query I rowsort
SELECT ALL ( + 85 ) FROM tab2
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL + COUNT( * ) + - - 67 + - 13 + + - COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + COUNT ( * ) + - - 67 + - 13 + + - COUNT ( * ) FROM tab1
----
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - - col2
----

query I rowsort
SELECT DISTINCT + + 38 + - col2 AS col2 FROM tab1 AS cor0
----
-21
-30
-58

query I rowsort
SELECT + col2 * - 18 * + col1 FROM tab1 AS cor0
----
-24192
-5310
-57528

query I rowsort
SELECT ALL - 41 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, - col1 + - - col2 FROM tab2
----
46
-28
64
-37
75
-9

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT + + CAST( col0 AS SIGNED ) + + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-8773
SELECT + + CAST ( col0 AS INTEGER ) + + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT DISTINCT - col0 * + 39 * + - col0 + + col2 + col0 * - 95, + col2 FROM tab1 cor0
----
273759
59
314382
68
96690
96

query I rowsort
SELECT - col1 - + col1 AS col1 FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + - COUNT( ALL col1 ) + + 42 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8776
SELECT + - COUNT ( ALL col1 ) + + 42 FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + ( - col2 ) col2 FROM tab2 AS cor0
----
-12
23
6

query I rowsort
SELECT 17 * 59 + + 61 AS col1 FROM tab1 AS cor0
----
1064
1064
1064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + 56 * - 16 + + col1 FROM tab1
----
-849
-882
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - MAX( DISTINCT 58 ) AS col0 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-8782
SELECT - MAX ( DISTINCT 58 ) AS col0 FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT - COUNT( * ) AS col2, + COUNT( * ) FROM tab1, tab2 AS cor0
----
-9
9

skipif mysql # not compatible
query II rowsort label-8783
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1, tab2 AS cor0
----
-9
9

query I rowsort
SELECT ALL ( 50 ) * - 48 FROM tab2 AS cor0
----
-2400
-2400
-2400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - + col2 BETWEEN + 35 AND ( - 37 + - col2 + + col2 + + 86 / + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 53 ) * + 1 col1 FROM tab2 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT - + 67 * col2 AS col2 FROM tab0 cor0
----
-3149
-6633
-670

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 AS col2 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + 86 AS col2 FROM tab0 AS cor0
----
10
86
47
86
99
86

query I rowsort
SELECT - col2 * col2 AS col0 FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8793
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + CAST( col0 AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8793
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + CAST ( col0 AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + + col1 col2 FROM tab2 AS cor0
----
25
35
9

query II rowsort
SELECT ALL + col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + - col0 * col1 + - 79 * + 30 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
-140250
-165390
-228220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col0 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ( - - ( + + COUNT( * ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8798
SELECT ( - - ( + + COUNT ( * ) ) ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT + ( + CAST( col1 AS SIGNED ) ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8799
SELECT + ( + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + 93 AS col1 FROM tab1 WHERE 67 * - + col2 / col0 - - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT COUNT( * ) * SUM( ALL col2 ) AS col0 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-8801
SELECT COUNT ( * ) * SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
669

query I rowsort
SELECT + col2 - 18 FROM tab1 AS cor0
----
41
50
78

query I rowsort
SELECT + + col1 + - + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + ( + 3 ) + + SUM( - - ( col2 ) ) + - 73 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8804
SELECT + ( + 3 ) + + SUM ( - - ( col2 ) ) + - 73 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL + - MIN( - - ( - 27 ) ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + - MIN ( - - ( - 27 ) ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
24

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL col1 * - 59 FROM tab1
----
-2773
-295
-826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT CAST( + 73 AS SIGNED ) * - + col2 * - 1 + - - col1 FROM tab1 AS cor0
----
4312
5011
7022

skipif mysql # not compatible
query I rowsort label-8808
SELECT CAST ( + 73 AS INTEGER ) * - + col2 * - 1 + - - col1 FROM tab1 AS cor0
----
4312
5011
7022

query I rowsort
SELECT DISTINCT - 57 * + col1 FROM tab0 AS cor0
----
-1197
-4617
-57

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + + 82 ) + - col0 BETWEEN NULL AND + ( + col2 )
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8811
SELECT DISTINCT - - col1 * - + CAST( NULL AS DECIMAL ) / + + 52 - + col2 + + col0 + - col1 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8811
SELECT DISTINCT - - col1 * - + CAST ( NULL AS REAL ) / + + 52 - + col2 + + col0 + - col1 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT + MIN( ALL + col2 ) * - + 50 * + MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
86250

skipif mysql # not compatible
query I rowsort label-8812
SELECT + MIN ( ALL + col2 ) * - + 50 * + MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
86250

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 32 NOT IN ( - 74 * 86 + + col2 + + 88 + + 3 - + + col0, - col0 * 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + - col1 IS NULL
----

query II rowsort
SELECT col2, 5 FROM tab0
----
10
5
47
5
99
5

query I rowsort
SELECT DISTINCT col1 * - 24 AS col1 FROM tab0
----
-1944
-24
-504

query I rowsort
SELECT ( 24 ) * + 88 AS col1 FROM tab0
----
2112
2112
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT - COUNT( * ) + + 74 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + ( + col1 ) * + 85 + - col1
----
74

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - COUNT ( * ) + + 74 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + ( + col1 ) * + 85 + - col1
----
74

query I rowsort
SELECT ( + - 32 ) AS col2 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - col1 * + + 2 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ALL COUNT( * ) * - 12 * + COUNT( * ) FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL COUNT ( * ) * - 12 * + COUNT ( * ) FROM tab1
----
-108

query II rowsort
SELECT 85, 9 AS col0 FROM tab1
----
85
9
85
9
85
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT - SUM( 21 ) * 63 AS col2 FROM tab1
----
-3969

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - SUM ( 21 ) * 63 AS col2 FROM tab1
----
-3969

query I rowsort
SELECT 18 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - ( 25 ) FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL COUNT( * ) * - - 81 + - COUNT( * ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL COUNT ( * ) * - - 81 + - COUNT ( * ) FROM tab1 AS cor0
----
240

query II rowsort
SELECT + 20, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 - - col2 IS NULL
----
20
-23
20
-40
20
-58

query I rowsort
SELECT DISTINCT + col2 * 52 * + - 68 FROM tab1
----
-208624
-240448
-339456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) * - col1 AS col1, - 58 col2 FROM tab0
----
-210
-58
-3807
-58
-99
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT + + 7 + - col2 * + 91 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8830
SELECT + + 7 + - col2 * + 91 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT ALL col0 DIV col0 * col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL col0 / col0 * col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + + ( - + 27 ) + + 83 + col2 + + 17 - + + col1 AS col0 FROM tab0 cor0
----
171
39
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8834
SELECT + + 94 * + + 58 * + CAST( NULL AS DECIMAL ) / + 62 FROM tab2 AS cor0 WHERE - 71 / col1 * + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT + + 94 * + + 58 * + CAST ( NULL AS REAL ) / + 62 FROM tab2 AS cor0 WHERE - 71 / col1 * + col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 64 + - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-110
-128
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT + COUNT( * ) + + + 7 AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + COUNT ( * ) + + + 7 AS col0 FROM tab2 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8837
SELECT DISTINCT MIN( ALL + + CAST( ( + + col2 ) AS SIGNED ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT MIN ( ALL + + CAST ( ( + + col2 ) AS INTEGER ) ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT MAX( + 3 ) + + MAX( + col0 ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8838
SELECT MAX ( + 3 ) + + MAX ( + col0 ) AS col2 FROM tab0
----
100

query I rowsort
SELECT col1 + - + col2 * - col1 + + 91 + - col0 AS col0 FROM tab2
----
1269
3184
3969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT col2 + + CAST( + - 69 AS SIGNED ) + + col0 + - col0 FROM tab1
----
-1
-10
27

skipif mysql # not compatible
query I rowsort label-8840
SELECT col2 + + CAST ( + - 69 AS INTEGER ) + + col0 + - col0 FROM tab1
----
-1
-10
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT + SUM( col0 ) + - 95 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + SUM ( col0 ) + - 95 FROM tab0
----
104

query I rowsort
SELECT 62 + + 97 FROM tab2
----
159
159
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8843
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT + MIN( - - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + MIN ( - - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT MIN( col0 ) - COUNT( * ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8845
SELECT MIN ( col0 ) - COUNT ( * ) AS col0 FROM tab1
----
48

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
-23

query I rowsort
SELECT DISTINCT - + 97 AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8848
SELECT - + col0 DIV + col2 + + col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-8848
SELECT - + col0 / + col2 + + col0 FROM tab1 AS cor0
----
51
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT + 82 * CAST( + 38 AS SIGNED ) FROM tab0 cor0
----
3116
3116
3116

skipif mysql # not compatible
query I rowsort label-8849
SELECT + 82 * CAST ( + 38 AS INTEGER ) FROM tab0 cor0
----
3116
3116
3116

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8850
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) >= 86 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8850
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) >= 86 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + ( - + 45 ) * + col2 * - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2569725
-432135
-822150

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT - ( - + MAX( - ( + 37 ) ) ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8852
SELECT - ( - + MAX ( - ( + 37 ) ) ) FROM tab2 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT + col0 * + + 67 * - col1 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT + col0 * + + 67 * - col1 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT col2 AS col1, + col1 AS col2 FROM tab1
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + col2 col0 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT DISTINCT + 84 * 17 FROM tab0
----
1428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 + + col1 col1 FROM tab1 cor0 WHERE - 88 NOT IN ( + col2 * - ( 32 ) )
----
51
60
93

query I rowsort
SELECT col0 * - + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 WHERE col1 * - - 84 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8860
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 WHERE col1 * - - 84 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + - + col0 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT ALL col2 * - + col2 + - CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-1677
-3431
-580

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL col2 * - + col2 + - CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-1677
-3431
-580

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - 21 IS NULL
----

query I rowsort
SELECT + col1 + + + 79 FROM tab0 AS cor0
----
100
160
80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8865
SELECT - + CAST( NULL AS DECIMAL ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8865
SELECT - + CAST ( NULL AS REAL ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT + 92, - col2 AS col2 FROM tab0 AS cor0
----
92
-10
92
-47
92
-99

query I rowsort
SELECT DISTINCT col0 + + 25 + + 89 AS col0 FROM tab0 AS cor0
----
129
201
211

query I rowsort
SELECT ALL + 84 + col2 AS col0 FROM tab2 AS cor0
----
107
124
142

onlyif mysql # aggregate syntax: 
query II rowsort label-8869
SELECT COUNT( * ) col2, + 58 FROM tab1 AS cor0
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8869
SELECT COUNT ( * ) col2, + 58 FROM tab1 AS cor0
----
3
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT DISTINCT - MIN( - col2 ) DIV - COUNT( * ) AS col1 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - MIN ( - col2 ) / - COUNT ( * ) AS col1 FROM tab1
----
-32

query I rowsort
SELECT + + 35 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 96 FROM tab0 AS cor0 WHERE + col1 - col0 + - col2 * + col2 IS NOT NULL
----
-96
-96
-96

query I rowsort
SELECT ALL - col0 * + 40 + 54 * + + 63 FROM tab1 AS cor0
----
-238
1362
2

query I rowsort
SELECT - col2 * - ( - col2 ) * col1 + col1 FROM tab2 AS cor0
----
-123123
-225321
-26928

query I rowsort
SELECT - 24 + - + col0 + + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4971
-5124
-6303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT DISTINCT - 41 FROM tab2 AS cor0 WHERE col2 * + + col2 BETWEEN - - col2 * - col0 AND - CAST( 28 AS SIGNED ) * - col2
----
-41

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT - 41 FROM tab2 AS cor0 WHERE col2 * + + col2 BETWEEN - - col2 * - col0 AND - CAST ( 28 AS INTEGER ) * - col2
----
-41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 / - 96 AND + 1
----

query I rowsort
SELECT DISTINCT + col0 - + + col0 + 43 AS col1 FROM tab2
----
43

query II rowsort
SELECT + col1 AS col2, 27 AS col0 FROM tab2
----
51
27
67
27
77
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL + MIN( + + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + MIN ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8881
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - CAST( NULL AS DECIMAL ) ) * + 42 + - col0 + ( + + col0 ) < NULL AND NOT ( - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8881
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - CAST ( NULL AS REAL ) ) * + 42 + - col0 + ( + + col0 ) < NULL AND NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8882
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - col2 AS DECIMAL ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8882
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - col2 AS REAL ) * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8884
SELECT + MAX( - 27 ) AS col1, - COUNT( * ) * + MIN( DISTINCT - ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - 27 + - col0 + - col1 IS NULL
----
-27
243

skipif mysql # not compatible
query II rowsort label-8884
SELECT + MAX ( - 27 ) AS col1, - COUNT ( * ) * + MIN ( DISTINCT - ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - 27 + - col0 + - col1 IS NULL
----
-27
243

query I rowsort
SELECT ALL - 47 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT + 27 AS col2, - COUNT( * ) col2 FROM tab0, tab0 cor0
----
27
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8886
SELECT + 27 AS col2, - COUNT ( * ) col2 FROM tab0, tab0 cor0
----
27
-9

query I rowsort
SELECT DISTINCT - ( 42 ) AS col0 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL - 22 AS col2 FROM tab1 cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab0 AS cor0 WHERE NOT ( + 94 * + col2 * - ( - + col1 ) ) IS NULL
----
108
96
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 + col0 + + col2, ( + col0 ) FROM tab1 cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL COUNT( * ) + 39 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL COUNT ( * ) + 39 FROM tab0 AS cor0
----
42

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL BETWEEN + + col1 AND + - 83 / col2 * - col0 )
----

query I rowsort
SELECT DISTINCT - col1 + - - col0 AS col1 FROM tab0 cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 * 68 ) < - 72 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 66 + - - 53 AS col1 FROM tab2 cor0
----
-13
-13
-13

query II rowsort
SELECT - col0 + - 11 + 73, 5 + col1 * - + 77 + - col0 AS col2 FROM tab2 AS cor0
----
-13
-5229
-2
-5988
16
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT DISTINCT ( - MAX( - - col2 ) ) + - - 23 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT ( - MAX ( - - col2 ) ) + - - 23 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT + col0 + + - ( + col1 ) FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * 54 * - col0 + 71 col2, col1 FROM tab0
----
-5167
1
-65539
81
-98587
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8901
SELECT - col2 + + - CAST( NULL AS SIGNED ), - 32 AS col2 FROM tab1
----
NULL
-32
NULL
-32
NULL
-32

skipif mysql # not compatible
query II rowsort label-8901
SELECT - col2 + + - CAST ( NULL AS INTEGER ), - 32 AS col2 FROM tab1
----
NULL
-32
NULL
-32
NULL
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + 74 + + col0 col2 FROM tab0
----
101
111
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT - 73 + + COUNT( * ) + MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-128

skipif mysql # not compatible
query I rowsort label-8903
SELECT - 73 + + COUNT ( * ) + MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-128

query II rowsort
SELECT ALL - col1 AS col2, ( + 54 ) FROM tab1
----
-14
54
-47
54
-5
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + ( + COUNT( * ) ) * + 32 AS col2 FROM tab1 WHERE - - col2 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-8905
SELECT + ( + COUNT ( * ) ) * + 32 AS col2 FROM tab1 WHERE - - col2 IS NOT NULL
----
96

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT - 88 * COUNT( * ), - 22 AS col1 FROM tab0 cor0
----
-264
-22

skipif mysql # not compatible
query II rowsort label-8907
SELECT - 88 * COUNT ( * ), - 22 AS col1 FROM tab0 cor0
----
-264
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - - COUNT( * ) * 68 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
204

skipif mysql # not compatible
query I rowsort label-8908
SELECT - - COUNT ( * ) * 68 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
204

query I rowsort
SELECT DISTINCT + - 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-66

query I rowsort
SELECT - + 31 * + 25 FROM tab2 AS cor0 WHERE NOT 76 - - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT SUM( + col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8912
SELECT SUM ( + col2 ) col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT + 22 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT - - col1 * + CAST( NULL AS SIGNED ) + + 96 / + - col2 * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT - - col1 * + CAST ( NULL AS INTEGER ) + + 96 / + - col2 * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT ( - + COUNT( * ) ) DIV - - 7 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT ( - + COUNT ( * ) ) / - - 7 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT DISTINCT 46 DIV col2 * + 66 + + 21 * - col2 + 85 AS col1 FROM tab0 AS cor0
----
-1994
-902
139

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT 46 / col2 * + 66 + + 21 * - col2 + 85 AS col1 FROM tab0 AS cor0
----
-1994
-902
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * + col0 col2 FROM tab2 AS cor0
----
-1050
-644
-896

query I rowsort
SELECT - 17 * - col2 FROM tab1 AS cor0
----
1003
1156
1632

query II rowsort
SELECT + ( 36 ) * + 72 + + + col1 + - - 42 + - col1, - col2 + col2 AS col1 FROM tab0
----
2634
0
2634
0
2634
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - 86 * + 20 AS col1, col1 col2 FROM tab1
----
-146200
5
-156520
47
-87720
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8922
SELECT ALL COUNT( * ), 28 AS col0 FROM tab1
----
3
28

skipif mysql # not compatible
query II rowsort label-8922
SELECT ALL COUNT ( * ), 28 AS col0 FROM tab1
----
3
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT DISTINCT - CAST( - + 82 AS SIGNED ) AS col1 FROM tab1 cor0
----
82

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - CAST ( - + 82 AS INTEGER ) AS col1 FROM tab1 cor0
----
82

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN NULL AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + col1 - 48 col0 FROM tab1 AS cor0
----
-59
-43
-68
-1
-96
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8926
SELECT - col2, col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8926
SELECT - col2, col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT - + col0 + - col2 + + col2 * + - ( - 55 ) + + + col0 - + 46 FROM tab2 AS cor0
----
1196
2114
3086

query I rowsort
SELECT ALL - col2 + 46 AS col1 FROM tab1 AS cor0
----
-13
-22
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab1 cor0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 BETWEEN col1 AND + + 41 + + 26 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 - - 29 - + + col0 + - 3 + + - 67 AS col1 FROM tab2 AS cor0
----
-138
-182
-183

query I rowsort
SELECT ALL col2 * - 77 * col0 * - col1 AS col2 FROM tab0 AS cor0 WHERE NULL < - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL ( - 91 ) + + 97 * - COUNT( * ) + - + MIN( ALL + + col0 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-244

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL ( - 91 ) + + 97 * - COUNT ( * ) + - + MIN ( ALL + + col0 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-244

query I rowsort
SELECT DISTINCT - col0 - 43 AS col2 FROM tab0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT SUM( ALL - - col0 ) + 53 col1 FROM tab1
----
280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT DISTINCT SUM ( ALL - - col0 ) + 53 col1 FROM tab1
----
280

query I rowsort
SELECT - 43 - - col1 AS col0 FROM tab0
----
-22
-42
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 - ( ( + + 26 ) ) col1 FROM tab2
----
71
71
71

query I rowsort
SELECT DISTINCT col1 * + 62 AS col2 FROM tab0
----
1302
5022
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8939
SELECT COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col0 AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8941
SELECT ALL COUNT( DISTINCT + + col0 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8941
SELECT ALL COUNT ( DISTINCT + + col0 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL + CAST( NULL AS SIGNED ) * - MAX( - col1 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + CAST ( NULL AS INTEGER ) * - MAX ( - col1 ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, + 97 col0 FROM tab0 cor0
----
-10
97
-47
97
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT ALL + col2 DIV + + col0 + + 72 + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-24
60

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + col2 / + + col0 + + 72 + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-24
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + - col0
----

query I rowsort
SELECT ALL - + 15 AS col1 FROM tab1 cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE - 19 * 68 >= 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT - CAST( col0 AS SIGNED ) * - col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-8950
SELECT - CAST ( col0 AS INTEGER ) * - col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + 81 * - COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-8951
SELECT + 81 * - COUNT ( * ) FROM tab0
----
-243

query I rowsort
SELECT - 48 * col1 FROM tab1
----
-2256
-240
-672

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + + - 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 + + - col0 + + - 96 * + col0 * + 26 * + col2 AS col2 FROM tab1 WHERE NOT - + 92 * col0 IS NULL
----
-12225363
-12522540
-15451527

query I rowsort
SELECT col1 + - 20 + col0 FROM tab0
----
76
78
88

query I rowsort
SELECT DISTINCT ( + - 77 ) FROM tab0
----
-77

query II rowsort
SELECT ALL - ( 35 ), col1 AS col1 FROM tab0
----
-35
1
-35
21
-35
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL + SUM( - 51 ) + - SUM( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < ( + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + SUM ( - 51 ) + - SUM ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) < ( + - col0 )
----
NULL

query I rowsort
SELECT DISTINCT - + 81 AS col1 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 39 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 - - col1 * + + col2 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + 13 - COUNT( * ) AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8962
SELECT + 13 - COUNT ( * ) AS col2 FROM tab2
----
10

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 93 IS NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 15 col1 FROM tab0
----
-1485
-150
-705

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 73 + - - 8 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT ALL - col2 * + col0 * - col0 + - col0 + 71 + + col0 + CAST( NULL AS SIGNED ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL - col2 * + col0 * - col0 + - col0 + 71 + + col0 + CAST ( NULL AS INTEGER ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * + col2 * - 5 + - - col1 * + 11 * col1 FROM tab1 AS cor0
----
-17130
-43924
1179

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 < NULL
----

query II rowsort
SELECT DISTINCT - - col0 + + ( + col1 ) AS col2, - ( col0 ) AS col2 FROM tab1 AS cor0
----
138
-91
65
-51
90
-85

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 82 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL - col2 - + col2 AS col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT - 66 * 13 - + col1 AS col1 FROM tab1
----
-863
-872
-905

query I rowsort
SELECT ALL - ( - col0 ) * + col0 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT ALL + 26 * - 61 + + 16 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL + 26 * - 61 + + 16 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + MAX( col1 ) * 68 + - COUNT( + col2 ) + - - 18 * - 40 AS col1 FROM tab0 WHERE + col2 + + col2 NOT BETWEEN + col0 AND + 49
----
4785

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + MAX ( col1 ) * 68 + - COUNT ( + col2 ) + - - 18 * - 40 AS col1 FROM tab0 WHERE + col2 + + col2 NOT BETWEEN + col0 AND + 49
----
4785

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + - - 36 * + + 13 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 3 / - col2 <= + 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 53 * + col1 AS col1 FROM tab2
----
2703
3551
4081

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8981
SELECT ALL - col2 * - - CAST( - + col0 AS SIGNED ), col2 AS col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

skipif mysql # not compatible
query II rowsort label-8981
SELECT ALL - col2 * - - CAST ( - + col0 AS INTEGER ), col2 AS col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

query I rowsort
SELECT DISTINCT + col2 * + + col2 + + - 17 * - col0 FROM tab1 AS cor0
----
10083
4926
6171

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT - SUM( - 79 ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - SUM ( - 79 ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - 12 * + - COUNT( * ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8984
SELECT - 12 * + - COUNT ( * ) FROM tab2 AS cor0
----
36

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 88 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col2, 13 AS col1 FROM tab2 AS cor0
----
51
13
67
13
77
13

query I rowsort
SELECT DISTINCT + 42 * - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL MAX( 78 ) col1 FROM tab2, tab1 cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8988
SELECT ALL MAX ( 78 ) col1 FROM tab2, tab1 cor0
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8989
SELECT * FROM tab0 WHERE NOT ( NOT - 98 + + col2 + CAST( - + col0 AS DECIMAL ) NOT IN ( + 88 + 7, col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8989
SELECT * FROM tab0 WHERE NOT ( NOT - 98 + + col2 + CAST ( - + col0 AS REAL ) NOT IN ( + 88 + 7, col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 11 * + col2 * - col0 FROM tab2
----
-11638
-28160
-47850

query II rowsort
SELECT 8, + col1 AS col1 FROM tab1
----
8
14
8
47
8
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8992
SELECT - col2, col2 DIV + + 71 col2 FROM tab1
----
-59
0
-68
0
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8992
SELECT - col2, col2 / + + 71 col2 FROM tab1
----
-59
0
-68
0
-96
1

query I rowsort
SELECT DISTINCT col2 * + col1 + 30 * 64 AS col2 FROM tab0 AS cor0
----
2019
2130
5727

query II rowsort
SELECT - + col1 AS col1, + 54 * + 76 FROM tab1 AS cor0
----
-14
4104
-47
4104
-5
4104

query I rowsort
SELECT DISTINCT - + ( col0 ) + + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * - 35 + - - 91 AS col0 FROM tab0 AS cor0
----
-2744
-644
56

query I rowsort
SELECT - 33 + + 10 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + + col1 + - col2 AS col1 FROM tab0 AS cor0 WHERE + col1 * + 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL + 74 - SUM( + - col0 ) + + COUNT( * ) FROM tab1
----
304

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + 74 - SUM ( + - col0 ) + + COUNT ( * ) FROM tab1
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT - 30 + - COUNT( * ) AS col0 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-9001
SELECT - 30 + - COUNT ( * ) AS col0 FROM tab2
----
-33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL + MAX( - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + MAX ( - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL col2 + + - ( + 45 ) FROM tab1 AS cor0
----
14
23
51

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - COUNT( ALL + + 95 ) * + 12 col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9008
SELECT - COUNT ( ALL + + 95 ) * + 12 col1 FROM tab0 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 col0 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - - 34 IS NOT NULL
----

query I rowsort
SELECT 29 - col1 AS col1 FROM tab0 AS cor0
----
-52
28
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - COUNT( 31 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - COUNT ( 31 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT MIN( ALL + 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9013
SELECT MIN ( ALL + 90 ) FROM tab2
----
90

query I rowsort
SELECT DISTINCT + + col1 * - col1 + col0 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT + col1 * - + col1 + + 58 AS col2 FROM tab1 AS cor0
----
-138
-2151
33

query I rowsort
SELECT ALL - col0 * - - col0 + + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT - col1 * CAST( + col0 AS SIGNED ) + 1 FROM tab0 cor0
----
-1214
-1826
-96

skipif mysql # not compatible
query I rowsort label-9017
SELECT - col1 * CAST ( + col0 AS INTEGER ) + 1 FROM tab0 cor0
----
-1214
-1826
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 8 + col0 col1 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab2, tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + + col0 * - col2 * col2 * - - ( + 73 ) FROM tab0 AS cor0
----
-2418774
-635079
-69400880

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <> + + col1
----

query II rowsort
SELECT ALL col0 + col2, col2 AS col0 FROM tab2 AS cor0
----
104
40
133
58
69
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT - MAX( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT - MAX ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9026
SELECT * FROM tab0 cor0 WHERE NOT 13 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9026
SELECT * FROM tab0 cor0 WHERE NOT 13 >= + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT 76 * - + 37 * col2 * + - col1 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
10927432
75
3298476
46
8660960
64

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + ( + + col1 ) col0 FROM tab1
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT COUNT( * ) * 54 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT COUNT ( * ) * 54 FROM tab2
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT 88 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT 88 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col0 * - col0 * - 77, - col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT ( + col2 ) + - - ( - 84 ) + + + CAST( NULL AS SIGNED ) + + col2 / + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT ( + col2 ) + - - ( - 84 ) + + + CAST ( NULL AS INTEGER ) + + col2 / + - col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - ( + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL - COUNT( * ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9035
SELECT ALL - COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + + ( + - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL + - col0, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT - 39 + - 44 AS col1 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col0 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9040
SELECT COUNT( * ) / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT COUNT ( * ) / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT - MAX( - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT - MAX ( - col1 ) AS col0 FROM tab0
----
1

query II rowsort
SELECT DISTINCT + 51 - + + 9 AS col1, 43 FROM tab2, tab1 cor0
----
42
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL - + MIN( - - 8 ) AS col2 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - + MIN ( - - 8 ) AS col2 FROM tab0 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - - 24 * - MIN( col0 ) AS col1 FROM tab2 AS cor0
----
-1104

skipif mysql # not compatible
query I rowsort label-9044
SELECT - - 24 * - MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
-1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9045
SELECT COUNT( * ) DIV + MAX( - col2 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9045
SELECT COUNT ( * ) / + MAX ( - col2 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 93 * col1 FROM tab0
----
1953
7533
93

query I rowsort
SELECT + 30 FROM tab2 WHERE NOT + 85 IS NULL
----
30
30
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9048
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - + 80 FROM tab2 cor0
----
-80
-80
-80

query II rowsort
SELECT col0, col2 FROM tab1 cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + col1 * col0 >= NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 AS cor0 WHERE 17 + + 70 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT ALL - col2 * - col0 FROM tab0 WHERE NOT NULL BETWEEN - col0 + - 48 * + + col1 AND + + col0 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - col2 * - col0 FROM tab0 WHERE NOT NULL BETWEEN - col0 + - 48 * + + col1 AND + + col0 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( 80 ) AS col0 FROM tab2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT 65 * + + CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9058
SELECT 65 * + + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 WHERE NOT 56 >= - 33 / 85
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT 56 >= - 33 / 85
----
0

query I rowsort
SELECT col1 - + - 25 * col2 FROM tab0
----
1256
2476
271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT - - col1 * + CAST( + 78 AS SIGNED ) * col1 + - - col0 + col2 FROM tab1 AS cor0
----
15435
172461
2094

skipif mysql # not compatible
query I rowsort label-9061
SELECT - - col1 * + CAST ( + 78 AS INTEGER ) * col1 + - - col0 + col2 FROM tab1 AS cor0
----
15435
172461
2094

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL + COUNT( * ) + - 59 * - 45 FROM tab0 AS cor0
----
2658

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + COUNT ( * ) + - 59 * - 45 FROM tab0 AS cor0
----
2658

query II rowsort
SELECT - col2, - col2 FROM tab1 AS cor0 WHERE col2 * col1 IS NOT NULL
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT col1 * + + 77 FROM tab0 AS cor0
----
1617
6237
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + COUNT( ALL - col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9065
SELECT + COUNT ( ALL - col2 ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT 80 AS col1, 76 FROM tab2 AS cor0
----
80
76
80
76
80
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9067
SELECT ALL ( + 47 ) * CAST( + - col1 AS SIGNED ) * 72 DIV - col1 FROM tab2 AS cor0
----
3384
3384
3384

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL ( + 47 ) * CAST ( + - col1 AS INTEGER ) * 72 / - col1 FROM tab2 AS cor0
----
3384
3384
3384

query I rowsort
SELECT 53 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL AND NOT + 61 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL AND NOT + 61 IS NULL
----
0

query II rowsort
SELECT ALL + col0, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 56 ) col2 FROM tab2
----
56

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9073
SELECT ALL col0, + CAST( NULL AS SIGNED ) + col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9073
SELECT ALL col0, + CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT ALL + col0 AS col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - ( - 14 ) * - 88 FROM tab0
----
-1232
-1232
-1232

query I rowsort
SELECT ALL col0 + - col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NULL IS NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT DISTINCT 65 * + col2 * + + CAST( + col1 AS SIGNED ) + - - 78 * - 74 col2 FROM tab2 AS cor0
----
194428
246818
70473

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9078
SELECT DISTINCT 65 * + col2 * + + CAST ( + col1 AS INTEGER ) + - - 78 * - 74 col2 FROM tab2 AS cor0
----
194428
246818
70473

query I rowsort
SELECT ALL - col1 + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
2550
4422
5852

query II rowsort
SELECT + col2 * + col0, - 59 AS col2 FROM tab0
----
705
-59
870
-59
9603
-59

query I rowsort
SELECT DISTINCT - 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

query I rowsort
SELECT DISTINCT + col1 + - - 22 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 95 * + 47 * + col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 55
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9084
SELECT ALL - - col1 DIV CAST( + 21 AS SIGNED ) + + col2 + - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL - - col1 / CAST ( + 21 AS INTEGER ) + + col2 + - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT ALL + MIN( ALL 16 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + MIN ( ALL 16 ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT 92 + + + col1 FROM tab2 AS cor0
----
143
159
169

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT COUNT( * ) + + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + - col2 - col0 AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9089
SELECT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) + 58 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9089
SELECT * FROM tab1 WHERE CAST ( NULL AS REAL ) + 58 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / + ( 89 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL + 53 * + 41 AS col1 FROM tab2
----
2173
2173
2173

query I rowsort
SELECT - 42 + - col1 AS col0 FROM tab2
----
-109
-119
-93

query I rowsort
SELECT + col0 + col1 + - - col2 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab1 WHERE NOT - col0 + + col2 IS NULL
----
46

query I rowsort
SELECT - col2 * - - 44 AS col2 FROM tab0
----
-2068
-4356
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT DISTINCT + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9098
SELECT ALL - - COUNT( * ) DIV - 95 + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - - COUNT ( * ) / - 95 + COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 + + col0 * - col1 + - - col2 FROM tab0 AS cor0
----
-1121
-1807
101

query III rowsort
SELECT * FROM tab0 WHERE NOT 47 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT + ( + col2 ) DIV col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9101
SELECT + ( + col2 ) / col1 AS col0 FROM tab1
----
1
11
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT DISTINCT MIN( + CAST( - col1 AS SIGNED ) ) + 21 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT MIN ( + CAST ( - col1 AS INTEGER ) ) + 21 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 * + 89 AS col2 FROM tab1 WHERE NOT 51 >= 94
----
-5251
-6052
-8544

query I rowsort
SELECT ALL 17 * col0 AS col0 FROM tab0
----
1479
1649
255

query I rowsort
SELECT + col1 - - 61 AS col1 FROM tab0
----
142
62
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND + col2 * + col2
----

query III rowsort
SELECT * FROM tab1 WHERE 44 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col2 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 32 / 31 ) NOT IN ( col2 + + col0 * - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * - col2 + - 2 FROM tab2 WHERE NOT + col0 * 3 + - col0 IS NULL
----
1056
2558
4348

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * + 91 - col2 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= col0 + - 96
----

query I rowsort
SELECT DISTINCT + ( 3 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT 92 + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
89

skipif mysql # not compatible
query I rowsort label-9114
SELECT 92 + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT - 65 / 37 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 65 / 37 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( 34 / + 15 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT - MIN( ALL - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT - MIN ( ALL - col0 ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab0 WHERE - col2 >= NULL
----

query I rowsort
SELECT 82 + - col0 * + 20 FROM tab0
----
-1658
-1858
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT + SUM( ( col1 ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9120
SELECT + SUM ( ( col1 ) ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - 69 + - COUNT( * ) * - COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-9121
SELECT - 69 + - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-60

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab1 WHERE NOT col2 BETWEEN + col1 + col1 * ( + col0 * 51 ) AND 37 * ( col2 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + + ( 80 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + ( 80 ) FROM tab0
----
71

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col2 ) >= - 90
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL col2 * - CAST( + 62 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL col2 * - CAST ( + 62 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

query I rowsort
SELECT ( col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT ALL - 62 * + 53 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to b76c79130dc37a9946512faa0dba3552

query I rowsort
SELECT DISTINCT ( - 58 ) FROM tab0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 92 AND NULL
----

query I rowsort
SELECT - col1 * - 62 + - 65 * + col1 FROM tab1 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + 2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + 2 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) DIV - 79 AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) / - 79 AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT + COUNT( ALL - col0 ) FROM tab0 AS cor0 WHERE - 60 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT + COUNT ( ALL - col0 ) FROM tab0 AS cor0 WHERE - 60 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 * col0 + + col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT DISTINCT + col2 + - 84 FROM tab0 AS cor0
----
-37
-74
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9137
SELECT - + 5 DIV + col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9137
SELECT - + 5 / + col1 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT + ( - 90 ) AS col1 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + - col1 + + 69 * 62 FROM tab1 AS cor0
----
4231
4264
4273

query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab1 AS cor0 WHERE 78 / - 31 = ( NULL )
----

query I rowsort
SELECT ALL col0 + + 70 FROM tab1 cor0
----
121
155
161

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col0 <> col1 * 89
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT COUNT( * ) + + 16 AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT COUNT ( * ) + + 16 AS col1 FROM tab0
----
19

query I rowsort
SELECT + 86 AS col1 FROM tab2 WHERE ( NULL ) >= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT DISTINCT col0 - - CAST( NULL AS SIGNED ) * 23 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT col0 - - CAST ( NULL AS INTEGER ) * 23 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 + 34 FROM tab2
----
-12
-30
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT DISTINCT + MIN( col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT + MIN ( col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - COUNT( * ) - - MAX( col2 ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9148
SELECT - COUNT ( * ) - - MAX ( col2 ) AS col0 FROM tab2
----
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT - CAST( NULL AS SIGNED ) + col1 * col2 FROM tab0 WHERE ( + ( 72 ) ) BETWEEN + ( - ( ( col2 ) ) ) * - col0 AND 96
----

skipif mysql # not compatible
query I rowsort label-9150
SELECT - CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab0 WHERE ( + ( 72 ) ) BETWEEN + ( - ( ( col2 ) ) ) * - col0 AND 96
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 / col2 + - 58 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT SUM( ALL col2 ) FROM tab2 WHERE col0 * + 22 + 86 IN ( + col1 - + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT SUM ( ALL col2 ) FROM tab2 WHERE col0 * + 22 + 86 IN ( + col1 - + 52 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT - CAST( NULL AS SIGNED ) * - 97 + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT - CAST ( NULL AS INTEGER ) * - 97 + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) FROM tab1 WHERE + col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL 70 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL 70 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 99 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE + ( col1 ) * ( + col2 * 91 ) + 53 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9157
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE + ( col1 ) * ( + col2 * 91 ) + 53 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( - ( - 1 ) - 80 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND col2 + 58
----

query I rowsort
SELECT DISTINCT + ( 20 ) FROM tab2 cor0
----
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 98 ) IS NOT NULL
----

query I rowsort
SELECT + - ( + - col2 ) * 17 FROM tab0 AS cor0
----
1683
170
799

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT - col2 DIV - + 58 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT - col2 / - + 58 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT + ( - - SUM( + ( ( - col0 ) ) ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + ( - - SUM ( + ( ( - col0 ) ) ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + col2 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * - 13 col0 FROM tab1
----
-119808
-45253
-60112

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL ( 86 ) * 71 * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
-54954

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL ( 86 ) * 71 * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
-54954

query II rowsort
SELECT col1 * - 32, col2 AS col2 FROM tab1
----
-1504
68
-160
59
-448
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT MIN( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9170
SELECT MIN ( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT - col2 * + 49 + + 51 * - col0 AS col2 FROM tab1 WHERE NOT NULL IN ( 88 )
----

query I rowsort
SELECT ALL + 47 * - 68 AS col2 FROM tab0
----
-3196
-3196
-3196

query I rowsort
SELECT + + 4 * + 56 + - - col0 FROM tab1 AS cor0
----
275
309
315

query I rowsort
SELECT DISTINCT col1 + - 6 FROM tab0 AS cor0
----
-5
15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT COUNT( * ) * 93 * COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
840

skipif mysql # not compatible
query I rowsort label-9175
SELECT COUNT ( * ) * 93 * COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
840

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col1 + + ( col2 ) >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 < ( + - 19 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 90 + col1 AS col2 FROM tab1 AS cor0
----
-43
-76
-85

query I rowsort
SELECT ALL + 2 + - + col0 FROM tab1 cor0
----
-49
-83
-89

query II rowsort
SELECT + col1 * col1, + col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 67 FROM tab0 AS cor0
----
114
166
77

query I rowsort
SELECT + - col1 + - - col2 * + 55 AS col0 FROM tab1 AS cor0
----
3240
3693
5266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - + col2 col1 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT ALL col0 DIV - col0 + - + 79 FROM tab2
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL col0 / - col0 + - + 79 FROM tab2
----
-80
-80
-80

query II rowsort
SELECT + col2, col2 * + col2 FROM tab1 WHERE 85 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 54 * + col1 AS col2 FROM tab1 WHERE NOT ( + - col2 - - + 33 * + col0 * + col2 ) <= ( - col0 )
----
2538
270
756

query II rowsort
SELECT DISTINCT col0, 49 * 11 * - col2 * - 25 + - 31 * 15 AS col1 FROM tab0
----
15
632860
87
134285
97
1333560

query I rowsort
SELECT col0 * + col1 * col1 AS col1 FROM tab1 WHERE - 99 IS NOT NULL
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + + COUNT( ALL + + ( + 49 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9191
SELECT + + COUNT ( ALL + + ( + 49 ) ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 83 + - + col0 IS NOT NULL
----

query I rowsort
SELECT - + 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col1 * + - ( - 41 ) - + 84 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT COUNT( * ) * + 44 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT COUNT ( * ) * + 44 FROM tab2 AS cor0
----
132

query I rowsort
SELECT DISTINCT + - 88 AS col1 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL + MAX( + + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + MAX ( + + col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - 68 * - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
332928
341020
420784

query I rowsort
SELECT - + col1 * + 67 - + + col0 AS col0 FROM tab1 AS cor0
----
-3240
-420
-989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT - - 70 * - 2 * col1 + + col2 + 77 + + - 95 * col2 * CAST( 52 * ( + ( col2 ) ) + ( - col1 + + col2 ) * col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-18710054
-29225015
-55998587

skipif mysql # not compatible
query I rowsort label-9200
SELECT - - 70 * - 2 * col1 + + col2 + 77 + + - 95 * col2 * CAST ( 52 * ( + ( col2 ) ) + ( - col1 + + col2 ) * col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-18710054
-29225015
-55998587

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9201
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 13 + + col0 * + 49 / - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9201
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 13 + + col0 * + 49 / - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT - + 15 FROM tab1 cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 31 AS col1 FROM tab1
----
59
31
68
31
96
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT + + ( col0 ) + - ( col0 + - col1 ) FROM tab2 WHERE NOT 16 BETWEEN + + 97 AND - CAST( col0 AS SIGNED )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9205
SELECT + + ( col0 ) + - ( col0 + - col1 ) FROM tab2 WHERE NOT 16 BETWEEN + + 97 AND - CAST ( col0 AS INTEGER )
----
51
67
77

query I rowsort
SELECT + col2 FROM tab2 WHERE - - col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT DISTINCT col2 / 1 * + CAST( + col1 AS SIGNED ) + - CAST( col0 AS SIGNED ) * 62 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT col2 / 1 * + CAST ( + col1 AS INTEGER ) + - CAST ( col0 AS INTEGER ) * 62 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 63 NOT IN ( col2, col2 + + + col0, - 56 * - - col0 + 42 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT MIN( DISTINCT ( - col0 ) ) + 99 - - - COUNT( * ) - + + COUNT( * ) FROM tab0 cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT MIN ( DISTINCT ( - col0 ) ) + 99 - - - COUNT ( * ) - + + COUNT ( * ) FROM tab0 cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + 65 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + 65 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 74 col2 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT - - COUNT( ALL - 62 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9212
SELECT - - COUNT ( ALL - 62 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 5 >= ( NULL )
----

query I rowsort
SELECT - 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query III rowsort
SELECT * FROM tab2 WHERE - 93 NOT IN ( col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT ALL COUNT( * ) * 68 AS col0 FROM tab1, tab2 AS cor0
----
612

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL COUNT ( * ) * 68 AS col0 FROM tab1, tab2 AS cor0
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT - MIN( - - 34 ) col1 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9217
SELECT - MIN ( - - 34 ) col1 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE col0 + - col1 + - col1 < + 58
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT DISTINCT - 13 * - col2 * + CAST( NULL AS SIGNED ) + + + col1 + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT - 13 * - col2 * + CAST ( NULL AS INTEGER ) + + + col1 + col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9220
SELECT ALL - ( + AVG ( + 97 ) ) - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - ( + AVG ( + 97 ) ) - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9221
SELECT ALL - + 38 + - AVG ( + - col1 ) / + 75 + - + CAST( NULL AS DECIMAL ) * - 3 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - + 38 + - AVG ( + - col1 ) / + 75 + - + CAST ( NULL AS REAL ) * - 3 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + ( + + col2 ) FROM tab0 AS cor0 WHERE - 40 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + 59 FROM tab2 AS cor0
----
-18
-8
8

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT COUNT( * ) + 0 AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9225
SELECT COUNT ( * ) + 0 AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 53 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT 49 * - + col1 * - 60 AS col0 FROM tab2
----
149940
196980
226380

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ( - COUNT( * ) ) * - - 17 AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9230
SELECT ( - COUNT ( * ) ) * - - 17 AS col0 FROM tab1
----
-51

query I rowsort
SELECT - col2 / + 11 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 * 31 AS col2 FROM tab0 AS cor0
----
1457
3069
310

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT COUNT( - + 42 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9233
SELECT COUNT ( - + 42 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT 95 AS col0, + col2 * col0 * + - col0 AS col0 FROM tab1
----
95
-249696
95
-426275
95
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL - + SUM( + ( + + 30 ) ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL - + SUM ( + ( + + 30 ) ) FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + + MIN( - 42 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT + + MIN ( - 42 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT - COUNT( * ) + + 3 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT - COUNT ( * ) + + 3 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT MIN ( col0 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT - 95, col1 FROM tab1 AS cor0
----
-95
14
-95
47
-95
5

query I rowsort
SELECT DISTINCT + col2 * - + 54 AS col2 FROM tab1
----
-3186
-3672
-5184

query I rowsort
SELECT - col2 + - 18 - col0 AS col0 FROM tab2
----
-122
-151
-87

query I rowsort
SELECT DISTINCT - col0 + col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-37
-44
-80

query II rowsort
SELECT DISTINCT ( 14 ) AS col2, - 58 FROM tab0 AS cor0
----
14
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT ALL 82 + - CAST( + 71 AS SIGNED ) FROM tab2 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL 82 + - CAST ( + 71 AS INTEGER ) FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
3404
7488
9375

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 89 / + ( - + ( + 75 ) ) + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9247
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( CAST( NULL AS DECIMAL ) <= - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-9247
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( CAST ( NULL AS REAL ) <= - col0 ) )
----

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 78 * - ( - col1 ) * - col0 * + col2 )
----

query I rowsort
SELECT col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL SUM( DISTINCT - CAST( - - ( - col1 ) AS SIGNED ) ) + - - COUNT( * ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL SUM ( DISTINCT - CAST ( - - ( - col1 ) AS INTEGER ) ) + - - COUNT ( * ) FROM tab2 AS cor0
----
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - - ( + + 56 ) ) >= ( 86 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * + + 62 AS col0 FROM tab0 AS cor0
----
-5394
-6014
-930

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 67 * col0 * + + col2 AS col0 FROM tab0 AS cor0
----
-47154
-58269
-643400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT - 94 DIV + col2 AS col2 FROM tab0 cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT - 94 / + col2 AS col2 FROM tab0 cor0
----
-2
-9
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9257
SELECT + CAST( NULL AS DECIMAL ) * - + MAX( ALL 64 ) * + - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT + CAST ( NULL AS REAL ) * - + MAX ( ALL 64 ) * + - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( ( - - 28 ) ) FROM tab0
----
-28

query I rowsort
SELECT + - col0 * - 44 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL + MAX( ALL + - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + MAX ( ALL + - col1 ) AS col0 FROM tab1
----
-5

query II rowsort
SELECT ALL - ( + + col0 ), col0 * 70 AS col1 FROM tab2
----
-46
3220
-64
4480
-75
5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT - - COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) <> - col2 + 53 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-9262
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) <> - col2 + 53 * - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / + ( 38 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / + ( 38 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT + + col1 DIV + col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + + col1 / + col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 36 * 26 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * + - 44 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT CAST( NULL AS SIGNED ) / ( - col0 ) + + + 14 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT CAST ( NULL AS INTEGER ) / ( - col0 ) + + + 14 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT - col1 DIV + col2 + - + col2 + - + col0 - - - col1 FROM tab2 AS cor0
----
-122
-182
-201

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT - col1 / + col2 + - + col2 + - + col0 - - - col1 FROM tab2 AS cor0
----
-122
-182
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

query I rowsort
SELECT + col1 + + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 84 FROM tab2 cor0 WHERE NOT NULL NOT IN ( 37, col2 )
----

query I rowsort
SELECT + - 57 FROM tab1 cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9273
SELECT DISTINCT MIN( + + col1 ) + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT MIN ( + + col1 ) + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT + - CAST( - MAX( ( + - col0 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9274
SELECT + - CAST ( - MAX ( ( + - col0 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL - + MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - + MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col2 + - 26 AS col0 FROM tab1 AS cor0
----
-122
-85
-94

query I rowsort
SELECT ALL + ( + - ( + - 52 ) ) AS col0 FROM tab2
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 87 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT DISTINCT COUNT( * ) + + + CAST( - - 40 AS SIGNED ) AS col1 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT COUNT ( * ) + + + CAST ( - - 40 AS INTEGER ) AS col1 FROM tab2
----
43

query III rowsort
SELECT * FROM tab2 WHERE - + 62 * + col1 IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - 40 * 61 IS NULL
----

query I rowsort
SELECT DISTINCT + ( ( + + 7 ) ) FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + 79 + + COUNT( * ) FROM tab0 cor0
----
82

skipif mysql # not compatible
query I rowsort label-9283
SELECT + 79 + + COUNT ( * ) FROM tab0 cor0
----
82

query I rowsort
SELECT DISTINCT + 10 + 84 + + + col2 AS col1 FROM tab0 AS cor0
----
104
141
193

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT - MAX( - 37 ) * - 34 FROM tab0 AS cor0
----
-1258

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - MAX ( - 37 ) * - 34 FROM tab0 AS cor0
----
-1258

query I rowsort
SELECT - col0 + + col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT - col2 + - col2 - - - col0 DIV + + 55 FROM tab2 AS cor0
----
-117
-46
-81

skipif mysql # not compatible
query I rowsort label-9287
SELECT - col2 + - col2 - - - col0 / + + 55 FROM tab2 AS cor0
----
-117
-46
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT - 58 + COUNT( * ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - 58 + COUNT ( * ) FROM tab0
----
-55

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) < + 19
----

query II rowsort
SELECT DISTINCT - col0 * col0, 33 AS col2 FROM tab1
----
-2601
33
-7225
33
-8281
33

query I rowsort
SELECT - 50 / - - 36 AS col0 FROM tab0 WHERE + ( col2 ) = + - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT + SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9292
SELECT + SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT 1 - + COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9293
SELECT 1 - + COUNT ( * ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - + 76 * + col2 AS col2 FROM tab1 AS cor0
----
-4484
-5168
-7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 71 col1 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT ALL - col1 * - + col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL + MAX( - + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + MAX ( - + col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL + 96 * + COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL + 96 * + COUNT ( * ) FROM tab2
----
288

query I rowsort
SELECT ALL 28 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9300
SELECT * FROM tab2 WHERE NOT + 89 * + CAST( NULL AS SIGNED ) * - col1 - + col0 * - col2 - 85 BETWEEN col2 AND + col2
----

skipif mysql # not compatible
query III rowsort label-9300
SELECT * FROM tab2 WHERE NOT + 89 * + CAST ( NULL AS INTEGER ) * - col1 - + col0 * - col2 - 85 BETWEEN col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9301
SELECT 88, + COUNT( * ) AS col2 FROM tab2
----
88
3

skipif mysql # not compatible
query II rowsort label-9301
SELECT 88, + COUNT ( * ) AS col2 FROM tab2
----
88
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9302
SELECT + col1 AS col2, col0 * 75 * col0 DIV - 50 + + 50 AS col2 FROM tab0
----
1
-14063
21
-11303
81
-287

skipif mysql # not compatible
query II rowsort label-9302
SELECT + col1 AS col2, col0 * 75 * col0 / - 50 + + 50 AS col2 FROM tab0
----
1
-14063
21
-11303
81
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - col1 * + col1 * + - 66 FROM tab1 AS cor0
----
12936
145794
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT DISTINCT MIN( - col0 ) col2, ( - 34 ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9305
SELECT DISTINCT MIN ( - col0 ) col2, ( - 34 ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

query I rowsort
SELECT DISTINCT 1 FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT + col1 * + ( + col1 ) * col0 FROM tab0
----
38367
97
98415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 60 col0 FROM tab1 AS cor0
----
-119
-128
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 95 - - - ( + 14 ) IN ( + col2 + + - col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - ( + 32 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9310
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - ( + 32 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - ( - - 32 ) FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL COUNT( * ) * + COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9312
SELECT ALL COUNT ( * ) * + COUNT ( * ) col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col1 * + 46 * col0 / - 72 * col2 + + - col1 FROM tab0 WHERE NOT NULL <> + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT DISTINCT col1 * col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT col1 * col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ( - 42 ) + - - ( + - 33 ) FROM tab0
----
-75
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 17 col2, col2 FROM tab2
----
17
23
17
40
17
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 27 col2, col0 FROM tab1 WHERE - - col2 = + col0
----

query I rowsort
SELECT - 43 + + col1 AS col1 FROM tab2
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + 9 + col1 AS col2 FROM tab0
----
10
30
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT CAST( + + col2 AS SIGNED ) + - 84 * + - col2 FROM tab1
----
5015
5780
8160

skipif mysql # not compatible
query I rowsort label-9321
SELECT CAST ( + + col2 AS INTEGER ) + - 84 * + - col2 FROM tab1
----
5015
5780
8160

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 84 + - + 37 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col1 - - + col0 * + col0 + + + 15 - - col2 col0 FROM tab2 AS cor0
----
-192
-777
673

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT SUM( DISTINCT + 58 ) * + + COUNT( * ) FROM tab0 cor0
----
174

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT SUM ( DISTINCT + 58 ) * + + COUNT ( * ) FROM tab0 cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 36 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + col0 * + 67 AS col0 FROM tab0 AS cor0
----
1005
5829
6499

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9329
SELECT MIN( ALL col1 ) * + ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT MIN ( ALL col1 ) * + ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT 70 DIV - - col0 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9330
SELECT 70 / - - col0 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + ( col2 ) * + - 43 AS col0 FROM tab1
----
-2537
-2924
-4128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9332
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 48 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + CAST ( NULL AS REAL ) * 48 FROM tab0
----
NULL

query I rowsort
SELECT + 55 * - + col0 FROM tab0
----
-4785
-5335
-825

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT - - COUNT( * ) AS col1, 87 AS col1 FROM tab0 AS cor0
----
3
87

skipif mysql # not compatible
query II rowsort label-9335
SELECT - - COUNT ( * ) AS col1, 87 AS col1 FROM tab0 AS cor0
----
3
87

query I rowsort
SELECT DISTINCT + col1 + 22 AS col1 FROM tab2 AS cor0
----
73
89
99

query I rowsort
SELECT ALL + col0 + col0 * 31 * + col2 FROM tab1 AS cor0
----
151827
155550
191919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT 78 + - ( + - 73 ) DIV COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT 78 + - ( + - 73 ) / COUNT ( * ) FROM tab0 AS cor0
----
102

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 51 + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - 54 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9340
SELECT - 54 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL + 22 + COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + 22 + COUNT ( * ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL - 2 + - + 80 FROM tab2 AS cor0
----
-82
-82
-82

query II rowsort
SELECT - col0 - + col0, col1 AS col2 FROM tab0
----
-174
21
-194
1
-30
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT + ( + SUM( + CAST( + 0 AS SIGNED ) ) ) - + ( MAX( + col0 ) ) * - COUNT( * ) * + 64 FROM tab0
----
18624

skipif mysql # not compatible
query I rowsort label-9344
SELECT + ( + SUM ( + CAST ( + 0 AS INTEGER ) ) ) - + ( MAX ( + col0 ) ) * - COUNT ( * ) * + 64 FROM tab0
----
18624

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9345
SELECT * FROM tab1 WHERE - col1 NOT IN ( + col0, CAST( NULL AS SIGNED ) * 30, 80, 95 )
----

skipif mysql # not compatible
query III rowsort label-9345
SELECT * FROM tab1 WHERE - col1 NOT IN ( + col0, CAST ( NULL AS INTEGER ) * 30, 80, 95 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9346
SELECT ALL + COUNT( * ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT - + CAST( - 39 AS SIGNED ) * + 53 AS col0 FROM tab0 cor0 WHERE col0 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9347
SELECT - + CAST ( - 39 AS INTEGER ) * + 53 AS col0 FROM tab0 cor0 WHERE col0 * + col2 IS NULL
----

query I rowsort
SELECT 57 + - 18 + - 6 + 4 + - ( - - col1 ) FROM tab0 AS cor0
----
-44
16
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= 84 + + 57 / col1 / - col0
----

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= 84 + + 57 / col1 / - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT - 55 * + - 12 + - col1 + + - col1 FROM tab2 AS cor0
----
506
526
558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9352
SELECT + col0, col1 - col1 + + ( + - CAST( 80 AS SIGNED ) ) FROM tab0 AS cor0
----
15
-80
87
-80
97
-80

skipif mysql # not compatible
query II rowsort label-9352
SELECT + col0, col1 - col1 + + ( + - CAST ( 80 AS INTEGER ) ) FROM tab0 AS cor0
----
15
-80
87
-80
97
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT - + col2 DIV - 70 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT - + col2 / - 70 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / - col0 * - col1 + - 78 - - - col2 * - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - - col2 + - 46 FROM tab2 AS cor0
----
-1219
-3126
-3932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT CAST( + - col1 AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9356
SELECT CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 - + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT ALL + col1 * + CAST( col2 AS SIGNED ) FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + col1 * + CAST ( col2 AS INTEGER ) FROM tab2
----
1173
3080
3886

query II rowsort
SELECT col0, - 93 FROM tab1
----
51
-93
85
-93
91
-93

query II rowsort
SELECT ALL + 29 AS col2, + col0 AS col2 FROM tab1
----
29
51
29
85
29
91

query I rowsort
SELECT col1 * col1 * col2 * + 80 + - - col2 * - + col2 AS col2 FROM tab1
----
114519
12012336
1496064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * - 12 + col0 col1 FROM tab1 AS cor0
----
927
961
967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col2 ) <= col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 29 AND + 77
----

query I rowsort
SELECT + 97 * - ( + - 67 ) FROM tab0
----
6499
6499
6499

query I rowsort
SELECT - ( + - col0 ) * col0 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT DISTINCT COUNT( * ) * 61 + 75 AS col2 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT COUNT ( * ) * 61 + 75 AS col2 FROM tab2 AS cor0
----
258

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT DISTINCT col2 + - ( col0 ) AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-17
-67
-23
-51
-24
-77

query I rowsort
SELECT ALL + + 46 * + 35 + + + 71 + + 61 + - - col2 FROM tab1 AS cor0
----
1801
1810
1838

query II rowsort
SELECT DISTINCT col2 AS col1, col0 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT ( 13 ) * 40 + + ( 60 ) + + col1 FROM tab1 cor0
----
585
594
627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT DISTINCT CAST( - + col1 AS SIGNED ) - + ( ( - - col0 ) ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) - + ( ( - - col0 ) ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - 23 + + COUNT( ALL - col2 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9375
SELECT - 23 + + COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT + col1 + + 29 * + col0 AS col2 FROM tab1 AS cor0
----
1493
2470
2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT + - SUM( DISTINCT + col1 ) col0 FROM tab2 WHERE + - col1 * - CAST( NULL AS SIGNED ) * - + col0 >= + col0 / + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9377
SELECT + - SUM ( DISTINCT + col1 ) col0 FROM tab2 WHERE + - col1 * - CAST ( NULL AS INTEGER ) * - + col0 >= + col0 / + col2
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + - 96 FROM tab0
----
111
183
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9379
SELECT + ( + 4 ) + - COUNT( * ) DIV COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9379
SELECT + ( + 4 ) + - COUNT ( * ) / COUNT ( * ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE - ( + col2 ) + + - 5 + + 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9381
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9382
SELECT ALL + col0 - col1 DIV + col2 AS col1, + 14 FROM tab2
----
44
14
63
14
74
14

skipif mysql # not compatible
query II rowsort label-9382
SELECT ALL + col0 - col1 / + col2 AS col1, + 14 FROM tab2
----
44
14
63
14
74
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT DISTINCT 49 DIV + col2 - ( col0 ) * - - col0 * col0 col0 FROM tab1
----
-132651
-614125
-753571

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9383
SELECT DISTINCT 49 / + col2 - ( col0 ) * - - col0 * col0 col0 FROM tab1
----
-132651
-614125
-753571

query II rowsort
SELECT ALL - 43 AS col2, 2 * + 20 FROM tab0
----
-43
40
-43
40
-43
40

query I rowsort
SELECT DISTINCT + col0 * + col0 + - + ( - col2 ) * + col2 FROM tab1 cor0
----
10706
11817
12905

query I rowsort
SELECT ALL + 46 * 79 * col0 * 24 + col1 AS col1 FROM tab0 AS cor0
----
1308321
7587813
8459953

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT COUNT( * ), + MAX( DISTINCT + 83 ) + + - MIN( + + col1 ) AS col1 FROM tab0 AS cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-9387
SELECT COUNT ( * ), + MAX ( DISTINCT + 83 ) + + - MIN ( + + col1 ) AS col1 FROM tab0 AS cor0
----
3
82

query II rowsort
SELECT DISTINCT - col1 * - col1, - col1 * ( + col0 ) * - - col0 - + col1 AS col2 FROM tab2 AS cor0
----
2601
-107967
4489
-376942
5929
-315469

query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ( col1 ) * + 83 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + 76 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT + col2 DIV ( + col2 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9392
SELECT + col2 / ( + col2 ) AS col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT CAST( + col1 AS SIGNED ) * + col1 + - 37 AS col1 FROM tab0
----
-36
404
6524

skipif mysql # not compatible
query I rowsort label-9393
SELECT CAST ( + col1 AS INTEGER ) * + col1 + - 37 AS col1 FROM tab0
----
-36
404
6524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * col0 col0 FROM tab1
----
3774
6290
6734

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9395
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN ( + - col0 ) AND + CAST( - col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9395
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN ( + - col0 ) AND + CAST ( - col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT + + MAX( DISTINCT - + 83 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9396
SELECT + + MAX ( DISTINCT - + 83 ) FROM tab2 AS cor0
----
-83

query I rowsort
SELECT DISTINCT 75 + + + col1 FROM tab0 AS cor0
----
156
76
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + MIN( ALL + 86 ) AS col2 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9398
SELECT + MIN ( ALL + 86 ) AS col2 FROM tab2 AS cor0
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9399
SELECT DISTINCT - + ( - col0 ) * + - CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9399
SELECT DISTINCT - + ( - col0 ) * + - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT COUNT( * ) + + 52 AS col0 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT COUNT ( * ) + + 52 AS col0 FROM tab2 AS cor0
----
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 54 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT + COUNT( - 19 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + COUNT ( - 19 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9403
SELECT - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) * + col1 - + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 74 + - 72 AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL ( - - col1 ) * + + col2 - - col0 AS col2 FROM tab1
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT DISTINCT + col1 - col1 + + CAST( + ( + + col1 ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + col1 - col1 + + CAST ( + ( + + col1 ) AS INTEGER ) FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL + CAST( + + col1 AS SIGNED ) - col1 * - + 1 AS col0 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + CAST ( + + col1 AS INTEGER ) - col1 * - + 1 AS col0 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT col0 + col2 - + col1 * - CAST( NULL AS SIGNED ) + + 77 + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT col0 + col2 - + col1 * - CAST ( NULL AS INTEGER ) + + 77 + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT MIN( DISTINCT + 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT MIN ( DISTINCT + 52 ) FROM tab1
----
52

query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab1 WHERE NOT NULL = + 92
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9414
SELECT + ( - CAST( NULL AS DECIMAL ) ) + COUNT( * ) * - 45 * + 69 * 52 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9414
SELECT + ( - CAST ( NULL AS REAL ) ) + COUNT ( * ) * - 45 * + 69 * 52 col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 * + + 90 FROM tab2 AS cor0
----
-2070
-3600
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + ( - + MIN( DISTINCT - - col2 ) ) * - 35 FROM tab2 AS cor0
----
805

skipif mysql # not compatible
query I rowsort label-9416
SELECT + ( - + MIN ( DISTINCT - - col2 ) ) * - 35 FROM tab2 AS cor0
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT - - 66 * - MAX( ALL - + 77 ) FROM tab2 cor0
----
5082

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - - 66 * - MAX ( ALL - + 77 ) FROM tab2 cor0
----
5082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col1 ), 69 col1 FROM tab1 AS cor0
----
14
69
47
69
5
69

query I rowsort
SELECT DISTINCT - 3 * col1 AS col2 FROM tab0 AS cor0
----
-243
-3
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT ALL - CAST( 37 AS SIGNED ) * + + 79 FROM tab0
----
-2923
-2923
-2923

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - CAST ( 37 AS INTEGER ) * + + 79 FROM tab0
----
-2923
-2923
-2923

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT ALL + 52 DIV + col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + 52 / + col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - - MAX( + - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9422
SELECT - - MAX ( + - col2 ) FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9423
SELECT col1, - CAST( + - 30 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
30
21
30
81
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9423
SELECT col1, - CAST ( + - 30 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
30
21
30
81
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9424
SELECT ALL + + COUNT( * ) DIV + - 74 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL + + COUNT ( * ) / + - 74 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, - 27 FROM tab2 AS cor0
----
46
-27
64
-27
75
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9426
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col1 * 27 * - + 0 * - - 86 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + - + ( + col1 ) col1 FROM tab1
----
-26
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + MIN( ALL 75 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + MIN ( ALL 75 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - 23 * col2 + + - col2 + col0 + + col0 AS col2 FROM tab1 AS cor0
----
-1246
-1450
-2202

query I rowsort
SELECT DISTINCT - + col1 * + ( - + col1 ) * 51 FROM tab1 AS cor0 WHERE 6 = - col0 + + 55
----

query I rowsort
SELECT DISTINCT - col0 + - col1 * - - 89 FROM tab1 cor0
----
-1297
-4274
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT DISTINCT + MAX( ( - 37 ) ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT + MAX ( ( - 37 ) ) FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT AVG ( ALL - - col2 ) + - - COUNT( + col0 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 32 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT AVG ( ALL - - col2 ) + - - COUNT ( + col0 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 32 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab0 cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9436
SELECT DISTINCT + 0 + + col1 DIV - + col0 AS col1 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + 0 + + col1 / - + col0 AS col1 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT ALL + + col2 + + 53 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - 13 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT - - col0 + - + col0 DIV 64 FROM tab0 AS cor0
----
15
86
96

skipif mysql # not compatible
query I rowsort label-9439
SELECT - - col0 + - + col0 / 64 FROM tab0 AS cor0
----
15
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT + 0 * - - COUNT( * ) + + 20 AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9440
SELECT + 0 * - - COUNT ( * ) + + 20 AS col2 FROM tab0 AS cor0
----
20

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT + 3 * - CAST( NULL AS SIGNED ) + + + col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT + 3 * - CAST ( NULL AS INTEGER ) + + + col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - ( - 68 ) FROM tab2
----
68
68
68

query I rowsort
SELECT ALL col1 - 84 + col1 * - col1 * 3 + + 44 + + - ( + + 84 ) AS col2 FROM tab0
----
-126
-1426
-19726

query I rowsort
SELECT ALL col2 * + 42 AS col1 FROM tab2
----
1680
2436
966

query II rowsort
SELECT col1, - ( + + col1 ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT + - col1 + + ( - 30 ) + - + 59 / + + col0 = col0 / - col2 / - + col0 / - col0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT ( - col0 IS NOT NULL ) ) )
----

query I rowsort
SELECT - - 9 * + + col2 AS col2 FROM tab2 cor0
----
207
360
522

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL - COUNT( + col2 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - COUNT ( + col2 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL - ( + - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - - col2 col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT DISTINCT COUNT( * ) * + - COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT COUNT ( * ) * + - COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9455
SELECT + + COUNT( * ) * - 42, 67 * - 95 col0 FROM tab1 AS cor0
----
-126
-6365

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9455
SELECT + + COUNT ( * ) * - 42, 67 * - 95 col0 FROM tab1 AS cor0
----
-126
-6365

query I rowsort
SELECT DISTINCT + + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + 7 / - - col0 + - col0 + col0 - + col2 + + + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 41 * col0 AS col1 FROM tab0 cor0
----
-3567
-3977
-615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9459
SELECT ALL COUNT( * ) DIV ( + MAX( DISTINCT + col2 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL COUNT ( * ) / ( + MAX ( DISTINCT + col2 ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + + 61 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-9460
SELECT + + 61 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT - - col2 * CAST( + + col0 AS SIGNED ) + col2 + col1 AS col0 FROM tab2 AS cor0
----
1132
2677
4475

skipif mysql # not compatible
query I rowsort label-9461
SELECT - - col2 * CAST ( + + col0 AS INTEGER ) + col2 + col1 AS col0 FROM tab2 AS cor0
----
1132
2677
4475

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - - 2 * - col1 - + col1 + 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9463
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) - 22 >= + col1
----

skipif mysql # not compatible
query III rowsort label-9463
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) - 22 >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT DISTINCT col1 DIV 73 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT col1 / 73 FROM tab2
----
0
1

query I rowsort
SELECT + col0 FROM tab0 WHERE 96 BETWEEN 26 + + + col1 AND - + 98
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col0 + + col1 * + col2 + + 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * + col2 * - + col1 - + 84 * + col1 col1 FROM tab2 AS cor0
----
116809
219827
22746

query I rowsort
SELECT DISTINCT + col0 + + 44 + ( - 28 ) AS col1 FROM tab2 AS cor0
----
62
80
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9469
SELECT + ( - + CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col0, 57 + 83 col0 FROM tab2 AS cor0
----
NULL
140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9469
SELECT + ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col0, 57 + 83 col0 FROM tab2 AS cor0
----
NULL
140

query I rowsort
SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - + 12 + + 81 AS col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL col2 + + - col1 + col1 + 18 AS col1 FROM tab1 AS cor0
----
114
77
86

query I rowsort
SELECT col2 + - 10 + col1 FROM tab0
----
118
21
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT - + 66 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT - col2 + + 6 FROM tab1
----
-53
-62
-90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 68 )
----

query I rowsort
SELECT 86 * + col0 AS col0 FROM tab2 AS cor0
----
3956
5504
6450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9479
SELECT MAX( DISTINCT - col1 ) DIV - MIN( 11 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT MAX ( DISTINCT - col1 ) / - MIN ( 11 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 61 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT MAX( ALL - + 91 ) * + COUNT( 88 ) AS col1 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9481
SELECT MAX ( ALL - + 91 ) * + COUNT ( 88 ) AS col1 FROM tab2 AS cor0
----
-273

query I rowsort
SELECT - + col0 * - col2 - col2 AS col1 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT DISTINCT + - col0 * - 88 AS col0 FROM tab0 AS cor0
----
1320
7656
8536

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT + col2 + + 41 DIV CAST( - 72 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + col2 + + 41 / CAST ( - 72 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT ( + SUM( ALL - 8 ) ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT ( + SUM ( ALL - 8 ) ) FROM tab0
----
-24

query I rowsort
SELECT ( - 22 ) AS col2 FROM tab2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT COUNT( + 22 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9487
SELECT COUNT ( + 22 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 64 + + col1 AS col1 FROM tab2 WHERE NOT - col2 / - 71 * 7 + + col1 * + col1 + col1 BETWEEN + + col2 + + 60 * - - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT CAST( + + 61 AS SIGNED ) AS col2 FROM tab0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-9489
SELECT CAST ( + + 61 AS INTEGER ) AS col2 FROM tab0
----
61
61
61

query I rowsort
SELECT col1 * 35 * - - 13 FROM tab2
----
23205
30485
35035

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT MAX( - ( 48 ) ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9491
SELECT MAX ( - ( 48 ) ) AS col0 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT MAX( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-9492
SELECT MAX ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

query I rowsort
SELECT DISTINCT + col0 * + + 53 AS col0 FROM tab2 AS cor0
----
2438
3392
3975

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 10 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + MIN( 53 ) * 35 * - + 31 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-57505

skipif mysql # not compatible
query I rowsort label-9496
SELECT + MIN ( 53 ) * 35 * - + 31 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-57505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL BETWEEN col2 AND - col1
----

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL BETWEEN col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL + - COUNT( DISTINCT - 35 ) + ( - - 11 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + - COUNT ( DISTINCT - 35 ) + ( - - 11 ) FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT ALL + 8 DIV - - MAX( col1 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + 8 / - - MAX ( col1 ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + 45 AS col0 FROM tab1 AS cor0
----
104
113
141

query I rowsort
SELECT ALL - 15 * - + ( col2 ) + + 86 - - 71 FROM tab1 cor0
----
1042
1177
1597

query I rowsort
SELECT DISTINCT - col1 + - 49 AS col2 FROM tab0 AS cor0
----
-130
-50
-70

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - + col0 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT + col2 + - 4 + - ( - col2 ) DIV + col0 FROM tab2
----
19
36
54

skipif mysql # not compatible
query I rowsort label-9505
SELECT + col2 + - 4 + - ( - col2 ) / + col0 FROM tab2
----
19
36
54

query I rowsort
SELECT ALL - + 41 FROM tab2, tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - col1 col0 FROM tab0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT DISTINCT col2 DIV 88 * col2 FROM tab1
----
0
96

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT col2 / 88 * col2 FROM tab1
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + SUM( - col0 ) + - + MIN( - col1 ) AS col2 FROM tab0
----
-118

skipif mysql # not compatible
query I rowsort label-9509
SELECT + SUM ( - col0 ) + - + MIN ( - col1 ) AS col2 FROM tab0
----
-118

query I rowsort
SELECT 66 * + 0 + - col0 - col1 * col2 * - 81 AS col2 FROM tab1
----
108813
23810
258785

query II rowsort
SELECT ALL + col2 + - col2 AS col1, col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT DISTINCT col0 * col0 + + 57 AS col1 FROM tab0 AS cor0
----
282
7626
9466

query I rowsort
SELECT ALL - 14 + + - col0 AS col2 FROM tab0 cor0
----
-101
-111
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9514
SELECT DISTINCT - CAST( 29 AS SIGNED ) DIV - - col1 + + + col0 FROM tab1
----
49
80
91

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT - CAST ( 29 AS INTEGER ) / - - col1 + + + col0 FROM tab1
----
49
80
91

query I rowsort
SELECT + 65 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT DISTINCT - CAST( + 30 AS SIGNED ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - CAST ( + 30 AS INTEGER ) FROM tab2
----
-30

query I rowsort
SELECT ALL 51 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
51
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2, + col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9520
SELECT DISTINCT - col1 col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9520
SELECT DISTINCT - col1 col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT + + COUNT( col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9522
SELECT + + COUNT ( col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + SUM( DISTINCT + + ( + + 7 ) ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9523
SELECT + SUM ( DISTINCT + + ( + + 7 ) ) FROM tab1 AS cor0
----
7

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL ( - - ( - + COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL ( - - ( - + COUNT ( * ) ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT col1 * - col2 * + - col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT - 47 / - - col2 * 98 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND 29
----

query II rowsort
SELECT DISTINCT - col2 * - 30, 90 AS col1 FROM tab0 AS cor0
----
1410
90
2970
90
300
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + 74 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 74 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + ( - + col0 ) FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL 96 * - + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
864

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL 96 * - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
864

query II rowsort
SELECT ALL col2 AS col1, + 75 * - - 72 * - 80 * - col0 FROM tab1 AS cor0
----
59
36720000
68
39312000
96
22032000

query I rowsort
SELECT ALL - + 51 + + 46 AS col0 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - 7 + + 47 * + 85 + + + 48 + + col0 FROM tab2 AS cor0
----
4082
4100
4111

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 = 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE - col0 * 0 IS NULL
----

query I rowsort
SELECT 5 * col2 AS col2 FROM tab1
----
295
340
480

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT MIN( - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT MIN ( - col0 ) AS col1 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * - col2 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT + col2 + - col0 * + + 26 * + + CAST( NULL AS SIGNED ) + 46 * 84 / - 72 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9541
SELECT + col2 + - col0 * + + 26 * + + CAST ( NULL AS INTEGER ) + 46 * 84 / - 72 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9542
SELECT col0 DIV col0, 40 + col2 AS col0 FROM tab0 AS cor0 WHERE + 25 BETWEEN + col2 + - + 48 AND + + col0
----
1
50

skipif mysql # not compatible
query II rowsort label-9542
SELECT col0 / col0, 40 + col2 AS col0 FROM tab0 AS cor0 WHERE + 25 BETWEEN + col2 + - + 48 AND + + col0
----
1
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 - - 55 * - col0 AS col2 FROM tab1 AS cor0
----
-2856
-4760
-5096

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * - - 49 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT - 63 * - MIN( DISTINCT + col1 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9639

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - 63 * - MIN ( DISTINCT + col1 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9639

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL MIN( ALL + 11 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL MIN ( ALL + 11 ) FROM tab0 AS cor0
----
11

query I rowsort
SELECT DISTINCT + col0 * col1 - + col2 - + - 82 - + col1 + + col2 / col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > 51 / col2
----

query I rowsort
SELECT ALL - 13 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-13
-13
-13

query I rowsort
SELECT col0 / 58 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - 7 FROM tab1 WHERE 77 IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( NULL BETWEEN ( NULL ) AND - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 WHERE NULL BETWEEN col0 + - + col2 * - + 63 / + col1 + + col1 + + - ( - col2 ) * - - col0 * - col2 / col0 * col1 * - + col1 * - 54 + col1 * 9 AND - col0
----

query I rowsort
SELECT DISTINCT 47 * - + col0 AS col0 FROM tab0
----
-4089
-4559
-705

query II rowsort
SELECT col2, - ( + ( col0 ) ) * + col1 AS col0 FROM tab1
----
59
-425
68
-4277
96
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-9558
SELECT DISTINCT - ( - MAX( + 10 ) ), 4 AS col2 FROM tab2
----
10
4

skipif mysql # not compatible
query II rowsort label-9558
SELECT DISTINCT - ( - MAX ( + 10 ) ), 4 AS col2 FROM tab2
----
10
4

query II rowsort
SELECT ALL + col2 AS col0, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT ALL - CAST( 5 AS SIGNED ) + + col0 FROM tab1 WHERE - - col0 <> + col0
----

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - CAST ( 5 AS INTEGER ) + + col0 FROM tab1 WHERE - - col0 <> + col0
----

query I rowsort
SELECT ALL 21 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + col2 + 30 * + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + col2 ) BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - SUM( DISTINCT + 95 ) AS col0 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-9564
SELECT - SUM ( DISTINCT + 95 ) AS col0 FROM tab0
----
-95

query I rowsort
SELECT ALL - col1 + col2 * + 55 AS col1 FROM tab2
----
1214
2123
3123

query III rowsort
SELECT * FROM tab2 WHERE - 42 = ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - 13 ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL SUM( col0 ) * 47 AS col0 FROM tab2
----
8695

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL SUM ( col0 ) * 47 AS col0 FROM tab2
----
8695

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + COUNT( * ) FROM tab0 WHERE ( 16 ) > col2
----
1

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COUNT ( * ) FROM tab0 WHERE ( 16 ) > col2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - col2
----

query I rowsort
SELECT 70 * col0 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT 39 * - col2 AS col1 FROM tab0
----
-1833
-3861
-390

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 91 + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT ( - CAST( NULL AS SIGNED ) ) * AVG ( ALL + 9 * - col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT ( - CAST ( NULL AS INTEGER ) ) * AVG ( ALL + 9 * - col2 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 42 * col2 AS col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT + col2 * CAST( - 66 AS SIGNED ) col1 FROM tab2
----
-1518
-2640
-3828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9576
SELECT + col2 * CAST ( - 66 AS INTEGER ) col1 FROM tab2
----
-1518
-2640
-3828

query I rowsort
SELECT DISTINCT + 13 + col1 * col2 FROM tab2
----
1186
3093
3899

query I rowsort
SELECT 94 * 63 FROM tab0
----
5922
5922
5922

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT DISTINCT + ( AVG ( ALL + ( + 95 ) ) ) / CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9580
SELECT DISTINCT + ( AVG ( ALL + ( + 95 ) ) ) / CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL - ( 7 ) - 57 col0 FROM tab2 WHERE NULL BETWEEN - CAST( - col2 AS SIGNED ) + - col0 * col0 AND ( 25 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9581
SELECT ALL - ( 7 ) - 57 col0 FROM tab2 WHERE NULL BETWEEN - CAST ( - col2 AS INTEGER ) + - col0 * col0 AND ( 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL + COUNT( * ) * 86 AS col1 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + COUNT ( * ) * 86 AS col1 FROM tab1
----
258

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT + 67 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 67 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT + col1 + + CAST( NULL AS SIGNED ) / 26 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT + col1 + + CAST ( NULL AS INTEGER ) / 26 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT ALL CAST( 48 AS SIGNED ) AS col2 FROM tab1 WHERE NOT col0 = col0 / + 97
----
48
48
48

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL CAST ( 48 AS INTEGER ) AS col2 FROM tab1 WHERE NOT col0 = col0 / + 97
----
48
48
48

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( - col2 ) ) BETWEEN 58 AND 81 / 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + col2 + 24
----

query I rowsort
SELECT col0 - 59 FROM tab1 AS cor0
----
-8
26
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 NOT IN ( + col2 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 21 + col1 AS col2 FROM tab0
----
-20
0
60

query I rowsort
SELECT + col1 * 77 - col1 * - 12 AS col0 FROM tab0
----
1869
7209
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT - 58 / col0 + 95 AS col0 FROM tab0 WHERE ( - 48 ) + CAST( NULL AS SIGNED ) <= 17
----

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT - 58 / col0 + 95 AS col0 FROM tab0 WHERE ( - 48 ) + CAST ( NULL AS INTEGER ) <= 17
----

query I rowsort
SELECT ALL col2 * 78 AS col2 FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT MIN( - col0 ) FROM tab0 AS cor0 WHERE NOT ( + 89 ) NOT IN ( + col2 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( + 89 ) NOT IN ( + col2 + col2 )
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * 13 AS col0 FROM tab0 AS cor0
----
-1053
-13
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT ALL + col0 DIV ( col0 + col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + col0 / ( col0 + col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT - ( + col1 ) DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT - ( + col1 ) / + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT 35 DIV col1 col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9601
SELECT 35 / col1 col1 FROM tab1
----
0
2
7

query I rowsort
SELECT DISTINCT + 59 * + - col1 FROM tab2
----
-3009
-3953
-4543

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= 50
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < 64
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 77 / - ( - 28 ) >= col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> ( 96 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) BETWEEN ( col2 ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT - 86 + + COUNT( * ) - 61 AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT - 86 + + COUNT ( * ) - 61 AS col0 FROM tab2 AS cor0
----
-144

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - col2 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 81 * - col1 FROM tab0 AS cor0
----
1701
6561
81

query I rowsort
SELECT + + 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9613
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN - 67 AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9613
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN - 67 AND ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT 64 AS col2, - col2 + + - col1 + - col0 FROM tab1 AS cor0
----
64
-149
64
-161
64
-206

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / - col1 + 20 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT col2 DIV 91 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9616
SELECT col2 / 91 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - COUNT( * ) * - COUNT( * ) + SUM( - col1 ) col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9618
SELECT - COUNT ( * ) * - COUNT ( * ) + SUM ( - col1 ) col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + col2 + + - 40 AS col2 FROM tab1 AS cor0
----
19
28
56

query I rowsort
SELECT ALL + + 9 + - - 27 AS col1 FROM tab1 AS cor0
----
36
36
36

query II rowsort
SELECT col1, - col1 AS col0 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - 90 * - + 46 + col2 * - 94 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 65 + + 65 * - + 78 AS col1 FROM tab2
----
-5005
-5005
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - ( + 66 ) - + SUM( DISTINCT - - col1 ) AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-9624
SELECT - ( + 66 ) - + SUM ( DISTINCT - - col1 ) AS col2 FROM tab1
----
-132

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) BETWEEN + col0 AND ( NULL ) AND NOT col0 + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - 55 * + 7 AS col1, + col0 * col2 FROM tab2
----
-385
1058
-385
2560
-385
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT SUM( DISTINCT + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT SUM ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT + 30 DIV - ( ( + MIN( + 71 ) ) ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9628
SELECT + 30 / - ( ( + MIN ( + 71 ) ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * + col1 * + col1 AS col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ALL 35 * + + col1 AS col1 FROM tab0
----
2835
35
735

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT - 57 * 87 + + col0 + 12 DIV 77 * 14 FROM tab1 AS cor0
----
-4868
-4874
-4908

skipif mysql # not compatible
query I rowsort label-9631
SELECT - 57 * 87 + + col0 + 12 / 77 * 14 FROM tab1 AS cor0
----
-4868
-4874
-4908

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT DISTINCT col0 DIV + + 99 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT col0 / + + 99 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9633
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - + col0 + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9633
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9634
SELECT - COUNT( * ) col1, 19 AS col1 FROM tab2 AS cor0
----
-3
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9634
SELECT - COUNT ( * ) col1, 19 AS col1 FROM tab2 AS cor0
----
-3
19

query I rowsort
SELECT 8 * col0 + + - col2 FROM tab2 AS cor0
----
345
472
542

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT DISTINCT col2 DIV + - 37 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT col2 / + - 37 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT ALL col1 + + 30 FROM tab0 AS cor0 WHERE NOT ( col1 * 12 + col1 ) IS NULL
----
111
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT MIN( - 84 ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT MIN ( - 84 ) AS col1 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT MIN( ALL - ( + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT MIN ( ALL - ( + col1 ) ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9640
SELECT + 87 DIV COUNT( * ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-9640
SELECT + 87 / COUNT ( * ) AS col0 FROM tab2
----
29

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - col1 < + 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT 4 + - + ( - + SUM( DISTINCT + 52 ) ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9642
SELECT 4 + - + ( - + SUM ( DISTINCT + 52 ) ) FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL ( - COUNT( * ) ) * + + 68 AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL ( - COUNT ( * ) ) * + + 68 AS col0 FROM tab0
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT ALL 53 DIV - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL 53 / - col2 FROM tab2
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9646
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 37 / - CAST( - 24 AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9646
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 37 / - CAST ( - 24 AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + - COUNT( - 0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9647
SELECT + - COUNT ( - 0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT DISTINCT - col1 + - col0 - - - 14 + + + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-163
-175
-220

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT - col1 + - col0 - - - 14 + + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-163
-175
-220

query I rowsort
SELECT ALL + col1 + + col2 + - 86 AS col0 FROM tab1 AS cor0
----
-22
24
29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * 61 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col1 col1 FROM tab2 WHERE + + col0 BETWEEN NULL AND - + 5 * + - 85
----

query I rowsort
SELECT col1 + + 62 + col1 + col1 * + 66 * + 20 FROM tab2
----
101856
67484
88636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT ALL CAST( - + ( + ( - - col0 ) ) AS SIGNED ) + 39 FROM tab1 AS cor0
----
-12
-46
-52

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL CAST ( - + ( + ( - - col0 ) ) AS INTEGER ) + 39 FROM tab1 AS cor0
----
-12
-46
-52

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * + 21 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL + 41 + - COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + 41 + - COUNT ( * ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT + col0 + col0 * + col2 + + 58 FROM tab1 cor0
----
5005
5158
6337

query I rowsort
SELECT ALL 93 + 1 AS col1 FROM tab1 WHERE NULL > ( - col0 - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9658
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9658
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 * + 57 FROM tab1
----
2907
4845
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT + 43 + - COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN col2 AND col0 / 82 / - col2 + - 81
----
43

skipif mysql # not compatible
query I rowsort label-9660
SELECT + 43 + - COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN col2 AND col0 / 82 / - col2 + - 81
----
43

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL = 1
----

query III rowsort
SELECT * FROM tab1 WHERE + 77 * + 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab0 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11 * col2 - - - ( + col0 ) AS col1, + col1 col2 FROM tab1 AS cor0
----
1005
14
564
5
657
47

query I rowsort
SELECT DISTINCT - + ( + 27 ) AS col2 FROM tab1 AS cor0
----
-27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 6 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col1 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT DISTINCT + - COUNT( * ) + 12 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT + - COUNT ( * ) + 12 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + COUNT( * ) * 24 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + COUNT ( * ) * 24 FROM tab0 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + col0 * ( + col2 ) )
----

query II rowsort
SELECT ALL - col0, col1 AS col1 FROM tab1 AS cor0 WHERE + col0 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL + COUNT( * ) * - 16 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + COUNT ( * ) * - 16 FROM tab2
----
-48

query I rowsort
SELECT DISTINCT - 88 * - 61 AS col2 FROM tab2
----
5368

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT COUNT( ALL - 43 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9676
SELECT COUNT ( ALL - 43 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 41 ) BETWEEN col2 AND - col2 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT ALL - ( + col1 ) DIV - col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - ( + col1 ) / - col2 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT + 60 * col2 FROM tab2 WHERE col1 BETWEEN NULL AND col1 + + + col2
----

query II rowsort
SELECT - col1 AS col2, col2 + col1 + 47 AS col2 FROM tab2 AS cor0
----
-51
121
-67
172
-77
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT COUNT( + 8 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT COUNT ( + 8 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - 94 + + SUM( ALL - - col1 ) FROM tab2 cor0
----
101

skipif mysql # not compatible
query I rowsort label-9682
SELECT - 94 + + SUM ( ALL - - col1 ) FROM tab2 cor0
----
101

query I rowsort
SELECT - col1 + + + 22 + + 9 FROM tab0 AS cor0
----
-50
10
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT + CAST( NULL AS SIGNED ) + - + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT + CAST ( NULL AS INTEGER ) + - + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT DISTINCT - col2 + - col1 DIV - + col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - col2 + - col1 / - + col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 38, 20 )
----

query II rowsort
SELECT + 36, 2 AS col1 FROM tab1 AS cor0
----
36
2
36
2
36
2

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - col1 + - 8 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - + 82 * - col1 AS col0 FROM tab2 AS cor0
----
4182
5494
6314

query I rowsort
SELECT DISTINCT - - 93 + + col2 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # aggregate syntax: 
query II rowsort label-9691
SELECT + - COUNT( * ), + ( + 46 ) AS col0 FROM tab2 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-9691
SELECT + - COUNT ( * ), + ( + 46 ) AS col0 FROM tab2 AS cor0
----
-3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT - ( + MIN( DISTINCT + - col2 ) ) * + 85 col2 FROM tab2 AS cor0
----
4930

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9692
SELECT - ( + MIN ( DISTINCT + - col2 ) ) * + 85 col2 FROM tab2 AS cor0
----
4930

query I rowsort
SELECT DISTINCT - 54 + - + 71 FROM tab0 AS cor0
----
-125

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN col2 / + + 17 AND ( - col1 + 71 )
----

query I rowsort
SELECT DISTINCT + ( col2 ) + col2 AS col2 FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT ALL + 87 DIV - col2 AS col0 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + 87 / - col2 AS col0 FROM tab0
----
-1
-8
0

query I rowsort
SELECT + ( + 42 ) * + col1 AS col0 FROM tab0
----
3402
42
882

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 56 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + - col2 * 17 + + - CAST( + ( + 51 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9699
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + - col2 * 17 + + - CAST ( + ( + 51 ) AS INTEGER )
----

query I rowsort
SELECT ALL - - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT + - ( + 64 ) FROM tab0 AS cor0
----
-64
-64
-64

query II rowsort
SELECT ALL - col2 AS col0, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query II rowsort
SELECT - col0 AS col0, ( - - col0 ) AS col2 FROM tab0 cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - 47 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col2 AND NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + - MIN( + - col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9706
SELECT + - MIN ( + - col1 ) FROM tab2 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - col2 * col2 = NULL
----

query I rowsort
SELECT ALL + + 76 * + col0 * 95 FROM tab1 cor0
----
368220
613700
657020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + - col0 col1 FROM tab2 AS cor0
----
19
30
48

query I rowsort
SELECT - 47 + + - col1 FROM tab2
----
-114
-124
-98

query I rowsort
SELECT ALL 60 + + col0 AS col1 FROM tab1
----
111
145
151

query I rowsort
SELECT ALL - - col2 * - 19 FROM tab0 WHERE NOT + + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * - col1 + - col1 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - COUNT( * ) + + MAX( + - 43 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-9714
SELECT - COUNT ( * ) + + MAX ( + - 43 ) FROM tab1
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col0 col2 FROM tab0
----
720
957
9700

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( 58 * col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT ALL ( 85 ) * - COUNT( * ) + - 62, 11 AS col1 FROM tab2
----
-317
11

skipif mysql # not compatible
query II rowsort label-9717
SELECT ALL ( 85 ) * - COUNT ( * ) + - 62, 11 AS col1 FROM tab2
----
-317
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT MAX( ALL + col2 ) + + - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9718
SELECT MAX ( ALL + col2 ) + + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL 64 + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT 32 * - - 78 + - - COUNT( * ) AS col0 FROM tab0
----
2499

skipif mysql # not compatible
query I rowsort label-9720
SELECT 32 * - - 78 + - - COUNT ( * ) AS col0 FROM tab0
----
2499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - + col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT DISTINCT COUNT( * ) + - + SUM( ALL 30 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT COUNT ( * ) + - + SUM ( ALL 30 ) FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL 64 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL 64 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
67

query I rowsort
SELECT ALL - col2 + + - col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT + COUNT( * ) + - - 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
106

skipif mysql # not compatible
query I rowsort label-9725
SELECT + COUNT ( * ) + - - 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9726
SELECT ALL * FROM tab0 WHERE NOT CAST( - 70 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9726
SELECT ALL * FROM tab0 WHERE NOT CAST ( - 70 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + + 22 * - + 43 FROM tab0 cor0
----
-946

query I rowsort
SELECT - 5 + + - col2 FROM tab2 AS cor0
----
-28
-45
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 72 col1 FROM tab1 AS cor0 WHERE col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT ALL + CAST( NULL AS SIGNED ) * + 11 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + CAST ( NULL AS INTEGER ) * + 11 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT - col1 DIV 88 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9733
SELECT - col1 / 88 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 72 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
0

query II rowsort
SELECT + col1 AS col2, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9737
SELECT + col2, - 60 + ( + 11 ) / 48 + + 1 - - 66 - + col2 / - + 72 * + col0 * - CAST( NULL AS SIGNED ) + + - col0 * - CAST( col0 AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9737
SELECT + col2, - 60 + ( + 11 ) / 48 + + 1 - - 66 - + col2 / - + 72 * + col0 * - CAST ( NULL AS INTEGER ) + + - col0 * - CAST ( col0 AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT 65 * - + 37 AS col1 FROM tab0
----
-2405

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL MIN( ALL + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL MIN ( ALL + col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + col2
----

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query II rowsort
SELECT ALL 78, + col0 AS col2 FROM tab1 AS cor0
----
78
51
78
85
78
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * 14 FROM tab1
----
-196
-658
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9746
SELECT + CAST( NULL AS SIGNED ) + col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9746
SELECT + CAST ( NULL AS INTEGER ) + col1, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT 91 + + - 92 * + 96 * - COUNT( * ) FROM tab2 AS cor0
----
26587

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT 91 + + - 92 * + 96 * - COUNT ( * ) FROM tab2 AS cor0
----
26587

query I rowsort
SELECT ALL - + ( + - 16 ) + - - 7 + + 74 FROM tab1 AS cor0 WHERE - col0 = col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 + - ( - 82 ) col0 FROM tab1 AS cor0
----
103
136
164

query I rowsort
SELECT + + 56 AS col0 FROM tab1 cor0
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT DISTINCT - - ( + col2 ) + col0 + - col0 * - + col0 DIV + + col0 AS col0 FROM tab0 AS cor0
----
184
293
77

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - - ( + col2 ) + col0 + - col0 * - + col0 / + + col0 AS col0 FROM tab0 AS cor0
----
184
293
77

onlyif mysql # DIV for integer division: 
query II rowsort label-9752
SELECT - col0 * col1 DIV + col2 AS col1, - 91 DIV col0 FROM tab0 AS cor0
----
-182
-1
-25
-6
0
0

skipif mysql # not compatible
query II rowsort label-9752
SELECT - col0 * col1 / + col2 AS col1, - 91 / col0 FROM tab0 AS cor0
----
-182
-1
-25
-6
0
0

query I rowsort
SELECT ALL - 22 FROM tab2 WHERE NOT - + 69 = + 32 * - col2
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9754
SELECT DISTINCT + col0 AS col2, col1 + CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9754
SELECT DISTINCT + col0 AS col2, col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT - col1, + 2 + + + col1 * + col2 AS col0 FROM tab0
----
-1
101
-21
212
-81
3809

query I rowsort
SELECT - ( col0 ) * - 14 + + ( + col0 ) - + + col1 + - col2 AS col1 FROM tab2
----
1000
616
843

query I rowsort
SELECT 65 + - 93 FROM tab1
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + - col2 col0 FROM tab2 cor0
----
-13
22
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT 76 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT 76 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 + - - col2 col2 FROM tab2 AS cor0
----
22
40
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9761
SELECT DISTINCT + COUNT( * ) DIV + 61 + - MAX( DISTINCT col1 ) - + MIN( DISTINCT - 99 ) AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + COUNT ( * ) / + 61 + - MAX ( DISTINCT col1 ) - + MIN ( DISTINCT - 99 ) AS col2 FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9762
SELECT DISTINCT 35 - + col1 * + CAST( NULL AS DECIMAL ) * - 80 / + col1 * - 54 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT 35 - + col1 * + CAST ( NULL AS REAL ) * - 80 / + col1 * - 54 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT col2 DIV - - col0 - - col0 + + col1 AS col0 FROM tab1 AS cor0
----
138
66
90

skipif mysql # not compatible
query I rowsort label-9765
SELECT col2 / - - col0 - - col0 + + col1 AS col0 FROM tab1 AS cor0
----
138
66
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT + ( - CAST( 82 AS SIGNED ) ) - + ( col1 ) FROM tab2 AS cor0
----
-133
-149
-159

skipif mysql # not compatible
query I rowsort label-9766
SELECT + ( - CAST ( 82 AS INTEGER ) ) - + ( col1 ) FROM tab2 AS cor0
----
-133
-149
-159

query I rowsort
SELECT - ( + 74 ) AS col0 FROM tab0 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col2 col1 FROM tab0 cor0 WHERE NOT ( - 6 IS NULL )
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - col0 AND col1 * col2
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - col0 AND col1 * col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9770
SELECT - COUNT( * ) DIV + 11 + 79 * + 43 AS col0, 12 + + COUNT( * ) FROM tab1 AS cor0
----
3397
15

skipif mysql # not compatible
query II rowsort label-9770
SELECT - COUNT ( * ) / + 11 + 79 * + 43 AS col0, 12 + + COUNT ( * ) FROM tab1 AS cor0
----
3397
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL 49 * + COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL 49 * + COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT ALL col1 * - 74 AS col2 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT 38 * + 7 FROM tab0
----
266
266
266

query II rowsort
SELECT col2, 22 FROM tab0
----
10
22
47
22
99
22

query II rowsort
SELECT DISTINCT 67 AS col1, + col2 FROM tab0
----
67
10
67
47
67
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 19 * - - 33 AS col0 FROM tab2 cor0
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT DISTINCT - SUM( - 67 ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT - SUM ( - 67 ) FROM tab0 AS cor0
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT ALL COUNT( * ) * - 84 DIV + - COUNT( * ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL COUNT ( * ) * - 84 / + - COUNT ( * ) AS col2 FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT + CAST( NULL AS SIGNED ) / + 95 * - + 4 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT + CAST ( NULL AS INTEGER ) / + 95 * - + 4 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col2 AS col0, - col2 * + col0 AS col1 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

query I rowsort
SELECT ALL + col2 + + - col0 + - 18 FROM tab0 AS cor0
----
-16
-95
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT 96 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9784
SELECT 96 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT COUNT( * ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9785
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT DISTINCT + col0 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT + col0 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL - SUM( ALL + + col2 ) * ( - 99 ) + + - 55 AS col0 FROM tab1 cor0
----
22022

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - SUM ( ALL + + col2 ) * ( - 99 ) + + - 55 AS col0 FROM tab1 cor0
----
22022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT - col2 * ( 18 ) FROM tab2 AS cor0 WHERE CAST( - ( - 21 ) AS SIGNED ) IS NOT NULL
----
-1044
-414
-720

skipif mysql # not compatible
query I rowsort label-9788
SELECT - col2 * ( 18 ) FROM tab2 AS cor0 WHERE CAST ( - ( - 21 ) AS INTEGER ) IS NOT NULL
----
-1044
-414
-720

query I rowsort
SELECT DISTINCT col1 + + 79 FROM tab2 AS cor0
----
130
146
156

query I rowsort
SELECT ALL + 2 + - + 89 * - 15 FROM tab1 AS cor0
----
1337
1337
1337

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL - SUM( DISTINCT col1 ) * - SUM( ( + ( col1 ) ) ) AS col2 FROM tab0 WHERE + col0 = + ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - SUM ( DISTINCT col1 ) * - SUM ( ( + ( col1 ) ) ) AS col2 FROM tab0 WHERE + col0 = + ( + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NULL >= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT - CAST( + - COUNT( * ) AS SIGNED ) + - 76 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-9793
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) + - 76 FROM tab1
----
-73

query I rowsort
SELECT ALL + ( + - col0 ) + - col0 FROM tab2
----
-128
-150
-92

query II rowsort
SELECT 70 + - col1 + - - 10, 36 AS col2 FROM tab0
----
-1
36
59
36
79
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT col2 / + - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT col2 / + - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT col2 BETWEEN ( + - col2 ) * 49 + - - col1 AND 3
----
-15
-87
-97

query I rowsort
SELECT 27 + 30 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - - col0 / - ( + - col2 ) + + - 38 + - col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT + ( - - MIN( DISTINCT 23 ) ) DIV - 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT + ( - - MIN ( DISTINCT 23 ) ) / - 79 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT - SUM( col0 ) + + - MIN( DISTINCT 70 ) + - 56 * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-423

skipif mysql # not compatible
query I rowsort label-9801
SELECT - SUM ( col0 ) + + - MIN ( DISTINCT 70 ) + - 56 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-423

query I rowsort
SELECT - 49 * 47 AS col2 FROM tab1 cor0
----
-2303
-2303
-2303

query I rowsort
SELECT + 54 * + col0 * - + col0 * + col0 FROM tab0 AS cor0
----
-182250
-35559162
-49284342

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - COUNT( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9804
SELECT - COUNT ( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * - + 18 FROM tab1
----
-1062
-1224
-1728

query I rowsort
SELECT + ( - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 / col2 + - + 16 / - + col2 + - ( + + col2 ) + + col1 * 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT col1 FROM tab0 WHERE col1 BETWEEN NULL AND NULL AND NOT CAST( NULL AS SIGNED ) * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9809
SELECT col1 FROM tab0 WHERE col1 BETWEEN NULL AND NULL AND NOT CAST ( NULL AS INTEGER ) * - col1 IS NULL
----

query I rowsort
SELECT 32 * + - 12 * - col1 + - 65 * + col1 AS col1 FROM tab1 AS cor0
----
14993
1595
4466

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 75 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-75
14
-75
47
-75
5

query I rowsort
SELECT + ( + + 89 ) FROM tab1 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9814
SELECT + + 50, COUNT( * ) AS col2 FROM tab1 cor0
----
50
3

skipif mysql # not compatible
query II rowsort label-9814
SELECT + + 50, COUNT ( * ) AS col2 FROM tab1 cor0
----
50
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 - col0 col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL - 4 + + col1 AS col1 FROM tab2 AS cor0
----
47
63
73

query I rowsort
SELECT ALL 96 * - col1 + + col1 + - 41 FROM tab0 cor0
----
-136
-2036
-7736

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL - + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE 1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE 1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT ALL - col0 + col2 * - CAST( + 55 AS SIGNED ) AS col0 FROM tab0
----
-2600
-5542
-637

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL - col0 + col2 * - CAST ( + 55 AS INTEGER ) AS col0 FROM tab0
----
-2600
-5542
-637

query I rowsort
SELECT + col2 - - + ( - 1 ) FROM tab1
----
58
67
95

query III rowsort
SELECT * FROM tab2 WHERE - 23 + col2 IN ( - - col1 + - + col2, col0, - col2 )
----

query I rowsort
SELECT 4 * + col1 + - col1 * + col1 FROM tab0
----
-357
-6237
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT - col0 + - col2 * + - 44 * + col2 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT - col0 + - col2 * + - 44 * + col2 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT 11 + MAX( col1 ) + + 59 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT 11 + MAX ( col1 ) + + 59 FROM tab2 AS cor0
----
147

query I rowsort
SELECT ALL + + 93 + + + col1 + - col2 FROM tab1 AS cor0
----
11
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT - ( - ( 81 ) ) + + - 96 * - - MIN( + col0 ) AS col0 FROM tab0 AS cor0
----
-1359

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT - ( - ( 81 ) ) + + - 96 * - - MIN ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1359

query I rowsort
SELECT DISTINCT + col1 + - + col2 FROM tab0 cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT - MIN( - ( + col2 ) ) - - + 58 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - MIN ( - ( + col2 ) ) - - + 58 FROM tab2 AS cor0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT - + 87 DIV - - ( - + SUM( 24 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9830
SELECT - + 87 / - - ( - + SUM ( 24 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9831
SELECT + col0 * 68, - 59 DIV - + col0 AS col1 FROM tab0
----
1020
3
5916
0
6596
0

skipif mysql # not compatible
query II rowsort label-9831
SELECT + col0 * 68, - 59 / - + col0 AS col1 FROM tab0
----
1020
3
5916
0
6596
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - ( - + 39 ) AS col1, - 94 FROM tab0 AS cor0
----
39
-94
39
-94
39
-94

query I rowsort
SELECT DISTINCT ( - col0 ) * col2 * - + col0 FROM tab0 cor0
----
10575
75690
931491

query I rowsort
SELECT + + col1 * - 87 * - col1 + + + col2 AS col1 FROM tab1 AS cor0
----
17148
192251
2234

query I rowsort
SELECT - col0 * + ( - - col1 ) * col1 * col2 FROM tab1
----
-125375
-13669292
-959616

query I rowsort
SELECT DISTINCT - col0 * - 8 AS col2 FROM tab0
----
120
696
776

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT - 17 * + COUNT( * ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9839
SELECT DISTINCT - 17 * + COUNT ( * ) col1 FROM tab2
----
-51

query II rowsort
SELECT ALL - col2 * + + col1 * - col2 AS col1, ( col2 ) FROM tab2
----
123200
40
225388
58
26979
23

query II rowsort
SELECT ALL 54 AS col0, + col2 AS col2 FROM tab2
----
54
23
54
40
54
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL ( SUM( + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL ( SUM ( + col1 ) ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9843
SELECT 89 col0, - COUNT( * ) AS col2 FROM tab2
----
89
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9843
SELECT 89 col0, - COUNT ( * ) AS col2 FROM tab2
----
89
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT + CAST( NULL AS SIGNED ) + + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT + CAST ( NULL AS INTEGER ) + + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - + 32 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT col0 + col0 + col2 + 63 AS col0 FROM tab2
----
178
231
271

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9848
SELECT ALL col0 DIV col1 * 56 * + + col1 col2, - col2 DIV - col1 AS col1 FROM tab2
----
0
0
0
0
3752
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9848
SELECT ALL col0 / col1 * 56 * + + col1 col2, - col2 / - col1 AS col1 FROM tab2
----
0
0
0
0
3752
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - SUM( - col2 ) - + - ( + - 48 ) FROM tab0 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
108

skipif mysql # not compatible
query I rowsort label-9850
SELECT - SUM ( - col2 ) - + - ( + - 48 ) FROM tab0 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
108

query I rowsort
SELECT DISTINCT - 47 + - + col2 + - 43 FROM tab0 AS cor0
----
-100
-137
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 + - + col2 col2 FROM tab0 AS cor0
----
-5
47
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT DISTINCT 98 * - - CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT 98 * - - CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT IN ( col2 * 63, + 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ( + SUM( + col2 ) ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9855
SELECT ( + SUM ( + col2 ) ) col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col2 FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT DISTINCT + col1 DIV + col0 - + 83 AS col2 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT + col1 / + col0 - + 83 AS col2 FROM tab1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL + COUNT( DISTINCT - + col1 ) FROM tab2 WHERE NOT - + 32 * col2 + + col1 NOT IN ( - - ( 62 ), - ( + + 82 ) * + - col2 * - 45 - - ( + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + COUNT ( DISTINCT - + col1 ) FROM tab2 WHERE NOT - + 32 * col2 + + col1 NOT IN ( - - ( 62 ), - ( + + 82 ) * + - col2 * - 45 - - ( + col0 ) )
----
0

query I rowsort
SELECT ALL 74 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 * + + 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col0 ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL - COUNT( * ) * - - MAX( ALL - 98 ) AS col2 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL - COUNT ( * ) * - - MAX ( ALL - 98 ) AS col2 FROM tab1 AS cor0
----
294

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND - ( + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + COUNT( * ) * + 0 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9864
SELECT + COUNT ( * ) * + 0 col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + MIN( DISTINCT col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
10

query II rowsort
SELECT + 12, 69 AS col0 FROM tab0
----
12
69
12
69
12
69

query II rowsort
SELECT DISTINCT - 33 AS col0, + col1 FROM tab2 cor0
----
-33
51
-33
67
-33
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * + + col1 col0 FROM tab0 AS cor0 WHERE NOT - col0 = col1
----
-3402
-42
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT COUNT( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9869
SELECT COUNT ( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - 4 AS col2 FROM tab1 cor0
----
4
4
4

query II rowsort
SELECT - 98, - 71 AS col0 FROM tab2 AS cor0
----
-98
-71
-98
-71
-98
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9872
SELECT + + MAX( + col0 ) DIV - SUM( 87 ) * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT + + MAX ( + col0 ) / - SUM ( 87 ) * + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT + - SUM( DISTINCT - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT + - SUM ( DISTINCT - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - col0 * - 43 AS col0 FROM tab2 AS cor0
----
1978
2752
3225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 AS col0, 57 col2 FROM tab1 AS cor0
----
65
57
65
57
65
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, col0 col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9877
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL CAST ( NULL AS REAL ) * - col2 / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + - col0 AS col1 FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col0 col2 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * ( - col2 ) + col1 + 21 * col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - - 34 + + col2 FROM tab1 AS cor0
----
102
130
93

query I rowsort
SELECT + 61 AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( - 17 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col1 * col2 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND - + col2 - - 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9887
SELECT DISTINCT - col2 * - + col0 + - CAST( NULL AS SIGNED ), col0 * + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

skipif mysql # not compatible
query II rowsort label-9887
SELECT DISTINCT - col2 * - + col0 + - CAST ( NULL AS INTEGER ), col0 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT ALL - MIN( - 59 ) - 97 AS col0, MIN( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-38
59

skipif mysql # not compatible
query II rowsort label-9888
SELECT ALL - MIN ( - 59 ) - 97 AS col0, MIN ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-38
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 >= + + col0
----

query I rowsort
SELECT + 90 - - 51 AS col0 FROM tab1 AS cor0
----
141
141
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + 45 * - 43 col1 FROM tab1
----
-6831
-6950
-8123

query I rowsort
SELECT DISTINCT 37 + - - 34 FROM tab0
----
71

query I rowsort
SELECT ALL - col0 - col0 AS col1 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT COUNT( ALL + col1 ) - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT COUNT ( ALL + col1 ) - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + col1 - + 18 FROM tab2
----
33
49
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9897
SELECT + col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE + + 98 + + + col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9897
SELECT + col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE + + 98 + + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + + col0, ( col1 ) col0 FROM tab0
----
1215
81
1827
21
97
1

query II rowsort
SELECT ALL ( - col0 ), - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT col2 * + 99 + + col0 FROM tab1 AS cor0
----
5926
6823
9555

query I rowsort
SELECT + col2 * + - 89 * + col1 FROM tab1 AS cor0
----
-119616
-26255
-284444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + - 93 ) col2 FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL - + SUM( DISTINCT - 89 ) * COUNT( * ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - + SUM ( DISTINCT - 89 ) * COUNT ( * ) FROM tab1 AS cor0
----
267

query I rowsort
SELECT + 82 FROM tab0 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + - 57 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT + + MIN( DISTINCT - 43 ) AS col1 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT + + MIN ( DISTINCT - 43 ) AS col1 FROM tab0 AS cor0
----
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + 47 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT - SUM( - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT - SUM ( - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - col0 NOT BETWEEN + + col1 AND col0
----

query I rowsort
SELECT + 28 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + col2 IS NULL
----
51
68
86

query I rowsort
SELECT ALL AVG ( col2 ) / - 71 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT DISTINCT + col2 DIV + 31 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT + col2 / + 31 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT COUNT( * ) * - + 77 + + 47 FROM tab1
----
-184

skipif mysql # not compatible
query I rowsort label-9914
SELECT COUNT ( * ) * - + 77 + + 47 FROM tab1
----
-184

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - 77 / + ( 58 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 93 AS col2, col0 AS col1 FROM tab2
----
93
46
93
64
93
75

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT + 15 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col1 FROM tab1 WHERE NOT ( - - 10 ) / - col1 * + col2 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9919
SELECT + col2 DIV - - 69 + + CAST( - col0 AS SIGNED ) FROM tab0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-9919
SELECT + col2 / - - 69 + + CAST ( - col0 AS INTEGER ) FROM tab0
----
-15
-87
-96

query I rowsort
SELECT 34 * - col1 + - 27 FROM tab2
----
-1761
-2305
-2645

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - ( - MAX( - - 62 ) ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9921
SELECT - ( - MAX ( - - 62 ) ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT - col2 * - - col1 * + - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT MIN( ALL + 18 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT MIN ( ALL + 18 ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT 87 + - 19 * + + col2 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-1034
-1205
-1737

query II rowsort
SELECT ALL 55 - 34, + col2 + col2 AS col1 FROM tab2 AS cor0
----
21
116
21
46
21
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9928
SELECT * FROM tab1 AS cor0 WHERE - 67 + + col0 IN ( + - 27 + col2 / 66 * + col1 * + 37 * 45 * + 17 + - col1, - 75 + col0, - + col2 * + 63 + + CAST( - col2 AS DECIMAL ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-9928
SELECT * FROM tab1 AS cor0 WHERE - 67 + + col0 IN ( + - 27 + col2 / 66 * + col1 * + 37 * 45 * + 17 + - col1, - 75 + col0, - + col2 * + 63 + + CAST ( - col2 AS REAL ) * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - COUNT( ALL + 22 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9929
SELECT - COUNT ( ALL + 22 ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL + COUNT( * ) + MAX( ALL - col1 ) FROM tab2 WHERE NULL IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + COUNT ( * ) + MAX ( ALL - col1 ) FROM tab2 WHERE NULL IS NULL
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT - MAX( 47 ) AS col1 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9931
SELECT - MAX ( 47 ) AS col1 FROM tab2
----
-47

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE - col1 * - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9933
SELECT ALL + CAST( NULL AS DECIMAL ) * + 40 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + CAST ( NULL AS REAL ) * + 40 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT + - 69 DIV + - 81 + + - ( + 97 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + ( + + 97 ) * - col1 + - + 84 * col1 BETWEEN - col0 AND NULL
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-9935
SELECT + - 69 / + - 81 + + - ( + 97 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + ( + + 97 ) * - col1 + - + 84 * col1 BETWEEN - col0 AND NULL
----
-97
-97
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT col1 * - CAST( - + ( + - 23 ) AS SIGNED ) FROM tab0
----
-1863
-23
-483

skipif mysql # not compatible
query I rowsort label-9938
SELECT col1 * - CAST ( - + ( + - 23 ) AS INTEGER ) FROM tab0
----
-1863
-23
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT ALL + col1 DIV - 81 * - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL + col1 / - 81 * - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + col1 + - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT ALL - 6 DIV + col1 + - col2 col0 FROM tab0 AS cor0
----
-10
-105
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9942
SELECT ALL - 6 / + col1 + - col2 col0 FROM tab0 AS cor0
----
-10
-105
-47

query I rowsort
SELECT DISTINCT + - col2 + + - col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT + 51 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 * + ( col0 ) * - 27 * - 38 AS col1, ( - col0 ) col1 FROM tab0 AS cor0
----
1415880
-15
8212104
-87
9156024
-97

query I rowsort
SELECT ALL + col0 * + col1 * + 84 FROM tab0
----
102060
153468
8148

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + - MAX( 28 ) AS col2 FROM tab0 WHERE + 99 * - col0 * - + col0 < - - col2 * + col0 + - col0 - col0 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT + - MAX ( 28 ) AS col2 FROM tab0 WHERE + 99 * - col0 * - + col0 < - - col2 * + col0 + - col0 - col0 * col0
----
NULL

query I rowsort
SELECT ALL - 70 * - 8 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-26411
-2885
-7891

query I rowsort
SELECT DISTINCT - - col1 * col1 + ( - col1 ) FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT - - col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query II rowsort
SELECT 68 * - - col1 + - - ( 88 ), col1 FROM tab2
----
3556
51
4644
67
5324
77

query I rowsort
SELECT - + col1 * + col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT + col0 * 57 * + col1 FROM tab0
----
104139
5529
69255

query I rowsort
SELECT + 78 * - col1 AS col1 FROM tab0
----
-1638
-6318
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT col1 DIV + + col0 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9955
SELECT col1 / + + col0 AS col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + COUNT( * ) * - COUNT( * ) + + COUNT( * ) - - 83 * - 79 * + 26 AS col2 FROM tab0 AS cor0
----
-170488

skipif mysql # not compatible
query I rowsort label-9956
SELECT + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) - - 83 * - 79 * + 26 AS col2 FROM tab0 AS cor0
----
-170488

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT MAX( ALL + - 85 ) - 84 FROM tab2 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-9957
SELECT MAX ( ALL + - 85 ) - 84 FROM tab2 AS cor0
----
-169

query I rowsort
SELECT - col2 - + 76 AS col2 FROM tab0 AS cor0
----
-123
-175
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT DISTINCT - + CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col1 + + col2 + - 18 / col0 * - col2 - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + + col1 - - col2 - col2 - 41 / col2 * + 35 / + + col2 + + 60 - + 50 < - - 30 * - 95 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + 99 * - 27 + + col0 * - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL 79 * + - ( - + COUNT( * ) ) AS col0 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL 79 * + - ( - + COUNT ( * ) ) AS col0 FROM tab1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT - COUNT( 65 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT - COUNT ( 65 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT CAST( - + 38 AS SIGNED ) AS col1 FROM tab1
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-9965
SELECT CAST ( - + 38 AS INTEGER ) AS col1 FROM tab1
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT + CAST( - ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9966
SELECT + CAST ( - ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL + ( - - MIN( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + ( - - MIN ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT + 67 DIV - + col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + 67 / - + col2 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL >= col0
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 29 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT DISTINCT + CAST( 56 AS SIGNED ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT + CAST ( 56 AS INTEGER ) FROM tab2 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT CAST( + AVG ( 26 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9973
SELECT CAST ( + AVG ( 26 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT - + 97 + col0 FROM tab0 AS cor0
----
-10
-82
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL + 84 + - - COUNT( * ) * - 7 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + 84 + - - COUNT ( * ) * - 7 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT 12 + CAST( - + col1 AS SIGNED ) AS col1 FROM tab0
----
-69
-9
11

skipif mysql # not compatible
query I rowsort label-9977
SELECT 12 + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0
----
-69
-9
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT MIN( + col0 ) + 6 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9978
SELECT MIN ( + col0 ) + 6 FROM tab0
----
21

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + 40 * + col2 * - col2
----

query I rowsort
SELECT + 17 + col2 AS col1 FROM tab0
----
116
27
64

query I rowsort
SELECT DISTINCT col1 * 15 * - col0 AS col1 FROM tab0
----
-1455
-18225
-27405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT col1 + col0 FROM tab1 WHERE NULL IN ( + + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9982
SELECT col1 + col0 FROM tab1 WHERE NULL IN ( + + CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 - + - col0 FROM tab0
----
174
194
30

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE ( ( NOT col1 IS NULL ) )
----
-15
-87
-97

query I rowsort
SELECT ALL - 35 - + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + ( + col0 ) + col0 * + col1 + - - col1 NOT BETWEEN + 58 AND NULL
----

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab0 cor0
----
20

query I rowsort
SELECT + 32 FROM tab1 AS cor0 WHERE NOT + col1 + - + 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + - MIN( col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9990
SELECT + - MIN ( col2 ) col1 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab1 cor0 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT - col1 * 47 DIV col0 FROM tab0 AS cor0
----
-11
-253
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT - col1 * 47 / col0 FROM tab0 AS cor0
----
-11
-253
0

query II rowsort
SELECT ALL - col2 AS col1, 26 AS col0 FROM tab0
----
-10
26
-47
26
-99
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - + MAX( + - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9994
SELECT - + MAX ( + - col1 ) AS col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT DISTINCT - + col0 - + col0 FROM tab1 WHERE NOT - col0 + col1 IS NULL
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL + + COUNT( * ) + 8 AS col2 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + + COUNT ( * ) + 8 AS col2 FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - COUNT( - + col0 ) * 57 FROM tab1 AS cor0 WHERE 31 NOT BETWEEN NULL AND + col1
----
-114

skipif mysql # not compatible
query I rowsort label-9999
SELECT - COUNT ( - + col0 ) * 57 FROM tab1 AS cor0 WHERE 31 NOT BETWEEN NULL AND + col1
----
-114

