sqllogictest
Artifact Content
Not logged in

Artifact 7c841b00253f00c26e694e9938709e7058aa07be:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * - + col1 * + - col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN + col1 / col2 AND + + 84
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col1 * - - 44 + + + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT 90 DIV + + 9 AS col2 FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-5
SELECT 90 / + + 9 AS col2 FROM tab1
----
10
10
10

query I rowsort
SELECT ALL 35 AS col2 FROM tab2 WHERE NOT + + 25 + 21 + - + col2 NOT IN ( - 48 * 15 )
----

query I rowsort
SELECT DISTINCT ( + 13 ) * - col2 * - col0 - + - 61 AS col2 FROM tab0
----
11371
124900
9226

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col2 * 89 * - col2 * 84 + col2 / 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT - COUNT( * ) * + + 75 AS col2 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-9
SELECT - COUNT ( * ) * + + 75 AS col2 FROM tab1
----
-225

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

query I rowsort
SELECT ( 42 ) AS col2 FROM tab2
----
42
42
42

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT 10 <> col0
----

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

query I rowsort
SELECT ALL - col2 * + 28 + + col1 * 4 FROM tab0 AS cor0
----
-196
-2768
-992

query I rowsort
SELECT ALL - 3 * + col1 * - - 23 AS col1 FROM tab0 AS cor0
----
-1449
-5589
-69

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

skipif mysql # not compatible
query I rowsort label-16
SELECT COUNT ( * ) + + 89 AS col1 FROM tab1 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-17
SELECT * FROM tab2 WHERE + col0 * + CAST( + ( + col2 ) AS SIGNED ) = - 39 - + + col1
----

skipif mysql # not compatible
query III rowsort label-17
SELECT * FROM tab2 WHERE + col0 * + CAST ( + ( + col2 ) AS INTEGER ) = - 39 - + + col1
----

query I rowsort
SELECT ALL 88 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - col2 + - 98 + 95 AS col1 FROM tab2
----
-107
-136
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT - col2 + + col0 DIV + col2 FROM tab0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-21
SELECT - col2 + + col0 / + col2 FROM tab0
----
-2
-47
-99

query I rowsort
SELECT ALL - 77 - - 66 * + - 68 AS col2 FROM tab2
----
-4565
-4565
-4565

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

onlyif mysql # DIV for integer division: 
query III rowsort label-24
SELECT ALL + 20 DIV - col2 - + 54 AS col0, + 31, ( - - col2 ) AS col2 FROM tab1
----
9 values hashing to f49a746cddac336ee0f6caf2c466a737

skipif mysql # not compatible
query III rowsort label-24
SELECT ALL + 20 / - col2 - + 54 AS col0, + 31, ( - - col2 ) AS col2 FROM tab1
----
9 values hashing to f49a746cddac336ee0f6caf2c466a737

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL ( MAX( DISTINCT + + col0 ) ) - MAX( ALL - - col1 ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL ( MAX ( DISTINCT + + col0 ) ) - MAX ( ALL - - col1 ) AS col2 FROM tab0
----
16

query II rowsort
SELECT DISTINCT + 27 * - ( + 46 ) AS col2, + col1 + + col0 + col0 FROM tab2 cor0
----
-1242
143
-1242
205
-1242
217

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 75 * + - col0 + - + col0 FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT + 61 * - + col2 AS col1 FROM tab1
----
-3599
-4148
-5856

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

query I rowsort
SELECT + col0 * 88 * 20 AS col2 FROM tab1
----
149600
160160
89760

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

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

query I rowsort
SELECT + + col2 * - col2 + - - col2 + + - col1 + col0 FROM tab1 cor0
----
-3342
-4512
-9083

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT ALL + + MAX( col2 ) AS col2, ( - 12 ) col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
96
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-36
SELECT ALL + + MAX ( col2 ) AS col2, ( - 12 ) col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
96
-12

query I rowsort
SELECT + 93 + - 22 + - col1 AS col1 FROM tab2 AS cor0
----
-6
20
4

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - 39 + - 38 + - 61 + - col0 ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + + + 43 FROM tab2
----
-15
20
3

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

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

query I rowsort
SELECT - + col2 * - - 64 FROM tab1 AS cor0
----
-3776
-4352
-6144

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) <> + ( - 95 )
----

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL IS NULL OR + 82 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT ( NOT NULL >= ( NULL ) )
----

query I rowsort
SELECT + ( - + 20 ) AS col2 FROM tab1
----
-20
-20
-20

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

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

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

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

query I rowsort
SELECT ALL + - ( + - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + + 76 col0 FROM tab0 AS cor0
----
3572
7524
760

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT DISTINCT 80 DIV + 3 AS col0 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT 80 / + 3 AS col0 FROM tab0 AS cor0
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT - COUNT( * ) + - ( COUNT( * ) ) * + MIN( DISTINCT - 3 ) col2 FROM tab1 AS cor0
----
6

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

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL IN ( - col1, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col0 AS col1, + 11 col1 FROM tab2
----
0
11
0
11
0
11

query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab0 WHERE NOT ( + - col0 ) >= ( NULL )
----

query I rowsort
SELECT + col1 + + + 14 AS col1 FROM tab1
----
19
28
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT - + COUNT( * ) * - COUNT( * ) + + + COUNT( ALL - + col2 ) col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-66
SELECT - + COUNT ( * ) * - COUNT ( * ) + + + COUNT ( ALL - + col2 ) col1 FROM tab0 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + - + col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - col1, col2, 20 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT DISTINCT COUNT( * ) * - 21 + + 11, COUNT( ALL + col0 ) AS col1 FROM tab2
----
-52
3

skipif mysql # not compatible
query II rowsort label-68
SELECT DISTINCT COUNT ( * ) * - 21 + + 11, COUNT ( ALL + col0 ) AS col1 FROM tab2
----
-52
3

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT DISTINCT col2 + 95 DIV 66 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT col2 + 95 / 66 AS col1 FROM tab1
----
60
69
97

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

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

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

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

query I rowsort
SELECT DISTINCT + 2 - col0 FROM tab1 cor0
----
-49
-83
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + SUM( + + 1 ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT + SUM ( + + 1 ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-75
SELECT - - 93 FROM tab1 AS cor0 WHERE col2 NOT IN ( - col0 * + col2 - + col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-75
SELECT - - 93 FROM tab1 AS cor0 WHERE col2 NOT IN ( - col0 * + col2 - + col1, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL - ( - 14 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - ( - 14 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + col2 col1 FROM tab0 cor0
----
104
141
193

query II rowsort
SELECT - - col0 + + + 43 * - 6, + col1 AS col2 FROM tab1 cor0
----
-167
47
-173
5
-207
14

query I rowsort
SELECT ALL + - col2 * - + col0 FROM tab0 WHERE NOT - 2 = NULL
----

query II rowsort
SELECT + col0 * + col1 AS col0, + 54 * + + col2 FROM tab1
----
425
3186
4277
3672
714
5184

query I rowsort
SELECT DISTINCT - - 71 AS col0 FROM tab2 WHERE col0 * + col2 * + - 18 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-82
SELECT COUNT( * ) AS col1, + 45 FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-82
SELECT COUNT ( * ) AS col1, + 45 FROM tab1
----
3
45

query II rowsort
SELECT ALL - 12 AS col2, 6 AS col0 FROM tab1
----
-12
6
-12
6
-12
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - - ( + 93 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 91 - - 5 + + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - 55 FROM tab0
----
2585
5445
550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 14 NOT BETWEEN - 45 / - + col1 AND NULL
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-88
SELECT * FROM tab1 WHERE NOT - - ( - + CAST( col1 AS SIGNED ) ) + - - col2 + col1 - - col1 / - 94 > NULL
----

skipif mysql # not compatible
query III rowsort label-88
SELECT * FROM tab1 WHERE NOT - - ( - + CAST ( col1 AS INTEGER ) ) + - - col2 + col1 - - col1 / - 94 > NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT + + 81, + SUM( ALL col0 ) AS col0 FROM tab0 AS cor0
----
81
199

skipif mysql # not compatible
query II rowsort label-90
SELECT + + 81, + SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
81
199

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT MIN( 77 ) AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-91
SELECT MIN ( 77 ) AS col1 FROM tab1
----
77

query I rowsort
SELECT ALL + 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + - COUNT( ALL - - col1 ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-94
SELECT + - COUNT ( ALL - - col1 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

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

query I rowsort
SELECT + col2 + 17 AS col0 FROM tab0 AS cor0
----
116
27
64

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

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

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

query I rowsort
SELECT DISTINCT ( - col1 ) * - + col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT - 77 FROM tab0 WHERE ( ( NOT 74 NOT BETWEEN col0 AND + - 8 ) )
----

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

query I rowsort
SELECT - + 10 FROM tab1 WHERE NULL NOT BETWEEN - ( col2 ) + col0 AND 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + COUNT( * ) + + 56 * - 52 + MAX( + 85 ) FROM tab2
----
-2824

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + COUNT ( * ) + + 56 * - 52 + MAX ( + 85 ) FROM tab2
----
-2824

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + - 5 - 79 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-105
SELECT + - 5 - 79 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT + 26 DIV - + col0 * - 50 * - col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + 26 / - + col0 * - 50 * - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 74 + + col1 FROM tab0 AS cor0
----
-53
-73
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - col0 + + 63 - 34 - + + col2 * + col0 col2 FROM tab1
----
-4872
-5025
-6204

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col2 BETWEEN - 71 AND + 1
----

query I rowsort
SELECT + + ( - 23 ) * + col1 FROM tab1 AS cor0
----
-1081
-115
-322

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + ( col0 ) ) <= - 9 * 31 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT 79 * - col1 AS col1 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT + col0 * + col0 * col2 FROM tab0
----
10575
75690
931491

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

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL MIN ( + - col1 ) * COUNT ( * ) FROM tab1
----
-141

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

skipif mysql # not compatible
query I rowsort label-117
SELECT - MAX ( + - col2 ) FROM tab1 cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * 57 * 73 - - - 51 ) = + 81
----

query I rowsort
SELECT ALL - col0 * - 97 - + col2 AS col0 FROM tab2 AS cor0
----
4439
6168
7217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-120
SELECT ALL - 80 DIV COUNT( * ) FROM tab2, tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - 80 / COUNT ( * ) FROM tab2, tab2 AS cor0
----
-8

query I rowsort
SELECT ALL + col1 * - - 46 FROM tab2
----
2346
3082
3542

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT ALL - col0 DIV + - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - col0 / + - col0 FROM tab0
----
1
1
1

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

query I rowsort
SELECT + 31 * - col2 AS col0 FROM tab1
----
-1829
-2108
-2976

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

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

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

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

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

query II rowsort
SELECT ALL + 18 AS col2, 39 + - col1 FROM tab0 AS cor0
----
18
-42
18
18
18
38

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

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

query II rowsort
SELECT DISTINCT + col1 AS col1, - 8 + + + col2 + + - col1 FROM tab2 AS cor0
----
51
-36
67
-17
77
-45

query I rowsort
SELECT ALL ( 2 ) + + - col2 FROM tab2 cor0
----
-21
-38
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 80 + + 83, + 7, 20, - col0, - - 46, - 3 )
----

query II rowsort
SELECT ALL 21 + - - 10, col2 AS col0 FROM tab1 AS cor0
----
31
59
31
68
31
96

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

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

query I rowsort
SELECT DISTINCT - col2 + - - 19 - + col1 AS col2 FROM tab2
----
-106
-55
-98

query I rowsort
SELECT - col1 + - - 47 FROM tab0
----
-34
26
46

query I rowsort
SELECT col1 + - + 54 AS col2 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT DISTINCT col0 * - 65 - - - ( - 87 ) + col0 AS col2 FROM tab0
----
-5481
-6121
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT - COUNT( * ) * 8 + - + MAX( + - 90 ) AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-141
SELECT - COUNT ( * ) * 8 + - + MAX ( + - 90 ) AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT COUNT( * ) * - 85 * COUNT( * ) col2 FROM tab1 AS cor0
----
-765

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-142
SELECT COUNT ( * ) * - 85 * COUNT ( * ) col2 FROM tab1 AS cor0
----
-765

query II rowsort
SELECT 43, - 16 AS col1 FROM tab2
----
43
-16
43
-16
43
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT ALL - col0 DIV 98 DIV + col1 - - + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - col0 / 98 / + col1 - - + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT + col2 - 74 AS col2 FROM tab1
----
-15
-6
22

query I rowsort
SELECT DISTINCT + col2 * - col0 + - + 62 AS col1 FROM tab1 WHERE NULL IS NULL
----
-4958
-5077
-6250

query II rowsort
SELECT DISTINCT - col2, col0 * + + 14 AS col2 FROM tab1 AS cor0 WHERE NULL = col2
----

query II rowsort
SELECT + col1, 39 AS col2 FROM tab0 AS cor0
----
1
39
21
39
81
39

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

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

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 + + - 28 AS col1 FROM tab2 AS cor0
----
-46
-5
-64
12
-75
30

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 88 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT + 34 + + SUM( DISTINCT - + 55 ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - - col1 - + CAST( col2 AS SIGNED ) * - + 31 * - col0 + + col1 = + + col1 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT + 34 + + SUM ( DISTINCT - + 55 ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - - col1 - + CAST ( col2 AS INTEGER ) * - + 31 * - col0 + + col1 = + + col1 * + col1
----
NULL

query I rowsort
SELECT 19 * - col0 AS col2 FROM tab0 AS cor0
----
-1653
-1843
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-155
SELECT ( + ( + 65 ) ), COUNT( + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
65
3

skipif mysql # not compatible
query II rowsort label-155
SELECT ( + ( + 65 ) ), COUNT ( + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
65
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-156
SELECT + + COUNT( DISTINCT - CAST( 85 AS SIGNED ) ) + + 63 AS col2 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-156
SELECT + + COUNT ( DISTINCT - CAST ( 85 AS INTEGER ) ) + + 63 AS col2 FROM tab2 cor0
----
64

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

skipif mysql # not compatible
query I rowsort label-157
SELECT col2 + + ( + CAST ( - 36 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * + 27 * + ( - col2 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT ALL - 96 * - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - 96 * - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL + COUNT( ALL - + col0 ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + COUNT ( ALL - + col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT + 14 + + col0 + - col1 * col2 - + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1141
-3039
-3806

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 NOT BETWEEN - - 39 + + + 41 * + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-162
SELECT DISTINCT MAX( DISTINCT - 55 ) + + CAST( NULL AS SIGNED ) * 32 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT MAX ( DISTINCT - 55 ) + + CAST ( NULL AS INTEGER ) * 32 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 * 65 + - col1 + + col2 AND - - col1
----

query I rowsort
SELECT ALL col2 + + - 19 FROM tab0
----
-9
28
80

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

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

query II rowsort
SELECT DISTINCT col0 - 46 AS col2, - col1 FROM tab0 AS cor0
----
-31
-81
41
-21
51
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + 60 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-167
SELECT + 60 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-168
SELECT DISTINCT + col1 + col0 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-168
SELECT DISTINCT + col1 + col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-170
SELECT DISTINCT COUNT( * ) DIV - - ( 65 ) FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT + + 9 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

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

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

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

query I rowsort
SELECT 35 * - col1 * 78 AS col2 FROM tab1
----
-128310
-13650
-38220

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT + 49 AS col1, 79 * - - COUNT( * ) FROM tab0
----
49
237

skipif mysql # not compatible
query II rowsort label-175
SELECT + 49 AS col1, 79 * - - COUNT ( * ) FROM tab0
----
49
237

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT - ( col2 ) DIV - ( + + 95 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-176
SELECT - ( col2 ) / - ( + + 95 ) FROM tab1
----
0
0
1

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

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

query I rowsort
SELECT col2 * - col2 * 38 AS col1 FROM tab2
----
-127832
-20102
-60800

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

query I rowsort
SELECT 8 + 75 FROM tab2 cor0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT + CAST( + col2 AS SIGNED ) + + ( + - col1 ) + - col1 FROM tab2 AS cor0
----
-114
-76
-79

skipif mysql # not compatible
query I rowsort label-181
SELECT + CAST ( + col2 AS INTEGER ) + + ( + - col1 ) + - col1 FROM tab2 AS cor0
----
-114
-76
-79

query I rowsort
SELECT ALL 5 + + - col1 FROM tab0
----
-16
-76
4

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-185
SELECT + + 68 * + - col0 AS col2, col2 * - CAST( - + 17 AS SIGNED ) + - + col1 AS col0 FROM tab0 AS cor0
----
-1020
718
-5916
149
-6596
1682

skipif mysql # not compatible
query II rowsort label-185
SELECT + + 68 * + - col0 AS col2, col2 * - CAST ( - + 17 AS INTEGER ) + - + col1 AS col0 FROM tab0 AS cor0
----
-1020
718
-5916
149
-6596
1682

query I rowsort
SELECT col1 + - 71 * - - 9 FROM tab0 AS cor0
----
-558
-618
-638

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 + 12 BETWEEN NULL AND + col0 + - 57 * 89 * + + col1
----

query I rowsort
SELECT ALL - col2 * - col2 + + col0 FROM tab2
----
1664
3439
575

query I rowsort
SELECT 89 * - - 71 + col0 * + + col1 AS col1 FROM tab0
----
6416
7534
8146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT - ( + CAST( - + col1 AS SIGNED ) ) + - + 70 AS col2 FROM tab1
----
-23
-56
-65

skipif mysql # not compatible
query I rowsort label-190
SELECT - ( + CAST ( - + col1 AS INTEGER ) ) + - + 70 AS col2 FROM tab1
----
-23
-56
-65

query I rowsort
SELECT ALL + col1 + - ( - + 48 ) - + - col1 * - 85 * - - col2 AS col0 FROM tab2
----
-261675
-330195
-99606

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

query I rowsort
SELECT DISTINCT - col0 * + + col2 - 77 AS col0 FROM tab1
----
-4973
-5092
-6265

query I rowsort
SELECT ALL 17 * - col0 - - + 80 AS col1 FROM tab0
----
-1399
-1569
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE + col2 <> + ( - 56 )
----
3

skipif mysql # not compatible
query I rowsort label-195
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE + col2 <> + ( - 56 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * 86 col1 FROM tab1 AS cor0
----
3354
3354
3354

query I rowsort
SELECT + 24 * - + ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-198
SELECT - CAST( NULL AS SIGNED ) AS col2, - 98 AS col2 FROM tab2
----
NULL
-98
NULL
-98
NULL
-98

skipif mysql # not compatible
query II rowsort label-198
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 98 AS col2 FROM tab2
----
NULL
-98
NULL
-98
NULL
-98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT DISTINCT CAST( col2 AS SIGNED ) * - + 84 - - col1 * col2 AS col2 FROM tab1
----
-2516
-4661
-6720

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - + 84 - - col1 * col2 AS col2 FROM tab1
----
-2516
-4661
-6720

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

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

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
86

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 < + 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT 76 * + - col0 * col2 FROM tab0 AS cor0
----
-53580
-66120
-729828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-207
SELECT ALL + - COUNT( * ) AS col1, + MAX( + ( - + CAST( NULL AS SIGNED ) ) ) - COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL + - COUNT ( * ) AS col1, + MAX ( + ( - + CAST ( NULL AS INTEGER ) ) ) - COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
-3
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT 12 * - + CAST( - - col2 AS SIGNED ) FROM tab1
----
-1152
-708
-816

skipif mysql # not compatible
query I rowsort label-210
SELECT 12 * - + CAST ( - - col2 AS INTEGER ) FROM tab1
----
-1152
-708
-816

query I rowsort
SELECT ALL + + col1 + - + 40 FROM tab2 WHERE NULL NOT BETWEEN 0 * - col1 AND col1 + + 18 + - col2 + + col0
----

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

query I rowsort
SELECT DISTINCT ( + ( - - col0 ) ) AS col2 FROM tab2
----
46
64
75

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - col1 * + + 5 + + - ( - + 44 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 76 >= NULL
----

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE NOT col2 / + - col1 + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 89 + - 65 AS col1 FROM tab0 AS cor0
----
-154
-154
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-219
SELECT + + CAST( NULL AS SIGNED ) + + 39 * - - 75, + MIN( ALL - + col2 ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
-297

skipif mysql # not compatible
query II rowsort label-219
SELECT + + CAST ( NULL AS INTEGER ) + + 39 * - - 75, + MIN ( ALL - + col2 ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
-297

query I rowsort
SELECT - 65 + - col1 * col1 FROM tab0 AS cor0
----
-506
-66
-6626

query I rowsort
SELECT ALL - + col2 + - - 15 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-32
-84
5

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

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

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

query I rowsort
SELECT - 54 * + + col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT - - MAX( DISTINCT - + col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - - MAX ( DISTINCT - + col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + - col2 * - col2 FROM tab2
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT 87 - + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT 87 - + COUNT ( * ) FROM tab0
----
84

query I rowsort
SELECT - col1 - + + 59 FROM tab0
----
-140
-60
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT DISTINCT + + MIN( DISTINCT + 14 ) DIV + 12 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT + + MIN ( DISTINCT + 14 ) / + 12 AS col2 FROM tab1 AS cor0
----
1

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

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

query II rowsort
SELECT col2, 78 * col2 * col2 AS col0 FROM tab2
----
23
41262
40
124800
58
262392

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT DISTINCT + - SUM( ALL + 38 ) * - 95 AS col2, - COUNT( + 49 ) * COUNT( * ) FROM tab0 AS cor0
----
10830
-9

skipif mysql # not compatible
query II rowsort label-233
SELECT DISTINCT + - SUM ( ALL + 38 ) * - 95 AS col2, - COUNT ( + 49 ) * COUNT ( * ) FROM tab0 AS cor0
----
10830
-9

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

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

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

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - - 5 / COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT DISTINCT col2 DIV - + 15 FROM tab1 AS cor0
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT col2 / - + 15 FROM tab1 AS cor0
----
-3
-4
-6

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NULL <> + - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + 45 * - - COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-240
SELECT + 45 * - - COUNT ( * ) FROM tab2
----
135

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-241
SELECT DISTINCT 33 * - + 4, CAST( NULL AS DECIMAL ) * 83 / - + col1 AS col2 FROM tab1
----
-132
NULL

skipif mysql # not compatible
query II rowsort label-241
SELECT DISTINCT 33 * - + 4, CAST ( NULL AS REAL ) * 83 / - + col1 AS col2 FROM tab1
----
-132
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT ALL - col1 DIV + 20 AS col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL - col1 / + 20 AS col2 FROM tab0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + COUNT( * ) + + ( - - 58 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-244
SELECT + COUNT ( * ) + + ( - - 58 ) AS col2 FROM tab2
----
61

query I rowsort
SELECT + col1 + 75 AS col2 FROM tab1
----
122
80
89

query I rowsort
SELECT + 13 + - + col0 FROM tab2
----
-33
-51
-62

query I rowsort
SELECT ALL - ( + col1 ) * + col1 + col1 * - col0 FROM tab2 cor0
----
-10857
-4947
-9514

query I rowsort
SELECT ALL - ( - - 41 ) + col1 AS col2 FROM tab2 AS cor0
----
10
26
36

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

query I rowsort
SELECT DISTINCT - col2 - col2 - col1 - + col0 AS col1 FROM tab0
----
-128
-190
-296

query I rowsort
SELECT - col0 * col1 + + 8 - col2 AS col1 FROM tab0 AS cor0
----
-1254
-1829
-188

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

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

query I rowsort
SELECT DISTINCT - col1 + + col0 + 22 FROM tab2
----
17
30
9

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

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

query I rowsort
SELECT col1 + 21 + + col0 AS col0 FROM tab0
----
117
119
129

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 85 BETWEEN NULL AND - ( + - col2 ) + col0 + - ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 33, ( col0 ) AS col2 FROM tab1
----
33
51
33
85
33
91

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE col0 + + 92 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + 83 * + + SUM( + + col2 ) * 38 - COUNT( * ) * + 24 AS col0 FROM tab0
----
491952

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + 83 * + + SUM ( + + col2 ) * 38 - COUNT ( * ) * + 24 AS col0 FROM tab0
----
491952

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT MIN( DISTINCT 66 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-261
SELECT MIN ( DISTINCT 66 ) FROM tab0
----
66

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

query I rowsort
SELECT + 73 - - - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - + col1 IS NULL
----
26
59
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-265
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 13 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

query II rowsort
SELECT DISTINCT col1 * 48 AS col0, - 92 * - 92 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + 73 * col1 AS col0 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT ALL col2 + 41 * + col0 * - - col0 FROM tab2
----
167976
230683
86779

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

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + 40 / - - COUNT ( * ) AS col1 FROM tab1
----
13

query II rowsort
SELECT DISTINCT + col1 * - col2 + 97, - 49 AS col1 FROM tab2
----
-1076
-49
-2983
-49
-3789
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT ALL + col2 DIV + col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + col2 / + col2 AS col1 FROM tab1
----
1
1
1

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

query I rowsort
SELECT 49 FROM tab0 AS cor0 WHERE ( NOT NULL >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, col0 col2 FROM tab1 AS cor0 WHERE - 76 <= NULL
----

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + col2 * - 10 + + - 69 FROM tab1 AS cor0
----
-1029
-659
-749

query I rowsort
SELECT + col1 - + - col0 + + - col2 * - col0 FROM tab0 cor0
----
801
9701
978

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

onlyif mysql # aggregate syntax: 
query II rowsort label-288
SELECT ( - 90 ), COUNT( * ) AS col2 FROM tab2
----
-90
3

skipif mysql # not compatible
query II rowsort label-288
SELECT ( - 90 ), COUNT ( * ) AS col2 FROM tab2
----
-90
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + - MAX( - CAST( + 94 AS SIGNED ) ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-291
SELECT DISTINCT + - MAX ( - CAST ( + 94 AS INTEGER ) ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
94

query I rowsort
SELECT 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE - col1 - 53 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT ( + + col1 ) + col2 DIV - - col0 FROM tab0 AS cor0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT ( + + col1 ) + col2 / - - col0 FROM tab0 AS cor0
----
2
21
84

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

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

query I rowsort
SELECT DISTINCT + + 63 - + + col2 AS col2 FROM tab0 AS cor0 WHERE col1 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT ALL + CAST( col1 AS SIGNED ) + - - 21 + + + col2 FROM tab2 AS cor0
----
138
146
95

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + CAST ( col1 AS INTEGER ) + - - 21 + + + col2 FROM tab2 AS cor0
----
138
146
95

query I rowsort
SELECT DISTINCT 1 + col0 * 10 AS col2 FROM tab0
----
151
871
971

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT + 12 + - MIN( col2 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + 12 + - MIN ( col2 ) FROM tab1
----
-47

query I rowsort
SELECT col1 * - - 81 + 34 AS col2 FROM tab1
----
1168
3841
439

query I rowsort
SELECT + col2 * - col1 + col2 FROM tab0
----
-200
-3760
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-304
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) col2, COUNT( DISTINCT col2 ) FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-304
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) col2, COUNT ( DISTINCT col2 ) FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-305
SELECT * FROM tab2 AS cor0 WHERE NULL > 62 + col2 * - CAST( - col2 AS SIGNED ) * - col0 * + ( 88 )
----

skipif mysql # not compatible
query III rowsort label-305
SELECT * FROM tab2 AS cor0 WHERE NULL > 62 + col2 * - CAST ( - col2 AS INTEGER ) * - col0 * + ( 88 )
----

query I rowsort
SELECT 60 + - - col0 AS col2 FROM tab1 AS cor0
----
111
145
151

query I rowsort
SELECT ALL + + 6 * + col0 FROM tab0 cor0
----
522
582
90

query I rowsort
SELECT - 4 * - - col1 FROM tab1
----
-188
-20
-56

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col0 <= col1 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL 37 * + SUM( ALL + - 67 ) AS col0 FROM tab1, tab1 AS cor0
----
-22311

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL 37 * + SUM ( ALL + - 67 ) AS col0 FROM tab1, tab1 AS cor0
----
-22311

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

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

query I rowsort
SELECT ALL + col1 * + col2 * - - 65 AS col1 FROM tab0
----
13650
247455
6435

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT DISTINCT - ( - col2 ) - col0 DIV ( + ( + col0 ) ) * + col0 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT - ( - col2 ) - col0 / ( + ( + col0 ) ) * + col0 FROM tab2 AS cor0
----
-17
-23
-24

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

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

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

skipif mysql # not compatible
query I rowsort label-315
SELECT - SUM ( DISTINCT + col0 ) * + 65 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
44265

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT ALL - COUNT( ALL 15 ) DIV - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - COUNT ( ALL 15 ) / - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
0

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

query II rowsort
SELECT - 28, col1 AS col0 FROM tab1
----
-28
14
-28
47
-28
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-323
SELECT col0 AS col1, - CAST( + - col0 AS SIGNED ) + - - col1 + + - col2 * + col0 * + + 78 AS col2 FROM tab1 AS cor0
----
51
-381823
85
-391080
91
-482526

skipif mysql # not compatible
query II rowsort label-323
SELECT col0 AS col1, - CAST ( + - col0 AS INTEGER ) + - - col1 + + - col2 * + col0 * + + 78 AS col2 FROM tab1 AS cor0
----
51
-381823
85
-391080
91
-482526

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 36 / - col1 - - + 96 * col2 + col1 + + col1
----

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

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

query II rowsort
SELECT ALL + col1, 86 FROM tab2 AS cor0
----
51
86
67
86
77
86

query I rowsort
SELECT ALL + 57 + + ( - + 74 ) * + col1 AS col1 FROM tab2 AS cor0
----
-3717
-4901
-5641

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-331
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 46 <> - CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 46 <> - CAST ( NULL AS REAL ) + + col2
----

query I rowsort
SELECT + - col1 + + ( 1 ) FROM tab1 cor0
----
-13
-4
-46

query I rowsort
SELECT + col2 + + + col1 * - col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - 79 + - col2 + - ( + col2 ) * + - col2 AS col2 FROM tab0 AS cor0
----
11
2083
9623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 - - ( - 45 ) * - col2 + 33 + - + col1 col0 FROM tab0
----
2118
4538
513

query I rowsort
SELECT - 39 - - 96 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT 33 - + 50 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL - 47 * col2 AS col0 FROM tab1 AS cor0
----
-2773
-3196
-4512

query I rowsort
SELECT - col1 - - ( + 67 ) FROM tab1 AS cor0
----
20
53
62

query I rowsort
SELECT ALL + - 37 * - col1 FROM tab1 AS cor0
----
1739
185
518

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

query I rowsort
SELECT ALL col0 * 73 AS col1 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT ALL + 57 * 7 FROM tab0
----
399
399
399

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 56 <> ( 30 )
----

query I rowsort
SELECT DISTINCT + 88 + col1 AS col0 FROM tab0
----
109
169
89

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT ALL - 29 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - 29 / 63 FROM tab2
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-349
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN ( NULL ) AND - 16
----
0

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) <> + 68 * 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 53 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + + 27 col0 FROM tab2 WHERE + col2 - - col0 IS NULL
----

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

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab1 WHERE - 60 IN ( col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL 31 + - COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL 31 + - COUNT ( * ) FROM tab1
----
28

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

query I rowsort
SELECT col0 + - 46 * col2 AS col1 FROM tab0
----
-2147
-373
-4457

query I rowsort
SELECT 42 + ( + 86 ) AS col2 FROM tab1
----
128
128
128

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 cor0 WHERE col0 * col1 - col2 * + col2 NOT IN ( + 3 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT + SUM( DISTINCT col0 ) + ( MAX( DISTINCT - col1 ) ) * 24 AS col2 FROM tab1 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT + SUM ( DISTINCT col0 ) + ( MAX ( DISTINCT - col1 ) ) * 24 AS col2 FROM tab1 AS cor0
----
107

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

query I rowsort
SELECT DISTINCT ( 20 ) * 12 FROM tab1 AS cor0 CROSS JOIN tab1
----
240

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

skipif mysql # not compatible
query I rowsort label-366
SELECT COUNT ( * ) / - 20 FROM tab2 AS cor0
----
0

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

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

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

query I rowsort
SELECT + 51 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT 19 * MIN( - col2 ) FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( col2 )
----
-1824

skipif mysql # not compatible
query I rowsort label-371
SELECT 19 * MIN ( - col2 ) FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( col2 )
----
-1824

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col1 / 23 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT ALL 68 DIV - col1 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
57

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL 68 / - col1 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
57

query I rowsort
SELECT col2 + + 3 * col2 AS col1 FROM tab2
----
160
232
92

query I rowsort
SELECT ALL ( + ( col2 ) ) + col0 AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT 6 + MAX( + col2 ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-378
SELECT 6 + MAX ( + col2 ) FROM tab0
----
105

query I rowsort
SELECT ALL + 93 * - + col2 * col0 - 95 FROM tab0
----
-65660
-81005
-893174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 + - 14 * 18 col2 FROM tab0
----
-235
-235
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL - MIN( - col0 ) * COUNT( * ) col2 FROM tab2 WHERE ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-381
SELECT ALL - MIN ( - col0 ) * COUNT ( * ) col2 FROM tab2 WHERE ( col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT ( - COUNT( DISTINCT + col0 ) ) DIV + 28 + COUNT( * ) FROM tab0
----
3

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

query I rowsort
SELECT - col0 * + 73 + 31 AS col2 FROM tab2 WHERE NULL <> ( 1 )
----

query I rowsort
SELECT DISTINCT col2 - ( 45 ) FROM tab2
----
-22
-5
13

query I rowsort
SELECT + col1 * - ( col0 ) + - col2 FROM tab1
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + COUNT( * ) + 63 FROM tab2 WHERE ( NULL ) BETWEEN col2 AND ( 9 )
----
63

skipif mysql # not compatible
query I rowsort label-386
SELECT + COUNT ( * ) + 63 FROM tab2 WHERE ( NULL ) BETWEEN col2 AND ( 9 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT ALL + col2 * col2 * 19 - + col1 DIV + 68 FROM tab1
----
175104
66139
87856

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + col2 * col2 * 19 - + col1 / + 68 FROM tab1
----
175104
66139
87856

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT - ( - COUNT( DISTINCT - col2 ) ) + MIN( - col1 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-388
SELECT - ( - COUNT ( DISTINCT - col2 ) ) + MIN ( - col1 ) FROM tab2
----
-74

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

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

query I rowsort
SELECT ALL + col1 * + + 93 * col1 FROM tab0
----
41013
610173
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) IN ( 43 * ( ( + col1 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 51 NOT IN ( col0 * col0 + + 65 )
----

query I rowsort
SELECT + 49 * + col2 FROM tab0 WHERE ( NOT ( NULL ) NOT IN ( - 56 ) )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * + 67 AS col2 FROM tab1 AS cor0
----
-603

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * + 67 AS col2 FROM tab1 AS cor0
----
-603

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

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

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

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

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

query II rowsort
SELECT + col2 AS col2, 2 FROM tab1 AS cor0
----
59
2
68
2
96
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - + MIN( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-403
SELECT - + MIN ( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT SUM( DISTINCT - CAST( 77 AS SIGNED ) ) * COUNT( * ) FROM tab1 cor0 WHERE NOT - 89 * - 85 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT SUM ( DISTINCT - CAST ( 77 AS INTEGER ) ) * COUNT ( * ) FROM tab1 cor0 WHERE NOT - 89 * - 85 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT - col0 DIV - col1 + + + col0 + - 74 * col2 FROM tab2 AS cor0
----
-1656
-2896
-4216

skipif mysql # not compatible
query I rowsort label-405
SELECT - col0 / - col1 + + + col0 + - 74 * col2 FROM tab2 AS cor0
----
-1656
-2896
-4216

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT + 19 * - SUM( ALL + col1 ) col2 FROM tab2
----
-3705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-406
SELECT + 19 * - SUM ( ALL + col1 ) col2 FROM tab2
----
-3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT DISTINCT MAX( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT MAX ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT COUNT( * ) * + 45 AS col2 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-408
SELECT COUNT ( * ) * + 45 AS col2 FROM tab0
----
135

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 66 + + - 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT ALL - COUNT( * ) * 78 AS col1, COUNT( * ) FROM tab0
----
-234
3

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL - COUNT ( * ) * 78 AS col1, COUNT ( * ) FROM tab0
----
-234
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-412
SELECT + MIN( - + CAST( 94 AS SIGNED ) ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-412
SELECT + MIN ( - + CAST ( 94 AS INTEGER ) ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE + col0 + + 92 + col1 + + 89 / + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 * - col2 + - - col1 + - - col0 AS col0 FROM tab0 AS cor0
----
208
2305
9899

query II rowsort
SELECT ALL 56 * - col1 * + - col2 AS col0, + col0 AS col0 FROM tab1
----
16520
85
178976
91
75264
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-416
SELECT * FROM tab0 WHERE ( + 99 + + col1 / 35 ) NOT IN ( CAST( - col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-416
SELECT * FROM tab0 WHERE ( + 99 + + col1 / 35 ) NOT IN ( CAST ( - col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 21 * + 9 * + col1 + + + col1 FROM tab2 AS cor0
----
12730
14630
9690

query II rowsort
SELECT ALL + col2 AS col0, + 32 * + col2 FROM tab0 AS cor0
----
10
320
47
1504
99
3168

query I rowsort
SELECT DISTINCT - + col2 + col1 * - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-2277
-292
-84

query II rowsort
SELECT + col0, + ( - col2 ) + - 18 FROM tab0 cor0
----
15
-65
87
-28
97
-117

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-421
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-421
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( - col1 AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT DISTINCT + - 25 * + + col2 + + col1 FROM tab0 AS cor0
----
-1094
-229
-2474

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = - ( + col2 ) + - 31 + 0 * 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT ALL - col1 + - + col2 + ( - 74 ) - 70 DIV - - col1 FROM tab1
----
-152
-189
-190

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL - col1 + - + col2 + ( - 74 ) - 70 / - - col1 FROM tab1
----
-152
-189
-190

query I rowsort
SELECT ALL col2 + col2 * - 88 AS col0 FROM tab1
----
-5133
-5916
-8352

query I rowsort
SELECT ALL 57 - - col2 * col0 * - 6 * col0 FROM tab0
----
-454083
-5588889
-63393

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT COUNT( * ) - + 66 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-429
SELECT COUNT ( * ) - + 66 FROM tab1
----
-63

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - + MAX( + + 84 ) - - 40 AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-432
SELECT - + MAX ( + + 84 ) - - 40 AS col0 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) - - 19 AS col2 FROM tab0 AS cor0
----
3
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT DISTINCT - MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT 3 / 36 + col0 FROM tab1 AS cor0 WHERE NOT + 0 * + col0 * + - col1 * + 76 / - - col0 / 67 = ( NULL )
----

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab2 cor0
----
-57

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT ALL - 58 + + 80 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + + 97 + + col2 + - - col0 + + CAST( NULL AS SIGNED ) * + col0 AND col0
----

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - 58 + + 80 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + + 97 + + col2 + - - col0 + + CAST ( NULL AS INTEGER ) * + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT - COUNT( col2 ) * + MIN( ALL - - col1 ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-440
SELECT - COUNT ( col2 ) * + MIN ( ALL - - col1 ) FROM tab2 AS cor0
----
-153

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

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

query I rowsort
SELECT + col1 * + ( + col1 ) AS col1 FROM tab1
----
196
2209
25

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

skipif mysql # not compatible
query II rowsort label-444
SELECT - COUNT ( * ) AS col1, + ( + COUNT ( + col2 ) ) AS col0 FROM tab0
----
-3
3

query I rowsort
SELECT col2 * 59 + - col1 FROM tab1
----
3476
3965
5650

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

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

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

query I rowsort
SELECT col1 - - - col1 FROM tab0 AS cor0 WHERE 7 >= 18
----

query I rowsort
SELECT ALL col0 + - + 16 AS col0 FROM tab0 AS cor0
----
-1
71
81

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

query I rowsort
SELECT ALL + 73 * 34 + + 3 FROM tab0
----
2485
2485
2485

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT COUNT( * ) + + 70 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-452
SELECT COUNT ( * ) + + 70 FROM tab1
----
73

query I rowsort
SELECT - 0 + + 59 FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT COUNT( * ) + - 2 * 7 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-454
SELECT COUNT ( * ) + - 2 * 7 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT 97 * 1 * + + MIN( - col0 ) + + + 50 FROM tab2
----
-7225

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT 97 * 1 * + + MIN ( - col0 ) + + + 50 FROM tab2
----
-7225

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

query I rowsort
SELECT 20 FROM tab0 WHERE - col0 IS NOT NULL
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-458
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST( - - col2 AS SIGNED ) ) - + col2 IN ( + 23 * - - col2 + - - col2 * + 68 )
----

skipif mysql # not compatible
query III rowsort label-458
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST ( - - col2 AS INTEGER ) ) - + col2 IN ( + 23 * - - col2 + - - col2 * + 68 )
----

query II rowsort
SELECT ALL - 46 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-46
-51
-46
-67
-46
-77

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

query I rowsort
SELECT + ( - - col0 ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT 40 * 55 AS col0 FROM tab1
----
2200

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-463
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 11 >= CAST( NULL AS SIGNED ) * 67
----

skipif mysql # not compatible
query IIIIII rowsort label-463
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 11 >= CAST ( NULL AS INTEGER ) * 67
----

query II rowsort
SELECT DISTINCT 91 AS col2, - 61 AS col0 FROM tab2
----
91
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 68 AS col2, col2 * ( - - col0 ) + + - 32 + - - col1 col2 FROM tab1 cor0
----
-68
4878
-68
4988
-68
6203

query II rowsort
SELECT ALL col0 AS col1, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT - col1 * col1 + + + 22 FROM tab0 cor0
----
-419
-6539
21

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

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

query I rowsort
SELECT - + 67 + - 24 + + + col1 AS col2 FROM tab1 AS cor0
----
-44
-77
-86

query I rowsort
SELECT + col1 + + 49 AS col2 FROM tab0 AS cor0
----
130
50
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + ( - - col0 ) col1 FROM tab0 AS cor0
----
174
194
30

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

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

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

query I rowsort
SELECT DISTINCT 25 FROM tab2, tab0 AS cor0
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL COUNT( * ) + - MIN( - ( col0 ) ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL COUNT ( * ) + - MIN ( - ( col0 ) ) AS col0 FROM tab1
----
94

query I rowsort
SELECT - - 17 * 10 * 23 AS col1 FROM tab0 AS cor0
----
3910
3910
3910

query II rowsort
SELECT 31 AS col0, - 39 FROM tab0 AS cor0
----
31
-39
31
-39
31
-39

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

query I rowsort
SELECT - 68 + 1 FROM tab0 cor0 WHERE - 97 <> - col1
----
-67
-67
-67

query I rowsort
SELECT ALL + col2 + - 64 AS col0 FROM tab0 AS cor0
----
-17
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - ( + - SUM( ALL + col0 ) ) * + ( MAX( DISTINCT - ( col0 ) ) ) FROM tab1 AS cor0
----
-11577

skipif mysql # not compatible
query I rowsort label-483
SELECT - ( + - SUM ( ALL + col0 ) ) * + ( MAX ( DISTINCT - ( col0 ) ) ) FROM tab1 AS cor0
----
-11577

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * 26 col0 FROM tab0 AS cor0
----
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT + - col2 DIV - col1 * - - col1 - + 86 FROM tab0 AS cor0
----
-86
-86
13

skipif mysql # not compatible
query I rowsort label-485
SELECT + - col2 / - col1 * - - col1 - + 86 FROM tab0 AS cor0
----
-86
-86
13

query I rowsort
SELECT 17 / - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) - + 81 col2 FROM tab1 AS cor0
----
-13
-22
15

query I rowsort
SELECT DISTINCT + ( col0 ) + - + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 19 FROM tab1 WHERE + col0 IS NULL
----

query II rowsort
SELECT + col0 * + col1, - col0 * - 98 - + col0 AS col0 FROM tab1
----
425
8245
4277
8827
714
4947

query I rowsort
SELECT col0 * + 67 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT DISTINCT col1 * ( 9 ) AS col1 FROM tab1
----
126
423
45

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT - ( + - col0 ) DIV + col2 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT - ( + - col0 ) / + col2 FROM tab0 cor0
----
0
8

query II rowsort
SELECT ALL 12 AS col1, 22 + ( + 98 ) FROM tab2 cor0
----
12
120
12
120
12
120

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 55 col0, col2 FROM tab0
----
55
10
55
47
55
99

query I rowsort
SELECT DISTINCT ( - 31 ) FROM tab1
----
-31

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT 45 + - - col2 * - CAST( + col1 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-1248
-165
-3060

skipif mysql # not compatible
query I rowsort label-500
SELECT 45 + - - col2 * - CAST ( + col1 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-1248
-165
-3060

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + - 6 ) col1 FROM tab2 AS cor0 WHERE NULL IN ( + col2, - col0, - 98, 5, - - col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-504
SELECT ALL + + CAST( + 65 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + + CAST ( + 65 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - col2 - - - ( - col0 ) FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-506
SELECT + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-506
SELECT + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col1 - - 86 + + col0 FROM tab0 AS cor0
----
152
182
20

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 48, 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col2 * - col1 * + CAST( NULL AS SIGNED ) / 24
----

skipif mysql # not compatible
query III rowsort label-509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col2 * - col1 * + CAST ( NULL AS INTEGER ) / 24
----

query I rowsort
SELECT DISTINCT + col2 + col0 + col1 + - col2 FROM tab0 cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT COUNT( * ) * - COUNT( * ) * - 46 AS col0 FROM tab1 cor0
----
414

skipif mysql # not compatible
query I rowsort label-511
SELECT COUNT ( * ) * - COUNT ( * ) * - 46 AS col0 FROM tab1 cor0
----
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-512
SELECT - SUM( - CAST( + - col2 AS SIGNED ) ), + MAX( ALL col2 ) AS col2 FROM tab0
----
-156
99

skipif mysql # not compatible
query II rowsort label-512
SELECT - SUM ( - CAST ( + - col2 AS INTEGER ) ), + MAX ( ALL col2 ) AS col2 FROM tab0
----
-156
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT 29 * + COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-514
SELECT 29 * + COUNT ( * ) AS col2 FROM tab0
----
87

query I rowsort
SELECT ( ( - col0 ) ) * - col2 * + + col0 AS col2 FROM tab1
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-516
SELECT DISTINCT 40, - CAST( NULL AS SIGNED ) / + + col0 AS col0 FROM tab1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-516
SELECT DISTINCT 40, - CAST ( NULL AS INTEGER ) / + + col0 AS col0 FROM tab1
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT DISTINCT 91 * + COUNT( * ) AS col1 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT 91 * + COUNT ( * ) AS col1 FROM tab2
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT DISTINCT - ( ( 94 ) ) DIV - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT - ( ( 94 ) ) / - col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + - SUM( ALL + - 83 ) FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-519
SELECT + - SUM ( ALL + - 83 ) FROM tab0 AS cor0
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * 61 AS col0, - col0 + + col2 col0 FROM tab1
----
-3599
-26
-4148
-23
-5856
45

onlyif mysql # aggregate syntax: 
query II rowsort label-521
SELECT ALL - COUNT( * ) * - - 78 AS col0, 40 FROM tab0
----
-234
40

skipif mysql # not compatible
query II rowsort label-521
SELECT ALL - COUNT ( * ) * - - 78 AS col0, 40 FROM tab0
----
-234
40

query I rowsort
SELECT - col0 * - 59 * - - 32 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
160480
171808
96288

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

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - - 56 / - COUNT ( * ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - 35 + 23 + - - 8 AS col2 FROM tab2 AS cor0
----
-4
-4
-4

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-526
SELECT ALL + CAST( - col2 AS SIGNED ) AS col0, 33 FROM tab1 AS cor0
----
-59
33
-68
33
-96
33

skipif mysql # not compatible
query II rowsort label-526
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col0, 33 FROM tab1 AS cor0
----
-59
33
-68
33
-96
33

query I rowsort
SELECT DISTINCT + 93 + col2 + - col1 * + col0 * - 36 FROM tab2 AS cor0
----
177541
181051
84572

query I rowsort
SELECT DISTINCT 30 * col1 + - col1 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT ALL + col0 + - 49 FROM tab1
----
2
36
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE + 73 * - col2 / + 25 - - 43 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-531
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + + 63 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + + 63 < NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-534
SELECT + ( + COUNT ( * ) ) * COUNT ( * ) FROM tab2
----
9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT + COUNT( * ) * + + MAX( col2 ) AS col2 FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-537
SELECT + COUNT ( * ) * + + MAX ( col2 ) AS col2 FROM tab2 cor0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT + COUNT( * ) * - CAST( + 74 AS SIGNED ) + + 14 AS col2 FROM tab0 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-538
SELECT + COUNT ( * ) * - CAST ( + 74 AS INTEGER ) + + 14 AS col2 FROM tab0 AS cor0
----
-208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 + ( - ( + 61 ) ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col2, ( + + col1 ) * col0 + - col0 AS col2 FROM tab2 cor0
----
-23
2300
-40
4864
-58
4950

query II rowsort
SELECT ALL - col0, 38 AS col2 FROM tab1 AS cor0
----
-51
38
-85
38
-91
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-542
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col1 / - col2 * - CAST( NULL AS DECIMAL ) * - 19 * + + col2 * col0 + 54 NOT IN ( + col2 / - col2 + + col0 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col1 / - col2 * - CAST ( NULL AS REAL ) * - 19 * + + col2 * col0 + 54 NOT IN ( + col2 / - col2 + + col0 + + col1 )
----
0

query I rowsort
SELECT DISTINCT 56 * col1 AS col1 FROM tab1
----
2632
280
784

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

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

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - 41 > col1 - col2 + col2 * - col0 - - - col0
----

query II rowsort
SELECT DISTINCT - 42 * col2, - 11 AS col2 FROM tab1
----
-2478
-11
-2856
-11
-4032
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT ALL col2 + + + CAST( col1 AS SIGNED ) FROM tab2 cor0 WHERE NULL IS NULL
----
117
125
74

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL col2 + + + CAST ( col1 AS INTEGER ) FROM tab2 cor0 WHERE NULL IS NULL
----
117
125
74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT - 33 AS col0, - COUNT( * ) AS col2 FROM tab2
----
-33
-3

skipif mysql # not compatible
query II rowsort label-550
SELECT - 33 AS col0, - COUNT ( * ) AS col2 FROM tab2
----
-33
-3

query I rowsort
SELECT ALL - col0 * + 18 FROM tab2
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT DISTINCT - 81, MIN( - 14 ) AS col1 FROM tab0 AS cor0
----
-81
-14

skipif mysql # not compatible
query II rowsort label-552
SELECT DISTINCT - 81, MIN ( - 14 ) AS col1 FROM tab0 AS cor0
----
-81
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT + + ( - + 7 ) DIV col1 - - + col0 DIV 98 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-553
SELECT + + ( - + 7 ) / col1 - - + col0 / 98 FROM tab1 cor0
----
-1
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-555
SELECT DISTINCT - col0 col2, col1 * - + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-555
SELECT DISTINCT - col0 col2, col1 * - + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 * + col0 * + - col2 col1 FROM tab1 AS cor0
----
-249645
-426190
-563017

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

query I rowsort
SELECT - 23 + - + col1 AS col2 FROM tab0 cor0
----
-104
-24
-44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT col2 + - CAST( + 60 AS SIGNED ) FROM tab0
----
-13
-50
39

skipif mysql # not compatible
query I rowsort label-560
SELECT col2 + - CAST ( + 60 AS INTEGER ) FROM tab0
----
-13
-50
39

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT - ( - col1 ) DIV + col1 + + col2 AS col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-561
SELECT - ( - col1 ) / + col1 + + col2 AS col0 FROM tab0
----
100
11
48

query II rowsort
SELECT DISTINCT + col0 - + 0 + - + col2 + + 63 * - col2 AS col2, + col0 FROM tab1
----
-3691
85
-4261
91
-6093
51

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT + 30 - + + ( MIN( 64 ) ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT + 30 - + + ( MIN ( 64 ) ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + COUNT( * ) * - - 72 col1 FROM tab1, tab1 AS cor0
----
648

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

query I rowsort
SELECT ALL + col1 * - col1 * + + col2 + - - col0 AS col1 FROM tab0 cor0
----
-2
-308352
-4323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

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

query I rowsort
SELECT ALL + col2 * + 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT - CAST( - ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-569
SELECT - CAST ( - ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT - - 13 * + - col1 FROM tab2 cor0
----
-1001
-663
-871

query II rowsort
SELECT DISTINCT col1 AS col0, - 6 FROM tab0 AS cor0
----
1
-6
21
-6
81
-6

query I rowsort
SELECT + col1 * - + 28 AS col0 FROM tab2
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-574
SELECT - 80 * + COUNT( ALL - + 83 ) DIV - COUNT( * ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-574
SELECT - 80 * + COUNT ( ALL - + 83 ) / - COUNT ( * ) AS col0 FROM tab0
----
80

query II rowsort
SELECT DISTINCT 34, + col2 FROM tab1
----
34
59
34
68
34
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 7 col2 FROM tab0
----
329
693
70

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT + MIN( + + ( - col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-579
SELECT + MIN ( + + ( - col2 ) ) AS col0 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-580
SELECT ALL - col2 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-580
SELECT ALL - col2 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT ALL + col2 + CAST( NULL AS SIGNED ) - + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) - + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN + col1 AND - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT + ( - + ( COUNT( * ) ) ) FROM tab0 cor0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT ALL - ( + 42 ) AS col2 FROM tab0, tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - ( + 42 ) AS col2 FROM tab0, tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT NULL = + 78
----

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

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

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

query I rowsort
SELECT DISTINCT col1 + 69 FROM tab1 AS cor0
----
116
74
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT DISTINCT + col1 + - 67 + 91 DIV - + col2 col0 FROM tab2 AS cor0
----
-1
-19
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-591
SELECT DISTINCT + col1 + - 67 + 91 / - + col2 col0 FROM tab2 AS cor0
----
-1
-19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT COUNT( ALL + - 78 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-592
SELECT COUNT ( ALL + - 78 ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 75 + - - col1 - - 38 FROM tab1
----
118
127
160

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-595
SELECT DISTINCT - 66 * ( + ( - CAST( ( + 19 ) AS DECIMAL ) ) ) - + col1 FROM tab2 WHERE + - col2 + 43 NOT BETWEEN NULL AND - 66 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - 66 * ( + ( - CAST ( ( + 19 ) AS REAL ) ) ) - + col1 FROM tab2 WHERE + - col2 + 43 NOT BETWEEN NULL AND - 66 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 + col2 + col1 FROM tab2
----
157
183
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-597
SELECT DISTINCT MIN( - col1 ) - - - COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab1
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - 18 + + + COUNT( * ) - - 99 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-598
SELECT - 18 + + + COUNT ( * ) - - 99 FROM tab1 cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + - SUM( ALL - col0 ) + COUNT( * ) - 73 AS col1 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-599
SELECT + - SUM ( ALL - col0 ) + COUNT ( * ) - 73 AS col1 FROM tab2 AS cor0
----
115

query I rowsort
SELECT + col0 * 32 + 34 AS col2 FROM tab1 cor0
----
1666
2754
2946

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - - COUNT( * ) + + - 37 + - ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-601
SELECT - - COUNT ( * ) + + - 37 + - ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-31

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT NULL >= - 21 + - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-608
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT NULL >= - 21 + - CAST ( + col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 73 ) col0 FROM tab0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 89 NOT BETWEEN - col2 / - col2 + + + col2 AND + col2
----

query I rowsort
SELECT ALL - 9 * + + col2 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT DISTINCT - + col0 + 25 * - col1 + col2 FROM tab0 AS cor0
----
-1993
-23
-602

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-614
SELECT DISTINCT - - MAX( ALL + 78 ) * + CAST( NULL AS SIGNED ) * + 49 * - - COUNT( col1 ) * + 42 FROM tab0 WHERE - + 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - - MAX ( ALL + 78 ) * + CAST ( NULL AS INTEGER ) * + 49 * - - COUNT ( col1 ) * + 42 FROM tab0 WHERE - + 55 IS NULL
----
NULL

query I rowsort
SELECT + 63 * - col2 FROM tab2
----
-1449
-2520
-3654

query I rowsort
SELECT ALL + + 39 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT MAX( ALL - ( + + 11 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-11

skipif mysql # not compatible
query I rowsort label-617
SELECT MAX ( ALL - ( + + 11 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-11

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

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

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

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

query I rowsort
SELECT ALL - col0 * - col2 + - - 92 FROM tab0 AS cor0 WHERE NULL IS NULL
----
797
962
9695

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT 14 * + col1 + + col1 DIV - 26 AS col1 FROM tab0
----
1131
14
294

skipif mysql # not compatible
query I rowsort label-622
SELECT 14 * + col1 + + col1 / - 26 AS col1 FROM tab0
----
1131
14
294

query I rowsort
SELECT + 2 + 9 * + col1 FROM tab1
----
128
425
47

query I rowsort
SELECT DISTINCT ( - col0 ) + - 79 FROM tab2
----
-125
-143
-154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-625
SELECT col2 + - + col0, col0 * + col0 * 73 DIV CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-77
-6351
2
-7081
32
-1095

skipif mysql # not compatible
query II rowsort label-625
SELECT col2 + - + col0, col0 * + col0 * 73 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-77
-6351
2
-7081
32
-1095

query I rowsort
SELECT DISTINCT 55 - - col0 + + col2 * col0 * - 43 * + 22 FROM tab0
----
-666860
-822878
-9084286

query I rowsort
SELECT + + col0 + + 1 AS col1 FROM tab1 WHERE - - ( - col1 ) IS NOT NULL
----
52
86
92

query I rowsort
SELECT - 24 * - col0 + col1 + + 29 * + - col1 FROM tab2
----
-324
-620
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-630
SELECT + CAST( + 26 AS SIGNED ) col2, - 12 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-630
SELECT + CAST ( + 26 AS INTEGER ) col2, - 12 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
26
NULL
26
NULL
26
NULL

query I rowsort
SELECT ALL - col0 * 95 * 84 AS col0 FROM tab1
----
-406980
-678300
-726180

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT + + MIN( DISTINCT - col2 ) DIV + 85 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-633
SELECT + + MIN ( DISTINCT - col2 ) / + 85 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT DISTINCT + 92 DIV 49 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT + 92 / 49 AS col1 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT 55 * + - COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-636
SELECT 55 * + - COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-165

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-638
SELECT * FROM tab1 WHERE NULL < + ( - + col2 ) AND CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-638
SELECT * FROM tab1 WHERE NULL < + ( - + col2 ) AND CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT - 73 * + 16, 63 AS col2 FROM tab2
----
-1168
63
-1168
63
-1168
63

query I rowsort
SELECT + - 91 FROM tab0 WHERE NOT 88 = col0
----
-91
-91
-91

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

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

query I rowsort
SELECT ALL col0 + + - 80 * - + col1 + - col1 AS col2 FROM tab1 AS cor0
----
1157
3804
480

query I rowsort
SELECT DISTINCT + - col2 * + - col1 + - col1 FROM tab1 cor0 WHERE 62 NOT BETWEEN 31 * + - 11 * + 66 * - + col2 * - + 62 AND - - col0 * + ( - + 26 )
----
1330
290
3149

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 15 + - - col2 + + - col1 + - 8 * - - 83 / - - col2 - + - col2, col2, col0 + + 43, + col2, - 26 )
----

query I rowsort
SELECT + + col2 * - col0 * + 66 AS col1 FROM tab0 AS cor0
----
-46530
-57420
-633798

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

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

query I rowsort
SELECT DISTINCT 42 * - - col0 AS col1 FROM tab2 AS cor0
----
1932
2688
3150

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT + - col2 * 15 DIV - col2 AS col1 FROM tab1 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-648
SELECT + - col2 * 15 / - col2 AS col1 FROM tab1 AS cor0
----
15
15
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 + + col2 col0 FROM tab1 AS cor0
----
18
46
9

query I rowsort
SELECT DISTINCT + 10 * col2 FROM tab2 AS cor0
----
230
400
580

query I rowsort
SELECT ALL + - 84 * - - col1 + col2 * - - col0 FROM tab1 AS cor0
----
2240
3720
4595

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

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

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

query I rowsort
SELECT DISTINCT col0 - - - col1 + col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + ( + 77 ) + + 30 AS col2 FROM tab2
----
107

query I rowsort
SELECT + col0 - - col2 + - + col0 AS col0 FROM tab0 WHERE NULL <= + 43 + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 46 BETWEEN NULL AND + 79
----

query I rowsort
SELECT ALL - col1 + + col2 + + 98 + - col0 * - + 25 FROM tab2
----
1220
1661
1964

query II rowsort
SELECT ALL + col2 AS col1, 39 + - + 84 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL MAX( + col1 ) - COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL MAX ( + col1 ) - COUNT ( * ) FROM tab0
----
78

query I rowsort
SELECT 91 + col1 FROM tab0
----
112
172
92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT 26 AS col0, SUM( + 62 ) + - 85 FROM tab1 AS cor0
----
26
101

skipif mysql # not compatible
query II rowsort label-664
SELECT 26 AS col0, SUM ( + 62 ) + - 85 FROM tab1 AS cor0
----
26
101

query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT 67 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-666
SELECT ALL + - COUNT( * ) col2, 74 * 73 AS col0 FROM tab1 AS cor0
----
-3
5402

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-666
SELECT ALL + - COUNT ( * ) col2, 74 * 73 AS col0 FROM tab1 AS cor0
----
-3
5402

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 39 * - col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * + - col0 * + + 53 NOT BETWEEN NULL AND + 59 + + col1 / - col1
----

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - - 85 ) * - col0 - + + col0 * + 29 BETWEEN col2 AND NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 + - 62, - 17 / col0 * ( + + 68 ) + 65, + + 14 + - - 9 / - 19, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT DISTINCT - + col2 + col2 DIV - + 68 col0 FROM tab0 AS cor0
----
-10
-100
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-671
SELECT DISTINCT - + col2 + col2 / - + 68 col0 FROM tab0 AS cor0
----
-10
-100
-47

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

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

query I rowsort
SELECT ALL col2 * - 96 AS col2 FROM tab1
----
-5664
-6528
-9216

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

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

query I rowsort
SELECT ALL - 64 * + 19 FROM tab0
----
-1216
-1216
-1216

query I rowsort
SELECT ALL + col0 + + 76 AS col2 FROM tab0
----
163
173
91

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT - + 29 DIV CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - + 29 / CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
0
1

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

query I rowsort
SELECT + 98 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + - 96 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT - 77 * - + 59 FROM tab0 WHERE col2 IS NOT NULL
----
4543
4543
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + + col1 ) - + col2 col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-688
SELECT ALL - CAST( NULL AS SIGNED ) * + 55 / 91 + ( + - 25 ) * + ( - col1 ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL - CAST ( NULL AS INTEGER ) * + 55 / 91 + ( + - 25 ) * + ( - col1 ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ( 14 ) AS col1 FROM tab1
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT ALL + MAX( - + col2 ) FROM tab0 WHERE - col2 * - col0 / + col2 >= - CAST( - col1 AS SIGNED ) * - + 36 + - ( col2 ) + + 51 / + + col1 * col0 + - col2 + - col1 * - 92 * + col2 * col1 + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + MAX ( - + col2 ) FROM tab0 WHERE - col2 * - col0 / + col2 >= - CAST ( - col1 AS INTEGER ) * - + 36 + - ( col2 ) + + 51 / + + col1 * col0 + - col2 + - col1 * - 92 * + col2 * col1 + - - col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 53 < - - col1 - - col0 / + col1
----

query I rowsort
SELECT ALL - 37 * - col1 AS col0 FROM tab2
----
1887
2479
2849

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

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT COUNT ( * ) * 33 FROM tab1
----
99

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

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab2 cor0
----
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - 37 col0 FROM tab2 AS cor0
----
1702
2368
2775

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-698
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - + col0 col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - 35 NOT BETWEEN col1 AND - - ( - ( col2 ) ) / - col1 + + 24 + col1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT ALL + 27 DIV + 48 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + 27 / + 48 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col0 + - col0 * + 17 * + - 93 * + 70 FROM tab0 AS cor0
----
10735087
1660065
9628377

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT col1 + + col2 + + 81 * - - col0 * - - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE 65 NOT BETWEEN NULL AND + ( - col2 )
----
210791
585289
670876

skipif mysql # not compatible
query I rowsort label-703
SELECT col1 + + col2 + + 81 * - - col0 * - - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE 65 NOT BETWEEN NULL AND + ( - col2 )
----
210791
585289
670876

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT SUM( + col2 ) + COUNT( * ) + + 99 AS col1 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT SUM ( + col2 ) + COUNT ( * ) + + 99 AS col1 FROM tab0
----
258

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-705
SELECT COUNT ( + col2 ) col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND - - col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT ALL 52 DIV + - MIN( + col2 ) * - 78 + + + 40 AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL 52 / + - MIN ( + col2 ) * - 78 + + + 40 AS col2 FROM tab1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL SUM( + col2 ) * - + SUM( ALL + - col0 ) FROM tab0
----
31044

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL SUM ( + col2 ) * - + SUM ( ALL + - col0 ) FROM tab0
----
31044

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT DISTINCT - + SUM( ALL + 71 ) AS col2, 81 AS col0 FROM tab1 AS cor0
----
-213
81

skipif mysql # not compatible
query II rowsort label-708
SELECT DISTINCT - + SUM ( ALL + 71 ) AS col2, 81 AS col0 FROM tab1 AS cor0
----
-213
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-709
SELECT 69 DIV col2 + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
41
59

skipif mysql # not compatible
query I rowsort label-709
SELECT 69 / col2 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
41
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-710
SELECT ALL - - COUNT( DISTINCT - CAST( + + col1 AS DECIMAL ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL - - COUNT ( DISTINCT - CAST ( + + col1 AS REAL ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-711
SELECT ALL * FROM tab0 WHERE + 43 NOT IN ( - - col2 / + col1 + 26 - + col0, col2, + CAST( + col2 AS SIGNED ) + + col1, - + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-711
SELECT ALL * FROM tab0 WHERE + 43 NOT IN ( - - col2 / + col1 + 26 - + col0, col2, + CAST ( + col2 AS INTEGER ) + + col1, - + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - - 51 / - 38 IS NULL
----

query I rowsort
SELECT DISTINCT - 85 * - 99 * 39 - col1 * col0 + + 93 FROM tab1
----
324001
327564
327853

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

skipif mysql # not compatible
query I rowsort label-714
SELECT - MAX ( DISTINCT 52 ) FROM tab0 AS cor0
----
-52

query I rowsort
SELECT col2 * - 79 AS col2 FROM tab2 AS cor0
----
-1817
-3160
-4582

query I rowsort
SELECT ALL - col0 * col1 + + - col0 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-717
SELECT ALL - COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN + col0 AND NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT col1 DIV + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 25 NOT BETWEEN col0 AND 92 * col0 + + col2
----
1

skipif mysql # not compatible
query I rowsort label-719
SELECT col1 / + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 25 NOT BETWEEN col0 AND 92 * col0 + + col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL = + 64
----
0

skipif mysql # not compatible
query I rowsort label-720
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL = + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT col1 DIV - ( - col0 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-721
SELECT col1 / - ( - col0 ) FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT + MAX( ALL - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT + MAX ( ALL - - col2 ) FROM tab2
----
58

query II rowsort
SELECT + - ( 57 ), col0 * - 97 AS col2 FROM tab0 AS cor0
----
-57
-1455
-57
-8439
-57
-9409

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

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

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

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

query I rowsort
SELECT - col1 * - col0 * col1 * + - col0 AS col1 FROM tab2
----
-24285184
-25250625
-5503716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 16 col1, col1 FROM tab1
----
-16
14
-16
47
-16
5

query I rowsort
SELECT ALL + 1 AS col1 FROM tab0 WHERE NOT + col2 >= NULL
----

query II rowsort
SELECT - - col1 * col0 + + - 42, 62 + + - col2 AS col0 FROM tab1 AS cor0
----
383
3
4235
-6
672
-34

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

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

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

query I rowsort
SELECT - + 95 * + - ( + - col2 ) * + col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + - 7
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 19 <> NULL
----

query II rowsort
SELECT ALL - col1 + + col1 + + + col1 AS col0, 16 * - col1 FROM tab1 AS cor0
----
14
-224
47
-752
5
-80

query I rowsort
SELECT ALL col1 + + + ( col2 ) FROM tab1
----
110
115
64

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

query I rowsort
SELECT + 43 + + 14 - - + col2 * + + 63 FROM tab0
----
3018
6294
687

query I rowsort
SELECT col0 + + 74 FROM tab1
----
125
159
165

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT ALL - col1 * - + col2 + - col0 DIV - col1 - + col2 * + + col2 * + ( col0 ) AS col2 FROM tab0
----
-29328
-8486
-950501

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - col1 * - + col2 + - col0 / - col1 - + col2 * + + col2 * + ( col0 ) AS col2 FROM tab0
----
-29328
-8486
-950501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col2 FROM tab2 AS cor0 WHERE NOT + col2 < NULL
----

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

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

query I rowsort
SELECT ALL 11 + + + 44 FROM tab2
----
55
55
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT CAST( + 23 AS SIGNED ) * - ( + + col0 ) FROM tab1
----
-1173
-1955
-2093

skipif mysql # not compatible
query I rowsort label-745
SELECT CAST ( + 23 AS INTEGER ) * - ( + + col0 ) FROM tab1
----
-1173
-1955
-2093

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

skipif mysql # not compatible
query I rowsort label-746
SELECT + COUNT ( * ) / + 41 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT ALL + 69 DIV + COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + 69 / + COUNT ( * ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-748
SELECT - 14 DIV col0 DIV 75 AS col1, - ( - + 50 ) + + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col1 AS col0 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-748
SELECT - 14 / col0 / 75 AS col1, - ( - + 50 ) + + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 AS col0 FROM tab2
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - COUNT( DISTINCT - 81 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-749
SELECT - COUNT ( DISTINCT - 81 ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + - 25 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 + + - col1, col2, + 80 + + col1, - col2 - - - col1, + - col1 )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-753
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + SUM( - ( - 94 ) ) AS col2 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-755
SELECT + SUM ( - ( - 94 ) ) AS col2 FROM tab2
----
282

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col1 FROM tab1 WHERE ( 36 * col2 ) IS NOT NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT - COUNT( * ) - 71 col2 FROM tab2
----
-74

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

query I rowsort
SELECT DISTINCT 25 + - col1 * 47 FROM tab1
----
-210
-2184
-633

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( + 62 / + col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT 50 * - COUNT( * ) AS col2 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-761
SELECT 50 * - COUNT ( * ) AS col2 FROM tab0
----
-150

query I rowsort
SELECT + col1 * - ( 23 ) FROM tab0
----
-1863
-23
-483

query I rowsort
SELECT - 9 FROM tab0 WHERE NOT col2 > 3 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL COUNT( * ) * 53 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL COUNT ( * ) * 53 FROM tab2
----
159

query I rowsort
SELECT ALL + col2 * ( col2 ) AS col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT 23 + + 56 FROM tab2
----
79
79
79

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

query I rowsort
SELECT DISTINCT + col1 * 91 AS col2 FROM tab1
----
1274
4277
455

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 97 ) NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 87 + + col1 ) NOT BETWEEN ( 6 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 38 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT 97 DIV 23 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-772
SELECT 97 / 23 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-773
SELECT 35 DIV COUNT( * ) col2 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-773
SELECT 35 / COUNT ( * ) col2 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL + 15 - + MIN( col0 ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 15 - + MIN ( col0 ) AS col2 FROM tab2
----
-31

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

query I rowsort
SELECT - ( 78 ) + - col1 FROM tab0 AS cor0
----
-159
-79
-99

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

query I rowsort
SELECT 5 * - col0 + + col0 FROM tab2 AS cor0
----
-184
-256
-300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT 45 + 52 AS col1 FROM tab2 AS cor0 WHERE ( + col2 * - 58 ) IS NOT NULL
----
97
97
97

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

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

query I rowsort
SELECT - 25 FROM ( tab0 AS cor0 CROSS JOIN tab2 ) WHERE NOT 54 IS NULL
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT + MIN( - 20 ) - - MAX( ALL col1 ) AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT + MIN ( - 20 ) - - MAX ( ALL col1 ) AS col2 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL COUNT( * ) * 38 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL COUNT ( * ) * 38 FROM tab2 AS cor0
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT + SUM( 98 ) + - 44 FROM tab0 AS cor0 WHERE NULL IS NULL
----
250

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + SUM ( 98 ) + - 44 FROM tab0 AS cor0 WHERE NULL IS NULL
----
250

query I rowsort
SELECT DISTINCT - col0 * + 25 FROM tab1 AS cor0
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT ALL - 95 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - 95 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL + MIN( + col2 ) * 23 FROM tab2 AS cor0
----
529

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + MIN ( + col2 ) * 23 FROM tab2 AS cor0
----
529

query I rowsort
SELECT DISTINCT + ( 9 ) * 48 AS col1 FROM tab1 AS cor0
----
432

query I rowsort
SELECT + + 56 * - col1 AS col0 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT ( - col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
-1

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

query I rowsort
SELECT col2 * 79 AS col0 FROM tab2 AS cor0
----
1817
3160
4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col1 col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 IN ( 66 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - ( COUNT( - col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-796
SELECT - ( COUNT ( - col2 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 * 22 FROM tab0
----
1782
22
462

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 * col2 ) = ( + col2 * 91 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL - COUNT( * ) * - - 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - COUNT ( * ) * - - 88 FROM tab2
----
-264

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - 93 + + col2 AND ( col0 * + 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT - ( + col0 ) DIV - col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-801
SELECT - ( + col0 ) / - col1 FROM tab2
----
0
0
1

query I rowsort
SELECT - ( + + 28 ) AS col2 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 + col2 FROM tab0 AS cor0
----
-643
-773
-9407

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT * FROM tab0 WHERE ( ( col0 ) BETWEEN col0 / CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-805
SELECT * FROM tab0 WHERE ( ( col0 ) BETWEEN col0 / CAST ( NULL AS INTEGER ) AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-806
SELECT DISTINCT - 97 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT - 97 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + col1 * col0 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / col1 / col2 + - col1 <= + 79 * 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < ( 87 * + col2 * + 86 + + 87 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-814
SELECT 46 + + + col0 + col2 + CAST( col2 AS SIGNED ) * + col2 * - col1 * + 74 AS col0 FROM tab2
----
-16678533
-1996331
-9116650

skipif mysql # not compatible
query I rowsort label-814
SELECT 46 + + + col0 + col2 + CAST ( col2 AS INTEGER ) * + col2 * - col1 * + 74 AS col0 FROM tab2
----
-16678533
-1996331
-9116650

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL + 75 + - 35 + COUNT( * ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + 75 + - 35 + COUNT ( * ) AS col0 FROM tab1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - 46 col0, 86 + + 93 FROM tab0
----
-25
179
-45
179
35
179

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT + COUNT( * ) + 48 DIV - + COUNT( * ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-819
SELECT + COUNT ( * ) + 48 / - + COUNT ( * ) AS col2 FROM tab2
----
-13

query I rowsort
SELECT ALL - 72 AS col2 FROM tab1 WHERE - 34 * + + col1 IS NOT NULL
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT 95 + - CAST( - + col0 AS SIGNED ) * - col2 FROM tab0
----
-610
-775
-9508

skipif mysql # not compatible
query I rowsort label-821
SELECT 95 + - CAST ( - + col0 AS INTEGER ) * - col2 FROM tab0
----
-610
-775
-9508

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + + 51 / - col0 * - col1 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > + - 29 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT MAX( DISTINCT - + 77 ) AS col0 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT MAX ( DISTINCT - + 77 ) AS col0 FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - 2 * + 21 * 67 * COUNT( * ) * MAX( DISTINCT + 53 ) AS col2 FROM tab2
----
-447426

skipif mysql # not compatible
query I rowsort label-827
SELECT - 2 * + 21 * 67 * COUNT ( * ) * MAX ( DISTINCT + 53 ) AS col2 FROM tab2
----
-447426

query I rowsort
SELECT DISTINCT - 77 * + 2 AS col2 FROM tab0 AS cor0
----
-154

query I rowsort
SELECT DISTINCT - 37 * - col0 AS col2 FROM tab1 cor0
----
1887
3145
3367

query I rowsort
SELECT + col2 * 40 + + col1 FROM tab0 AS cor0
----
1961
3961
421

query I rowsort
SELECT - col1 / + - 63 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( + 43 ) )
----

query II rowsort
SELECT DISTINCT 10 AS col2, - col2 FROM tab2 cor0
----
10
-23
10
-40
10
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL COUNT( - - col1 ) * - 77 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL COUNT ( - - col1 ) * - 77 FROM tab1 AS cor0
----
-231

query I rowsort
SELECT ALL col2 - 74 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IN ( - - col2 )
----
-27
-64
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 54 col2 FROM tab1 AS cor0
----
-2754
-4590
-4914

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL 75 * + COUNT( * ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL 75 * + COUNT ( * ) FROM tab1
----
225

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-841
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - col0 * CAST( NULL AS SIGNED ) * + + col0 * - 56 )
----

skipif mysql # not compatible
query III rowsort label-841
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - col0 * CAST ( NULL AS INTEGER ) * + + col0 * - 56 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 NOT BETWEEN - col0 * - + col2 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT ALL + col2 DIV - 33 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + col2 / - 33 FROM tab0 AS cor0
----
-1
-3
0

query II rowsort
SELECT ALL + + col1 + - col2 AS col0, + 25 * + 24 AS col2 FROM tab2 AS cor0
----
28
600
37
600
9
600

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

query I rowsort
SELECT + col2 * + col2 * 80 AS col0 FROM tab0 AS cor0
----
176720
784080
8000

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT - + ( ( - col1 ) ) DIV - + ( - col1 ) + - - ( - 90 ) + + col0 * - col0 * - col0 FROM tab1 AS cor0
----
132562
614036
753482

skipif mysql # not compatible
query I rowsort label-848
SELECT - + ( ( - col1 ) ) / - + ( - col1 ) + - - ( - 90 ) + + col0 * - col0 * - col0 FROM tab1 AS cor0
----
132562
614036
753482

query I rowsort
SELECT ALL + - col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT - col0 * + + CAST( NULL AS SIGNED ) 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-850
SELECT - col0 * + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-853
SELECT DISTINCT * FROM tab1 WHERE - CAST( + col1 AS DECIMAL ) * - 97 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-853
SELECT DISTINCT * FROM tab1 WHERE - CAST ( + col1 AS REAL ) * - 97 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 68 ) + col0 FROM tab1
----
119
153
159

query I rowsort
SELECT DISTINCT 67 - - - col2 * col0 FROM tab0
----
-638
-803
-9536

query I rowsort
SELECT 64 - - col2 AS col0 FROM tab1
----
123
132
160

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT 26 + - + 85 + + 2 * - COUNT( * ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-857
SELECT 26 + - + 85 + + 2 * - COUNT ( * ) FROM tab0
----
-65

query II rowsort
SELECT DISTINCT 42 * - col0 - + 55 AS col0, col1 * col1 AS col1 FROM tab1
----
-2197
196
-3625
25
-3877
2209

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

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT DISTINCT 71 AS col2, SUM( 2 ) * - + COUNT( * ) + + COUNT( * ) - + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
71
-162

skipif mysql # not compatible
query II rowsort label-860
SELECT DISTINCT 71 AS col2, SUM ( 2 ) * - + COUNT ( * ) + + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
71
-162

query I rowsort
SELECT ALL 34 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - col2 * + + 84 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT + col1 + - 95 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT + col0 * col2 IS NULL
----
-15
-87
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 * - col0 * - 19 col0 FROM tab0
----
1084995
182457
347130

query I rowsort
SELECT 47 * + + 20 FROM tab2
----
940
940
940

query I rowsort
SELECT - col0 * - + 56 FROM tab0
----
4872
5432
840

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

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

query I rowsort
SELECT - col1 * - col1 + - 23 FROM tab1
----
173
2
2186

query I rowsort
SELECT 56 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col2 + + 80 + - ( - - col2 ) * col1 FROM tab2 AS cor0
----
-1065
-2963
-3797

query I rowsort
SELECT + ( - - 63 ) AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT ( - - 38 ) FROM tab0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-877
SELECT CAST( NULL AS SIGNED ) / 59 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-877
SELECT CAST ( NULL AS INTEGER ) / 59 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 AS col0, - 77 AS col2 FROM tab1 AS cor0
----
-51
-77
-85
-77
-91
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ( + 82 ) + COUNT( * ) * - MIN( + - col1 ) FROM tab0 AS cor0
----
325

skipif mysql # not compatible
query I rowsort label-879
SELECT ( + 82 ) + COUNT ( * ) * - MIN ( + - col1 ) FROM tab0 AS cor0
----
325

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

query I rowsort
SELECT + col1 + + col0 + + - col2 * - 17 AS col0 FROM tab2 AS cor0
----
1128
488
821

query I rowsort
SELECT - col2 * col0 + - + col0 FROM tab0 cor0 WHERE + 3 = ( NULL )
----

query I rowsort
SELECT ALL + + 32 * - col1 FROM tab1 AS cor0
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + COUNT( * ) + + - 95 AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + COUNT ( * ) + + - 95 AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT DISTINCT - col1 + + - 4 + 52 AS col0 FROM tab0 AS cor0
----
-33
27
47

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT + ( - COUNT( ALL + - 70 ) ) - + + MAX( 20 ) AS col2 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + ( - COUNT ( ALL + - 70 ) ) - + + MAX ( 20 ) AS col2 FROM tab0
----
-23

query I rowsort
SELECT + 52 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

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

query I rowsort
SELECT - 57 FROM tab0 cor0 WHERE NOT 76 <> NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-893
SELECT DISTINCT + + col2 * - - col2 AS col0, col1 DIV - col1 + 86 AS col2, col2 col0 FROM tab2 AS cor0
----
9 values hashing to dac89d3723db8bda5c994e676dc86173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-893
SELECT DISTINCT + + col2 * - - col2 AS col0, col1 / - col1 + 86 AS col2, col2 col0 FROM tab2 AS cor0
----
9 values hashing to dac89d3723db8bda5c994e676dc86173

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT ALL - COUNT( DISTINCT - ( 86 ) ) AS col0, 52 + 79 FROM tab1 AS cor0
----
-1
131

skipif mysql # not compatible
query II rowsort label-896
SELECT ALL - COUNT ( DISTINCT - ( 86 ) ) AS col0, 52 + 79 FROM tab1 AS cor0
----
-1
131

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

query II rowsort
SELECT col0 * - col0 AS col1, - col2 + + ( - col1 ) + 18 FROM tab1
----
-2601
-92
-7225
-46
-8281
-97

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( - - col2 * + col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT SUM( - 36 ) col2 FROM tab1
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-903
SELECT SUM ( - 36 ) col2 FROM tab1
----
-108

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

query II rowsort
SELECT ALL + col0 + + - 94, col0 + - col1 + - col0 * + ( 71 ) AS col0 FROM tab0
----
-7
-6111
-79
-1131
3
-6791

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

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT ALL + MIN( + + 79 ), 78 AS col1 FROM tab2
----
79
78

skipif mysql # not compatible
query II rowsort label-907
SELECT ALL + MIN ( + + 79 ), 78 AS col1 FROM tab2
----
79
78

query I rowsort
SELECT + ( col0 ) * + + 58 FROM tab0 WHERE + 87 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 35 * + col2 + 99 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - 9
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL - COUNT( * ) + - ( 53 ) AS col1 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - COUNT ( * ) + - ( 53 ) AS col1 FROM tab2 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT DISTINCT + + col2 * - col1 * - ( ( + 74 ) ) - - col2 DIV col0 + - 50 AS col1 FROM tab0 AS cor0
----
15490
281671
7277

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT + + col2 * - col1 * - ( ( + 74 ) ) - - col2 / col0 + - 50 AS col1 FROM tab0 AS cor0
----
15490
281671
7277

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT DISTINCT + 33 * - 15 - - col1 + 90 DIV - 43 + - col0 AS col1 FROM tab1
----
-534
-541
-577

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + 33 * - 15 - - col1 + 90 / - 43 + - col0 AS col1 FROM tab1
----
-534
-541
-577

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 77 >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 IN ( + - 11 + + 44 * - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT + COUNT( * ) * - MIN( ALL - 53 ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + COUNT ( * ) * - MIN ( ALL - 53 ) FROM tab1 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query II rowsort label-917
SELECT col1 AS col0, col1 + - - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
2
21
22
81
82

skipif mysql # not compatible
query II rowsort label-917
SELECT col1 AS col0, col1 + - - col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
2
21
22
81
82

query I rowsort
SELECT DISTINCT + col1 * col2 * - + col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

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

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

query II rowsort
SELECT + - col1 * - col2 * + + col2 AS col0, col2 - + ( col1 ) + col2 FROM tab2 cor0
----
123200
3
225388
49
26979
-5

query I rowsort
SELECT 58 - + + col0 FROM tab2 AS cor0
----
-17
-6
12

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

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

query I rowsort
SELECT - - 82 - 80 FROM tab0 AS cor0
----
2
2
2

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

query I rowsort
SELECT DISTINCT ( + + ( - - 61 ) ) FROM tab0
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-926
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV - col1 + + 36 FROM tab0
----
135
36

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / - col1 + + 36 FROM tab0
----
135
36

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT 61 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + SUM( ALL + - col2 ) * + 32 FROM tab0
----
-4992

skipif mysql # not compatible
query I rowsort label-928
SELECT + SUM ( ALL + - col2 ) * + 32 FROM tab0
----
-4992

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + 25 <= - col0
----

query I rowsort
SELECT ( 53 ) FROM tab0 AS cor0
----
53
53
53

query II rowsort
SELECT + col0, - 17 FROM tab0 AS cor0
----
15
-17
87
-17
97
-17

query I rowsort
SELECT ALL + 91 * - col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

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

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

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

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

query I rowsort
SELECT DISTINCT + + 59 AS col0 FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT col0 * 79 + + - col2 - 17 AS col2 FROM tab2 AS cor0
----
3594
4999
5850

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - 75 NOT IN ( - col2, 3, col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT + - ( - - COUNT( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + - ( - - COUNT ( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL col1 + 63 FROM tab0
----
144
64
84

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT ALL col2 + col2 + + 33 DIV - col1 * - col1 AS col0 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL col2 + col2 + + 33 / - col1 * - col1 AS col0 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT col1 DIV + ( - + 15 ) + col2 + + - col1 DIV ( + + col2 ) FROM tab1
----
59
65
96

skipif mysql # not compatible
query I rowsort label-941
SELECT col1 / + ( - + 15 ) + col2 + + - col1 / ( + + col2 ) FROM tab1
----
59
65
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT col1 DIV - col2 + - + ( + + col2 ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-943
SELECT col1 / - col2 + - + ( + + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + 45 + - 99 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT + 7 + + 79 + - col1 FROM tab1 AS cor0
----
39
72
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + 80
----

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

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

query I rowsort
SELECT 9 * 2 - col0 FROM tab1 AS cor0
----
-33
-67
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-949
SELECT ALL * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) * + col1 NOT BETWEEN col0 * + col0 AND - col1
----

skipif mysql # not compatible
query III rowsort label-949
SELECT ALL * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) * + col1 NOT BETWEEN col0 * + col0 AND - col1
----

query I rowsort
SELECT DISTINCT + col0 + + col2 + - col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col1 FROM tab0 AS cor0 WHERE NOT + 17 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 / ( + col1 ) FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col1 * 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT 11 * - + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-953
SELECT 11 * - + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - - col0 * - + col0 FROM tab2 cor0
----
-2093
-4056
-5567

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT ALL - - col2 * col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
10
20
50

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL - - col2 * col2 / + col1 AS col2 FROM tab2 AS cor0
----
10
20
50

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL - + COUNT( * ) * - 99 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - + COUNT ( * ) * - 99 FROM tab0 AS cor0
----
297

query I rowsort
SELECT + 32 * - 37 FROM tab2
----
-1184
-1184
-1184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT DISTINCT COUNT( DISTINCT - + col0 ) * + 84 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) * + 84 FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT DISTINCT - CAST( + 50 AS SIGNED ) AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - CAST ( + 50 AS INTEGER ) AS col2 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT - 43 * SUM( ( + ( - ( col1 ) ) ) ) * - 84 AS col2 FROM tab1 AS cor0
----
-238392

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT - 43 * SUM ( ( + ( - ( col1 ) ) ) ) * - 84 AS col2 FROM tab1 AS cor0
----
-238392

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT 84 * - 69 * - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
17388

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT 84 * - 69 * - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
17388

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

skipif mysql # not compatible
query I rowsort label-963
SELECT + COUNT ( * ) + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-965
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 NOT IN ( 95 + col0 * - - CAST( + col2 AS SIGNED ), col2 + + col1 + 81 )
----

skipif mysql # not compatible
query III rowsort label-965
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 NOT IN ( 95 + col0 * - - CAST ( + col2 AS INTEGER ), col2 + + col1 + 81 )
----

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

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

query I rowsort
SELECT - 35 + - col1 FROM tab0 AS cor0
----
-116
-36
-56

query I rowsort
SELECT ALL - + col1 + - col1 * + 55 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT ALL 17 DIV + col0 + col0 AS col1 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL 17 / + col0 + col0 AS col1 FROM tab0 AS cor0
----
16
87
97

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

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

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

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

query I rowsort
SELECT ALL - - col2 + + - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT - SUM( ALL + + 57 ) AS col0 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-973
SELECT - SUM ( ALL + + 57 ) AS col0 FROM tab1 AS cor0
----
-171

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

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

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

query I rowsort
SELECT ALL + col1 * + col1 FROM tab0 WHERE NULL IS NULL
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-977
SELECT 86 DIV - - col2 + 44 + + col2 + + col1 + - col2 * ( col1 ) AS col1 FROM tab1 WHERE + col1 + 20 >= - CAST( - + col1 AS SIGNED )
----
-1190
-186
-3036

skipif mysql # not compatible
query I rowsort label-977
SELECT 86 / - - col2 + 44 + + col2 + + col1 + - col2 * ( col1 ) AS col1 FROM tab1 WHERE + col1 + 20 >= - CAST ( - + col1 AS INTEGER )
----
-1190
-186
-3036

query I rowsort
SELECT 16 * - 34 AS col2 FROM tab0
----
-544
-544
-544

query I rowsort
SELECT - 99 * + col2 * - 99 + col2 * + 49 FROM tab2 AS cor0
----
226550
394000
571300

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT + + 77 DIV 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-980
SELECT + + 77 / 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT - 20 * + ( COUNT( * ) ) - 72 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - 20 * + ( COUNT ( * ) ) - 72 FROM tab1 AS cor0
----
-132

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

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

query I rowsort
SELECT + col1 * + 99 FROM tab1 cor0
----
1386
4653
495

query II rowsort
SELECT + col0 AS col2, col0 * + col1 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL + - SUM( ALL + 46 ) FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL + - SUM ( ALL + 46 ) FROM tab1 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0, tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL - 94 * - COUNT( + + ( + - col1 ) ) * + - 44 AS col2 FROM tab2
----
-12408

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - 94 * - COUNT ( + + ( + - col1 ) ) * + - 44 AS col2 FROM tab2
----
-12408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-988
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col0, - ( + 22 ) * - CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-988
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col0, - ( + 22 ) * - CAST ( + - col1 AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT 47 * - - col2 AS col1, col2 - + + col2 FROM tab1
----
2773
0
3196
0
4512
0

query I rowsort
SELECT + ( + 39 ) * + + 63 + + 74 AS col1 FROM tab2
----
2531
2531
2531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL

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

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

query I rowsort
SELECT - 66 * - col2 FROM tab2
----
1518
2640
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT DISTINCT + CAST( col0 AS SIGNED ) / - - col2 FROM tab2 WHERE NOT - col2 * - 26 - + col1 + + 21 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT + CAST ( col0 AS INTEGER ) / - - col2 FROM tab2 WHERE NOT - col2 * - 26 - + col1 + + 21 + + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 WHERE NOT - 59 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + ( col2 ) ) + 53 >= - ( 41 )
----

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

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

query I rowsort
SELECT + col0 + - 60 FROM tab1 AS cor0
----
-9
25
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT + ( col1 ) DIV + col0 + + + 8 AS col0 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1000
SELECT + ( col1 ) / + col0 + + + 8 AS col0 FROM tab1
----
8
8
8

query I rowsort
SELECT col0 + - col1 * - ( - - col0 ) FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL - 61 + - 97 FROM tab1
----
-158
-158
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT DISTINCT ( CAST( - 24 AS SIGNED ) ) + - COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT ( CAST ( - 24 AS INTEGER ) ) + - COUNT ( * ) FROM tab2
----
-27

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

skipif mysql # not compatible
query I rowsort label-1004
SELECT 6 + COUNT ( * ) FROM tab2
----
9

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

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

query I rowsort
SELECT 86 + col1 * - - col2 AS col2 FROM tab2
----
1259
3166
3972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + - - col1 + - 56 col0 FROM tab0
----
-108
-28
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT 37 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT 37 / - col1 FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT DISTINCT 29 + + COUNT( - - col0 ) AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT 29 + + COUNT ( - - col0 ) AS col0 FROM tab2 AS cor0
----
32

query I rowsort
SELECT - col2 * - ( - - col0 ) * + col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT ALL + col0 + - 47 AS col1 FROM tab1 AS cor0
----
38
4
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT 82 - COUNT( * ) AS col2 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-1014
SELECT 82 - COUNT ( * ) AS col2 FROM tab0 cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1015
SELECT ALL - CAST( + CAST( 24 AS DECIMAL ) AS SIGNED ) + + col1 * + 14 + 18 FROM tab0
----
1128
288
8

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - CAST ( + CAST ( 24 AS REAL ) AS INTEGER ) + + col1 * + 14 + 18 FROM tab0
----
1128
288
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + SUM( ALL 45 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT + SUM ( ALL 45 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT COUNT( 31 ) * SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT COUNT ( 31 ) * SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
309

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

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

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

query I rowsort
SELECT + + 69 AS col1 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - col0 * - ( 44 ) * 77 FROM tab0
----
294756
328636
50820

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

query I rowsort
SELECT DISTINCT 78 * - - col0 FROM tab0
----
1170
6786
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + 73 * + 33 * + + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 WHERE NOT 55 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 73 * + 33 * + + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT 55 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL - MIN( DISTINCT - 1 ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1027
SELECT ALL - MIN ( DISTINCT - 1 ) col1 FROM tab1
----
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 5 col1 FROM tab2 AS cor0
----
255
335
385

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT 28 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1031
SELECT 28 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84

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

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

query I rowsort
SELECT DISTINCT 9 * + ( col0 ) AS col2 FROM tab1
----
459
765
819

query I rowsort
SELECT - ( + 60 ) + + 47 FROM tab0
----
-13
-13
-13

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 AS cor0 WHERE NOT 19 * - col1 IS NULL
----
-10
-47
-99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1037
SELECT - - CAST ( NULL AS INTEGER ) * + - 73 col0 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 77 + + - col2 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT DISTINCT MAX( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT MAX ( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT col1 + 49 * col1 FROM tab1
----
2350
250
700

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + 71 * - 37 + - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT COUNT( * ) + 22 AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-1044
SELECT COUNT ( * ) + 22 AS col2 FROM tab0
----
25

query II rowsort
SELECT - col1 AS col2, col1 * - - col0 FROM tab0 WHERE col2 - col0 IS NOT NULL
----
-1
97
-21
1827
-81
1215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - 78 / col1, col2 AS col0 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1046
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - 78 / col1, col2 AS col0 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT - col0 + + - col2 FROM tab2 cor0
----
-104
-133
-69

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1049
SELECT DISTINCT - 54 / col0 AS col2, + col2 col2 FROM tab1
----
-1
96
0
59
0
68

query II rowsort
SELECT ALL - col0, + col0 - - col1 AS col2 FROM tab1
----
-51
65
-85
90
-91
138

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

query I rowsort
SELECT DISTINCT + col1 * - + 96 FROM tab0 AS cor0
----
-2016
-7776
-96

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

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

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

query II rowsort
SELECT ALL - + col0 * - - 73, col0 AS col0 FROM tab0 AS cor0
----
-1095
15
-6351
87
-7081
97

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1059
SELECT DISTINCT - col2 / - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - col2 / - CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

query I rowsort
SELECT 25 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1062
SELECT col2 DIV - - col0 col1, 87 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
0
NULL
0
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1062
SELECT col2 / - - col0 col1, 87 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
0
NULL
0
NULL
1
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + col2 ) col0, 19 + + col2 AS col2 FROM tab0
----
10
29
47
66
99
118

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

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

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

skipif mysql # not compatible
query I rowsort label-1065
SELECT - COUNT ( - 23 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT DISTINCT 10 * + MIN( ALL + 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
130

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT 10 * + MIN ( ALL + 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
130

query II rowsort
SELECT + col0, col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT + 59 - + - col2 + CAST( - - col1 AS SIGNED ) * col2 + - col1 - + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
159
171
3817

skipif mysql # not compatible
query I rowsort label-1068
SELECT + 59 - + - col2 + CAST ( - - col1 AS INTEGER ) * col2 + - col1 - + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
159
171
3817

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

query I rowsort
SELECT col1 + - - 57 FROM tab1 AS cor0
----
104
62
71

query I rowsort
SELECT ALL 43 + 29 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
110446
2914
6133

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - COUNT( * ) * 90 FROM tab2 WHERE 84 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1072
SELECT - COUNT ( * ) * 90 FROM tab2 WHERE 84 IS NULL
----
0

query II rowsort
SELECT DISTINCT 79 + col0 AS col0, 54 + + col2 * + 47 FROM tab0
----
166
524
176
4707
94
2263

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

query I rowsort
SELECT - col1 * col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
107916
315392
376875

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + col0 IN ( col1, + col2 )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT - 66 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND col0 / - + ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1077
SELECT - 66 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND col0 / - + ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * - 94 + + 31 AND - 44
----

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

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

query I rowsort
SELECT ALL - 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1082
SELECT DISTINCT col1 AS col0, col1 * 39 + + col2 DIV + col1 FROM tab1 cor0
----
14
552
47
1834
5
206

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT col1 AS col0, col1 * 39 + + col2 / + col1 FROM tab1 cor0
----
14
552
47
1834
5
206

query II rowsort
SELECT + col0, col1 + 29 FROM tab1 AS cor0
----
51
43
85
34
91
76

query I rowsort
SELECT + - 43 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

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

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

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

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

query II rowsort
SELECT + 0 AS col1, + 30 AS col2 FROM tab0
----
0
30
0
30
0
30

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

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

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
-97

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 16 >= - 97 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1093
SELECT - CAST( NULL AS DECIMAL ) + + - 14 * - 39 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT - CAST ( NULL AS REAL ) + + - 14 * - 39 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT + + 74, + 87 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
74
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 col2, 1 + + 14 FROM tab2 AS cor0
----
-1600
15
-3364
15
-529
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * + col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - ( + col0 ) * - col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT SUM( DISTINCT + 32 ) * + MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-3072

skipif mysql # not compatible
query I rowsort label-1100
SELECT SUM ( DISTINCT + 32 ) * + MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT 45 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT 45 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
135

query I rowsort
SELECT DISTINCT 16 + col1 AS col2 FROM tab0 AS cor0
----
17
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - MAX( ALL - col0 ) - + 87 + + 36 * + 53 AS col0 FROM tab1 AS cor0
----
1872

skipif mysql # not compatible
query I rowsort label-1103
SELECT - MAX ( ALL - col0 ) - + 87 + + 36 * + 53 AS col0 FROM tab1 AS cor0
----
1872

query I rowsort
SELECT ALL - + 48 + + col0 FROM tab0 AS cor0
----
-33
39
49

query I rowsort
SELECT ALL - col1 * - + 42 + - 60 FROM tab0
----
-18
3342
822

query II rowsort
SELECT ALL 97 AS col0, col0 * - col0 FROM tab1
----
97
-2601
97
-7225
97
-8281

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1108
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - col1 * + 54 AS col0 FROM tab1 AS cor0
----
-10584
-119286
-1350

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col1 * + 54 AS col0 FROM tab1 AS cor0
----
-10584
-119286
-1350

query I rowsort
SELECT - AVG ( DISTINCT 40 ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL

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

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

query I rowsort
SELECT ALL col2 * - 98 FROM tab0
----
-4606
-9702
-980

query I rowsort
SELECT DISTINCT - 18 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
178
2191
7

query I rowsort
SELECT 50 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
50
50
50

query II rowsort
SELECT DISTINCT col0 + col2, col1 AS col1 FROM tab0 AS cor0
----
196
1
62
81
97
21

query II rowsort
SELECT ALL - col0 + + col1, + col2 AS col1 FROM tab2 AS cor0
----
-8
58
13
40
5
23

query I rowsort
SELECT ALL col0 + ( + col0 ) * ( 35 ) FROM tab1
----
1836
3060
3276

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

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

query I rowsort
SELECT 20 + + 10 FROM tab1
----
30
30
30

query I rowsort
SELECT - col2 + + 11 + + + 76 AS col2 FROM tab0
----
-12
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT COUNT( - col0 ) * - 91 col0 FROM tab1
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1120
SELECT DISTINCT COUNT ( - col0 ) * - 91 col0 FROM tab1
----
-273

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

query I rowsort
SELECT DISTINCT - 4 / - + col0 * - col0 FROM tab0 AS cor0 WHERE col0 * + - col2 NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT ALL + 99 + - 31 FROM tab1
----
68
68
68

query I rowsort
SELECT + col1 - ( ( + + col0 ) ) FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT CAST( NULL AS SIGNED ) - CAST( + + COUNT( * ) AS SIGNED ) - ( - - COUNT( * ) ) * + AVG ( DISTINCT 64 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT CAST ( NULL AS INTEGER ) - CAST ( + + COUNT ( * ) AS INTEGER ) - ( - - COUNT ( * ) ) * + AVG ( DISTINCT 64 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * 97 - + + col0 FROM tab2
----
4901
6424
7405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * - 62 col2 FROM tab2 AS cor0
----
-1380
-2416
-3521

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 44 + 39 + + col0 * - col2 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1131
SELECT col1 DIV + 34, col2 AS col0 FROM tab0
----
0
10
0
99
2
47

skipif mysql # not compatible
query II rowsort label-1131
SELECT col1 / + 34, col2 AS col0 FROM tab0
----
0
10
0
99
2
47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1133
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0, 69 AS col0 FROM tab0
----
-3
69

skipif mysql # not compatible
query II rowsort label-1133
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 69 AS col0 FROM tab0
----
-3
69

query I rowsort
SELECT DISTINCT + col2 * + 8 * - col1 FROM tab2
----
-24640
-31088
-9384

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

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

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

query I rowsort
SELECT ALL col2 * + col0 * - 77 AS col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - 59 + + - col2 FROM tab2
----
-117
-82
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT - - col1 DIV 32 - - + col2 DIV 4 col1 FROM tab1 cor0
----
14
18
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1139
SELECT DISTINCT - - col1 / 32 - - + col2 / 4 col1 FROM tab1 cor0
----
14
18
24

query I rowsort
SELECT + - col1 + - - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1142
SELECT ALL + ( + - 28 ) AS col2 FROM tab1 cor0 WHERE - CAST( NULL AS DECIMAL ) - 54 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + ( + - 28 ) AS col2 FROM tab1 cor0 WHERE - CAST ( NULL AS REAL ) - 54 IS NOT NULL
----

query II rowsort
SELECT - - 21, + col1 * + - col2 * - + col1 AS col2 FROM tab2 AS cor0
----
21
237160
21
260362
21
59823

query II rowsort
SELECT col1 * col0 * col2 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
18270
-21
57105
-81
9603
-1

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 71 / + col0 = - 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 5 * col2 * - - col2 AS col1 FROM tab0
----
-11045
-49005
-500

query I rowsort
SELECT DISTINCT - ( + col0 ) + - 75 FROM tab2
----
-121
-139
-150

query II rowsort
SELECT col1 * + - col1 AS col2, + col0 * - col2 * + + col2 * col2 AS col2 FROM tab0
----
-1
-94119003
-441
-87000
-6561
-1557345

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT ALL + 61 DIV + - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL + 61 / + - col1 AS col1 FROM tab2
----
-1
0
0

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

query I rowsort
SELECT col1 + + - col2 * + - 82 FROM tab2 AS cor0
----
1937
3357
4823

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL AND NULL >= col0 / - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1154
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 7 * - 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

query I rowsort
SELECT - 63 * 95 FROM tab2
----
-5985
-5985
-5985

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

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

query I rowsort
SELECT DISTINCT + col0 - ( - + 76 ) FROM tab0 AS cor0
----
163
173
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT + MIN( - - col0 ) * + + COUNT( * ) * - 6 FROM tab2 AS cor0
----
-828

skipif mysql # not compatible
query I rowsort label-1160
SELECT + MIN ( - - col0 ) * + + COUNT ( * ) * - 6 FROM tab2 AS cor0
----
-828

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

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

query I rowsort
SELECT - 78 * + col2 AS col1 FROM tab1 AS cor0
----
-4602
-5304
-7488

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 77 < NULL
----

query I rowsort
SELECT + ( - col1 ) * col2 + 97 AS col2 FROM tab2 cor0
----
-1076
-2983
-3789

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

query II rowsort
SELECT ALL col1, + 88 FROM tab2
----
51
88
67
88
77
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( ( + col1 ) ) * - col1, - 12 * - col2 col2 FROM tab1
----
196
1152
2209
816
25
708

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL CAST( - - 1 AS SIGNED ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL CAST ( - - 1 AS INTEGER ) FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT ALL + + COUNT( * ) AS col1, - COUNT( * ) + - 46 FROM tab1 AS cor0
----
3
-49

skipif mysql # not compatible
query II rowsort label-1170
SELECT ALL + + COUNT ( * ) AS col1, - COUNT ( * ) + - 46 FROM tab1 AS cor0
----
3
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1171
SELECT * FROM tab0 cor0 WHERE NOT col2 + + - col1 * col1 / - col2 * + ( + CAST( + - 46 AS SIGNED ) ) - - 92 * - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-1171
SELECT * FROM tab0 cor0 WHERE NOT col2 + + - col1 * col1 / - col2 * + ( + CAST ( + - 46 AS INTEGER ) ) - - 92 * - col2 <> NULL
----

query III rowsort
SELECT ALL col1 AS col1, 87 AS col1, + - col2 FROM tab1 AS cor0
----
9 values hashing to 25c8514c29ba01cb659bd9c1c3513f24

query I rowsort
SELECT ALL + + 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ( + 56 ) * + - COUNT( DISTINCT 46 ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-1174
SELECT ( + 56 ) * + - COUNT ( DISTINCT 46 ) AS col2 FROM tab2
----
-56

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

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

query I rowsort
SELECT - 7 FROM tab0 AS cor0 WHERE col0 <= col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT DISTINCT CAST( - + 35 AS SIGNED ) + - col0 + - 58 + - - 24 AS col0 FROM tab0
----
-156
-166
-84

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT CAST ( - + 35 AS INTEGER ) + - col0 + - 58 + - - 24 AS col0 FROM tab0
----
-156
-166
-84

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

query II rowsort
SELECT ALL col1, - 89 FROM tab0
----
1
-89
21
-89
81
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT + 20 AS col0 FROM tab1 WHERE + ( - - col2 ) IN ( CAST( + col2 AS SIGNED ) )
----
20
20
20

skipif mysql # not compatible
query I rowsort label-1180
SELECT + 20 AS col0 FROM tab1 WHERE + ( - - col2 ) IN ( CAST ( + col2 AS INTEGER ) )
----
20
20
20

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

skipif mysql # not compatible
query I rowsort label-1181
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + - MAX ( DISTINCT col1 ) + 15 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 54 + + 24 FROM tab2
----
78
78
78

query I rowsort
SELECT ALL col0 + + - 5 AS col0 FROM tab1 WHERE NOT ( 21 ) IS NOT NULL
----

query I rowsort
SELECT ( 20 ) * - col0 - + + col1 + + 64 AS col1 FROM tab0
----
-1697
-1877
-317

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

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

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

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

query I rowsort
SELECT ALL 87 * 80 AS col2 FROM tab1
----
6960
6960
6960

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

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE 69 <= NULL
----

query I rowsort
SELECT DISTINCT + 32 * 91 FROM tab0
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + 67 * MIN( DISTINCT col1 ) col0 FROM tab0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1192
SELECT + 67 * MIN ( DISTINCT col1 ) col0 FROM tab0
----
67

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

skipif mysql # not compatible
query I rowsort label-1193
SELECT MAX ( DISTINCT - ( col2 ) ) AS col2 FROM tab0
----
-10

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1196
SELECT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1197
SELECT * FROM tab0 WHERE ( col1 * - CAST( - col2 AS SIGNED ) ) NOT IN ( - 20 - + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1197
SELECT * FROM tab0 WHERE ( col1 * - CAST ( - col2 AS INTEGER ) ) NOT IN ( - 20 - + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - col0 / + col0 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT - 28 * + 47 - col1 * - col2 FROM tab2
----
-143
1764
2570

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

query I rowsort
SELECT ALL + 39 FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT + MIN( 35 ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-1204
SELECT + MIN ( 35 ) AS col1 FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE - 86 <> col2
----
3

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE - 86 <> col2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> 35
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT - 29 + 27 FROM tab0
----
-2
-2
-2

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

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

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

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

query I rowsort
SELECT - col1 * - 90 AS col2 FROM tab0
----
1890
7290
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1213
SELECT DISTINCT 78 + + col0 * 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-1213
SELECT DISTINCT 78 + + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1215
SELECT * FROM tab0 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) + col0 * 21 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1215
SELECT * FROM tab0 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) + col0 * 21 <= NULL
----

query I rowsort
SELECT ALL - col0 + - 74 * + col2 FROM tab0 AS cor0
----
-3493
-7423
-827

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1219
SELECT ALL 23 + + CAST( MAX( DISTINCT 84 ) AS SIGNED ) FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL 23 + + CAST ( MAX ( DISTINCT 84 ) AS INTEGER ) FROM tab0 AS cor0
----
107

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1220
SELECT ALL COUNT ( col2 ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
6

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

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

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

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

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

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

query I rowsort
SELECT ALL 56 * + col1 + col1 FROM tab2
----
2907
3819
4389

query I rowsort
SELECT ALL - 64 + + 23 FROM tab0 WHERE NOT NULL BETWEEN ( - 22 * - col1 - ( col0 ) ) AND ( - 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT ALL + col1 * + 14 + ( + col0 ) DIV - 34 FROM tab1
----
195
656
68

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + col1 * + 14 + ( + col0 ) / - 34 FROM tab1
----
195
656
68

query I rowsort
SELECT DISTINCT - 63 - + 32 AS col0 FROM tab2 WHERE NOT + col1 < ( col2 )
----
-95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * + + col0 col2 FROM tab1
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 7 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 7 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 70 * - 13
----

query I rowsort
SELECT + col2 + 4 * - col2 AS col1 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE col1 BETWEEN CAST( + col1 AS SIGNED ) AND + ( col2 )
----
97

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE col1 BETWEEN CAST ( + col1 AS INTEGER ) AND + ( col2 )
----
97

query I rowsort
SELECT DISTINCT + col2 * + + 80 AS col2 FROM tab1
----
4720
5440
7680

query I rowsort
SELECT - - 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT DISTINCT COUNT( * ) * + 55 AS col2 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT COUNT ( * ) * + 55 AS col2 FROM tab1 AS cor0
----
165

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE col2 * - col0 >= + 94
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1240
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 * + col1 * - col0 ) NOT IN ( + col1 / - CAST( - 43 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1240
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 * + col1 * - col0 ) NOT IN ( + col1 / - CAST ( - 43 AS REAL ) )
----

query I rowsort
SELECT col1 * - col2 - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT - 55 * - MAX( - 65 ) AS col2 FROM tab2 cor0
----
-3575

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - 55 * - MAX ( - 65 ) AS col2 FROM tab2 cor0
----
-3575

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT col1 ) AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT col1 ) AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 49 * + - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-2303
-4851
-490

query I rowsort
SELECT 32 * - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 = ( 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 26 * + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
-1222
-2574
-260

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT - - 49 IS NULL
----
46
64
75

query I rowsort
SELECT + 4 * + col2 FROM tab1
----
236
272
384

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

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

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

query I rowsort
SELECT - col2 * + 91 AS col1 FROM tab2
----
-2093
-3640
-5278

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 62 * - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - + MAX( DISTINCT - 20 ) + 96 AS col2 FROM tab0 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-1256
SELECT - + MAX ( DISTINCT - 20 ) + 96 AS col2 FROM tab0 AS cor0
----
116

query I rowsort
SELECT + + col0 + - 28 + col2 AS col2 FROM tab2 AS cor0
----
105
41
76

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

query I rowsort
SELECT - col0 * - 80 AS col2 FROM tab0 WHERE ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT ALL col1 * + 6 + 37 DIV col1 AS col2 FROM tab0 WHERE NOT ( - col0 ) BETWEEN - col0 AND - col1
----
486

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL col1 * + 6 + 37 / col1 AS col2 FROM tab0 WHERE NOT ( - col0 ) BETWEEN - col0 AND - col1
----
486

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + COUNT( * ) + + + 1 AS col2 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-1262
SELECT + COUNT ( * ) + + + 1 AS col2 FROM tab2 cor0
----
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT 70 * + col1 + 78 DIV - 22 col0 FROM tab2
----
3567
4687
5387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1264
SELECT 70 * + col1 + 78 / - 22 col0 FROM tab2
----
3567
4687
5387

query I rowsort
SELECT 71 + + + col1 + - + col2 + - col2 AS col2 FROM tab0
----
-126
58
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT 79 * 31 * + 40 * - COUNT( * ) + + 87 FROM tab2
----
-293793

skipif mysql # not compatible
query I rowsort label-1266
SELECT 79 * 31 * + 40 * - COUNT ( * ) + + 87 FROM tab2
----
-293793

query I rowsort
SELECT DISTINCT + col1 * - ( + + col2 ) FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col2 col1 FROM tab1 cor0
----
14
96
47
68
5
59

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

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

query I rowsort
SELECT DISTINCT + - col1 * - + col1 FROM tab0 AS cor0
----
1
441
6561

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

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

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab0 AS cor0 WHERE + 8 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - - col0, col2 + + - col0 )
----

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

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

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - 62 IS NOT NULL )
----
-15
-87
-97

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

query I rowsort
SELECT + col2 * + ( col2 * + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 - - col1 * + col0 + 39 + + col0 * + + 19 NOT IN ( + + col0 )
----

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

skipif mysql # not compatible
query II rowsort label-1281
SELECT + 22 AS col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
22
3

query I rowsort
SELECT ALL + 17 + + + col0 AS col2 FROM tab2 cor0
----
63
81
92

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

query I rowsort
SELECT DISTINCT + 28 + + col2 AS col1 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT - + col1 + col0 + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-10
-26
16

query I rowsort
SELECT ALL 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT CAST( - 38 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif mysql # not compatible
query I rowsort label-1288
SELECT CAST ( - 38 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT - ( + - 37 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT 57 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1291
SELECT 57 / - col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1292
SELECT - col1 DIV + + col1 AS col0, col1 - col2 + + - ( + col2 ) + + - col0 AS col1 FROM tab2 AS cor0
----
-1
-124
-1
-41
-1
-67

skipif mysql # not compatible
query II rowsort label-1292
SELECT - col1 / + + col1 AS col0, col1 - col2 + + - ( + col2 ) + + - col0 AS col1 FROM tab2 AS cor0
----
-1
-124
-1
-41
-1
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1293
SELECT ALL - + col1 DIV + - CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1294
SELECT + - CAST( - col1 AS SIGNED ) AS col0, - col0 + ( - 57 ) FROM tab2 AS cor0
----
51
-103
67
-132
77
-121

skipif mysql # not compatible
query II rowsort label-1294
SELECT + - CAST ( - col1 AS INTEGER ) AS col0, - col0 + ( - 57 ) FROM tab2 AS cor0
----
51
-103
67
-132
77
-121

query I rowsort
SELECT + 9 / - col2 FROM tab1 AS cor0 WHERE + 0 + col0 - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT - CAST( - - 99 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-1296
SELECT - CAST ( - - 99 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 83 + + + col0 col1, - col1 AS col0 FROM tab1 AS cor0
----
134
-14
168
-5
174
-47

query I rowsort
SELECT - 19 - - 82 AS col0 FROM tab2
----
63
63
63

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1300
SELECT DISTINCT CAST ( + ( - + col1 ) AS INTEGER ) + + col1 + - - 84 col2 FROM tab0
----
84

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

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

query I rowsort
SELECT ALL 5 + + + col0 FROM tab2
----
51
69
80

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

query I rowsort
SELECT + 10 + + 11 AS col1 FROM tab2
----
21
21
21

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

skipif mysql # not compatible
query I rowsort label-1305
SELECT 3 * ( + COUNT ( * ) ) + - + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL + col0 * col0 * - - 95 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
21375
719055
893855

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT - - ( + MAX( - 23 ) ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1308
SELECT - - ( + MAX ( - 23 ) ) AS col2 FROM tab1 AS cor0
----
-23

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

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) * - col1 AS col2 FROM tab0
----
1215
1827
97

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

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 9 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1315
SELECT ALL col0 * - - col0 * + col2 - + col0, - 43 * 60 DIV + 21 col0 FROM tab0 AS cor0
----
10560
-122
75603
-122
931394
-122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1315
SELECT ALL col0 * - - col0 * + col2 - + col0, - 43 * 60 / + 21 col0 FROM tab0 AS cor0
----
10560
-122
75603
-122
931394
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT ALL 96 * col2 DIV col2 AS col2 FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL 96 * col2 / col2 AS col2 FROM tab1
----
96
96
96

query I rowsort
SELECT col1 * col1 + - 26 * + 25 FROM tab2
----
1951
3839
5279

query I rowsort
SELECT + 29 + + 84 FROM tab1
----
113
113
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1319
SELECT DISTINCT + CAST( + 29 AS SIGNED ) DIV + ( - COUNT( * ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + CAST ( + 29 AS INTEGER ) / + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col1 + - 29 * + ( + col0 ) FROM tab2 AS cor0
----
-1283
-1779
-2108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + col0 + - + col0 * - 51 * - ( 58 ) col1 FROM tab2 cor0
----
-136091
-189336
-221867

query I rowsort
SELECT ALL 13 + - col2 FROM tab1 cor0
----
-46
-55
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

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

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

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

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

query I rowsort
SELECT ALL 21 AS col1 FROM tab1 AS cor0 WHERE NOT 91 * - + col0 - + col2 IS NULL
----
21
21
21

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

skipif mysql # not compatible
query I rowsort label-1329
SELECT + COUNT ( * ) + CAST ( 72 AS INTEGER ) FROM tab1 AS cor0
----
75

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col1 + - - 72 BETWEEN NULL AND - col2
----

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

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

query I rowsort
SELECT ALL - col2 + - + col2 + + + 2 FROM tab2
----
-114
-44
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT + col0 DIV + ( col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1335
SELECT + col0 / + ( col2 ) FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + col1 col1 FROM tab0 WHERE - col1 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT + COUNT ( * ) * + 31 FROM tab0
----
93

query III rowsort
SELECT * FROM tab2 WHERE - + 76 BETWEEN NULL AND - col0 * 62
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT + col0 * + col1 DIV - + col1 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1340
SELECT + col0 * + col1 / - + col1 AS col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + + 15
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + 33 * + COUNT( * ) col0 FROM tab2
----
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1344
SELECT ALL + MIN( - CAST( - 94 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
94

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

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

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

query I rowsort
SELECT ALL - 98 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IN ( + col1 + - + col1, col1 + - 97 )
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT - COUNT( * ) * - 52 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1347
SELECT - COUNT ( * ) * - 52 FROM tab0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1348
SELECT 6 DIV - + MIN( - - col1 ) * - - 29 * + - 50 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1348
SELECT 6 / - + MIN ( - - col1 ) * - - 29 * + - 50 FROM tab2
----
0

query I rowsort
SELECT 99 FROM tab2 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT - col2 * + + 56 * - col1 AS col2 FROM tab1
----
16520
178976
75264

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + + 41 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT ALL CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

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

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL - MAX ( ALL - 69 ) AS col2 FROM tab2 AS cor0
----
69

query II rowsort
SELECT ALL 92 AS col1, - col2 FROM tab1 AS cor0
----
92
-59
92
-68
92
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT - CAST( - - col0 AS SIGNED ) * + 94, col1 AS col1 FROM tab1 AS cor0
----
-4794
14
-7990
5
-8554
47

skipif mysql # not compatible
query II rowsort label-1355
SELECT - CAST ( - - col0 AS INTEGER ) * + 94, col1 AS col1 FROM tab1 AS cor0
----
-4794
14
-7990
5
-8554
47

query I rowsort
SELECT ALL 60 * + 28 AS col0 FROM tab1 AS cor0
----
1680
1680
1680

query I rowsort
SELECT + col0 * + 75 + ( col1 ) FROM tab2 AS cor0
----
3501
4877
5692

query I rowsort
SELECT + + 99 + 29 FROM tab1 WHERE NOT ( + + 91 ) BETWEEN - col2 AND 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT DISTINCT COUNT( * ) * + CAST( COUNT( DISTINCT - 25 ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT COUNT ( * ) * + CAST ( COUNT ( DISTINCT - 25 ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( + - 80 ) IN ( - 0, - col0 * - 89, + + 87, + + col0 )
----
46
64
75

query II rowsort
SELECT DISTINCT + 75 AS col2, col2 FROM tab1
----
75
59
75
68
75
96

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

query I rowsort
SELECT ALL + - 58 AS col0 FROM tab0 WHERE NOT NULL = - 29 + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + + MAX( ALL col2 ) * + COUNT( ALL col2 ) + 79 FROM tab2 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-1365
SELECT + + MAX ( ALL col2 ) * + COUNT ( ALL col2 ) + 79 FROM tab2 AS cor0
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL + SUM( ALL + 77 ) FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + SUM ( ALL + 77 ) FROM tab1 AS cor0
----
231

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

query I rowsort
SELECT DISTINCT 72 + + 63 + + + 99 AS col1 FROM tab1 AS cor0
----
234

query I rowsort
SELECT DISTINCT ( - - 22 ) + - col0 AS col0 FROM tab0 AS cor0
----
-65
-75
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT + COUNT( * ) - MAX( + col0 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + COUNT ( * ) - MAX ( + col0 ) FROM tab0
----
-94

query II rowsort
SELECT DISTINCT + col0 * + - col0 - - + col2, col0 * 16 * 13 AS col0 FROM tab2 AS cor0
----
-2093
9568
-4056
13312
-5567
15600

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 * - + col1 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1374
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 < + col0 + - + col1 + + 29 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1374
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 < + col0 + - + col1 + + 29 * CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1376
SELECT ALL CAST( NULL AS DECIMAL ) / 29 * - - 8 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL CAST ( NULL AS REAL ) / 29 * - - 8 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL MIN( - col0 ) + + MAX( col1 ) FROM tab0 WHERE col2 * + 44 + - - 21 * - col2 BETWEEN ( + + col0 - + col0 + - - col1 - 78 * - col0 ) AND - CAST( NULL AS SIGNED ) / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL MIN ( - col0 ) + + MAX ( col1 ) FROM tab0 WHERE col2 * + 44 + - - 21 * - col2 BETWEEN ( + + col0 - + col0 + - - col1 - 78 * - col0 ) AND - CAST ( NULL AS INTEGER ) / - col1
----
NULL

query I rowsort
SELECT DISTINCT col2 * - + 41 FROM tab0
----
-1927
-4059
-410

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1381
SELECT COUNT( * ) * COUNT( * ) * - - COUNT( + col2 ) * + COUNT( * ) + + + CAST( + + 76 AS SIGNED ) AS col2 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-1381
SELECT COUNT ( * ) * COUNT ( * ) * - - COUNT ( + col2 ) * + COUNT ( * ) + + + CAST ( + + 76 AS INTEGER ) AS col2 FROM tab1
----
157

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

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

query I rowsort
SELECT ALL - col0 * + 0 AS col1 FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT - 8 * - col2 + + - 63 AS col2 FROM tab0 AS cor0
----
17
313
729

query I rowsort
SELECT ALL + 23 * - col1 * + 32 FROM tab2 cor0
----
-37536
-49312
-56672

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT + COUNT( * ) DIV + SUM( ALL + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT + COUNT ( * ) / + SUM ( ALL + col0 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL BETWEEN + col2 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT + + 39 DIV - col1 + + + col2 FROM tab1 AS cor0
----
52
68
94

skipif mysql # not compatible
query I rowsort label-1389
SELECT + + 39 / - col1 + + + col2 FROM tab1 AS cor0
----
52
68
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT col0 * + 50 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT col0 * + 50 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - COUNT( DISTINCT 80 ) + - 63 FROM tab0 AS cor0 WHERE NOT col1 = - col0
----
-64

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - COUNT ( DISTINCT 80 ) + - 63 FROM tab0 AS cor0 WHERE NOT col1 = - col0
----
-64

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1392
SELECT CAST ( - 65 AS INTEGER ) col2 FROM tab0 AS cor0
----
-65
-65
-65

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

query I rowsort
SELECT DISTINCT col2 + - 51 AS col0 FROM tab0
----
-4
-41
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + 41 + + 19 col0 FROM tab1
----
2069
2069
2069

onlyif mysql # DIV for integer division: 
query II rowsort label-1396
SELECT - 5 DIV - col0 + + + col0, + 53 AS col0 FROM tab1
----
51
53
85
53
91
53

skipif mysql # not compatible
query II rowsort label-1396
SELECT - 5 / - col0 + + + col0, + 53 AS col0 FROM tab1
----
51
53
85
53
91
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + 50 + COUNT( DISTINCT + col0 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 50 + COUNT ( DISTINCT + col0 ) FROM tab2
----
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT DISTINCT - - col0 col0 FROM tab1 AS cor0 WHERE NOT - 19 NOT IN ( - - ( - ( col1 ) ) + - - CAST( - 42 AS SIGNED ), 0 / - - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT DISTINCT - - col0 col0 FROM tab1 AS cor0 WHERE NOT - 19 NOT IN ( - - ( - ( col1 ) ) + - - CAST ( - 42 AS INTEGER ), 0 / - - col0 )
----

query I rowsort
SELECT DISTINCT + 62 + col1 + - col0 FROM tab1 AS cor0
----
-18
18
25

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE - col2 * + col2 <= ( + + 62 / + ( + + col2 ) - 61 * + col0 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 4 + col2 < ( + + 73 ) * + col0 + + - 7
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT 30 DIV - ( + MAX( ALL - 9 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT 30 / - ( + MAX ( ALL - 9 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + 63 <> 8
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1405
SELECT ALL ( - 62 ) * + COUNT( - col1 ), - 61 AS col0 FROM tab2 AS cor0
----
-186
-61

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL ( - 62 ) * + COUNT ( - col1 ), - 61 AS col0 FROM tab2 AS cor0
----
-186
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT COUNT( * ) * + - 12 * 81 FROM tab0 AS cor0
----
-2916

skipif mysql # not compatible
query I rowsort label-1408
SELECT COUNT ( * ) * + - 12 * 81 FROM tab0 AS cor0
----
-2916

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT 76 DIV - col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1409
SELECT 76 / - col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 79 * - col1 FROM tab2
----
-4029
-5293
-6083

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT 2 * - COUNT( * ) * ( + 67 ) FROM tab1
----
-402

skipif mysql # not compatible
query I rowsort label-1412
SELECT 2 * - COUNT ( * ) * ( + 67 ) FROM tab1
----
-402

query I rowsort
SELECT DISTINCT + + 16 AS col0 FROM tab1 WHERE + 92 IS NOT NULL
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1414
SELECT ALL - col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 94 * - col2 BETWEEN + + col0 / col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1417
SELECT ALL col0 AS col0, + col1 - + - col2 DIV - - 23 FROM tab1
----
51
18
85
7
91
49

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL col0 AS col0, + col1 - + - col2 / - - 23 FROM tab1
----
51
18
85
7
91
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1418
SELECT + col1 + col1 * - col1 + - CAST( + + col2 AS DECIMAL ) FROM tab0 WHERE NOT - - col2 <> 97
----

skipif mysql # not compatible
query I rowsort label-1418
SELECT + col1 + col1 * - col1 + - CAST ( + + col2 AS REAL ) FROM tab0 WHERE NOT - - col2 <> 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 * col2 + + 25, col0 col1 FROM tab0
----
1609
97
185
87
777
15

query I rowsort
SELECT col0 + + - 5 FROM tab0 cor0
----
10
82
92

query I rowsort
SELECT DISTINCT - 83 + + + 97 FROM tab2 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT SUM( ALL + 12 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1422
SELECT SUM ( ALL + 12 ) FROM tab0 AS cor0
----
36

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

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

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

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

query I rowsort
SELECT - col0 * + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
4896
5015
6188

query I rowsort
SELECT ALL col0 + 23 FROM tab1
----
108
114
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT ALL + col1 + + CAST( + col1 AS SIGNED ) + - 38 * ( - col1 ) FROM tab0
----
3240
40
840

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + col1 + + CAST ( + col1 AS INTEGER ) + - 38 * ( - col1 ) FROM tab0
----
3240
40
840

query II rowsort
SELECT DISTINCT + col1 + - 53, col0 - + + col2 AS col2 FROM tab2
----
-2
23
14
17
24
24

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

query II rowsort
SELECT - 82 + - - col2 AS col0, 0 FROM tab0 AS cor0
----
-35
0
-72
0
17
0

query II rowsort
SELECT - 38 + - col0, 51 * + col1 AS col2 FROM tab1 AS cor0
----
-123
255
-129
2397
-89
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + - col1 * - + col2 * + + col2 * + 32 + - - 1 = - ( + + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1433
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + - col1 * - + col2 * + + col2 * + 32 + - - 1 = - ( + + col0 )
----
3

query I rowsort
SELECT DISTINCT - - 56 * col1 AS col1 FROM tab1 cor0
----
2632
280
784

query I rowsort
SELECT DISTINCT ( 63 ) * + - 26 * - + ( - 16 ) FROM tab2 AS cor0
----
-26208

query I rowsort
SELECT + col0 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( col2 + - CAST( + col2 AS SIGNED ) ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1438
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( col2 + - CAST ( + col2 AS INTEGER ) ) IS NULL
----
14
47
5

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

query I rowsort
SELECT ALL + 19 * - ( + + 1 ) FROM tab2
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + 80 * - COUNT( * ) FROM tab2 WHERE NOT 57 > + 19
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + 80 * - COUNT ( * ) FROM tab2 WHERE NOT 57 > + 19
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT - CAST( NULL AS SIGNED ) * - 93 * - col0 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT - CAST ( NULL AS INTEGER ) * - 93 * - col0 * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT + COUNT( * ) FROM tab0 WHERE NOT + + 80 > + 52
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + + 80 > + 52
----
0

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

query II rowsort
SELECT + col0 * - col2, 75 AS col0 FROM tab1
----
-4896
75
-5015
75
-6188
75

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

query II rowsort
SELECT 63, + ( + col0 ) + - + col1 AS col1 FROM tab0
----
63
-66
63
66
63
96

query I rowsort
SELECT ALL + 56 * ( - 15 ) AS col2 FROM tab2
----
-840
-840
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT 40, MAX( - 5 ) AS col1 FROM tab1 cor0
----
40
-5

skipif mysql # not compatible
query II rowsort label-1449
SELECT 40, MAX ( - 5 ) AS col1 FROM tab1 cor0
----
40
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT DISTINCT - COUNT( * ) + - 59 * - 25 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
1466

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT - COUNT ( * ) + - 59 * - 25 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
1466

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

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

query II rowsort
SELECT ( col1 ) AS col0, - col0 AS col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT DISTINCT + - col2 * - - col0 * - - col0 * - col2 FROM tab0 AS cor0
----
497025
756900
92217609

query I rowsort
SELECT - col1 * 47 * - + col2 + - - 76 AS col0 FROM tab2 AS cor0
----
144836
182718
55207

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE + 33 BETWEEN ( + - 7 ) AND 21 + + - col2
----

query I rowsort
SELECT ALL + col2 + - - 89 * + + col1 FROM tab1 cor0
----
1342
4251
504

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

query I rowsort
SELECT DISTINCT col1 + - 98 FROM tab2
----
-21
-31
-47

query I rowsort
SELECT DISTINCT - 86 - + col2 - + col2 FROM tab1
----
-204
-222
-278

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

query I rowsort
SELECT - col2 + + 36 + - col2 FROM tab0
----
-162
-58
16

query I rowsort
SELECT DISTINCT 77 + - ( - 88 ) AS col0 FROM tab0
----
165

query II rowsort
SELECT DISTINCT 55, - col2 * + 50 AS col2 FROM tab2
----
55
-1150
55
-2000
55
-2900

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

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

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

query II rowsort
SELECT - 33, + col0 * 99 AS col1 FROM tab0
----
-33
1485
-33
8613
-33
9603

query I rowsort
SELECT DISTINCT - - 82 * + + col0 FROM tab0 AS cor0
----
1230
7134
7954

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT COUNT( * ) * + + 26 col0 FROM tab1 AS cor0 WHERE NOT col2 - + 95 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1470
SELECT DISTINCT COUNT ( * ) * + + 26 col0 FROM tab1 AS cor0 WHERE NOT col2 - + 95 IS NOT NULL
----
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + COUNT( * ) * + MAX( 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT + COUNT ( * ) * + MAX ( 0 ) FROM tab1
----
0

query I rowsort
SELECT - col2 * - col1 * 13 FROM tab0
----
1287
2730
49491

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 43 <= - - col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT MAX( + 21 ) FROM tab0, tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT MAX ( + 21 ) FROM tab0, tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT ( - col0 ) * 37 + - 58 FROM tab0 AS cor0
----
-3277
-3647
-613

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

query II rowsort
SELECT + col2, 19 * + col2 AS col1 FROM tab2 AS cor0
----
23
437
40
760
58
1102

query II rowsort
SELECT col1 + + + col0 + + 9 * - + ( + col1 ) * - 80 AS col0, - col1 + - + col0 + + + ( + + col1 ) FROM tab2
----
36817
-46
48382
-75
55581
-64

query I rowsort
SELECT DISTINCT 57 * + 5 AS col1 FROM tab1 AS cor0
----
285

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

query I rowsort
SELECT + + 28 FROM tab1 AS cor0 WHERE col1 <= col2
----
28
28
28

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

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

query I rowsort
SELECT DISTINCT - ( + + col0 ) + 78 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT + + COUNT( * ) * 61 + - 18 + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 55
----
-18

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT + + COUNT ( * ) * 61 + - 18 + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 55
----
-18

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( 24 ) + col0 - + 63 FROM tab0
----
-24
48
58

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + - 50 * col0
----

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

query I rowsort
SELECT + 53 - col0 + + - col2 - col1 * 65 FROM tab0
----
-1409
-208
-5274

query II rowsort
SELECT ALL - col2 - - + col0 AS col0, 9 AS col0 FROM tab1
----
-45
9
23
9
26
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL MAX( col2 ) - - - COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL MAX ( col2 ) - - - COUNT ( * ) FROM tab1
----
93

query I rowsort
SELECT + 50 - - - 4 FROM tab0 WHERE NULL NOT BETWEEN col2 + - col0 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 - 84 AS col1 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT col1 + - - 90 - - 9 FROM tab1
----
104
113
146

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1502
SELECT + COUNT( * ) AS col2, MIN( - - 44 ), MIN( ALL ( + + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0
NULL
NULL

skipif mysql # not compatible
query III rowsort label-1502
SELECT + COUNT ( * ) AS col2, MIN ( - - 44 ), MIN ( ALL ( + + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0
NULL
NULL

query II rowsort
SELECT ALL + + ( + - col0 ), col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT 15 + + - 36 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT 67 * + + 32 * + col0 * - - col0 AS col2 FROM tab1 AS cor0
----
15490400
17754464
5576544

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

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 36, 96 * 0 / - 70 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT DISTINCT SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 * 25 NOT BETWEEN - ( - col0 ) + + col2 AND + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT - - COUNT( * ) FROM tab0 WHERE NOT + col1 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1511
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT + col1 + col2 IS NOT NULL
----
0

query I rowsort
SELECT col1 * + 12 * - - col1 FROM tab1
----
2352
26508
300

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + col1 + - - col0 = ( - col1 - 29 - ( 52 ) * + 6 )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1514
SELECT DISTINCT CAST( + + ( - - ( - col0 ) ) AS SIGNED ) AS col1, col2 + + col2 AS col0 FROM tab1
----
-51
192
-85
118
-91
136

skipif mysql # not compatible
query II rowsort label-1514
SELECT DISTINCT CAST ( + + ( - - ( - col0 ) ) AS INTEGER ) AS col1, col2 + + col2 AS col0 FROM tab1
----
-51
192
-85
118
-91
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1516
SELECT - 34 * + COUNT( * ) + - CAST( SUM( DISTINCT - col2 ) AS SIGNED ) DIV COUNT( * ) AS col2 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-1516
SELECT - 34 * + COUNT ( * ) + - CAST ( SUM ( DISTINCT - col2 ) AS INTEGER ) / COUNT ( * ) AS col2 FROM tab0
----
-50

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

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

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + MIN ( 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT 14, - COUNT( * ) AS col2 FROM tab1
----
14
-3

skipif mysql # not compatible
query II rowsort label-1519
SELECT 14, - COUNT ( * ) AS col2 FROM tab1
----
14
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1520
SELECT - col1 + + 97 + + - CAST( NULL AS SIGNED ) AS col1, 77 AS col2 FROM tab1 AS cor0
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-1520
SELECT - col1 + + 97 + + - CAST ( NULL AS INTEGER ) AS col1, 77 AS col2 FROM tab1 AS cor0
----
NULL
77
NULL
77
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - 90 + - col1 NOT IN ( - col0, - col0 * col2 ) AND col2 <> NULL
----

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

query I rowsort
SELECT ALL 36 * - - 76 FROM tab1 cor0
----
2736
2736
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL - COUNT( * ) * + 89 AS col1 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL - COUNT ( * ) * + 89 AS col1 FROM tab0 AS cor0
----
-267

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

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

query I rowsort
SELECT ALL - 17 + + - col0 * 64 FROM tab2 cor0
----
-2961
-4113
-4817

query I rowsort
SELECT ALL - 47 + col0 FROM tab2 AS cor0
----
-1
17
28

query I rowsort
SELECT ALL + col0 + - 43 FROM tab1
----
42
48
8

query I rowsort
SELECT ALL + 74 - - col1 FROM tab0
----
155
75
95

query II rowsort
SELECT + col1 AS col2, 8 FROM tab0
----
1
8
21
8
81
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT DISTINCT + col2 - + col0 + + col2 + col2 DIV + - col0 + - col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT + col2 - + col0 + + col2 + col2 / + - col0 + - col2 FROM tab2
----
-17
-23
-24

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

query I rowsort
SELECT DISTINCT col1 * + 80 - + 7 + - col1 AS col0 FROM tab1
----
1099
3706
388

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

query I rowsort
SELECT DISTINCT + col0 - - 63 - + col2 FROM tab1
----
18
86
89

query II rowsort
SELECT ALL + col1 AS col2, 15 + - - col2 * - + col2 * - - col1 * + col0 + - + col1 FROM tab1 AS cor0
----
14
-6580223
47
-19776880
5
-1479415

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL <> NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - SUM( - + 67 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
201

skipif mysql # not compatible
query I rowsort label-1543
SELECT - SUM ( - + 67 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
201

query I rowsort
SELECT 27 * + - 0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 76 * - 52 FROM tab1
----
-3952
-3952
-3952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT + SUM( ALL - 48 ) * + 27 + COUNT( * ) + 82 AS col0 FROM tab2 AS cor0
----
-3803

skipif mysql # not compatible
query I rowsort label-1547
SELECT + SUM ( ALL - 48 ) * + 27 + COUNT ( * ) + 82 AS col0 FROM tab2 AS cor0
----
-3803

query I rowsort
SELECT DISTINCT - - 59 + + col2 FROM tab1 AS cor0
----
118
127
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + MAX( + col0 ) + + + 34 col1 FROM tab2
----
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1549
SELECT + MAX ( + col0 ) + + + 34 col1 FROM tab2
----
109

query I rowsort
SELECT ALL + 17 + + col0 AS col0 FROM tab1
----
102
108
68

query I rowsort
SELECT ALL - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

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

query III rowsort
SELECT DISTINCT - col0 - 67 AS col0, - col1 * + 23 + - col1, - 99 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL COUNT( * ) DIV - 2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

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

query I rowsort
SELECT DISTINCT - 93 * + ( - col0 ) * + col2 FROM tab0 AS cor0
----
65565
80910
893079

query I rowsort
SELECT DISTINCT - 53 - - + col2 FROM tab0 AS cor0
----
-43
-6
46

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + + MIN( + + col2 ) * 17 FROM tab2 AS cor0
----
391

skipif mysql # not compatible
query I rowsort label-1559
SELECT + + MIN ( + + col2 ) * 17 FROM tab2 AS cor0
----
391

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

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

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

query I rowsort
SELECT - col1 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
528
6576
98

query I rowsort
SELECT ALL 14 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
-826
-952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT - 70 + + - COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - 70 + + - COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT SUM( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT - 88 - - - CAST( + col1 AS SIGNED ) * + col2 + + col1 FROM tab0 AS cor0
----
-186
-277
-3814

skipif mysql # not compatible
query I rowsort label-1567
SELECT - 88 - - - CAST ( + col1 AS INTEGER ) * + col2 + + col1 FROM tab0 AS cor0
----
-186
-277
-3814

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

query I rowsort
SELECT col0 * - + 42 * col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1571
SELECT col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL + 0 * - - 22 - - 1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL + MIN( - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + MIN ( - - col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT - - 99 * - COUNT( * ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT - - 99 * - COUNT ( * ) FROM tab0 AS cor0
----
-297

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL + COUNT( ALL + - 91 ) AS col1 FROM tab0 WHERE + + 43 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + COUNT ( ALL + - 91 ) AS col1 FROM tab0 WHERE + + 43 + - col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95 * - col1 - - - 42 * + col1 AS col1, - col1 col1 FROM tab2 AS cor0
----
2703
-51
3551
-67
4081
-77

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

query II rowsort
SELECT + 99 AS col1, ( - + 76 ) FROM tab0 cor0
----
99
-76
99
-76
99
-76

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

query I rowsort
SELECT DISTINCT - col0 + + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query II rowsort label-1582
SELECT ALL + col2 DIV - 5 AS col2, 37 FROM tab1 AS cor0
----
-11
37
-13
37
-19
37

skipif mysql # not compatible
query II rowsort label-1582
SELECT ALL + col2 / - 5 AS col2, 37 FROM tab1 AS cor0
----
-11
37
-13
37
-19
37

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - 21 + 30
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1586
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) * - col0 + + col1 + + - 18 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1586
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) * - col0 + + col1 + + - 18 IS NULL
----

query I rowsort
SELECT 88 + + col0 FROM tab2
----
134
152
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + 5, - col2 col2 FROM tab0
----
104
-99
15
-10
52
-47

query III rowsort
SELECT * FROM tab2 WHERE 89 BETWEEN - col0 AND + col1 / + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - 57 + COUNT( DISTINCT col1 ) + + - 19 AS col2 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-1590
SELECT - 57 + COUNT ( DISTINCT col1 ) + + - 19 AS col2 FROM tab2
----
-73

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

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + MAX ( DISTINCT col0 ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT - ( 22 ) AS col1 FROM tab0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 AS cor0 WHERE col2 + - + col2 <> - col2
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 55 col2 FROM tab0 AS cor0
----
-142
-152
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - + 48 + + col2, - 22 col2 FROM tab2
----
-1081
-22
-1880
-22
-2726
-22

query I rowsort
SELECT - col2 - 3 AS col1 FROM tab0
----
-102
-13
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * 84 col0 FROM tab2
----
7560

query I rowsort
SELECT 38 * + col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL + - COUNT( * ) - - 88 FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + - COUNT ( * ) - - 88 FROM tab1 cor0
----
85

query I rowsort
SELECT DISTINCT 36 * + col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----

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

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

query I rowsort
SELECT ALL + - 19 + + - col0 * - ( - - col0 ) FROM tab2 WHERE NULL IS NULL
----
2097
4077
5606

onlyif mysql # DIV for integer division: 
query II rowsort label-1605
SELECT - 63 * - col0, 26 DIV col2 AS col1 FROM tab1
----
3213
0
5355
0
5733
0

skipif mysql # not compatible
query II rowsort label-1605
SELECT - 63 * - col0, 26 / col2 AS col1 FROM tab1
----
3213
0
5355
0
5733
0

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

query II rowsort
SELECT ALL col1 * col2, - ( + col1 ) + - col2 + - 84 * - col2 AS col0 FROM tab0
----
210
809
3807
3820
99
8216

query II rowsort
SELECT - 65, + col1 * + 68 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IN ( + col0 )
----
-65
3468
-65
4556
-65
5236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * - col0 col2 FROM tab2 AS cor0
----
-3312
-4608
-5400

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 84 col1, + 73 AS col0 FROM tab1 AS cor0
----
84
73
84
73
84
73

query I rowsort
SELECT ALL col1 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

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

query II rowsort
SELECT - - 1, + col2 + - - 60 + + 23 * 94 + + - col0 AS col0 FROM tab2 AS cor0
----
1
2198
1
2199
1
2205

query II rowsort
SELECT col2 AS col1, - 9 FROM tab0
----
10
-9
47
-9
99
-9

query I rowsort
SELECT DISTINCT + 51 + - 51 + col0 + + col2 - col2 AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT - 45 * + COUNT( - col0 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT - 45 * + COUNT ( - col0 ) FROM tab1
----
-135

query I rowsort
SELECT ALL col1 + - 95 + col2 - col0 AS col0 FROM tab1
----
-116
-36
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL + 12 * - CAST( 26 AS SIGNED ) AS col1 FROM tab0
----
-312
-312
-312

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + 12 * - CAST ( 26 AS INTEGER ) AS col1 FROM tab0
----
-312
-312
-312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1623
SELECT - + 55 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN col1 + - col0 AND CAST( - 93 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1623
SELECT - + 55 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN col1 + - col0 AND CAST ( - 93 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 82 + - col1 + col1 FROM tab1
----
82

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT - - 59 + - + col1 DIV + + 62 FROM tab0 AS cor0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-1627
SELECT - - 59 + - + col1 / + + 62 FROM tab0 AS cor0
----
58
59
59

query I rowsort
SELECT ALL + + 51 + col0 FROM tab0 AS cor0 WHERE NOT ( - ( 29 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 + + + 44 + + col2 + - 8 col1 FROM tab2 cor0
----
107
125
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT - 25 + + ( ( - - COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
-22

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

query I rowsort
SELECT 29 * - 55 * 58 * col2 + - col2 FROM tab0 AS cor0
----
-4348017
-9158589
-925110

query I rowsort
SELECT + + 34 - - 49 AS col1 FROM tab1 cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT 44 * + - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1635
SELECT 44 * + - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-132

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

query II rowsort
SELECT col2 * + - col0, col0 + col2 AS col2 FROM tab2 cor0
----
-1058
69
-2560
104
-4350
133

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

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

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

query II rowsort
SELECT + col2 * col2, + col1 AS col1 FROM tab0 AS cor0
----
100
21
2209
81
9801
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT 96 * ( col1 ) + col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
1344
4513
481

skipif mysql # not compatible
query I rowsort label-1642
SELECT 96 * ( col1 ) + col0 / + col2 AS col2 FROM tab1 AS cor0
----
1344
4513
481

query II rowsort
SELECT ALL - 8, 10 AS col1 FROM tab2
----
-8
10
-8
10
-8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT COUNT( * ) - + + SUM( ( - + 43 ) ) FROM tab0, tab0 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-1644
SELECT COUNT ( * ) - + + SUM ( ( - + 43 ) ) FROM tab0, tab0 AS cor0
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1645
SELECT ALL CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) * + COUNT( * ) * - 53 FROM tab1
----
-477

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) * + COUNT ( * ) * - 53 FROM tab1
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT + 54 * - COUNT( * ) * COUNT( * ) FROM tab1
----
-486

skipif mysql # not compatible
query I rowsort label-1646
SELECT + 54 * - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-486

query II rowsort
SELECT + + col2 AS col0, - ( col2 ) + col2 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT ( 80 ) - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
13
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT 88 - MAX( DISTINCT - col2 ) * 6 AS col0 FROM tab0
----
148

skipif mysql # not compatible
query I rowsort label-1649
SELECT 88 - MAX ( DISTINCT - col2 ) * 6 AS col0 FROM tab0
----
148

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT COUNT( * ) * - 56 AS col2 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-1651
SELECT COUNT ( * ) * - 56 AS col2 FROM tab0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT 35 * SUM( ALL col0 ) FROM tab2
----
6475

skipif mysql # not compatible
query I rowsort label-1652
SELECT 35 * SUM ( ALL col0 ) FROM tab2
----
6475

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

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

query I rowsort
SELECT ALL col1 * col1 - 77 AS col2 FROM tab1
----
-52
119
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT MAX( + col2 ) AS col1 FROM tab1 WHERE - col2 NOT BETWEEN - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT MAX ( + col2 ) AS col1 FROM tab1 WHERE - col2 NOT BETWEEN - col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE - 24 * col0 = ( 11 * col2 + 70 * + 1 )
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE - 24 * col0 = ( 11 * col2 + 70 * + 1 )
----
0

query I rowsort
SELECT + 77 * - col2 AS col0 FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT MIN( 76 ) + MAX( ALL - col1 + - 1 ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-1658
SELECT MIN ( 76 ) + MAX ( ALL - col1 + - 1 ) AS col0 FROM tab1
----
70

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

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

skipif mysql # not compatible
query I rowsort label-1660
SELECT + COUNT ( * ) FROM tab2 WHERE - 4 BETWEEN ( NULL ) AND - 1
----
0

query I rowsort
SELECT 33 * + 34 AS col2 FROM tab1
----
1122
1122
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT 2 * - MIN( col0 ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-1662
SELECT 2 * - MIN ( col0 ) FROM tab2
----
-92

query I rowsort
SELECT ALL 37 * - 12 AS col2 FROM tab2
----
-444
-444
-444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT ALL MAX( - 65 ) DIV MIN( col1 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL MAX ( - 65 ) / MIN ( col1 ) FROM tab1
----
-13

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

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

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

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

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

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

query I rowsort
SELECT ALL - 34 FROM tab0 cor0
----
-34
-34
-34

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

query I rowsort
SELECT DISTINCT 64 + - col2 FROM tab1 AS cor0
----
-32
-4
5

query I rowsort
SELECT DISTINCT 70 FROM tab2 AS cor0 WHERE NOT col2 - col0 * - 31 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT DISTINCT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT ALL + MAX( - 29 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL + MAX ( - 29 ) / COUNT ( * ) FROM tab0 AS cor0
----
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1678
SELECT + - 54 DIV COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1678
SELECT + - 54 / COUNT ( * ) FROM tab0 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT ALL - - 38 DIV - 26 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL - - 38 / - 26 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 90 ) NOT BETWEEN 32 AND col2 + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1682
SELECT ALL * FROM tab2 WHERE NOT ( - col1 * - CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1682
SELECT ALL * FROM tab2 WHERE NOT ( - col1 * - CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT col2 * - col2 + col1 AS col1 FROM tab2 WHERE NOT col2 * + col0 IS NULL
----
-1523
-3297
-478

query I rowsort
SELECT 59 * + - col0 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1686
SELECT + CAST( NULL AS DECIMAL ) / - 25 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1686
SELECT + CAST ( NULL AS REAL ) / - 25 col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + ( - 74 ) FROM tab1 cor0
----
-74
-74
-74

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

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

query I rowsort
SELECT DISTINCT - + col1 + - 48 FROM tab1 AS cor0
----
-53
-62
-95

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT col1 + - + CAST( col0 AS SIGNED ) FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-1695
SELECT col1 + - + CAST ( col0 AS INTEGER ) FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
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-1696
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + + ( + col0 ) ) - - col2 BETWEEN + col0 AND 95
----
15
81
47

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

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

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

query I rowsort
SELECT DISTINCT - 18 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * + + 19 FROM tab1 AS cor0
----
266
893
95

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

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

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

query I rowsort
SELECT DISTINCT 71 * - col0 - col1 * + col1 AS col2 FROM tab1
----
-3817
-6060
-8670

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + COUNT( * ) * + 24 + 85 * - COUNT( * ) AS col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
-183

skipif mysql # not compatible
query I rowsort label-1706
SELECT + COUNT ( * ) * + 24 + 85 * - COUNT ( * ) AS col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
-183

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = NULL AND ( NULL > + 36 + + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL 88 + COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
88

query I rowsort
SELECT ALL ( + + 90 ) * - 70 + + - col1 FROM tab1
----
-6305
-6314
-6347

query I rowsort
SELECT col0 + - - ( col2 ) + 24 + - col1 * - 44 * col2 FROM tab2
----
135648
171141
51705

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 + - - col1 col2 FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT ALL - 77 - + 30 AS col1 FROM tab2 AS cor0
----
-107
-107
-107

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * + col0 / + - 13 + + col0 + - col0 <= + col2
----

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

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

query I rowsort
SELECT DISTINCT + 56 * - ( - 40 ) + - 41 AS col2 FROM tab0 AS cor0
----
2199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - col2 * + 35 / + col1 - + col0 * col2 )
----

query I rowsort
SELECT + 19 * + col2 AS col1 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 13 + - ( - 80 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 13 + - ( - 80 ) FROM tab2 cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT MAX( ALL - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab2
----
-46

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NOT ( NOT ( + 38 * col1 + + col0 ) IN ( col2 + col1 * 85 ) ) )
----
46
64
75

query I rowsort
SELECT 28 * - col1 FROM tab0
----
-2268
-28
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) * 70 AS col0 FROM tab0
----
630

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) * 70 AS col0 FROM tab0
----
630

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

query I rowsort
SELECT ALL + col1 * + - col0 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 97 + + COUNT( * ) AS col0 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-1731
SELECT 97 + + COUNT ( * ) AS col0 FROM tab1
----
100

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

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

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

skipif mysql # not compatible
query I rowsort label-1733
SELECT COUNT ( * ) * + - 43 AS col1 FROM tab1 AS cor0
----
-129

query I rowsort
SELECT ALL 80 FROM tab1 cor0 WHERE col2 NOT IN ( + col1, 56 )
----
80
80
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1736
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * CAST( + - col0 AS SIGNED ) - + 55 * - col0 + + 24 / 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1736
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * CAST ( + - col0 AS INTEGER ) - + 55 * - col0 + + 24 / 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - + col2 AS col2, + ( - col1 ) col1 FROM tab1 cor0
----
-21
-47
-54
-5
-82
-14

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

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

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

query II rowsort
SELECT - 92 + - + col2, col0 * + col1 AS col2 FROM tab0 AS cor0
----
-102
1827
-139
1215
-191
97

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

query I rowsort
SELECT ALL col2 - - + ( col2 ) * + col2 AS col0 FROM tab2
----
1640
3422
552

query I rowsort
SELECT DISTINCT - col0 + 86 FROM tab2
----
11
22
40

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

query I rowsort
SELECT DISTINCT 84 - 37 * 18 + col0 FROM tab0
----
-485
-495
-567

query II rowsort
SELECT - 11 AS col2, + col1 AS col0 FROM tab1
----
-11
14
-11
47
-11
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - col0 * + 26 + + col1 + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1140
-1574
-1891

query I rowsort
SELECT + col0 * col2 * + 73 AS col0 FROM tab2
----
186880
317550
77234

query I rowsort
SELECT ALL - ( - col1 ) * + + 31 AS col1 FROM tab2 AS cor0
----
1581
2077
2387

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1751
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 - - 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - CAST ( NULL AS REAL ) * col2 - - 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 * - - col1 + ( col1 ) + + ( - col2 ) - col0 + 92 * + 88 / - col1 - - 61 )
----

query I rowsort
SELECT 95 AS col2 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT + 88 * + col0 AS col0 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1756
SELECT ALL 58 DIV SUM( 43 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL 58 / SUM ( 43 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col1 * + + 51 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT DISTINCT + 10 * + - 68 AS col2, MIN( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-680
5

skipif mysql # not compatible
query II rowsort label-1758
SELECT DISTINCT + 10 * + - 68 AS col2, MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-680
5

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1760
SELECT * FROM tab0 WHERE NOT - CAST( 76 AS DECIMAL ) <= + - 57
----

skipif mysql # not compatible
query III rowsort label-1760
SELECT * FROM tab0 WHERE NOT - CAST ( 76 AS REAL ) <= + - 57
----

query I rowsort
SELECT ALL col1 * + 28 AS col0 FROM tab1
----
1316
140
392

query III rowsort
SELECT * FROM tab0 WHERE NOT - 9 < + - col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT col1 DIV - col0 + + ( - + 36 ) AS col2 FROM tab2 AS cor0
----
-36
-37

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT col1 / - col0 + + ( - + 36 ) AS col2 FROM tab2 AS cor0
----
-36
-37

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 WHERE NOT + col2 * - col1 + + col1 + + col0 - col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT ALL + - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0 WHERE NOT 15 IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-1766
SELECT ALL + - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE NOT 15 IS NULL
----
-3
3

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

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

query II rowsort
SELECT ALL col2 AS col1, 98 FROM tab1 AS cor0
----
59
98
68
98
96
98

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

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

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

query I rowsort
SELECT DISTINCT - 86 + - ( + + 54 ) + col1 * - 7 + + + col2 + + + col0 * - col2 FROM tab1 AS cor0
----
-5038
-5131
-6589

query II rowsort
SELECT ALL - 58 - - + col2 * + - col0 * + 9, - col1 * 35 * - 51 FROM tab0 WHERE + col2 <= NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1775
SELECT DISTINCT * FROM tab2 WHERE + + 43 = + col0 / col1 - - + col1 + + col0 / CAST( NULL AS DECIMAL ) - + - 65
----

skipif mysql # not compatible
query III rowsort label-1775
SELECT DISTINCT * FROM tab2 WHERE + + 43 = + col0 / col1 - - + col1 + + col0 / CAST ( NULL AS REAL ) - + - 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - + col1 col0, - col0 * col0 AS col0 FROM tab1
----
0
-2601
0
-7225
0
-8281

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

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL + CAST ( NULL AS INTEGER ) * + 30 - + SUM ( - CAST ( + col1 AS INTEGER ) ) FROM tab1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT 15 * + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT 15 * + COUNT ( * ) FROM tab1
----
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1783
SELECT DISTINCT + col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1783
SELECT DISTINCT + col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT + 73 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + 73 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - col0, + 33 + + col2 col2 FROM tab1
----
-425
92
-4277
101
-714
129

query II rowsort
SELECT ALL 54 * col1 AS col1, + col1 + - 70 FROM tab2
----
2754
-19
3618
-3
4158
7

query I rowsort
SELECT ALL - col0 * + + 49 FROM tab0
----
-4263
-4753
-735

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

query I rowsort
SELECT - col2 + + 24 AS col2 FROM tab0
----
-23
-75
14

query I rowsort
SELECT col2 + + col2 * + + col2 AS col2 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT DISTINCT - 87 + - - ( + col0 ) FROM tab1 AS cor0
----
-2
-36
4

query I rowsort
SELECT DISTINCT col2 - + - col2 AS col2 FROM tab0
----
198
20
94

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

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL CAST ( MAX ( + + col1 ) AS INTEGER ) AS col1 FROM tab2
----
77

query II rowsort
SELECT col2 * - + 34 - - - col0, col0 FROM tab2
----
-1424
64
-2047
75
-828
46

query I rowsort
SELECT + + col1 AS col0 FROM tab1 WHERE ( - col1 <= + col1 + + col0 )
----
14
47
5

query I rowsort
SELECT DISTINCT col0 - col2 + col1 AS col2 FROM tab0 AS cor0
----
-1
49
98

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

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

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 22 ) IS NULL
----
51
67
77

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + 26 * 58 * - - COUNT( * ) AS col1 FROM tab2
----
4524

skipif mysql # not compatible
query I rowsort label-1803
SELECT + 26 * 58 * - - COUNT ( * ) AS col1 FROM tab2
----
4524

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT MIN( DISTINCT ( - 72 ) ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-1805
SELECT MIN ( DISTINCT ( - 72 ) ) FROM tab0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1806
SELECT 4 AS col1, + CAST( NULL AS SIGNED ) FROM tab2
----
4
NULL
4
NULL
4
NULL

skipif mysql # not compatible
query II rowsort label-1806
SELECT 4 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
4
NULL
4
NULL
4
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1808
SELECT * FROM tab0 WHERE NOT - - 59 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1808
SELECT * FROM tab0 WHERE NOT - - 59 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT + col1 + - 50 AS col1 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT DISTINCT 52 + + - ( - col0 ) * + - col0 AS col2 FROM tab0 AS cor0
----
-173
-7517
-9357

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1813
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - CAST( NULL AS SIGNED ) + col2 + + col2 + - col1 * + 3 * + - col2 / 77 * - - ( + col0 ) * - col2
----

skipif mysql # not compatible
query III rowsort label-1813
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - CAST ( NULL AS INTEGER ) + col2 + + col2 + - col1 * + 3 * + - col2 / 77 * - - ( + col0 ) * - col2
----

query I rowsort
SELECT - col2 * + 92 AS col0 FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - + MAX( - + col2 ) * + - ( - COUNT( * ) ) FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-1815
SELECT - + MAX ( - + col2 ) * + - ( - COUNT ( * ) ) FROM tab2 cor0
----
69

query I rowsort
SELECT DISTINCT + 37 * + - 35 FROM tab2
----
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT DISTINCT - 43 DIV - 46 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT DISTINCT - 43 / - 46 col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col1, + ( + 50 ) AS col2 FROM tab0
----
1
50
21
50
81
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT DISTINCT + ( 63 ) + - - 46, - SUM( ALL - - 98 ) AS col1 FROM tab1 cor0
----
109
-294

skipif mysql # not compatible
query II rowsort label-1819
SELECT DISTINCT + ( 63 ) + - - 46, - SUM ( ALL - - 98 ) AS col1 FROM tab1 cor0
----
109
-294

query I rowsort
SELECT + 60 + + col2 FROM tab1 AS cor0
----
119
128
156

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

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

query I rowsort
SELECT col2 + - col2 + + + col1 FROM tab2 AS cor0
----
51
67
77

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

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

query I rowsort
SELECT DISTINCT - col1 * - 17 + + ( - 27 ) + col1 FROM tab0 AS cor0
----
-9
1431
351

query III rowsort
SELECT * FROM tab1 WHERE - col2 = + + 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT ALL CAST( + 13 AS SIGNED ) - + col0 AS col2 FROM tab0
----
-2
-74
-84

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL CAST ( + 13 AS INTEGER ) - + col0 AS col2 FROM tab0
----
-2
-74
-84

query I rowsort
SELECT + col1 - - 34 * + col2 FROM tab2 AS cor0
----
1437
2039
833

query I rowsort
SELECT + - col1 - col0 * - 57 AS col2 FROM tab0 AS cor0
----
4938
5528
774

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query III rowsort label-1830
SELECT DISTINCT - col0 AS col1, - col0 * col1 AS col1, + + col2 DIV 72 + - 92 AS col1 FROM tab1
----
9 values hashing to 6ad1158e6e40d812b059888a5c7897e1

skipif mysql # not compatible
query III rowsort label-1830
SELECT DISTINCT - col0 AS col1, - col0 * col1 AS col1, + + col2 / 72 + - 92 AS col1 FROM tab1
----
9 values hashing to 6ad1158e6e40d812b059888a5c7897e1

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 - col2 IN ( - col1, col0 * + + 35 * 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL COUNT( * ) * - - 57 + + - COUNT( * ) * 77 AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL COUNT ( * ) * - - 57 + + - COUNT ( * ) * 77 AS col2 FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 94 col1, + col2 * + col1 AS col0 FROM tab1 AS cor0
----
94
1344
94
295
94
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1834
SELECT ALL + col0 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL + col0 / - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 99 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT DISTINCT COUNT( * ) AS col1, 75 AS col0 FROM tab0 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-1836
SELECT DISTINCT COUNT ( * ) AS col1, 75 AS col0 FROM tab0 AS cor0
----
3
75

query I rowsort
SELECT DISTINCT col0 + + - ( - col1 ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT + 35 * COUNT( * ) col1 FROM tab1 cor0
----
105

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

query II rowsort
SELECT 88 AS col1, col2 FROM tab1 AS cor0
----
88
59
88
68
88
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT ALL - col2 * + col1 * - - 90 + - 66 * + col0 + + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-124422
-293714
-32219

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - col2 * + col1 * - - 90 + - 66 * + col0 + + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-124422
-293714
-32219

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT COUNT( + - col0 ) col2 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-1843
SELECT COUNT ( + - col0 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT + + 13 * - 19 - - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + + 13 * - 19 - - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 42 col0 FROM tab2
----
-16
19
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT DISTINCT CAST( - + col1 AS SIGNED ) + + - col1 * col2 - col1 * - col0 + + col1 * - col0 FROM tab1
----
-1358
-300
-3243

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) + + - col1 * col2 - col1 * - col0 + + col1 * - col0 FROM tab1
----
-1358
-300
-3243

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

query I rowsort
SELECT ALL + + col0 * + col1 FROM tab2 WHERE NOT - 45 NOT BETWEEN + col1 AND - col2 * col1
----

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + + col1, col2 )
----

query II rowsort
SELECT col0 * - 33 AS col2, - col1 FROM tab0
----
-2871
-21
-3201
-1
-495
-81

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

skipif mysql # not compatible
query I rowsort label-1851
SELECT + COUNT ( * ) * - MAX ( - col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + - 59 * SUM( DISTINCT col0 ) - + SUM( DISTINCT + 83 ) + - - COUNT( * ) col1 FROM tab0 AS cor0
----
-11821

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1853
SELECT ALL + - 59 * SUM ( DISTINCT col0 ) - + SUM ( DISTINCT + 83 ) + - - COUNT ( * ) col1 FROM tab0 AS cor0
----
-11821

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

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

query I rowsort
SELECT DISTINCT + 79 * - + 54 FROM tab0 AS cor0
----
-4266

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL - COUNT( 71 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - COUNT ( 71 ) AS col1 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 * + - col2 col2 FROM tab0 AS cor0
----
-2820
-5940
-600

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 + + col0 IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL <> + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT + MAX( DISTINCT - + 14 ) * + COUNT( * ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1861
SELECT + MAX ( DISTINCT - + 14 ) * + COUNT ( * ) FROM tab1
----
-42

query I rowsort
SELECT ALL + col2 * - 77 AS col2 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT - AVG ( ALL + + col2 ) AS col1 FROM tab2 WHERE NOT + + CAST( 42 AS SIGNED ) / - 3 / 73 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT - AVG ( ALL + + col2 ) AS col1 FROM tab2 WHERE NOT + + CAST ( 42 AS INTEGER ) / - 3 / 73 = NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 99 IS NULL
----
15
87
97

query I rowsort
SELECT - ( + col0 ) * 87 FROM tab0
----
-1305
-7569
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT 98 + SUM( DISTINCT - + 82 ) AS col0 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-1866
SELECT 98 + SUM ( DISTINCT - + 82 ) AS col0 FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 82 / - + 24 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 82 / - + 24 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - 4 * + COUNT( * ) FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 4 * + COUNT ( * ) FROM tab2 cor0
----
-12

query I rowsort
SELECT + + 12 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - 43
----

query I rowsort
SELECT ( 18 ) AS col1 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab2
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT DISTINCT col0 * - 19 AS col0 FROM tab0 WHERE - + ( - - col0 ) - + col2 BETWEEN ( - col0 ) AND col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT col0 * - 19 AS col0 FROM tab0 WHERE - + ( - - col0 ) - + col2 BETWEEN ( - col0 ) AND col1 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col0, + 85 FROM tab1
----
51
85
85
85
91
85

query I rowsort
SELECT ALL 7 * + 10 + + 79 FROM tab2
----
149
149
149

query III rowsort
SELECT * FROM tab2 WHERE - - col0 / + - 89 > - 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 47 FROM tab0 WHERE col2 NOT BETWEEN - + col0 AND col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL - 15 - - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - 15 - - COUNT ( * ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT + - COUNT( * ) + + 94 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1878
SELECT + - COUNT ( * ) + + 94 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT ALL - 1 col1, - 68 + + SUM( - - col2 ) AS col2 FROM tab1 AS cor0
----
-1
155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1879
SELECT ALL - 1 col1, - 68 + + SUM ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-1
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT + + 51, COUNT( * ) + - + 66 AS col1 FROM tab2 cor0
----
51
-63

skipif mysql # not compatible
query II rowsort label-1880
SELECT + + 51, COUNT ( * ) + - + 66 AS col1 FROM tab2 cor0
----
51
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT ALL + 4 * + - MAX( DISTINCT + - 5 ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + 4 * + - MAX ( DISTINCT + - 5 ) AS col0 FROM tab2
----
20

query II rowsort
SELECT ALL 76 * - 84, + 60 * ( - col2 ) AS col0 FROM tab1
----
-6384
-3540
-6384
-4080
-6384
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1883
SELECT + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab2, tab0 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT COUNT( - - 98 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1885
SELECT COUNT ( - - 98 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 77 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + 97 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT DISTINCT - COUNT( * ) DIV - - 40 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT - COUNT ( * ) / - - 40 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1889
SELECT + CAST( + + 20 AS SIGNED ) DIV 24 + - col2 * + + 64 + col2 col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1889
SELECT + CAST ( + + 20 AS INTEGER ) / 24 + - col2 * + + 64 + col2 col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT DISTINCT - SUM( DISTINCT col0 ) AS col2, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-199
3

skipif mysql # not compatible
query II rowsort label-1890
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-199
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + 24 = NULL
----

query I rowsort
SELECT ALL col1 * + - 23 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT - 81 * - COUNT( * ) col1 FROM tab2
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1893
SELECT DISTINCT - 81 * - COUNT ( * ) col1 FROM tab2
----
243

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / + - col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + - 93 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + - 93 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----
-93

query II rowsort
SELECT + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 26 * + + col2 col1 FROM tab2 AS cor0
----
1441
547
963

query I rowsort
SELECT ALL - - 51 + + col2 FROM tab1 cor0
----
110
119
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT + COUNT( * ) DIV - + ( + - 81 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT + COUNT ( * ) / - + ( + - 81 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 46 >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 6 FROM tab0 WHERE NOT ( - + col0 ) IS NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT + CAST( NULL AS SIGNED ) * ( - col2 ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1903
SELECT + CAST ( NULL AS INTEGER ) * ( - col2 ) col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL AND + 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 - col1 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-1905
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 - col1 IS NOT NULL
----
6

query I rowsort
SELECT + 75 + col0 + - ( - - col1 ) FROM tab1 AS cor0
----
112
119
155

query I rowsort
SELECT ALL + 79 + - + col1 * + col2 * ( - col0 ) AS col0 FROM tab2 cor0
----
197199
291529
54037

query I rowsort
SELECT ALL + + col0 * + - col0 * + col0 - col1 + - col2 + + + col1 AS col1 FROM tab2 cor0
----
-262184
-421933
-97359

query I rowsort
SELECT ALL + col2 - - + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT 12 + - col0 FROM tab0
----
-3
-75
-85

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 90
----

query II rowsort
SELECT ALL col1 AS col0, col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND col1 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE + + 76 <= - 47 + + 47
----

query II rowsort
SELECT DISTINCT 94, col1 AS col1 FROM tab2 AS cor0
----
94
51
94
67
94
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1915
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( CAST( NULL AS SIGNED ), + col0, - + col1, + + col1, col1 + + + 4 )
----

skipif mysql # not compatible
query III rowsort label-1915
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( CAST ( NULL AS INTEGER ), + col0, - + col1, + + col1, col1 + + + 4 )
----

query I rowsort
SELECT DISTINCT + col0 + - - 84 FROM tab0 AS cor0
----
171
181
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT + COUNT( * ) + + 91 AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT + COUNT ( * ) + + 91 AS col1 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL + MIN( ALL + 55 ) AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + MIN ( ALL + 55 ) AS col1 FROM tab2
----
55

query I rowsort
SELECT ALL + col2 * 18 AS col0 FROM tab1 AS cor0
----
1062
1224
1728

query I rowsort
SELECT ALL ( 45 ) AS col2 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + 80 FROM tab1 WHERE col0 / - + col1 IS NOT NULL
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - + col2 col1 FROM tab1
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT MAX( DISTINCT - + col0 ) * + + 20 AS col2 FROM tab2
----
-920

skipif mysql # not compatible
query I rowsort label-1923
SELECT MAX ( DISTINCT - + col0 ) * + + 20 AS col2 FROM tab2
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL COUNT( + col2 ) * + COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT ALL COUNT ( + col2 ) * + COUNT ( * ) col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT col0 * + CAST( col2 AS SIGNED ) * - ( + - col2 ) AS col0 FROM tab2
----
102400
24334
252300

skipif mysql # not compatible
query I rowsort label-1925
SELECT col0 * + CAST ( col2 AS INTEGER ) * - ( + - col2 ) AS col0 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL COUNT( * ) * MAX( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1926
SELECT ALL COUNT ( * ) * MAX ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT ( col1 ) * - + 2, + col0 AS col0 FROM tab1
----
-10
85
-28
51
-94
91

query I rowsort
SELECT DISTINCT 89 * + + col2 AS col0 FROM tab2 AS cor0
----
2047
3560
5162

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - - 93 + COUNT( * ) AS col1 FROM tab2 cor0 WHERE 58 IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - - 93 + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE 58 IS NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col1 + + + col1 col0, 9 AS col0 FROM tab0
----
-97
9
115
9
32
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL MAX( 58 ) * 44 AS col1 FROM tab0
----
2552

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL MAX ( 58 ) * 44 AS col1 FROM tab0
----
2552

query II rowsort
SELECT ALL - - col2 AS col0, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + 97 + + - ( 22 ) AS col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT - col1 DIV - 93 * ( 12 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT - col1 / - 93 * ( 12 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - 21 * + col0 AS col2 FROM tab0
----
-1806
-2036
-234

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 IS NOT NULL AND ( NULL ) >= + + col1 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT ALL - + 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-1939
SELECT ALL - + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1940
SELECT ALL - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + 92 < + col2 + - 99
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT + 32 FROM tab2 AS cor0 WHERE NOT NULL <= - col2 + - + col2 * - 34 * - - col0
----

query I rowsort
SELECT ALL col0 - + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 98 * - 2 + + 29 AND - col0 * + col0 / + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - + 41 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL COUNT( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL COUNT ( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT - SUM( DISTINCT - CAST( - CAST( - 54 AS SIGNED ) AS SIGNED ) ) FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1947
SELECT - SUM ( DISTINCT - CAST ( - CAST ( - 54 AS INTEGER ) AS INTEGER ) ) FROM tab1 cor0
----
54

query II rowsort
SELECT ALL - + col1, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 - col2 NOT BETWEEN 82 + + col2 + 68 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1951
SELECT + col1 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + col1 + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1952
SELECT ALL - col2 AS col1, - 69 + + CAST( NULL AS SIGNED ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1952
SELECT ALL - col2 AS col1, - 69 + + CAST ( NULL AS INTEGER ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT col2 * CAST( + col1 AS SIGNED ) + - + 36 AS col2 FROM tab2
----
1137
3044
3850

skipif mysql # not compatible
query I rowsort label-1953
SELECT col2 * CAST ( + col1 AS INTEGER ) + - + 36 AS col2 FROM tab2
----
1137
3044
3850

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT - col2 / + col1 * - col2 * + 10 > col2 / - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + 5 - - - 64
----

query I rowsort
SELECT + 82 FROM tab2 AS cor0 WHERE 84 IS NULL
----

query II rowsort
SELECT - - col2 AS col2, + col1 + - 44 AS col1 FROM tab2 AS cor0
----
23
7
40
33
58
23

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab2 cor0 WHERE NOT - col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL + COUNT( * ) + + COUNT( * ) * - 18 col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1959
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * - 18 col1 FROM tab1 cor0
----
-51

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

query II rowsort
SELECT - ( col0 ) AS col1, + 51 + - 28 + + - 91 + + col1 FROM tab1 WHERE - col2 + + col2 * + ( - + 68 ) * ( col0 ) IS NULL
----

query I rowsort
SELECT ALL - + 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query II rowsort
SELECT - 31 + 35 AS col0, - 32 FROM tab1 AS cor0
----
4
-32
4
-32
4
-32

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 75 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + COUNT( + col1 ) + + 84 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1965
SELECT + COUNT ( + col1 ) + + 84 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT 30 BETWEEN + col2 AND NULL
----
-15
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + ( + 33 ) - - - 34 - - ( - + col1 ) * - - col0 * col0 AS col2, - col0 * 20 col0 FROM tab2 AS cor0
----
-107871
-920
-315329
-1280
-376801
-1500

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 * + col0 - - col0 * col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL ( - 3 ) * COUNT( - col0 ) * MAX( ALL col2 ) FROM tab2 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL ( - 3 ) * COUNT ( - col0 ) * MAX ( ALL col2 ) FROM tab2 AS cor0
----
-522

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1970
SELECT DISTINCT - 40 + CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - 40 + CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 + col2 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT + col2 * - col2 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT MAX( + 88 ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1973
SELECT MAX ( + 88 ) FROM tab2
----
88

query III rowsort
SELECT * FROM tab2 WHERE - 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 col0, - 25 * - 97 * ( col2 ) FROM tab2
----
13
140650
13
55775
13
97000

query II rowsort
SELECT 19, col2 AS col1 FROM tab1
----
19
59
19
68
19
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1977
SELECT - col0 AS col2, + CAST( NULL AS SIGNED ) * - - col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-1977
SELECT - col0 AS col2, + CAST ( NULL AS INTEGER ) * - - col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT + ( - + 73 ) FROM tab0
----
-73
-73
-73

query I rowsort
SELECT - col0 * + col1 * + col2 - - 63 * + - 30 AS col2 FROM tab2
----
-199010
-293340
-55848

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - MAX( DISTINCT + 52 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1980
SELECT - MAX ( DISTINCT + 52 ) FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - SUM( DISTINCT - - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1981
SELECT - SUM ( DISTINCT - - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT - - 98 * - col0 FROM tab0 AS cor0 WHERE NOT col2 + 98 + col1 - - col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 60 * ( - 30 ) / col2
----

query I rowsort
SELECT - 80 * 59 FROM tab1
----
-4720
-4720
-4720

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 - + col1 IN ( 97, col1, - - col0, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + 0 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT ALL 50 + - CAST( - + 84 AS SIGNED ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
134
134
134

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL 50 + - CAST ( - + 84 AS INTEGER ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
134
134
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) + 90 AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) + 90 AS col1 FROM tab0
----
99

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1990
SELECT ( + col1 ) DIV col1 AS col2, + 52 * - 25 AS col0 FROM tab2
----
1
-1300
1
-1300
1
-1300

skipif mysql # not compatible
query II rowsort label-1990
SELECT ( + col1 ) / col1 AS col2, + 52 * - 25 AS col0 FROM tab2
----
1
-1300
1
-1300
1
-1300

query II rowsort
SELECT DISTINCT + - 9 + - col2, - col0 * 71 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - col2 col2 FROM tab2 WHERE NULL < 73
----

query I rowsort
SELECT DISTINCT 52 + + + col1 FROM tab2
----
103
119
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - MIN( - col0 ) * + 80 FROM tab2
----
6000

skipif mysql # not compatible
query I rowsort label-1994
SELECT - MIN ( - col0 ) * + 80 FROM tab2
----
6000

query II rowsort
SELECT ALL - col2, 31 AS col2 FROM tab2
----
-23
31
-40
31
-58
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1996
SELECT ALL + 6 + CAST( + + 45 AS SIGNED ) col0, - col2 FROM tab0 AS cor0
----
51
-10
51
-47
51
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1996
SELECT ALL + 6 + CAST ( + + 45 AS INTEGER ) col0, - col2 FROM tab0 AS cor0
----
51
-10
51
-47
51
-99

query I rowsort
SELECT + col1 - + + 49 FROM tab2 AS cor0
----
18
2
28

query II rowsort
SELECT ALL - col0 * + + col2, col0 AS col0 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

query I rowsort
SELECT DISTINCT + + 80 * - 80 AS col0 FROM tab0 AS cor0
----
-6400

query I rowsort
SELECT - 93 - - - col1 FROM tab1 cor0
----
-107
-140
-98

query I rowsort
SELECT + 20 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT ALL COUNT( * ) DIV + 95 * - - SUM( - col2 ) DIV - 96 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL COUNT ( * ) / + 95 * - - SUM ( - col2 ) / - 96 FROM tab2
----
0

query II rowsort
SELECT + 51 + + 20, 12 AS col2 FROM tab2
----
71
12
71
12
71
12

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + - 62
----

query I rowsort
SELECT DISTINCT - 37 * + + col0 * + 96 * + col1 AS col2 FROM tab1
----
-1509600
-15191904
-2536128

query I rowsort
SELECT 69 AS col2 FROM tab0 cor0 WHERE NOT - col1 < - col1 * col2 + - + col2 * + + col2
----
69
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT DISTINCT ( MIN( col1 ) ) AS col1, 29 FROM tab2 AS cor0
----
51
29

skipif mysql # not compatible
query II rowsort label-2007
SELECT DISTINCT ( MIN ( col1 ) ) AS col1, 29 FROM tab2 AS cor0
----
51
29

query I rowsort
SELECT col2 * + 32 FROM tab2 cor0
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT - COUNT( * ) AS col2, - 96 AS col0 FROM tab0
----
-3
-96

skipif mysql # not compatible
query II rowsort label-2009
SELECT - COUNT ( * ) AS col2, - 96 AS col0 FROM tab0
----
-3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL - MIN( DISTINCT col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT + col0 * - + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT DISTINCT COUNT( + 15 ) * 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT COUNT ( + 15 ) * 2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - + COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2013
SELECT - + COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - col0 * - 1 * + - col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT - col2 * - ( + col0 ) + - 64 + + 43 * - CAST( + 41 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1122
-957
7776

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - col2 * - ( + col0 ) + - 64 + + 43 * - CAST ( + 41 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1122
-957
7776

query II rowsort
SELECT + 87, - col1 AS col1 FROM tab0 AS cor0
----
87
-1
87
-21
87
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT - - 43 + + 34 + COUNT( col1 ) + - 44 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - - 43 + + 34 + COUNT ( col1 ) + - 44 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - 60 + COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2018
SELECT - 60 + COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT + + ( - 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-2019
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT col2 * - - 56 + - ( col0 ) AS col2 FROM tab1
----
3219
3717
5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT - CAST( - + 78 AS SIGNED ) + + + ( - col2 ) FROM tab0
----
-21
31
68

skipif mysql # not compatible
query I rowsort label-2022
SELECT - CAST ( - + 78 AS INTEGER ) + + + ( - col2 ) FROM tab0
----
-21
31
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * - + col0 col0 FROM tab0
----
3132
3492
540

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT DISTINCT 10 + - col2 DIV col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT 10 + - col2 / col2 FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( NULL IS NULL ) OR - + col1 BETWEEN + col2 * col2 + 49 + - col2 - col0 AND 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 29 * col0 AS col2, col0 AS col1 FROM tab0
----
2523
87
2813
97
435
15

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 * col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 * + - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT col0 DIV 43 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2029
SELECT col0 / 43 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - + - 20 <= + col2
----

query I rowsort
SELECT ALL - 23 * 34 AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 92d61ff6ad50f2f7762ed51567f01894

query I rowsort
SELECT - col2 + + 22 FROM tab0
----
-25
-77
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 WHERE - col2 * - col1 * + 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 WHERE - col2 * - col1 * + 27 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 23 col0 FROM tab0 AS cor0
----
-58
2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT + MAX( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + MAX ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab2 AS cor0 WHERE col2 * + - col0 + + col0 - ( CAST( NULL AS SIGNED ) ) * - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab2 AS cor0 WHERE col2 * + - col0 + + col0 - ( CAST ( NULL AS INTEGER ) ) * - - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN 54 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, 21 * - col0 + col2, + col0, - + col2 * col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT CAST( + - col2 AS SIGNED ) * - + col0 + + CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE col1 / + 1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT CAST ( + - col2 AS INTEGER ) * - + col0 + + CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE col1 / + 1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2040
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 58 AS col0 FROM tab0 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE 40 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT DISTINCT + ( + MIN( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + ( + MIN ( + col0 ) ) FROM tab1
----
51

query I rowsort
SELECT 84 * + + col0 AS col0 FROM tab1
----
4284
7140
7644

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2045
SELECT col1, 67 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2045
SELECT col1, 67 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT 55 * col0 * + col2 FROM tab2
----
140800
239250
58190

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT + COUNT( * ) * + 5 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + COUNT ( * ) * + 5 FROM tab2
----
15

query I rowsort
SELECT ALL - col0 * - 63 FROM tab0
----
5481
6111
945

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT ALL 82 DIV + + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 82 / + + col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT col2 * - + CAST( NULL AS SIGNED ) * - col0 / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT col2 * - + CAST ( NULL AS INTEGER ) * - col0 / col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * + + col0 * - col2 col1 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 * + - ( 75 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2053
SELECT + 69 DIV - col2, col1 + - - 83 + ( + - 50 ) AS col1 FROM tab0 AS cor0
----
-1
114
-6
54
0
34

skipif mysql # not compatible
query II rowsort label-2053
SELECT + 69 / - col2, col1 + - - 83 + ( + - 50 ) AS col1 FROM tab0 AS cor0
----
-1
114
-6
54
0
34

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE col0 <> + col1
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 + - col2 - col1 + + 51 AS col2 FROM tab2 AS cor0 WHERE NOT col1 <= ( + 5 )
----
-2
1
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 > NULL
----

query II rowsort
SELECT DISTINCT + + col0 + + col2, - 28 * - + col1 - + + col1 AS col1 FROM tab0 AS cor0
----
196
27
62
2187
97
567

query I rowsort
SELECT ALL col1 + - 37 FROM tab2
----
14
30
40

query II rowsort
SELECT + 33 AS col0, + col1 AS col1 FROM tab1
----
33
14
33
47
33
5

query I rowsort
SELECT + col0 * col0 * + - col2 AS col2 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL + col1 * - 16 + - col1 FROM tab1
----
-238
-799
-85

query I rowsort
SELECT DISTINCT - ( 59 ) FROM tab2 AS cor0 WHERE NOT NULL > 58 / - + 17
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 14 = 96
----
-46
-64
-75

query I rowsort
SELECT + col0 * + col2 + - + col2 + - col1 FROM tab0 cor0
----
577
839
9503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT + col0 * + + col1 / - + ( + CAST( NULL AS SIGNED ) ) * + 42 + + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + col0 * + + col1 / - + ( + CAST ( NULL AS INTEGER ) ) * + 42 + + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 - 6 FROM tab0
----
4
41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT MIN( DISTINCT 99 ) + + 47 AS col2 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-2067
SELECT MIN ( DISTINCT 99 ) + + 47 AS col2 FROM tab1
----
146

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 20 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2070
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col0 + col0 * - CAST( NULL AS DECIMAL ) = - ( - 63 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2070
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col0 + col0 * - CAST ( NULL AS REAL ) = - ( - 63 ) * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT - 50 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 50 IS NOT NULL
----
0

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT + 91 NOT IN ( ( - 41 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col2 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT + AVG ( + col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT + AVG ( + col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 54 BETWEEN - col1 + - 77 AND col1 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + ( 65 ) ) FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT COUNT( * ) - 53 AS col1 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT COUNT ( * ) - 53 AS col1 FROM tab1
----
-50

query III rowsort
SELECT ALL * FROM tab0 WHERE + 16 IN ( col0 + col0 )
----

query I rowsort
SELECT - 89 AS col0 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
-89
-89
-89

query III rowsort
SELECT * FROM tab1 WHERE NOT - 73 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - col2 * - 15 AS col2 FROM tab0
----
1582
237
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE + col0 * - ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col0 * - ( + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE ( col2 + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE ( col2 + col0 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( 17 ) AS col2 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT - MIN( + col0 ) + - ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-54

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - MIN ( + col0 ) + - ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT SUM( ( - col1 ) ) * 79 + + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col0 - - 95 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT SUM ( ( - col1 ) ) * 79 + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col0 - - 95 < NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col0 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 17 NOT IN ( + 62 * - 45 )
----

query I rowsort
SELECT ALL - 84 * col1 AS col1 FROM tab1 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + COUNT( * ) * 16 AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2090
SELECT + COUNT ( * ) * 16 AS col0 FROM tab2
----
48

query I rowsort
SELECT AVG ( DISTINCT col2 ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 / 25 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 52 ) col2 FROM tab1
----
52
52
52

query I rowsort
SELECT - 31 * col1 AS col0 FROM tab0 AS cor0
----
-2511
-31
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT + 36 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT + 36 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + ( 78 ) FROM tab0 AS cor0 WHERE ( NULL ) <= + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2096
SELECT 30 DIV MIN( col1 ) + + 15 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2096
SELECT 30 / MIN ( col1 ) + + 15 FROM tab0 AS cor0
----
45

query I rowsort
SELECT DISTINCT - ( + 98 ) AS col0 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT ALL - 90 + col0 AS col1 FROM tab1 cor0
----
-39
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2099
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT ALL - + col1 + CAST( col0 + - 40 * + col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
11370
123516
53032

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - + col1 + CAST ( col0 + - 40 * + col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
11370
123516
53032

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + + col0 * - col2 IS NULL
----

query I rowsort
SELECT ALL ( + col2 ) + - 22 FROM tab1
----
37
46
74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2103
SELECT * FROM tab2 WHERE ( 73 * + col0 ) NOT BETWEEN + ( + 71 ) AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2103
SELECT * FROM tab2 WHERE ( 73 * + col0 ) NOT BETWEEN + ( + 71 ) AND - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - col1 + - 51 FROM tab0
----
-132
-52
-72

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND 69 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT MIN( - col2 ) + 21 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2106
SELECT MIN ( - col2 ) + 21 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL - COUNT( * ) * 55 FROM tab1 WHERE NOT ( 38 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - COUNT ( * ) * 55 FROM tab1 WHERE NOT ( 38 ) <= NULL
----
0

query I rowsort
SELECT ALL - col2 + ( col0 ) AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT col0 + - 68 + 57 * + col2 * + ( col0 ) AS col0 FROM tab1
----
279055
285872
352739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT CAST( NULL AS SIGNED ) * 12 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT CAST ( NULL AS INTEGER ) * 12 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - col0 * ( + 64 ) IS NULL
----

query I rowsort
SELECT ALL col1 - + - 9 AS col1 FROM tab0
----
10
30
90

query III rowsort
SELECT * FROM tab1 WHERE 14 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col2 + - col2 * 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND 16
----

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT DISTINCT - CAST( - 96 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - CAST ( - 96 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 * col2 = - col1 * - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col2 * + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT ( - 71 ) * col1 + col2 - col2 AS col0 FROM tab0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT + CAST( NULL AS SIGNED ) / + 80 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2121
SELECT + CAST ( NULL AS INTEGER ) / + 80 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT + COUNT( * ) + 43 + + CAST( NULL AS SIGNED ) + + ( AVG ( ALL 77 ) + 79 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + COUNT ( * ) + 43 + + CAST ( NULL AS INTEGER ) + + ( AVG ( ALL 77 ) + 79 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL MAX( - - 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL MAX ( - - 22 ) FROM tab2
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, col0 col1 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
85

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query II rowsort
SELECT - 87, - 79 AS col0 FROM tab2 AS cor0
----
-87
-79
-87
-79
-87
-79

query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL SUM( DISTINCT col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL SUM ( DISTINCT col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT + + 95 * - 23 FROM tab1 AS cor0
----
-2185

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT col2 * 83 DIV - col1 + + col1 FROM tab0 cor0
----
-18
-8216
33

skipif mysql # not compatible
query I rowsort label-2131
SELECT col2 * 83 / - col1 + + col1 FROM tab0 cor0
----
-18
-8216
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + + 62 + - 66 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT - + MIN( 50 ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2133
SELECT - + MIN ( 50 ) FROM tab0 AS cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 17 BETWEEN ( + col1 + col2 ) AND + col0 * col0 - 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 * + + 2 FROM tab2 cor0
----
-116
-46
-80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 / + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT + COUNT( ALL col2 ) - - 3 FROM tab2 WHERE NOT ( + col2 ) IN ( + col0 )
----
6

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT + COUNT ( ALL col2 ) - - 3 FROM tab2 WHERE NOT ( + col2 ) IN ( + col0 )
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( + 71 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL <> ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL <> ( + col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 NOT BETWEEN NULL AND ( 3 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2141
SELECT - COUNT( * ) DIV + + COUNT( * ), + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2141
SELECT - COUNT ( * ) / + + COUNT ( * ), + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT ALL 3 AS col1 FROM tab1 WHERE NOT ( + - 32 ) IS NULL
----
3
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 * - + ( + + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2144
SELECT + ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( - 98 * + col1 * CAST( NULL AS DECIMAL ) * - col1 ) >= col1
----

skipif mysql # not compatible
query I rowsort label-2144
SELECT + ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( - 98 * + col1 * CAST ( NULL AS REAL ) * - col1 ) >= col1
----

query I rowsort
SELECT DISTINCT - col0 / - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 96 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
96
96
96

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 AS col2 FROM tab0
----
-100
-231
-3888

query II rowsort
SELECT ALL col2 AS col1, col1 AS col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL - COUNT( * ) / + COUNT( * ) + - CAST( NULL AS SIGNED ) + - 47 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - COUNT ( * ) / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 47 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT - 15 DIV - COUNT( * ) + - 77 AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2150
SELECT - 15 / - COUNT ( * ) + - 77 AS col1 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT + 54 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - 98, + col2 AS col2 FROM tab0 AS cor0
----
-98
10
-98
47
-98
99

query I rowsort
SELECT - ( - 4 ) AS col1 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - col0 col0 FROM tab0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + ( - - col2 ) AND col2 / col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col0 + + 85 AS col0 FROM tab1
----
4981
5100
6273

query I rowsort
SELECT ALL 21 / - 95 + + col1 FROM tab1 WHERE ( + col1 ) BETWEEN + 16 * - 39 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT + 90 DIV + - col0 + - - col0 FROM tab0
----
86
9
97

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 90 / + - col0 + - - col0 FROM tab0
----
86
9
97

query I rowsort
SELECT DISTINCT 59 - + - 25 AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2161
SELECT ( + + COUNT( DISTINCT + col2 ) ) + CAST( NULL AS SIGNED ), - 29 + - 38 col1 FROM tab1 AS cor0
----
NULL
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2161
SELECT ( + + COUNT ( DISTINCT + col2 ) ) + CAST ( NULL AS INTEGER ), - 29 + - 38 col1 FROM tab1 AS cor0
----
NULL
-67

query I rowsort
SELECT ALL + col0 * 32 * + 69 FROM tab0 cor0 WHERE NOT ( 63 + + 57 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - MIN( + + 98 ) AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2163
SELECT - MIN ( + + 98 ) AS col1 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT ALL 4 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2165
SELECT - col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT - col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * - col2 * + col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT - 2 + 27 - + + 93 / + - col1 > 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * col2 * - - 59 AS col2 FROM tab0 AS cor0
----
130331
578259
5900

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT - 85 * 41 DIV + col1 + + + col1 * - col0 FROM tab2 AS cor0
----
-2414
-4973
-5077

skipif mysql # not compatible
query I rowsort label-2170
SELECT - 85 * 41 / + col1 + + + col1 * - col0 FROM tab2 AS cor0
----
-2414
-4973
-5077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT CAST( + col2 AS SIGNED ) * - col1 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2171
SELECT CAST ( + col2 AS INTEGER ) * - col1 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - + 71 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + CAST( - col0 AS SIGNED ) = + col1 )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2173
SELECT + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + CAST ( - col0 AS INTEGER ) = + col1 )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2175
SELECT * FROM tab0 WHERE NOT - col2 + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2175
SELECT * FROM tab0 WHERE NOT - col2 + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 9 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + ( + col0 ) ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT + MAX( DISTINCT - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + MAX ( DISTINCT - 28 ) FROM tab0
----
-28

query I rowsort
SELECT - 70 * - col0 * col1 AS col0 FROM tab2
----
164220
344960
351750

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT DISTINCT - COUNT( + - 19 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - COUNT ( + - 19 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + + ( + col1 ) * col0 + + - col0 * + 17 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + + ( + col1 ) * col0 + + - col0 * + 17 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT MAX( ALL + col1 ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col2 / + 7 + + + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT MAX ( ALL + col1 ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col2 / + 7 + + + col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - 34 + - col0 AS col0 FROM tab0 AS cor0
----
-121
-131
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-2185
SELECT + + 20 col0, - col1 DIV 55 FROM tab1 AS cor0
----
20
0
20
0
20
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2185
SELECT + + 20 col0, - col1 / 55 FROM tab1 AS cor0
----
20
0
20
0
20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT - MAX( ALL + 19 ) col0 FROM tab1
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2186
SELECT DISTINCT - MAX ( ALL + 19 ) col0 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT ( - 4 ) + + - COUNT( + - col0 ) AS col0, + 31 FROM tab0 AS cor0
----
-7
31

skipif mysql # not compatible
query II rowsort label-2187
SELECT ( - 4 ) + + - COUNT ( + - col0 ) AS col0, + 31 FROM tab0 AS cor0
----
-7
31

query II rowsort
SELECT 7 + col2 + - col1 + + col2 AS col2, col1 + col0 + + col1 + - - ( + col1 ) AS col0 FROM tab2 AS cor0
----
10
295
2
199
56
276

query III rowsort
SELECT * FROM tab2 cor0 WHERE 10 * + ( col0 ) NOT BETWEEN - - 33 AND - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 63 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL - col1 + + ( col1 ) + + 85 * + + col0 * - ( + col1 ) * + CAST( NULL AS SIGNED ) + + 96 + 13 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - col1 + + ( col1 ) + + 85 * + + col0 * - ( + col1 ) * + CAST ( NULL AS INTEGER ) + + 96 + 13 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT 95 + - + MAX( ALL 56 ) * + 6 FROM tab2
----
-241

skipif mysql # not compatible
query I rowsort label-2192
SELECT 95 + - + MAX ( ALL 56 ) * + 6 FROM tab2
----
-241

query III rowsort
SELECT * FROM tab0 WHERE - 60 IS NULL
----

query I rowsort
SELECT ALL - col2 + ( - col0 ) FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) BETWEEN - 56 AND + col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - MIN( - col2 ) - - + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-2197
SELECT - MIN ( - col2 ) - - + COUNT ( * ) FROM tab0
----
102

query I rowsort
SELECT DISTINCT - 85 * + + col0 + + + ( + 12 ) FROM tab0 AS cor0
----
-1263
-7383
-8233

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 < ( - - 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT MIN( 24 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2200
SELECT MIN ( 24 ) FROM tab1
----
24

query II rowsort
SELECT - col0, - col2 AS col0 FROM tab1
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT DISTINCT - - col1 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT COUNT( + - col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2203
SELECT COUNT ( + - col1 ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT DISTINCT + 12 DIV - ( col1 ) FROM tab1 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT + 12 / - ( col1 ) FROM tab1 cor0
----
-2
0

query II rowsort
SELECT DISTINCT - col0, + col0 * - + ( + + ( 36 ) ) AS col2 FROM tab0 AS cor0
----
-15
-540
-87
-3132
-97
-3492

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT col0 * - - 95 AS col0 FROM tab2 AS cor0
----
4370
6080
7125

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 + col1 col0 FROM tab0 cor0
----
786
891
9604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT + COUNT( - col1 ) DIV - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT + COUNT ( - col1 ) / - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL - - 99 + - + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - - 99 + - + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - + AVG ( - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + ( col2 ) FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT ALL + col0 + - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + col0 + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2215
SELECT + CAST( NULL AS SIGNED ) + - - ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT + CAST ( NULL AS INTEGER ) + - - ( col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2216
SELECT col2 DIV + CAST( - + CAST( - 53 AS SIGNED ) AS SIGNED ) + - 80 * - 89 FROM tab0
----
7120
7120
7121

skipif mysql # not compatible
query I rowsort label-2216
SELECT col2 / + CAST ( - + CAST ( - 53 AS INTEGER ) AS INTEGER ) + - 80 * - 89 FROM tab0
----
7120
7120
7121

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL <= - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2218
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 98 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 98 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - 30 * + + col2 FROM tab0 AS cor0
----
15
-1410
87
-300
97
-2970

query I rowsort
SELECT DISTINCT - + col0 + - ( - col1 ) + col1 FROM tab2 AS cor0
----
56
59
90

query I rowsort
SELECT 16 * col0 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2223
SELECT - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2223
SELECT - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 99 * 19 - + col0 - 68 - + + col1 + col2 AS col1 FROM tab1 AS cor0
----
1743
1782
1844

query I rowsort
SELECT DISTINCT col2 * - + 2 + + 98 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-752
-880
-9702

query I rowsort
SELECT ALL col2 * + 25 + - + col2 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT ALL - col1 + 10 * + 15 FROM tab2
----
73
83
99

query I rowsort
SELECT DISTINCT - col0 - + + 55 - - 54 AS col0 FROM tab2
----
-47
-65
-76

query III rowsort
SELECT * FROM tab2 WHERE - col2 < ( col2 * + col0 + - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 49 FROM tab0 WHERE - ( + 68 ) IS NULL
----

query II rowsort
SELECT ALL + ( + + col2 ), + 99 FROM tab1
----
59
99
68
99
96
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 * + 52 col0 FROM tab0
----
3224
3224
3224

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT + + 81 <> NULL
----

query I rowsort
SELECT - col2 * - + ( - col0 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2236
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + + - CAST( NULL AS DECIMAL ) / + col2 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + + - CAST ( NULL AS REAL ) / + col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT ALL 9 AS col2 FROM tab0 cor0
----
9
9
9

query I rowsort
SELECT DISTINCT - + 76 AS col0 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT MAX( DISTINCT + + 66 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT MAX ( DISTINCT + + 66 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
66

query I rowsort
SELECT - 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT + + CAST( NULL AS SIGNED ) + + 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2242
SELECT + + CAST ( NULL AS INTEGER ) + + 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + col0 * + col1 * + + col1 AS col1, + 16 FROM tab1
----
201019
16
2125
16
9996
16

query I rowsort
SELECT ALL - col2 * + - col1 AS col1 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 61 * - 76 AS col0 FROM tab0 AS cor0
----
-4636
-4636
-4636

query II rowsort
SELECT ALL - col1, 85 * 20 AS col0 FROM tab2 AS cor0
----
-51
1700
-67
1700
-77
1700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT DISTINCT - COUNT( * ) DIV - + SUM( DISTINCT + 7 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT - COUNT ( * ) / - + SUM ( DISTINCT + 7 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2249
SELECT col2 AS col1, ( + - col1 ) DIV + col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-2249
SELECT col2 AS col1, ( + - col1 ) / + col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

query I rowsort
SELECT - - 94 * - 37 AS col1 FROM tab0 AS cor0
----
-3478
-3478
-3478

query I rowsort
SELECT ALL 47 + - 79 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT + 36 * + 91 * + col2 + col1 FROM tab1 AS cor0
----
193289
222815
314510

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT - COUNT( * ) + - 35 AS col2 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - COUNT ( * ) + - 35 AS col2 FROM tab0 cor0
----
-38

query I rowsort
SELECT DISTINCT col2 * - 42 FROM tab2
----
-1680
-2436
-966

query I rowsort
SELECT col2 + + col0 + col1 AS col0 FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT ALL - 11 * - + CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - 11 * - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT SUM( ALL - col0 ) + - COUNT( * ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-2257
SELECT SUM ( ALL - col0 ) + - COUNT ( * ) FROM tab1
----
-230

query I rowsort
SELECT - 12 * 12 + - col0 FROM tab0
----
-159
-231
-241

query II rowsort
SELECT 86 + col1 AS col1, + col2 FROM tab2
----
137
23
153
58
163
40

query II rowsort
SELECT ALL 92 AS col0, 47 + col0 + + col1 + + col2 FROM tab2
----
92
167
92
228
92
247

query I rowsort
SELECT + col2 + + 59 AS col1 FROM tab0
----
106
158
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2264
SELECT DISTINCT ( + + col1 ), CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2264
SELECT DISTINCT ( + + col1 ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + + 27 + - - COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + + 27 + - - COUNT ( * ) FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL > col0
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL > col0
----

query I rowsort
SELECT col0 - ( col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 80 + + col2 + col2 AS col1 FROM tab1
----
198
216
272

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT COUNT( * ) * - 97 + COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-2269
SELECT COUNT ( * ) * - 97 + COUNT ( * ) FROM tab2
----
-288

query I rowsort
SELECT col2 + 18 * 92 FROM tab2 AS cor0
----
1679
1696
1714

query I rowsort
SELECT 90 * - col1 * - col1 + + col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-9
39480
586683

query I rowsort
SELECT + + col1 + + ( + 34 ) AS col0 FROM tab2 AS cor0
----
101
111
85

query I rowsort
SELECT DISTINCT + 50 - - col2 AS col1 FROM tab2 AS cor0
----
108
73
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 22 * col1 BETWEEN + 78 * 22 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT DISTINCT - 64 DIV - 10 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - 64 / - 10 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 + + col1 + col2 * 27 * + 55 FROM tab0 cor0
----
147017
14892
69957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT - + CAST( + 32 AS SIGNED ) * - col1 + + col2 FROM tab2 cor0
----
1655
2202
2504

skipif mysql # not compatible
query I rowsort label-2277
SELECT - + CAST ( + 32 AS INTEGER ) * - col1 + + col2 FROM tab2 cor0
----
1655
2202
2504

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - COUNT( ALL + + col2 ) + + COUNT( * ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2278
SELECT ALL - COUNT ( ALL + + col2 ) + + COUNT ( * ) col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / + ( col2 ) < NULL
----

query I rowsort
SELECT + col0 * - 42 + + 97 FROM tab2 AS cor0
----
-1835
-2591
-3053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT - col1 * - CAST( col1 AS SIGNED ) + ( - ( + + CAST( + + col0 AS SIGNED ) ) ) FROM tab2
----
2555
4414
5865

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - col1 * - CAST ( col1 AS INTEGER ) + ( - ( + + CAST ( + + col0 AS INTEGER ) ) ) FROM tab2
----
2555
4414
5865

query II rowsort
SELECT col0 AS col1, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab2 WHERE NOT 97 * + + col1 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL + MIN( + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + MIN ( + + col2 ) FROM tab2
----
23

query II rowsort
SELECT - col1 AS col1, col2 + + - col1 FROM tab1
----
-14
82
-47
21
-5
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 78 col2 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2287
SELECT - + col1, CAST( - - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-2287
SELECT - + col1, CAST ( - - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 1 ) <> - ( - 3 ) * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT COUNT( 22 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2289
SELECT COUNT ( 22 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT + CAST( - 33 AS SIGNED ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) AS col1 FROM tab1
----
-33

query I rowsort
SELECT DISTINCT + - col1 + ( + + col2 ) FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
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-2292
SELECT - ( - ( - + COUNT ( * ) ) ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 63 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-16
-49
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 9
----

query I rowsort
SELECT DISTINCT - 95 * + col0 AS col1 FROM tab0
----
-1425
-8265
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col0 FROM tab1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, col2 col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 61 + + + col2 * + col0 * 1 FROM tab0 AS cor0
----
766
931
9664

query I rowsort
SELECT DISTINCT - col0 + + - 66 FROM tab0 AS cor0
----
-153
-163
-81

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 94 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT - - COUNT( * ) - - + SUM( - ( + - col2 ) ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - - COUNT ( * ) - - + SUM ( - ( + - col2 ) ) FROM tab1 AS cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT + 6 - + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 6 - + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT MIN( - - col2 ) - - + COUNT( * ) col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2306
SELECT MIN ( - - col2 ) - - + COUNT ( * ) col2 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2307
SELECT - SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT col0 * - col2 AS col0, col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT ( 98 ) * - + CAST( NULL AS SIGNED ) + 91 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT ( 98 ) * - + CAST ( NULL AS INTEGER ) + 91 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - COUNT( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2310
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + COUNT( * ) * + 48 + - 1 FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-2311
SELECT + COUNT ( * ) * + 48 + - 1 FROM tab0 AS cor0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT ALL CAST( + - 62 AS SIGNED ) FROM tab2
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL CAST ( + - 62 AS INTEGER ) FROM tab2
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - + 0 + 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT ( + - 21 ) AS col1 FROM tab2 AS cor0
----
-21
-21
-21

query II rowsort
SELECT DISTINCT + col1 AS col1, 22 AS col1 FROM tab2 AS cor0
----
51
22
67
22
77
22

query II rowsort
SELECT ALL + 68 AS col0, + col2 * + 42 FROM tab2 AS cor0
----
68
1680
68
2436
68
966

query I rowsort
SELECT DISTINCT + + 85 + + 83 AS col2 FROM tab1 AS cor0 WHERE NULL <> col1
----

query II rowsort
SELECT DISTINCT col1 + + col0 * - col2 + + - 33 AS col1, + col2 FROM tab0 AS cor0
----
-657
47
-882
10
-9635
99

query I rowsort
SELECT + - 30 * col1 + - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-127
-2457
-3645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2320
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= col1 * + 49 * + 22 * + ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 = - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + 93 AS col1 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT DISTINCT + - col2 * + 15 FROM tab0 cor0
----
-1485
-150
-705

query I rowsort
SELECT - 27 * - col1 - + col1 AS col0 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT + ( + COUNT( * ) ) + - + COUNT( + 66 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + ( + COUNT ( * ) ) + - + COUNT ( + 66 ) FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT + 88 * + col1 - 19 DIV col2 FROM tab0 AS cor0
----
1847
7128
88

skipif mysql # not compatible
query I rowsort label-2327
SELECT + 88 * + col1 - 19 / col2 FROM tab0 AS cor0
----
1847
7128
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - col1 IS NULL
----

query I rowsort
SELECT col2 * col0 + + ( + 27 ) AS col0 FROM tab0
----
732
897
9630

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - ( + + SUM( ALL - col0 ) ) * - 6 AS col2 FROM tab1 AS cor0
----
-1362

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - ( + + SUM ( ALL - col0 ) ) * - 6 AS col2 FROM tab1 AS cor0
----
-1362

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT 62 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT 62 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL - MAX( + + col1 ) * - + ( - - SUM( CAST( NULL AS SIGNED ) ) ) * 24 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - MAX ( + + col1 ) * - + ( - - SUM ( CAST ( NULL AS INTEGER ) ) ) * 24 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 71 - col1 / + col2 AS col2 FROM tab0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * 5 FROM tab1
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2335
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + MIN( ALL - ( - + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2336
SELECT + MIN ( ALL - ( - + col0 ) ) FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) * + + col2 + col1 NOT BETWEEN - col0 * 21 + - 30 AND 86 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 * + 75 AS col1, + col0 AS col0 FROM tab1
----
1050
51
3525
91
375
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2340
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) > + 72 + - col1 + + 45 + + col0 * + - col1
----

skipif mysql # not compatible
query III rowsort label-2340
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) > + 72 + - col1 + + 45 + + col0 * + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2341
SELECT - 44 col0, col2 DIV + col0 AS col2 FROM tab2
----
-44
0
-44
0
-44
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2341
SELECT - 44 col0, col2 / + col0 AS col2 FROM tab2
----
-44
0
-44
0
-44
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 > col1 + 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 92 / + col1 AND 76 + - + col1 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT 29 + + COUNT( * ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT 29 + + COUNT ( * ) FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + COUNT( * ) col0 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT + COUNT ( * ) col0 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL - MIN( + col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - MIN ( + col2 ) AS col0 FROM tab1
----
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + + col0 > NULL )
----

query II rowsort
SELECT DISTINCT col0 * - + col2 AS col1, col0 AS col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2349
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2349
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT - + 64 DIV - - col1 + - 16 * + + col2 AS col0 FROM tab0 AS cor0
----
-163
-1648
-752

skipif mysql # not compatible
query I rowsort label-2350
SELECT - + 64 / - - col1 + - 16 * + + col2 AS col0 FROM tab0 AS cor0
----
-163
-1648
-752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2351
SELECT - CAST( + + 15 AS SIGNED ) AS col1, - col1 FROM tab2 cor0
----
-15
-51
-15
-67
-15
-77

skipif mysql # not compatible
query II rowsort label-2351
SELECT - CAST ( + + 15 AS INTEGER ) AS col1, - col1 FROM tab2 cor0
----
-15
-51
-15
-67
-15
-77

query I rowsort
SELECT ALL col1 + - 55 + + - ( col1 ) - - 9 AS col2 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT COUNT( * ), 60 col2 FROM tab1
----
3
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2354
SELECT COUNT ( * ), 60 col2 FROM tab1
----
3
60

query I rowsort
SELECT ALL col0 + - 55 AS col2 FROM tab0 WHERE NOT + col2 IS NULL AND NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 85 FROM tab1
----
-136
-170
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL + 73 - + + 85 * - COUNT( * ) FROM tab0
----
328

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 73 - + + 85 * - COUNT ( * ) FROM tab0
----
328

query II rowsort
SELECT ALL col0 AS col1, 35 - col0 AS col1 FROM tab2
----
46
-11
64
-29
75
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT - - MAX( col0 ) + + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2359
SELECT - - MAX ( col0 ) + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 / + col2 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT ALL - + 20 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-20
3

skipif mysql # not compatible
query II rowsort label-2361
SELECT ALL - + 20 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-20
3

query I rowsort
SELECT + - 19 + col2 AS col0 FROM tab2 AS cor0
----
21
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT + + COUNT( DISTINCT + col2 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT + + COUNT ( DISTINCT + col2 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT + + 95 * - SUM( col1 ) FROM tab1 AS cor0
----
-6270

skipif mysql # not compatible
query I rowsort label-2364
SELECT + + 95 * - SUM ( col1 ) FROM tab1 AS cor0
----
-6270

query I rowsort
SELECT DISTINCT - col1 * + + 16 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab1 AS cor0 WHERE col2 + col1 + + 41 + 78 = - - col2
----

query I rowsort
SELECT + col1 * + + 29 FROM tab0 AS cor0
----
2349
29
609

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT + 51 DIV + col2 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2368
SELECT + 51 / + col2 FROM tab0 cor0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT - COUNT( * ) * MAX( - - col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - COUNT ( * ) * MAX ( - - col2 ) FROM tab0 AS cor0
----
-297

query III rowsort
SELECT * FROM tab0 WHERE NOT 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab2 WHERE + - col1 / col2 IS NOT NULL
----
24

query II rowsort
SELECT ALL + ( - col2 ) * - 10 AS col2, - 71 AS col0 FROM tab1 AS cor0
----
590
-71
680
-71
960
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 BETWEEN + col1 AND + col0
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + + col0 + - + col2 col1 FROM tab2 AS cor0
----
103
104
97

query II rowsort
SELECT + 57, col2 AS col0 FROM tab2
----
57
23
57
40
57
58

query I rowsort
SELECT - 57 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL + 94 * + col1 FROM tab1
----
1316
4418
470

query I rowsort
SELECT ALL col2 * - 4 AS col0 FROM tab0
----
-188
-396
-40

query I rowsort
SELECT ALL - 34 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + + col2 + + 2 AS col2 FROM tab1 AS cor0
----
61
70
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 41 col1 FROM tab0 cor0
----
-58
-6
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + 42 + - SUM( ALL - col0 ) col1 FROM tab0 AS cor0
----
241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2382
SELECT + 42 + - SUM ( ALL - col0 ) col1 FROM tab0 AS cor0
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT 62 + - COUNT( * ) * 96 FROM tab0 cor0
----
-226

skipif mysql # not compatible
query I rowsort label-2383
SELECT 62 + - COUNT ( * ) * 96 FROM tab0 cor0
----
-226

onlyif mysql # DIV for integer division: 
query II rowsort label-2384
SELECT DISTINCT 78 AS col0, + col1 DIV - + 36 AS col2 FROM tab0 AS cor0
----
78
-2
78
0

skipif mysql # not compatible
query II rowsort label-2384
SELECT DISTINCT 78 AS col0, + col1 / - + 36 AS col2 FROM tab0 AS cor0
----
78
-2
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT - COUNT( * ) + + 0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - COUNT ( * ) + + 0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT ALL + + 72 DIV + + col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL + + 72 / + + col2 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT ALL - 77 + col0 AS col2 FROM tab2 AS cor0
----
-13
-2
-31

query III rowsort
SELECT * FROM tab0 WHERE - - col1 <= - - 70 - + 98 + 31
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - 39 - + COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - 39 - + COUNT ( * ) FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-2390
SELECT col2 * - + 53 AS col1, 98 DIV + - col1 FROM tab1
----
-3127
-19
-3604
-2
-5088
-7

skipif mysql # not compatible
query II rowsort label-2390
SELECT col2 * - + 53 AS col1, 98 / + - col1 FROM tab1
----
-3127
-19
-3604
-2
-5088
-7

query II rowsort
SELECT DISTINCT + 80 AS col0, + col1 * - 35 AS col0 FROM tab1
----
80
-1645
80
-175
80
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT + ( - - 79 ) * COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + ( - - 79 ) * COUNT ( * ) FROM tab1 AS cor0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT - ( + col1 ) + + col0 DIV col1 + - 8 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-59
-74
-85

skipif mysql # not compatible
query I rowsort label-2393
SELECT - ( + col1 ) + + col0 / col1 + - 8 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-59
-74
-85

query II rowsort
SELECT ALL 27, + col0 FROM tab0 cor0
----
27
15
27
87
27
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 72 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + col2 FROM tab2 AS cor0 WHERE col2 * + + col1 + 57 + + col2 * ( + col1 ) - + 1 / - col1 * - col1 BETWEEN ( + col2 + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT - 84 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-84
-3

skipif mysql # not compatible
query II rowsort label-2397
SELECT - 84 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-84
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT DISTINCT + CAST( NULL AS SIGNED ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT 27 * - + col1 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
-102708
-2672
-5649

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + + SUM( - 13 ) AS col2 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2400
SELECT + + SUM ( - 13 ) AS col2 FROM tab1 cor0
----
-39

query I rowsort
SELECT col2 * 57 FROM tab0
----
2679
5643
570

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT + col2 * 93 DIV + 99 AS col1 FROM tab2
----
21
37
54

skipif mysql # not compatible
query I rowsort label-2402
SELECT + col2 * 93 / + 99 AS col1 FROM tab2
----
21
37
54

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 80 <> + 13 + - + 85 + + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( - col2 ) BETWEEN ( col2 + + col0 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT 96 * - - COUNT( * ) * - 96 FROM tab1
----
-27648

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT 96 * - - COUNT ( * ) * - 96 FROM tab1
----
-27648

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT COUNT( * ) * + + 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT COUNT ( * ) * + + 41 FROM tab2
----
123

query I rowsort
SELECT - 97 * + col1 AS col1 FROM tab1
----
-1358
-4559
-485

query II rowsort
SELECT ALL - col0 * - 43, - col2 AS col0 FROM tab2
----
1978
-23
2752
-40
3225
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2409
SELECT ALL * FROM tab0 WHERE NOT - + 91 * + - CAST( NULL AS SIGNED ) * - col0 < col0 + - 80
----

skipif mysql # not compatible
query III rowsort label-2409
SELECT ALL * FROM tab0 WHERE NOT - + 91 * + - CAST ( NULL AS INTEGER ) * - col0 < col0 + - 80
----

query I rowsort
SELECT DISTINCT + - col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1293
210
3105

query II rowsort
SELECT 13 + 47 AS col1, 68 FROM tab2 AS cor0
----
60
68
60
68
60
68

query I rowsort
SELECT DISTINCT + col1 + - 75 + + + col1 FROM tab2 AS cor0
----
27
59
79

query I rowsort
SELECT + 50 + - col0 * col2 FROM tab2 cor0
----
-1008
-2510
-4300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2414
SELECT ALL * FROM tab1 AS cor0 WHERE col2 > + CAST( NULL AS SIGNED ) + - + ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-2414
SELECT ALL * FROM tab1 AS cor0 WHERE col2 > + CAST ( NULL AS INTEGER ) + - + ( + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 80, col2 * 42 )
----

query I rowsort
SELECT + ( + 77 ) FROM tab1 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2417
SELECT DISTINCT - ( + COUNT( col0 ) ) AS col0, 89 * + COUNT( * ) FROM tab1 AS cor0
----
-3
267

skipif mysql # not compatible
query II rowsort label-2417
SELECT DISTINCT - ( + COUNT ( col0 ) ) AS col0, 89 * + COUNT ( * ) FROM tab1 AS cor0
----
-3
267

query I rowsort
SELECT ALL - 69 + col1 * + 88 FROM tab0 AS cor0
----
1779
19
7059

query I rowsort
SELECT - 29 - + - 97 AS col2 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL + - col0 + - 48 AS col0 FROM tab0 AS cor0
----
-135
-145
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT - + ( + 38 ) - + 93 DIV + - col0 AS col0 FROM tab0 AS cor0
----
-32
-37
-38

skipif mysql # not compatible
query I rowsort label-2421
SELECT - + ( + 38 ) - + 93 / + - col0 AS col0 FROM tab0 AS cor0
----
-32
-37
-38

query I rowsort
SELECT - + 50 - col2 AS col2 FROM tab1 AS cor0
----
-109
-118
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT DISTINCT MIN( + col0 ) - - ( - 91 ), - 43 AS col1 FROM tab0
----
-76
-43

skipif mysql # not compatible
query II rowsort label-2423
SELECT DISTINCT MIN ( + col0 ) - - ( - 91 ), - 43 AS col1 FROM tab0
----
-76
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT ALL col1 - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2424
SELECT ALL col1 - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + CAST( + 56 AS SIGNED ) FROM tab0 cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + CAST ( + 56 AS INTEGER ) FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT - col2 * - 20 FROM tab1 cor0
----
1180
1360
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + - COUNT( 91 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2427
SELECT + - COUNT ( 91 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT DISTINCT + MAX( - + 95 ) AS col2, - 33 * + 38 FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL
-1254

skipif mysql # not compatible
query II rowsort label-2428
SELECT DISTINCT + MAX ( - + 95 ) AS col2, - 33 * + 38 FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL
-1254

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * + col0 AND - 2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 73 * + col1 * - 44 AS col2 FROM tab0
----
260172
3212
67452

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + - SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2432
SELECT + - SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + MAX( - ( - ( + - 99 ) ) ) col2 FROM tab1 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2433
SELECT + MAX ( - ( - ( + - 99 ) ) ) col2 FROM tab1 cor0
----
-99

query II rowsort
SELECT ALL + - 70 * + col0 AS col0, ( - - 76 ) FROM tab1 AS cor0
----
-3570
76
-5950
76
-6370
76

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 27
----

query I rowsort
SELECT - 48 + - col1 AS col2 FROM tab0
----
-129
-49
-69

query I rowsort
SELECT col1 + + - 44 FROM tab1
----
-30
-39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col0 FROM tab1
----
87

query I rowsort
SELECT col0 * 41 FROM tab2
----
1886
2624
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + MAX( - - 96 ) col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2440
SELECT + MAX ( - - 96 ) col0 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT + - col0 + - 59 FROM tab2 AS cor0
----
-105
-123
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - MAX( - col0 ) + 60 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - MAX ( - col0 ) + 60 FROM tab2 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL - - COUNT( * ) * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - - COUNT ( * ) * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
180

query I rowsort
SELECT + col1 + + - col1 - + 65 AS col1 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT + col0 + + ( - col1 ) AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT + + 95 + + col0 FROM tab0 AS cor0
----
110
182
192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + col2 * + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE - + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2448
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE - + col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 + - col2 * - - col2 FROM tab0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT SUM( DISTINCT - + 91 ) + + 30 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT SUM ( DISTINCT - + 91 ) + + 30 FROM tab2
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 - + - 35 * + 16 * - col0 col0 FROM tab1
----
-28505
-47545
-50905

query II rowsort
SELECT col0, 12 - - 30 + - - col1 * + + col0 AS col1 FROM tab1
----
51
756
85
467
91
4319

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 20 < NULL
----

query I rowsort
SELECT - ( - 78 ) AS col2 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + - 83 * + ( 2 ) AS col0 FROM tab2 cor0
----
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT 7 * + 63 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22491
-29547
-33957

skipif mysql # not compatible
query I rowsort label-2456
SELECT 7 * + 63 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22491
-29547
-33957

query I rowsort
SELECT ALL 36 AS col2 FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT 61 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 92 * + col2 AND + col2
----

query II rowsort
SELECT - 78 AS col2, col2 FROM tab0 AS cor0
----
-78
10
-78
47
-78
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 15 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - col2 AS col2, + col1 + + 54 FROM tab0 AS cor0
----
10
75
47
135
99
55

query I rowsort
SELECT DISTINCT + + col2 + + col0 + - 71 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
3399
7225
807

query II rowsort
SELECT + col2, + col1 * col1 - 45 FROM tab0 AS cor0
----
10
396
47
6516
99
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col0 col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2465
SELECT - 63 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - CAST( NULL AS DECIMAL ) - col0 AND CAST( NULL AS SIGNED ) * + - ( - - col1 )
----

skipif mysql # not compatible
query I rowsort label-2465
SELECT - 63 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - CAST ( NULL AS REAL ) - col0 AND CAST ( NULL AS INTEGER ) * + - ( - - col1 )
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 * + 49 col1 FROM tab0
----
10290
186543
4851

query I rowsort
SELECT col0 FROM tab1 WHERE ( NOT NULL <> - col1 )
----

query I rowsort
SELECT col2 + + 92 + - + col2 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( NULL ) <> col2 * 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - + COUNT( * ) + - 81 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2471
SELECT - + COUNT ( * ) + - 81 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 5 + 23 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT - col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT DISTINCT COUNT( - 17 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT COUNT ( - 17 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - SUM( + col0 ) * 26 col2 FROM tab2 AS cor0
----
-4810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2475
SELECT - SUM ( + col0 ) * 26 col2 FROM tab2 AS cor0
----
-4810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 56 * 40 * + col2 col0 FROM tab1 cor0
----
10357760
20643840
7797440

query I rowsort
SELECT + + col2 - - col0 * - + 44 AS col0 FROM tab2 AS cor0
----
-2001
-2776
-3242

query I rowsort
SELECT DISTINCT + 5 * - 58 AS col0 FROM tab1 AS cor0
----
-290

query I rowsort
SELECT + 51 - + col0 FROM tab2 AS cor0
----
-13
-24
5

query I rowsort
SELECT - col2 + + 11 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-36
-88
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2481
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - + + col2 - - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2481
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + + col2 - - + col2 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT ALL 10 * - + 21 DIV + COUNT( * ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL 10 * - + 21 / + COUNT ( * ) FROM tab1
----
-70

query II rowsort
SELECT DISTINCT ( - col1 ), - 65 AS col0 FROM tab2
----
-51
-65
-67
-65
-77
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL SUM( - - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL SUM ( - - col2 ) AS col0 FROM tab2
----
121

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + ( col1 ) AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - - 91 * + 88 FROM tab1 AS cor0
----
8008
8008
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT + - 37 * + + CAST( - ( + MIN( DISTINCT col2 ) ) AS SIGNED ) FROM tab1 AS cor0
----
2183

skipif mysql # not compatible
query I rowsort label-2489
SELECT + - 37 * + + CAST ( - ( + MIN ( DISTINCT col2 ) ) AS INTEGER ) FROM tab1 AS cor0
----
2183

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT DISTINCT - col1 DIV ( 38 ) * 14 + 51 AS col2 FROM tab0 AS cor0
----
23
51

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - col1 / ( 38 ) * 14 + 51 AS col2 FROM tab0 AS cor0
----
23
51

query I rowsort
SELECT - col0 * + col0 * + - 79 AS col1 FROM tab2
----
167164
323584
444375

query II rowsort
SELECT + 53 AS col1, col0 FROM tab1 AS cor0
----
53
51
53
85
53
91

query II rowsort
SELECT ALL - 89 AS col0, col0 * col1 AS col0 FROM tab0 AS cor0
----
-89
1215
-89
1827
-89
97

query I rowsort
SELECT 70 + col0 + - col0 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ( + 59 ) + - SUM( - col2 ) FROM tab0 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-2495
SELECT ( + 59 ) + - SUM ( - col2 ) FROM tab0 AS cor0
----
215

query I rowsort
SELECT DISTINCT ( - col1 ) + - + col1 AS col2 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2497
SELECT ALL 73, + 58 DIV - + COUNT( * ) AS col1 FROM tab2
----
73
-19

skipif mysql # not compatible
query II rowsort label-2497
SELECT ALL 73, + 58 / - + COUNT ( * ) AS col1 FROM tab2
----
73
-19

query II rowsort
SELECT ALL col2 * - ( + 61 ) + + - col0, 93 + - - ( + col0 ) AS col0 FROM tab2
----
-1449
139
-2504
157
-3613
168

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT col1 + - col1 DIV + + 79 + + col2 DIV + - 78 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2499
SELECT col1 + - col1 / + + 79 + + col2 / + - 78 AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2500
SELECT 53, + col1 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
53
-1173
53
-3080
53
-3886

skipif mysql # not compatible
query II rowsort label-2500
SELECT 53, + col1 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
53
-1173
53
-3080
53
-3886

onlyif mysql # DIV for integer division: 
query II rowsort label-2501
SELECT col2 DIV - - 25, col2 FROM tab0
----
0
10
1
47
3
99

skipif mysql # not compatible
query II rowsort label-2501
SELECT col2 / - - 25, col2 FROM tab0
----
0
10
1
47
3
99

query I rowsort
SELECT col1 * - + col0 AS col2 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT + col2, col2 + col1 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT - SUM( DISTINCT + + 94 ) FROM tab1 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT - SUM ( DISTINCT + + 94 ) FROM tab1 cor0
----
-94

query I rowsort
SELECT ALL - col2 + + - col0 - col0 FROM tab1
----
-198
-229
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT - 73 + CAST( NULL AS SIGNED ) + - + col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 73 + CAST ( NULL AS INTEGER ) + - + col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT SUM( DISTINCT + 92 ) + - MAX( col1 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2507
SELECT SUM ( DISTINCT + 92 ) + - MAX ( col1 ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL MAX( ALL + col0 ) * + COUNT( 58 ) col0 FROM tab0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2508
SELECT ALL MAX ( ALL + col0 ) * + COUNT ( 58 ) col0 FROM tab0
----
291

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2509
SELECT col1 DIV + - col0 + CAST( + col0 AS SIGNED ) FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-2509
SELECT col1 / + - col0 + CAST ( + col0 AS INTEGER ) FROM tab2
----
45
63
75

query I rowsort
SELECT - 73 + 51 AS col1 FROM tab0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL - + col1 * - CAST( - + ( - - col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - + col1 * - CAST ( - + ( - - col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT - ( + 51 ) * col0 + 77 + 21 + + col2 FROM tab1 cor0
----
-2407
-4178
-4475

query I rowsort
SELECT ALL - 84 * + col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT ALL + 48 DIV + 71 + + col0 - col2 * + col1 * + col1 col1 FROM tab2 AS cor0
----
-237096
-260287
-59777

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT ALL + 48 / + 71 + + col0 - col2 * + col1 * + col1 col1 FROM tab2 AS cor0
----
-237096
-260287
-59777

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 / - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 / - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2516
SELECT - col1 / + col0 + + - col2 FROM tab0 WHERE NOT 44 <= - - col2 * - col2 * - + CAST( + col0 AS DECIMAL ) + - + col1 + col2 * + col2
----

skipif mysql # not compatible
query I rowsort label-2516
SELECT - col1 / + col0 + + - col2 FROM tab0 WHERE NOT 44 <= - - col2 * - col2 * - + CAST ( + col0 AS REAL ) + - + col1 + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col1 + - + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col1 + - + col1 < NULL
----
0

query I rowsort
SELECT DISTINCT + ( + col1 ) * - 92 AS col2 FROM tab0
----
-1932
-7452
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT ALL col2 DIV - + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL col2 / - + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT SUM( + col1 ) FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT SUM ( + col1 ) FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND - + col0
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NULL IN ( 41 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 60 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL col1 + CAST( + col0 AS SIGNED ) FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL col1 + CAST ( + col0 AS INTEGER ) FROM tab2
----
141
142
97

query I rowsort
SELECT 66 * + col1 AS col1 FROM tab2
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT + ( SUM( col0 ) ) FROM tab1 WHERE ( NULL ) BETWEEN - col2 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT + ( SUM ( col0 ) ) FROM tab1 WHERE ( NULL ) BETWEEN - col2 AND - col0
----
NULL

query I rowsort
SELECT 72 * col1 AS col2 FROM tab1
----
1008
3384
360

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT DISTINCT ( - col1 ) * + col1 + - 26 DIV col0 FROM tab0
----
-1
-441
-6562

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT ( - col1 ) * + col1 + - 26 / col0 FROM tab0
----
-1
-441
-6562

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT ALL 28 + col2 DIV + col1 AS col2 FROM tab0
----
127
28
28

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL 28 + col2 / + col1 AS col2 FROM tab0
----
127
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) * 48 AS col2 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) * 48 AS col2 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - 28 * COUNT( * ) + COUNT( * ) col1 FROM tab1 WHERE + 59 - col2 * - col1 <> ( ( col0 ) )
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2530
SELECT ALL - 28 * COUNT ( * ) + COUNT ( * ) col1 FROM tab1 WHERE + 59 - col2 * - col1 <> ( ( col0 ) )
----
-81

query I rowsort
SELECT ALL + col2 * + col2 FROM tab1 WHERE NULL IS NULL
----
3481
4624
9216

query I rowsort
SELECT - 51 - - col1 AS col2 FROM tab0
----
-30
-50
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2533
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - 2 * col0 ) AND + col2 * - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2533
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - 2 * col0 ) AND + col2 * - CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT 50 * - 61 FROM tab1 WHERE ( col2 ) <= - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT 68 FROM tab2 WHERE NULL <> + 99 + - 95 * - col1
----

query I rowsort
SELECT DISTINCT + ( 36 ) * - 44 AS col1 FROM tab2
----
-1584

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( col0 / col1 ) AND NULL
----

query I rowsort
SELECT ALL - 43 * + col0 FROM tab2
----
-1978
-2752
-3225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 12 ) col0 FROM tab1
----
12
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT CAST( COUNT( DISTINCT col1 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2541
SELECT CAST ( COUNT ( DISTINCT col1 ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 7 * + ( - col2 ) FROM tab2
----
-161
-280
-406

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 + 59 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * 48 AS col0 FROM tab1
----
-2256
-240
-672

query I rowsort
SELECT ALL + 48 * 12 AS col1 FROM tab1
----
576
576
576

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 53 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + col1 + 89 * col0 IN ( 6 + 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 + - col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 - + col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 * - col1 AS col0 FROM tab0
----
-105
-405
-5

query I rowsort
SELECT DISTINCT + col2 * col0 - - 55 FROM tab2
----
1113
2615
4405

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT COUNT( * ) * SUM( col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-2553
SELECT COUNT ( * ) * SUM ( col2 ) FROM tab2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT COUNT( * ) * - 66 AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-2554
SELECT COUNT ( * ) * - 66 AS col2 FROM tab0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT col0 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2555
SELECT col0 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col0 * ( ( - 47 ) ) FROM tab2
----
-2162
-3008
-3525

query III rowsort
SELECT * FROM tab1 WHERE col2 - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL col2 DIV ( - col2 * col1 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL col2 / ( - col2 * col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + ( 76 ) AS col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT - 50 + + 79 AS col1 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT col2 * - col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 76 * - MAX( col0 ) + 34 * - 73 FROM tab0 AS cor0
----
-9854

skipif mysql # not compatible
query I rowsort label-2562
SELECT 76 * - MAX ( col0 ) + 34 * - 73 FROM tab0 AS cor0
----
-9854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT + ( COUNT( * ) ) DIV - 15 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT + ( COUNT ( * ) ) / - 15 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT 81 + COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT 81 + COUNT ( * ) AS col2 FROM tab2
----
84

query I rowsort
SELECT 83 AS col2 FROM tab2 WHERE col0 > ( col2 + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( col1 + - ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * col2 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 14 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT COUNT( * ) * CAST( MIN( DISTINCT + ( col2 ) ) * 58 AS SIGNED ) FROM tab0 AS cor0
----
1740

skipif mysql # not compatible
query I rowsort label-2570
SELECT COUNT ( * ) * CAST ( MIN ( DISTINCT + ( col2 ) ) * 58 AS INTEGER ) FROM tab0 AS cor0
----
1740

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2571
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - 80 = - 44 * col0
----

skipif mysql # not compatible
query III rowsort label-2571
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 80 = - 44 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - COUNT( * ) + - 11 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + 46 * + 97 > NULL
----
-11

skipif mysql # not compatible
query I rowsort label-2572
SELECT - COUNT ( * ) + - 11 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + 46 * + 97 > NULL
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - MAX( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2573
SELECT - MAX ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + 9 + 41 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col0 > - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT SUM( ALL + + ( - col0 ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2576
SELECT SUM ( ALL + + ( - col0 ) ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - col0 ) AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( col1 * - ( col2 ) ) AND 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2579
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col0 + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2579
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col0 + CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT MIN( col2 ) * + MAX( 16 * - col0 ) FROM tab2
----
-16928

skipif mysql # not compatible
query I rowsort label-2580
SELECT MIN ( col2 ) * + MAX ( 16 * - col0 ) FROM tab2
----
-16928

query I rowsort
SELECT col0 * + 49 + - 39 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 46 + col1 * + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2582
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 39 + 91 * + CAST( NULL AS SIGNED ) <> ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-2582
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 39 + 91 * + CAST ( NULL AS INTEGER ) <> ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 * - + 31 + + - col1 FROM tab1
----
-1595
-2640
-2868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NOT - 78 * col2 BETWEEN ( col0 ) AND ( + col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + MAX( ( + ( + 59 ) ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + MAX ( ( + ( + 59 ) ) ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - COUNT( * ) * - 91 + + MIN( DISTINCT - col2 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT - COUNT ( * ) * - 91 + + MIN ( DISTINCT - col2 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2587
SELECT + COUNT( * ) / - MIN( + col1 ) + + ( + CAST( NULL AS SIGNED ) + + MIN( ALL - col1 ) ) FROM tab1 WHERE ( ( - 92 ) < - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( * ) / - MIN ( + col1 ) + + ( + CAST ( NULL AS INTEGER ) + + MIN ( ALL - col1 ) ) FROM tab1 WHERE ( ( - 92 ) < - col1 )
----
NULL

query I rowsort
SELECT DISTINCT - 11 * - - col0 FROM tab1 AS cor0
----
-1001
-561
-935

query I rowsort
SELECT 87 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col1 + - + col2 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT DISTINCT - col2 * + CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - col2 * + CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + + SUM( ALL + col1 ) - COUNT( * ) FROM tab0 cor0 WHERE - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT + + SUM ( ALL + col1 ) - COUNT ( * ) FROM tab0 cor0 WHERE - col0 <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT - + 7 + - - ( MIN( DISTINCT col0 ) ) * ( CAST( - 51 AS SIGNED ) ) FROM tab1 AS cor0
----
-2608

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - + 7 + - - ( MIN ( DISTINCT col0 ) ) * ( CAST ( - 51 AS INTEGER ) ) FROM tab1 AS cor0
----
-2608

query I rowsort
SELECT + col0 + + col0 * - - col1 * col2 AS col1 FROM tab2 cor0
----
197184
291525
54004

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - col2 + - 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 17 + + 62 FROM tab0 AS cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 64 AND ( + col2 )
----

query I rowsort
SELECT - col1 + + - col2 * + ( col2 ) + 98 AS col2 FROM tab2
----
-1579
-3333
-482

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * - 31 IS NULL
----

query I rowsort
SELECT DISTINCT 94 + - 75 - col1 AS col0 FROM tab2
----
-32
-48
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 33 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 - + col1 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * + + col1 col0 FROM tab1
----
-2820
-300
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT - COUNT( * ) * + + 74 - 87 col2 FROM tab1
----
-309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2604
SELECT DISTINCT - COUNT ( * ) * + + 74 - 87 col2 FROM tab1
----
-309

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2605
SELECT * FROM tab0 WHERE ( - ( + 75 ) ) NOT BETWEEN ( + col1 ) AND col1 / + CAST( NULL AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2605
SELECT * FROM tab0 WHERE ( - ( + 75 ) ) NOT BETWEEN ( + col1 ) AND col1 / + CAST ( NULL AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( - - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( - - col0 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + ( - ( - 79 ) ) * - ( - COUNT( * ) ) AS col1 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-2607
SELECT + ( - ( - 79 ) ) * - ( - COUNT ( * ) ) AS col1 FROM tab2
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT + MIN( DISTINCT + col2 ) FROM tab2 WHERE NOT - 73 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab2 WHERE NOT - 73 IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND 31
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND 31
----
0

query I rowsort
SELECT - 13 * - - 94 + - + col1 - - - ( 44 ) AS col2 FROM tab0 AS cor0
----
-1267
-1287
-1347

query II rowsort
SELECT ALL - col0 + + + 17, col1 FROM tab1 cor0
----
-34
14
-68
5
-74
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - CAST( col1 AS SIGNED ) ) NOT IN ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2612
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - CAST ( col1 AS INTEGER ) ) NOT IN ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 6 * - 1 + col1 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT DISTINCT 51 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT 51 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL ( + COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2615
SELECT ALL ( + COUNT ( * ) ) col0 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2617
SELECT DISTINCT + 8, ( + CAST( NULL AS SIGNED ) ) + - 71 AS col2 FROM tab1 AS cor0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-2617
SELECT DISTINCT + 8, ( + CAST ( NULL AS INTEGER ) ) + - 71 AS col2 FROM tab1 AS cor0
----
8
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2618
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( col1 ) * col2 = NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 / + col0 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 59 col2 FROM tab1 AS cor0
----
2773
295
826

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT + col1 DIV + ( - col0 ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2623
SELECT + col1 / + ( - col0 ) FROM tab0
----
-5
0
0

query I rowsort
SELECT + ( + + 61 ) * + + 79 - + + col2 FROM tab2
----
4761
4779
4796

query II rowsort
SELECT ALL col2, 11 AS col2 FROM tab0
----
10
11
47
11
99
11

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 6 * + + 82 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 10 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT + 31 DIV col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2628
SELECT + 31 / col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT - col0 < - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2630
SELECT ALL + + col0, CAST( + 46 AS SIGNED ) + - - col0 + - col0 + + ( + col0 ) + col1 DIV + 94 * col0 AS col1 FROM tab0 cor0
----
15
61
87
133
97
143

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL + + col0, CAST ( + 46 AS INTEGER ) + - - col0 + - col0 + + ( + col0 ) + col1 / + 94 * col0 AS col1 FROM tab0 cor0
----
15
61
87
133
97
143

query I rowsort
SELECT ALL + 79 + + + col1 FROM tab2 AS cor0
----
130
146
156

query II rowsort
SELECT - - col2 AS col1, col2 * + - 75 - + + 57 FROM tab0 AS cor0
----
10
-807
47
-3582
99
-7482

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / - col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2634
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT MAX( + - 27 ) col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2635
SELECT DISTINCT MAX ( + - 27 ) col2 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT + - SUM( + + col0 ) FROM tab1 AS cor0 WHERE col0 + + 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + - SUM ( + + col0 ) FROM tab1 AS cor0 WHERE col0 + + 34 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2637
SELECT col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT 10 / + 88 BETWEEN ( - + col0 ) AND ( 94 )
----

skipif mysql # not compatible
query I rowsort label-2637
SELECT col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT 10 / + 88 BETWEEN ( - + col0 ) AND ( 94 )
----

query I rowsort
SELECT col1 + - ( + col0 ) AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT - CAST( NULL AS SIGNED ) + + + MIN( + 85 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - CAST ( NULL AS INTEGER ) + + + MIN ( + 85 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 * col2 + + - 8 + - - col2 * col1 FROM tab2
----
1694
4672
7242

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL - 88 * - MAX( DISTINCT - col2 ) FROM tab0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL - 88 * - MAX ( DISTINCT - col2 ) FROM tab0 WHERE NOT ( NULL ) <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 7 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + - ( + 17 ) AS col0 FROM tab0 AS cor0
----
-16
4
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 0 <= NULL
----

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 64 - - col0 * + + 35 AS col2, col1 AS col2 FROM tab2
----
1674
51
2304
77
2689
67

query I rowsort
SELECT DISTINCT 58 + + - 19 AS col1 FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2648
SELECT * FROM tab2 WHERE + col0 * + col2 BETWEEN col0 * - col2 AND - CAST( + 58 AS SIGNED ) - 24
----

skipif mysql # not compatible
query III rowsort label-2648
SELECT * FROM tab2 WHERE + col0 * + col2 BETWEEN col0 * - col2 AND - CAST ( + 58 AS INTEGER ) - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - + COUNT( DISTINCT + col1 ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2649
SELECT - + COUNT ( DISTINCT + col1 ) FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT 91 * - 2 + + + col2 + col2 FROM tab2
----
-102
-136
-66

query I rowsort
SELECT - col0 FROM tab0 WHERE - col1 + - col0 * col2 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 99 / + col0 > - col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + col0 * - col0 + - 86 AS col0 FROM tab0 AS cor0
----
-311
-7655
-9495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * + + 67 + + col2 col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + 71 * + - col0 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT + + 19 col2 FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT + + 19 col2 FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 56 AS col2 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-56

query I rowsort
SELECT DISTINCT + col0 * + col0 - + - col0 + + - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - - col0 * - 25 * + 63 * 45 FROM tab0 AS cor0
----
-1063125
-6166125
-6874875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - 8 * + + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL - CAST( 30 AS SIGNED ) AS col2 FROM tab0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - CAST ( 30 AS INTEGER ) AS col2 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT - 94 * + col0 FROM tab2
----
-4324
-6016
-7050

query I rowsort
SELECT + + ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + + 46 + - col1 AS col2 FROM tab0 AS cor0
----
-35
25
45

query II rowsort
SELECT ALL col2 AS col1, + col2 + + - 19 FROM tab0
----
10
-9
47
28
99
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT + COUNT( * ) + + COUNT( - + CAST( - + col1 AS SIGNED ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2666
SELECT + COUNT ( * ) + + COUNT ( - + CAST ( - + col1 AS INTEGER ) ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT col2 * - - 84 + + + col2 + 91 + + col1 + - - 95 + + 73 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT col2 * - - 84 + + + col2 + 91 + + col1 + - - 95 + + 73 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - + 49 FROM tab2 AS cor0
----
-3
15
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT DISTINCT CAST( - + col0 AS SIGNED ) * - + 77 + + + 72 AS col0 FROM tab1 AS cor0
----
3999
6617
7079

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) * - + 77 + + + 72 AS col0 FROM tab1 AS cor0
----
3999
6617
7079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + - + 48 col1 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 63 > + 37 + col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT DISTINCT col0 * - col0 + 58 * - col2 + + col1 + - 1 DIV - + col2 AS col1 FROM tab1 cor0
----
-10642
-12178
-8155

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT col0 * - col0 + 58 * - col2 + + col1 + - 1 / - + col2 AS col1 FROM tab1 cor0
----
-10642
-12178
-8155

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT COUNT( - + col2 ) - + COUNT( ALL - + col0 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2674
SELECT DISTINCT COUNT ( - + col2 ) - + COUNT ( ALL - + col0 ) col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2675
SELECT CAST( - 17 AS SIGNED ), col1 * - 21 AS col0 FROM tab1
----
-17
-105
-17
-294
-17
-987

skipif mysql # not compatible
query II rowsort label-2675
SELECT CAST ( - 17 AS INTEGER ), col1 * - 21 AS col0 FROM tab1
----
-17
-105
-17
-294
-17
-987

query I rowsort
SELECT DISTINCT 21 * col2 - - + ( + col0 ) * + + col2 * - + col1 FROM tab2
----
-196280
-290232
-53475

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT ( NOT ( - col2 ) BETWEEN col1 + + + 46 AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 / - - col2 AND ( + col0 )
----

query I rowsort
SELECT DISTINCT 95 * col1 AS col2 FROM tab0 AS cor0
----
1995
7695
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 19 - + - col0 - + + col1 BETWEEN - + col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2681
SELECT - col1 DIV col0, - col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-5
-1215
0
-1827
0
-97

skipif mysql # not compatible
query II rowsort label-2681
SELECT - col1 / col0, - col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-5
-1215
0
-1827
0
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT - 88 DIV - 59 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2682
SELECT - 88 / - 59 AS col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT 81 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT 81 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 86 * + - 45 FROM tab0
----
-3870

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 55 <> + col1 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT DISTINCT - - COUNT( * ) AS col2, + 32 FROM tab0 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-2687
SELECT DISTINCT - - COUNT ( * ) AS col2, + 32 FROM tab0 AS cor0
----
3
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT ALL - + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL - + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 46 * + - 76 * + 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2690
SELECT COUNT( * ) AS col0, COUNT( * ) * - 95 DIV 29 - + - ( + 75 ) FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-2690
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - 95 / 29 - + - ( + 75 ) FROM tab1 AS cor0
----
3
66

query I rowsort
SELECT ALL - 20 * - col0 FROM tab0 AS cor0
----
1740
1940
300

query II rowsort
SELECT ALL 88 AS col2, col2 AS col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) - + 96 + - 5 * + col0 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) - + 96 + - 5 * + col0 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT ALL 80 * - - ( + + ( - col0 ) ) + + 15 + + 0 DIV - col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4065
-6785
-7265

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL 80 * - - ( + + ( - col0 ) ) + + 15 + + 0 / - col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4065
-6785
-7265

query I rowsort
SELECT ALL - col0 * - - 19 AS col2 FROM tab0 AS cor0
----
-1653
-1843
-285

query II rowsort
SELECT - col2 * + col0 AS col2, col2 + + col1 FROM tab1
----
-4896
110
-5015
64
-6188
115

query I rowsort
SELECT - 85 * + ( + 95 ) FROM tab2
----
-8075
-8075
-8075

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 48 AND - col2 - - col1 * + col0 + - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2699
SELECT DISTINCT * FROM tab2 WHERE NOT 89 / + CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2699
SELECT DISTINCT * FROM tab2 WHERE NOT 89 / + CAST ( - col0 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT SUM( + 39 ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT SUM ( + 39 ) FROM tab1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-2701
SELECT DISTINCT + COUNT( * ) * - - 87 AS col1, + MAX( DISTINCT - col2 ) FROM tab1 WHERE NOT col1 NOT BETWEEN - - col2 AND + + 36 / - 92 * - - 77
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2701
SELECT DISTINCT + COUNT ( * ) * - - 87 AS col1, + MAX ( DISTINCT - col2 ) FROM tab1 WHERE NOT col1 NOT BETWEEN - - col2 AND + + 36 / - 92 * - - 77
----
0
NULL

query I rowsort
SELECT DISTINCT 59 * - - 23 FROM tab0
----
1357

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 84 / + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + + 62 * - MIN( + col2 ) AS col0 FROM tab0 cor0
----
-620

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + + 62 * - MIN ( + col2 ) AS col0 FROM tab0 cor0
----
-620

query I rowsort
SELECT ALL col1 * + - col2 * col0 + + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-197133
-291442
-53963

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT + + COUNT( * ) * - - 90 * - 33 * 38 + - - SUM( - col0 ) FROM tab0 cor0
----
-338779

skipif mysql # not compatible
query I rowsort label-2706
SELECT + + COUNT ( * ) * - - 90 * - 33 * 38 + - - SUM ( - col0 ) FROM tab0 cor0
----
-338779

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT - COUNT( * ) + - COUNT( * ) * - + 1 * 76 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2707
SELECT - COUNT ( * ) + - COUNT ( * ) * - + 1 * 76 FROM tab0 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - COUNT( * ) + - + ( - 94 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COUNT ( * ) + - + ( - 94 ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT - AVG ( + 60 ) AS col1 FROM tab2 WHERE NOT ( - - col1 * - 98 ) NOT BETWEEN col0 + + + 82 AND + col0
----
NULL

query I rowsort
SELECT ALL ( - 46 ) AS col0 FROM tab1 cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 30 + + - 95 FROM tab0 AS cor0
----
-125

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 NOT BETWEEN 24 - - col1 AND ( - + ( - col2 ) + col1 )
----

query I rowsort
SELECT col1 - + 34 + - col0 FROM tab2 AS cor0
----
-21
-29
-42

query I rowsort
SELECT - 25 - - col1 AS col2 FROM tab1 cor0
----
-11
-20
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT + COUNT( * ) + + - 16 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + COUNT ( * ) + + - 16 FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT DISTINCT - COUNT( * ), + 86 AS col1 FROM tab0
----
-3
86

skipif mysql # not compatible
query II rowsort label-2716
SELECT DISTINCT - COUNT ( * ), + 86 AS col1 FROM tab0
----
-3
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2717
SELECT 41 DIV + ( + COUNT( * ) ) + 8 * COUNT( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2717
SELECT 41 / + ( + COUNT ( * ) ) + 8 * COUNT ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 - + col1 col2 FROM tab1
----
-1
-34
8

query I rowsort
SELECT ALL 9 * - + 82 * + col2 FROM tab1
----
-43542
-50184
-70848

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT + MAX( ALL + - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + MAX ( ALL + - col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2721
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( + + 18 AS SIGNED ) * + + col0 / - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2721
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + 18 AS INTEGER ) * + + col0 / - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT + + 53, + COUNT( + - col2 ) AS col1 FROM tab1 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-2722
SELECT + + 53, + COUNT ( + - col2 ) AS col1 FROM tab1 AS cor0
----
53
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2723
SELECT ALL - CAST( NULL AS SIGNED ), + col1 + CAST( NULL AS SIGNED ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL - CAST ( NULL AS INTEGER ), + col1 + CAST ( NULL AS INTEGER ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT 34 * - MAX( ALL + 57 ) * + ( - ( + 4 ) ) + - COUNT( * ) FROM tab0 WHERE + 15 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT 34 * - MAX ( ALL + 57 ) * + ( - ( + 4 ) ) + - COUNT ( * ) FROM tab0 WHERE + 15 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - + MAX( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-2726
SELECT - + MAX ( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

query I rowsort
SELECT - - 87 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT - 70 DIV - 73 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 70 / - 73 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL + 93 - - COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2729
SELECT ALL + 93 - - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL - COUNT( - 96 ) * + 60 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - COUNT ( - 96 ) * + 60 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT ALL + - ( - + col1 ) * + 93 + - ( 72 ) AS col0 FROM tab0 cor0
----
1881
21
7461

query II rowsort
SELECT DISTINCT + col1 + ( + - col2 ) AS col1, 26 AS col2 FROM tab2
----
28
26
37
26
9
26

query III rowsort
SELECT * FROM tab1 WHERE + - 27 * - 86 + 58 < + 19 - - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT + COUNT( DISTINCT - + col2 ) + - 33, - COUNT( * ) + + 2 AS col1 FROM tab1
----
-30
-1

skipif mysql # not compatible
query II rowsort label-2735
SELECT + COUNT ( DISTINCT - + col2 ) + - 33, - COUNT ( * ) + + 2 AS col1 FROM tab1
----
-30
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE + 53 + + + col2 >= - - 42 / + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2738
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) < col2
----

skipif mysql # not compatible
query III rowsort label-2738
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) < col2
----

query I rowsort
SELECT ALL + col2 + + col0 FROM tab0 AS cor0 WHERE NOT col2 * col0 IS NULL
----
196
62
97

query I rowsort
SELECT ( - - ( - col1 ) ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - col1 - + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1677
-3431
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + COUNT( + - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2742
SELECT + COUNT ( + - col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL - ( - COUNT( DISTINCT - col0 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL - ( - COUNT ( DISTINCT - col0 ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT + - col0 * - 77 * col0 * col2 + col2 FROM tab1 AS cor0
----
19226688
32823234
43359384

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT col0 DIV 25 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-2745
SELECT col0 / 25 FROM tab0
----
0
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL MAX( - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL MAX ( - col0 ) AS col1 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 52 FROM tab1
----
14
-52
47
-52
5
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT CAST( NULL AS SIGNED ) * + col2 + - + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT CAST ( NULL AS INTEGER ) * + col2 + - + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + + + col2 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2750
SELECT ALL - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT 63 DIV 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT 63 / 96 FROM tab0
----
0
0
0

query I rowsort
SELECT - + 85 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT - col1 * - - 20 AS col0 FROM tab0
----
-1620
-20
-420

query II rowsort
SELECT DISTINCT + 92 AS col0, 77 * + 35 FROM tab0 AS cor0
----
92
2695

query II rowsort
SELECT + col0, + 27 AS col1 FROM tab0 AS cor0
----
15
27
87
27
97
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - MIN( ALL - + col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2756
SELECT - MIN ( ALL - + col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2757
SELECT ALL * FROM tab1 WHERE NOT - col2 / - 54 NOT IN ( - - 54 * col2 + - + CAST( - col2 AS SIGNED ) + - 20 / + + 66, - 21, col1 )
----

skipif mysql # not compatible
query III rowsort label-2757
SELECT ALL * FROM tab1 WHERE NOT - col2 / - 54 NOT IN ( - - 54 * col2 + - + CAST ( - col2 AS INTEGER ) + - 20 / + + 66, - 21, col1 )
----

query I rowsort
SELECT DISTINCT 20 * + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND NOT NULL IS NOT NULL
----
1280
1500
920

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND - col2
----

query I rowsort
SELECT DISTINCT + + col2 + + col1 - + 32 * + 58 FROM tab2 AS cor0
----
-1731
-1739
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2761
SELECT CAST( NULL AS SIGNED ) + - 58 AS col2, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-2761
SELECT CAST ( NULL AS INTEGER ) + - 58 AS col2, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL SUM( + - 20 ) + + ( 97 ) AS col0 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL SUM ( + - 20 ) + + ( 97 ) AS col0 FROM tab1
----
37

query I rowsort
SELECT - 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query II rowsort
SELECT - 49 AS col0, + col2 FROM tab0
----
-49
10
-49
47
-49
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT + MIN( DISTINCT - - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + MIN ( DISTINCT - - col2 ) AS col2 FROM tab0
----
10

query I rowsort
SELECT - - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - + 6 * + 38 AS col1 FROM tab0 cor0
----
-228
-228
-228

query I rowsort
SELECT + col0 * - col1 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
-119595
-336608
-379379

query I rowsort
SELECT - 16 * - - col0 * col2 AS col2 FROM tab1
----
-78336
-80240
-99008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT ALL - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 33 FROM tab1
----
-1947
-2244
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col1 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT + MIN( DISTINCT col2 ) col2, 82 AS col2 FROM tab0 AS cor0
----
10
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2773
SELECT + MIN ( DISTINCT col2 ) col2, 82 AS col2 FROM tab0 AS cor0
----
10
82

query II rowsort
SELECT DISTINCT ( + + col0 ) * col1, + col1 AS col2 FROM tab2
----
2346
51
4928
77
5025
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT 97 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT 97 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 * - 2 + + col2 AS col1 FROM tab2 AS cor0
----
120
174
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2777
SELECT * FROM tab2 AS cor0 WHERE 45 BETWEEN - + col0 AND - CAST( + 16 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2777
SELECT * FROM tab2 AS cor0 WHERE 45 BETWEEN - + col0 AND - CAST ( + 16 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 col2 FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 74
----

query I rowsort
SELECT + ( - 4 ) AS col2 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT 22, MIN( col0 ) AS col2 FROM tab0
----
22
15

skipif mysql # not compatible
query II rowsort label-2781
SELECT 22, MIN ( col0 ) AS col2 FROM tab0
----
22
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT DISTINCT col1 * - CAST( 58 AS SIGNED ) FROM tab0
----
-1218
-4698
-58

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT col1 * - CAST ( 58 AS INTEGER ) FROM tab0
----
-1218
-4698
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT ALL CAST( - + col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL - MIN( - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - MIN ( - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2785
SELECT DISTINCT - 70 AS col2, - COUNT( + ( + - CAST( + col0 AS DECIMAL ) ) ) FROM tab2 AS cor0
----
-70
-3

skipif mysql # not compatible
query II rowsort label-2785
SELECT DISTINCT - 70 AS col2, - COUNT ( + ( + - CAST ( + col0 AS REAL ) ) ) FROM tab2 AS cor0
----
-70
-3

query II rowsort
SELECT ALL + + col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT col2 + - ( - col0 ) FROM tab2
----
104
133
69

query I rowsort
SELECT + col0 + + - col2 * - - col0 AS col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT + - 66 AS col2 FROM tab2 WHERE NOT - col1 * + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + + col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT - + COUNT( col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT - + COUNT ( col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col1 * + col2 * + col2 FROM tab1 cor0
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT - COUNT( * ) * 65 AS col1, - 71 FROM tab0 AS cor0
----
-195
-71

skipif mysql # not compatible
query II rowsort label-2794
SELECT - COUNT ( * ) * 65 AS col1, - 71 FROM tab0 AS cor0
----
-195
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + COUNT( * ) * - 27 * + 56 AS col0 FROM tab0
----
-4536

skipif mysql # not compatible
query I rowsort label-2795
SELECT + COUNT ( * ) * - 27 * + 56 AS col0 FROM tab0
----
-4536

query I rowsort
SELECT 17 * + 99 FROM tab2
----
1683
1683
1683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2797
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 * - col2 * + - col0 FROM tab1
----
NULL
249696
NULL
426275
NULL
563108

skipif mysql # not compatible
query II rowsort label-2797
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 * - col2 * + - col0 FROM tab1
----
NULL
249696
NULL
426275
NULL
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - 67 * MIN( ALL 9 ) AS col2 FROM tab1
----
-603

skipif mysql # not compatible
query I rowsort label-2798
SELECT - 67 * MIN ( ALL 9 ) AS col2 FROM tab1
----
-603

query II rowsort
SELECT ALL + col0 AS col2, col2 * + + col2 AS col0 FROM tab1
----
51
9216
85
3481
91
4624

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT - 50 + + COUNT( * ) + + + 28 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - 50 + + COUNT ( * ) + + + 28 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 77 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT - - 99 AS col0, MAX( - 43 ) FROM tab2 AS cor0
----
99
-43

skipif mysql # not compatible
query II rowsort label-2803
SELECT - - 99 AS col0, MAX ( - 43 ) FROM tab2 AS cor0
----
99
-43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + + - col2 * - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT 29 + CAST( - col2 AS SIGNED ) FROM tab0
----
-18
-70
19

skipif mysql # not compatible
query I rowsort label-2805
SELECT 29 + CAST ( - col2 AS INTEGER ) FROM tab0
----
-18
-70
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT ALL + - ( - CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + - ( - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2807
SELECT ( - COUNT( * ) ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2807
SELECT ( - COUNT ( * ) ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT ALL + + 54 AS col2 FROM tab1 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + ( col2 ) + 37 AS col2 FROM tab0 AS cor0
----
136
47
84

query I rowsort
SELECT 98 - + - col1 AS col2 FROM tab2
----
149
165
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 24 + - - col2 * - col0 col1, - col2 AS col1 FROM tab2
----
-1034
-23
-2536
-40
-4326
-58

query I rowsort
SELECT - ( - 23 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 25 AS col2 FROM tab2
----
48
65
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT ALL col1 DIV - 85 + + 74 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL col1 / - 85 + + 74 FROM tab2
----
74
74
74

query I rowsort
SELECT DISTINCT col1 - col0 + - + col2 * + 60 AS col2 FROM tab0
----
-2754
-6036
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT MAX( ALL 23 ) AS col1 FROM tab2, tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2817
SELECT MAX ( ALL 23 ) AS col1 FROM tab2, tab1 cor0
----
23

query I rowsort
SELECT 46 + - col2 FROM tab1
----
-13
-22
-50

query I rowsort
SELECT ALL - 48 * + - col2 AS col2 FROM tab2
----
1104
1920
2784

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / + 46 >= col1
----

query I rowsort
SELECT DISTINCT + - 17 * col2 FROM tab0 AS cor0
----
-1683
-170
-799

query I rowsort
SELECT + col2 * 96 * col1 FROM tab2 AS cor0
----
112608
295680
373056

query I rowsort
SELECT 59 * - 7 AS col0 FROM tab2 AS cor0
----
-413
-413
-413

query I rowsort
SELECT col0 * + 48 FROM tab0 AS cor0
----
4176
4656
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL + col1 * + CAST( - - col1 AS SIGNED ) * + 53 FROM tab2 AS cor0
----
137853
237917
314237

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + col1 * + CAST ( - - col1 AS INTEGER ) * + 53 FROM tab2 AS cor0
----
137853
237917
314237

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + COUNT( * ) * - 51 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2826
SELECT + COUNT ( * ) * - 51 FROM tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT ALL + col2 * col0 DIV + col1 FROM tab2 AS cor0
----
20
33
64

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + col2 * col0 / + col1 FROM tab2 AS cor0
----
20
33
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT DISTINCT - col1 * + + CAST( NULL AS SIGNED ) + - + col0 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2828
SELECT DISTINCT - col1 * + + CAST ( NULL AS INTEGER ) + - + col0 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT - CAST( - col1 AS SIGNED ) * - 34 + + col2 col2 FROM tab0 AS cor0
----
-2707
-704
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2830
SELECT - CAST ( - col1 AS INTEGER ) * - 34 + + col2 col2 FROM tab0 AS cor0
----
-2707
-704
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT DISTINCT col1 DIV + - col0 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT col1 / + - col0 AS col0 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2832
SELECT ALL col1 * - + 4 AS col2, 79 DIV + - 21 FROM tab0
----
-324
-3
-4
-3
-84
-3

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL col1 * - + 4 AS col2, 79 / + - 21 FROM tab0
----
-324
-3
-4
-3
-84
-3

query I rowsort
SELECT ALL - 98 * col0 * - + col0 AS col0 FROM tab0
----
22050
741762
922082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 24 * - col2 * - - col1 AS col1, col0 - - col1 col0 FROM tab0
----
-2376
98
-5040
108
-91368
96

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 + + 37 AS col2 FROM tab0 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 55 col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + - 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 1 IS NULL
----
-47

query I rowsort
SELECT + col0 + + col0 + + 10 AS col1 FROM tab0
----
184
204
40

query I rowsort
SELECT - 62 + + col0 * + col0 FROM tab1 cor0
----
2539
7163
8219

onlyif mysql # DIV for integer division: 
query II rowsort label-2841
SELECT ALL + col1, col2 DIV + 54 AS col0 FROM tab1 AS cor0
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-2841
SELECT ALL + col1, col2 / + 54 AS col0 FROM tab1 AS cor0
----
14
1
47
1
5
1

query I rowsort
SELECT DISTINCT + ( + col1 ) * - 92 FROM tab1 AS cor0
----
-1288
-4324
-460

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 55 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT ALL - col0 DIV 77 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL - col0 / 77 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - 36 + - + col0 AS col2 FROM tab2 cor0
----
-10
-28
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 78 AND NULL
----

query I rowsort
SELECT - col0 + + 39 - col0 + col1 * col0 + + col0 FROM tab2 AS cor0
----
2339
4903
4989

query I rowsort
SELECT ALL col2 + + 56 * - col2 - + + col1 AS col0 FROM tab2
----
-1316
-2277
-3257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT DISTINCT COUNT( * ) - + SUM( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT COUNT ( * ) - + SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 - 93 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab1 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL MAX( DISTINCT + 26 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL MAX ( DISTINCT + 26 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT col0 * + 76 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT ALL - + col1 * - col0 AS col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT 54 * + MIN( 12 ) AS col2 FROM tab2
----
648

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT 54 * + MIN ( 12 ) AS col2 FROM tab2
----
648

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 / - - col2 IS NULL
----

query I rowsort
SELECT ALL col2 * - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT ALL CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT - - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT + SUM( DISTINCT + 13 ) AS col2 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-2861
SELECT + SUM ( DISTINCT + 13 ) AS col2 FROM tab0 cor0
----
13

query I rowsort
SELECT col1 * - 76 AS col0 FROM tab0
----
-1596
-6156
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT col1 * - CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT col1 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 AS col0, 15 + - - col1 FROM tab1
----
14
29
47
62
5
20

query I rowsort
SELECT ALL col0 * - + col0 FROM tab1 WHERE NOT + col1 * - col2 NOT IN ( col0, col2 * 57, - + 58 )
----

query I rowsort
SELECT DISTINCT col2 * + - col2 * col0 AS col0 FROM tab0
----
-33135
-8700
-950697

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT ( - col1 <= col2 ) ) )
----

query II rowsort
SELECT col1 + + col0 * col1, + 30 + - ( + col0 ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ( - SUM( DISTINCT + col1 ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2869
SELECT ( - SUM ( DISTINCT + col1 ) ) AS col1 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2870
SELECT col2, ( + - CAST( - col2 AS SIGNED ) ) AS col0, + - col0 col0 FROM tab1 AS cor0
----
9 values hashing to c54344399f428ea394425a7b67de710f

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2870
SELECT col2, ( + - CAST ( - col2 AS INTEGER ) ) AS col0, + - col0 col0 FROM tab1 AS cor0
----
9 values hashing to c54344399f428ea394425a7b67de710f

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT DISTINCT + 86 DIV - 30 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + 86 / - 30 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + 81 + + - col1 * - 86 AS col1 FROM tab1 cor0
----
1285
4123
511

query I rowsort
SELECT col1 * col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

query I rowsort
SELECT ALL 7 + col2 FROM tab1
----
103
66
75

query II rowsort
SELECT col2 * + col0 * + col0 AS col2, col1 FROM tab1
----
249696
14
426275
5
563108
47

query I rowsort
SELECT ALL + col2 + - + ( + + col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 87 * + - col0 + col0 * - col2 FROM tab0 AS cor0
----
-18042
-2010
-8439

query I rowsort
SELECT col1 - + col1 * col2 + col1 FROM tab2 AS cor0
----
-1071
-2926
-3752

query I rowsort
SELECT - - col1 * - col1 + + col1 - - 27 - + 86 + - - 57 FROM tab0 AS cor0
----
-2
-422
-6482

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ( 30 ) + ( - COUNT( ALL 79 ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2880
SELECT ( 30 ) + ( - COUNT ( ALL 79 ) ) FROM tab2
----
27

query I rowsort
SELECT 98 + + ( - - 13 ) FROM tab1
----
111
111
111

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT DISTINCT col1 DIV col0 + + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT col1 / col0 + + + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT + 79 - MIN( ALL - 36 ) col2 FROM tab0
----
115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT DISTINCT + 79 - MIN ( ALL - 36 ) col2 FROM tab0
----
115

query II rowsort
SELECT ALL - col1 * + col0 + - 88, 73 AS col0 FROM tab0
----
-1303
73
-185
73
-1915
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - SUM( + col2 ) AS col2 FROM tab2 WHERE + 42 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT - SUM ( + col2 ) AS col2 FROM tab2 WHERE + 42 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 23, col1 * + - col2 AS col0 FROM tab2 AS cor0
----
23
-1173
23
-3080
23
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 54 ) col1 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT + - SUM( DISTINCT 48 ) * - 94 FROM tab2 AS cor0
----
4512

skipif mysql # not compatible
query I rowsort label-2888
SELECT + - SUM ( DISTINCT 48 ) * - 94 FROM tab2 AS cor0
----
4512

query I rowsort
SELECT + + col2 * + + col1 AS col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT 83 AS col2 FROM tab1 cor0
----
83
83
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2891
SELECT ( + COUNT( * ) ), + 96 * + - COUNT( * ) - COUNT( * ) DIV 78 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
-288

skipif mysql # not compatible
query II rowsort label-2891
SELECT ( + COUNT ( * ) ), + 96 * + - COUNT ( * ) - COUNT ( * ) / 78 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - COUNT( * ) * - COUNT( * ) + - 21 AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2892
SELECT - COUNT ( * ) * - COUNT ( * ) + - 21 AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - - ( ( + 34 ) ) FROM tab2 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 cor0 WHERE + 51 IS NULL
----

query I rowsort
SELECT DISTINCT 71 + - + col2 AS col1 FROM tab1
----
-25
12
3

query I rowsort
SELECT DISTINCT 16 * - col1 AS col0 FROM tab2
----
-1072
-1232
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + 4 * 58 * - MIN( DISTINCT + + 30 ) AS col2 FROM tab0
----
-6960

skipif mysql # not compatible
query I rowsort label-2897
SELECT + 4 * 58 * - MIN ( DISTINCT + + 30 ) AS col2 FROM tab0
----
-6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT + col1 DIV col0 DIV - + col0 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2899
SELECT + col1 / col0 / - + col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 96 + col2 + - + 27 FROM tab2 cor0
----
-100
-65
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT COUNT( * ) + - MAX( + - CAST( NULL AS SIGNED ) ) - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT COUNT ( * ) + - MAX ( + - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col1, col2 - + col2 AS col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT - 3 + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT - 3 + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2904
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( + col1 AS SIGNED ) + - 37 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2904
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) + - 37 IS NULL
----

query I rowsort
SELECT ALL - ( + - ( - 1 ) ) * - + col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ( - col1 ) AS col2, 6 FROM tab0
----
-1
6
-21
6
-81
6

onlyif mysql # DIV for integer division: 
query II rowsort label-2907
SELECT ALL + col0 + + col2 AS col0, - col0 DIV + col0 FROM tab2
----
104
-1
133
-1
69
-1

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL + col0 + + col2 AS col0, - col0 / + col0 FROM tab2
----
104
-1
133
-1
69
-1

query I rowsort
SELECT + col0 - + ( + 17 ) FROM tab1
----
34
68
74

query I rowsort
SELECT + col1 + - col1 FROM tab1 WHERE ( NULL IS NULL )
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2910
SELECT ALL COUNT( * ) DIV - + ( - COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL COUNT ( * ) / - + ( - COUNT ( * ) ) FROM tab1
----
1

query I rowsort
SELECT 59 * - + 53 AS col0 FROM tab2
----
-3127
-3127
-3127

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - MIN( - 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2913
SELECT - MIN ( - 12 ) FROM tab0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - 16 + - + 23 / - col1 * - col0 * - 97 * - 94 + - col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND 8 * - col2 * col2 + - + 97
----

query I rowsort
SELECT ALL - - 6 FROM tab2 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 66 AND + col2 * - - 19 + col1 * - + ( col1 )
----
1

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 66 AND + col2 * - - 19 + col1 * - + ( col1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 40 AS col2, 63 FROM tab2
----
40
63
40
63
40
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ( - + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2920
SELECT ( - + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL + 77 AS col2 FROM tab0 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col1 col2 FROM tab0 AS cor0 WHERE NOT col2 <= - col1
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT - CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2923
SELECT - CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 55 = + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT MAX( DISTINCT 7 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2925
SELECT MAX ( DISTINCT 7 ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT + + col0 + + + 34 + - col1 FROM tab0 AS cor0
----
-32
100
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT ALL col0 DIV + col1 + - col0 + - col0 * - - 51 + + 17 - - col1 - col1 + - - col2 * - col0 AS col2 FROM tab1
----
-10902
-7528
-9401

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL col0 / + col1 + - col0 + - col0 * - - 51 + + 17 - - col1 - col1 + - - col2 * - col0 AS col2 FROM tab1
----
-10902
-7528
-9401

query III rowsort
SELECT * FROM tab1 WHERE - + 54 NOT IN ( - 69 / + 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT - SUM( + col1 ) + COUNT( * ) col1 FROM tab1
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2929
SELECT DISTINCT - SUM ( + col1 ) + COUNT ( * ) col1 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + COUNT( * ) * 34 AS col0 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-2930
SELECT + COUNT ( * ) * 34 AS col0 FROM tab1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL col0 + + col0 DIV + 18 - + col1 + col2 DIV - 14 AS col0 FROM tab0 cor0
----
-69
70
94

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL col0 + + col0 / + 18 - + col1 + col2 / - 14 AS col0 FROM tab0 cor0
----
-69
70
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT DISTINCT - col0 + + 91 AS col0, - col0 - + + col2 FROM tab2 AS cor0
----
16
-133
27
-104
45
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + ( + ( + col2 ) ) ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL 38 * + SUM( + ( - 10 ) ) AS col0 FROM tab1 cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL 38 * + SUM ( + ( - 10 ) ) AS col0 FROM tab1 cor0
----
-1140

query I rowsort
SELECT - ( + 94 ) - - + col2 * + 2 FROM tab1 AS cor0
----
24
42
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + - COUNT( * ) * - - 32 AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + - COUNT ( * ) * - - 32 AS col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + col0 - + - col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL - 60 + + col0 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 * - + 7 + - CAST( NULL AS SIGNED ) + - 43 IS NOT NULL
----
-14
15
4

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - 60 + + col0 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 * - + 7 + - CAST ( NULL AS INTEGER ) + - 43 IS NOT NULL
----
-14
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT + COUNT( * ) - + 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-2942
SELECT + COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT 88 + + + col2 FROM tab1 AS cor0
----
147
156
184

query I rowsort
SELECT + col1 + - + col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( 65 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2946
SELECT DISTINCT + + CAST( ( 4 ) AS SIGNED ) * COUNT( * ) col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2946
SELECT DISTINCT + + CAST ( ( 4 ) AS INTEGER ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 43, 80 * 36 col0 FROM tab1
----
43
2880

query I rowsort
SELECT DISTINCT ( col1 ) * - 78 AS col2 FROM tab1
----
-1092
-3666
-390

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 11 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col2 ) * + - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 88 * - 93 col0 FROM tab1 AS cor0
----
417384
695640
744744

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL SUM( DISTINCT - + 97 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2952
SELECT ALL SUM ( DISTINCT - + 97 ) col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + - 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

query I rowsort
SELECT ALL - ( - 87 ) AS col2 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL MIN( - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL MIN ( - + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + - col2 + + 0 * col2 + - col0 + - 95 * - - col2 AS col0 FROM tab2 AS cor0
----
-2254
-3904
-5643

query I rowsort
SELECT - ( - + col0 ) + - + ( - col0 ) AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT - col0 * - col2 + - + col0 + 58 AS col0 FROM tab1 AS cor0
----
4903
4988
6155

query I rowsort
SELECT + ( col2 ) + + 86 * + + col0 - - + ( - - 35 ) FROM tab0 AS cor0
----
1372
7527
8476

query I rowsort
SELECT + col1 * + 57 + - 97 - - + col0 * - 33 + + ( - + 61 ) + 23 AS col2 FROM tab1 AS cor0
----
-1020
-2655
-459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL + CAST( - col2 AS SIGNED ) + + ( + col0 ) col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2962
SELECT ALL + CAST ( - col2 AS INTEGER ) + + ( + col0 ) col2 FROM tab2
----
17
23
24

query I rowsort
SELECT 60 * - + col1 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT DISTINCT - col0 * - - col2 + - col2 + + 29 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-723
-851
-9673

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + + SUM( DISTINCT + + col2 ) AS col1 FROM tab0 WHERE ( 70 IS NOT NULL )
----
156

skipif mysql # not compatible
query I rowsort label-2965
SELECT + + SUM ( DISTINCT + + col2 ) AS col1 FROM tab0 WHERE ( 70 IS NOT NULL )
----
156

query II rowsort
SELECT DISTINCT 3, - 40 AS col2 FROM tab2
----
3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT col1 / col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 = + col0 + - - 66 * + + col2 + + col1 * + 87 + + col1 - col1 / - col0 - + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 34 + col1 AS col1 FROM tab1
----
39
48
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT 90 * COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-2972
SELECT 90 * COUNT ( * ) FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT 46 * COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-2973
SELECT 46 * COUNT ( * ) FROM tab2
----
138

query I rowsort
SELECT + col0 * 47 AS col0 FROM tab1
----
2397
3995
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL MAX( ALL 84 ) + 40 FROM tab1
----
124

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL MAX ( ALL 84 ) + 40 FROM tab1
----
124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col1 + + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + 14 * COUNT( * ) col2 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2977
SELECT + 14 * COUNT ( * ) col2 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT DISTINCT + col1 DIV 27 AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + col1 / 27 AS col0 FROM tab2
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT 21 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
21
21
21

skipif mysql # not compatible
query I rowsort label-2979
SELECT 21 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2980
SELECT ALL * FROM tab0 WHERE NOT ( - col1 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2980
SELECT ALL * FROM tab0 WHERE NOT ( - col1 * CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 64 FROM tab1 WHERE NOT - 64 IS NOT NULL
----

query I rowsort
SELECT 47 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT ALL col0 DIV - col1 col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT ALL col0 / - col1 col0 FROM tab0
----
-4
-97
0

query I rowsort
SELECT 19 - col1 * 66 FROM tab1
----
-3083
-311
-905

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - MAX( ALL + 7 ) col1 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2985
SELECT - MAX ( ALL + 7 ) col1 FROM tab2
----
-7

query I rowsort
SELECT col1 * - 33 FROM tab2 WHERE - 52 IS NOT NULL
----
-1683
-2211
-2541

query I rowsort
SELECT ALL 70 AS col1 FROM tab2 WHERE + col2 * + col0 + - 76 NOT BETWEEN - 75 AND col1
----
70
70
70

query I rowsort
SELECT DISTINCT 8 + + col2 AS col0 FROM tab1
----
104
67
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT + 52 - + col1 DIV - ( + 85 ) FROM tab2
----
52
52
52

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 52 - + col1 / - ( + 85 ) FROM tab2
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL - COUNT( * ) + 14 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - COUNT ( * ) + 14 FROM tab1
----
11

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL = - col2 * 79
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL COUNT( * ) + + 87 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL COUNT ( * ) + + 87 FROM tab0
----
90

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + col0 = ( 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2995
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 83 * CAST( 72 AS SIGNED ) - + 34 = NULL
----

skipif mysql # not compatible
query III rowsort label-2995
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 83 * CAST ( 72 AS INTEGER ) - + 34 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL + col2 * - CAST( 76 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4484
-5168
-7296

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + col2 * - CAST ( 76 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2997
SELECT COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + 60 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 87 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 87 > NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT DISTINCT + + 41 DIV - COUNT( * ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT + + 41 / - COUNT ( * ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE 43 BETWEEN + col0 * col1 AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 79 - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT 11 DIV - 89 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT 11 / - 89 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT COUNT( * ) * COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT ALL + 32 DIV + 31 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-3007
SELECT ALL + 32 / + 31 col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT ALL + CAST( col0 AS SIGNED ) + 71 FROM tab2 AS cor0
----
117
135
146

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + CAST ( col0 AS INTEGER ) + 71 FROM tab2 AS cor0
----
117
135
146

query I rowsort
SELECT ALL + ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE - 47 * - 52 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + + MIN( DISTINCT 40 ) col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3010
SELECT + + MIN ( DISTINCT 40 ) col2 FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3011
SELECT ALL - COUNT( * ) DIV 77 + - SUM( 32 ) * - 48 AS col0 FROM tab2 AS cor0
----
4608

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - COUNT ( * ) / 77 + - SUM ( 32 ) * - 48 AS col0 FROM tab2 AS cor0
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + MIN( ALL 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3012
SELECT + MIN ( ALL 72 ) FROM tab1 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT ALL 63 * + 12 + - col0 DIV - 47 AS col1 FROM tab2 AS cor0
----
756
757
757

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 63 * + 12 + - col0 / - 47 AS col1 FROM tab2 AS cor0
----
756
757
757

query I rowsort
SELECT ALL + col0 * col0 FROM tab1 WHERE NULL IS NULL
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - col1 * + 29 + + ( + col2 ) FROM tab1
----
-1295
-310
-86

query III rowsort
SELECT * FROM tab1 WHERE - 34 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT MIN( - col1 ) + - 99 FROM tab2
----
-176

skipif mysql # not compatible
query I rowsort label-3017
SELECT MIN ( - col1 ) + - 99 FROM tab2
----
-176

query I rowsort
SELECT 2 * - col0 + - col1 FROM tab1
----
-116
-175
-229

query III rowsort
SELECT * FROM tab2 WHERE ( 10 + - col1 ) NOT BETWEEN ( NULL ) AND col1 + col0
----

query I rowsort
SELECT ALL + col2 * - 75 FROM tab2
----
-1725
-3000
-4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - 69 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT - 34 DIV - ( + col1 ) + + col1 AS col1 FROM tab0 cor0
----
22
35
81

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 34 / - ( + col1 ) + + col1 AS col1 FROM tab0 cor0
----
22
35
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT + + col0 + + 72 + col1 * col0 DIV col2 AS col2 FROM tab1 cor0
----
130
164
225

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT + + col0 + + 72 + col1 * col0 / col2 AS col2 FROM tab1 cor0
----
130
164
225

query I rowsort
SELECT - col2 * + 45 AS col0 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT DISTINCT - col0 - - + col1 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT + 38 * - col1 * col2 FROM tab1
----
-11210
-121448
-51072

query I rowsort
SELECT ALL - col2 + col2 FROM tab1 WHERE 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT SUM( DISTINCT 40 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3028
SELECT SUM ( DISTINCT 40 ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT + + col2 * - col1 * + + 16 - - 11 AS col1 FROM tab1 AS cor0
----
-21493
-4709
-51125

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT + COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3030
SELECT + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT - + 19 * 36 FROM tab1 AS cor0
----
-684
-684
-684

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT + 92, COUNT( * ) AS col1 FROM tab1 AS cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-3032
SELECT + 92, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
92
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 BETWEEN + col0 * + col2 AND - col1 ) OR 62 * col2 - + col2 IN ( + col0 * + col0 + + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - + SUM( - col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3034
SELECT - + SUM ( - col2 ) AS col0 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + COUNT( * ) FROM tab0 WHERE NOT - 63 + - - col0 - col1 * 48 / col1 = ( col0 * col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3035
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - 63 + - - col0 - col1 * 48 / col1 = ( col0 * col2 )
----
3

query II rowsort
SELECT DISTINCT ( - col1 ), col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col1 * col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + - SUM( DISTINCT + - col0 ) FROM tab0
----
1791

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + - SUM ( DISTINCT + - col0 ) FROM tab0
----
1791

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( 83 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - SUM( + - 71 ) col2 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3040
SELECT - SUM ( + - 71 ) col2 FROM tab0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT ALL + + col0 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT ALL + + col0 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 * - 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 67 * + 63 FROM tab0
----
4221
4221
4221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT DISTINCT 51 DIV COUNT( * ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT 51 / COUNT ( * ) AS col2 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT - 52 * COUNT( * ) AS col2 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 52 * COUNT ( * ) AS col2 FROM tab2
----
-156

query II rowsort
SELECT DISTINCT + 48, - col2 * col1 + - - col2 + - 1 * - col0 AS col1 FROM tab0
----
48
-113
48
-3745
48
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 32 - + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT - 84 / - CAST( NULL AS SIGNED ) * AVG ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 84 / - CAST ( NULL AS INTEGER ) * AVG ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3049
SELECT DISTINCT + + col2 AS col2, - CAST( - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3049
SELECT DISTINCT + + col2 AS col2, - CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL col2 + - + col1 * col0 + + 76 AS col2 FROM tab0 AS cor0
----
-1092
-1741
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col1 + - 91 ) NOT IN ( + 58 * 15 ) )
----

query I rowsort
SELECT - 52 * - ( + col2 ) AS col0 FROM tab2
----
1196
2080
3016

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + 66 = NULL )
----

query I rowsort
SELECT + 42 FROM tab1 WHERE ( ( + + col1 ) * - col0 ) < col0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3055
SELECT col1 AS col2, col1 * ( + CAST( + col1 AS SIGNED ) ) * - - ( col2 ) AS col1 FROM tab0
----
1
99
21
4410
81
308367

skipif mysql # not compatible
query II rowsort label-3055
SELECT col1 AS col2, col1 * ( + CAST ( + col1 AS INTEGER ) ) * - - ( col2 ) AS col1 FROM tab0
----
1
99
21
4410
81
308367

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( ( + 27 * - col0 ) <= - 28 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 * - 12 col2 FROM tab2 AS cor0
----
575
808
958

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL - 0 + - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL - 0 + - + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE + 24 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - MAX( ALL - col2 ) * - - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3062
SELECT - MAX ( ALL - col2 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3063
SELECT ALL MIN( DISTINCT + + col2 ) col1, + 33 DIV + + 5 AS col1 FROM tab2 cor0
----
23
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3063
SELECT ALL MIN ( DISTINCT + + col2 ) col1, + 33 / + + 5 AS col1 FROM tab2 cor0
----
23
6

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - 14 IN ( - col1 * + 18 * 40 + - 49 )
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col0 AS col1, - ( + - col2 ) * 76 AS col1 FROM tab0
----
15
3572
87
760
97
7524

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT 3 col2, ( + + MIN( ALL - + col0 ) ) * - + 75 FROM tab1
----
3
6825

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3066
SELECT 3 col2, ( + + MIN ( ALL - + col0 ) ) * - + 75 FROM tab1
----
3
6825

onlyif mysql # DIV for integer division: 
query II rowsort label-3067
SELECT - col0 DIV col2 DIV + col1, col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-3067
SELECT - col0 / col2 / + col1, col0 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + 37 * + MAX( - 61 ) * - ( + + COUNT( * ) ) AS col1 FROM tab2
----
6771

skipif mysql # not compatible
query I rowsort label-3068
SELECT + 37 * + MAX ( - 61 ) * - ( + + COUNT ( * ) ) AS col1 FROM tab2
----
6771

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3069
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( CAST( NULL AS SIGNED ) / - col1 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3069
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( CAST ( NULL AS INTEGER ) / - col1 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE col0 IN ( + ( 62 ), + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col0 IN ( + ( 62 ), + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT col0 * 43 + - col0 + - col0 + + col2 * 83 DIV col1 FROM tab0 cor0
----
12194
3606
663

skipif mysql # not compatible
query I rowsort label-3071
SELECT col0 * 43 + - col0 + - col0 + + col2 * 83 / col1 FROM tab0 cor0
----
12194
3606
663

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT 18 DIV col1 + - + col1 col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3072
SELECT 18 / col1 + - + col1 col0 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT col0 + - 76, + col0 FROM tab2 AS cor0
----
-1
75
-12
64
-30
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT - col2 DIV - 60 * col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3074
SELECT - col2 / - 60 * col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + 23 + + - col0 * - 97 FROM tab0 AS cor0
----
1478
8462
9432

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - col2 - - 93 FROM tab1 cor0
----
-3
25
34

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IS NOT NULL AND ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT - CAST( NULL AS SIGNED ) + - 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT - CAST ( NULL AS INTEGER ) + - 27 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - - + 28 AS col2 FROM tab1
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL MAX( + col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3081
SELECT ALL MAX ( + col2 ) col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - col0 + + col2 + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
16
41

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - 33 BETWEEN NULL AND + 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - COUNT( * ) * MAX( col1 ) + 83 * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( - col2 ) >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - COUNT ( * ) * MAX ( col1 ) + 83 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( - col2 ) >= NULL )
----
NULL

query II rowsort
SELECT 53 AS col0, col0 + + col2 FROM tab0
----
53
196
53
62
53
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL + + MAX( ALL + 50 ) + + COUNT( * ) * MAX( col0 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 66 + - + col0 + + - col0 + + col1 + - - col0 * + + 93 AND ( + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + + MAX ( ALL + 50 ) + + COUNT ( * ) * MAX ( col0 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 66 + - + col0 + + - col0 + + col1 + - - col0 * + + 93 AND ( + + col1 )
----
NULL

query II rowsort
SELECT ALL col1 AS col2, - 52 FROM tab1
----
14
-52
47
-52
5
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 >= NULL
----
0

query I rowsort
SELECT + col0 * - 3 FROM tab0 AS cor0
----
-261
-291
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <> + + col1 * + col2
----

query II rowsort
SELECT col0 AS col1, - col1 FROM tab0 cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - 54 * + col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT - COUNT( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3093
SELECT - COUNT ( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * + col2 BETWEEN - - col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - COUNT( * ) + + 58 AS col2 FROM tab1, tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - COUNT ( * ) + + 58 AS col2 FROM tab1, tab0 cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 15 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 78 FROM tab1
----
-4602
-5304
-7488

query I rowsort
SELECT - - col1 AS col1 FROM tab2 WHERE NOT ( NOT 21 + + col1 BETWEEN - col2 + col1 AND - 30 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3099
SELECT ALL * FROM tab2 WHERE 5 + CAST( 34 AS DECIMAL ) <> + col2 + + 91 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3099
SELECT ALL * FROM tab2 WHERE 5 + CAST ( 34 AS REAL ) <> + col2 + + 91 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 54 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <= + col0 * 48 / + col2 + + - col1 - + col2 * 26 / + 22
----
46
51
23

query I rowsort
SELECT ALL col0 + - - col0 FROM tab0 cor0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( 12 ) AND - 67 * - - col2
----

query I rowsort
SELECT - 6 + - col2 AS col2 FROM tab1
----
-102
-65
-74

query I rowsort
SELECT - col0 + - - ( + 94 ) FROM tab0
----
-3
7
79

query I rowsort
SELECT + + 80 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + col2 - col0 + - col0 - + col2 AS col0 FROM tab2 WHERE + 87 * + col1 BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + - + col1 col2 FROM tab2 AS cor0
----
-14
-4
12

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NOT col2 - - col1 < + col1
----
23
40
58

query I rowsort
SELECT - 6 FROM tab1 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-6
-6
-6

query I rowsort
SELECT DISTINCT 73 * - + col2 + - + 33 * - col2 AS col1 FROM tab2 AS cor0
----
-1600
-2320
-920

query I rowsort
SELECT - 44 + 48 * + col2 - - - col2 - + col1 FROM tab1 AS cor0
----
2724
3105
4454

query II rowsort
SELECT DISTINCT 69, col2 * - - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT + 48 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT + 48 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( - col0 ) ) IN ( - col1, col2 )
----

query I rowsort
SELECT col1 * + col2 + + 74 + col1 + - col0 / col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT 28 * col2 + + + CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
1269
2673
270

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT 28 * col2 + + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
1269
2673
270

query I rowsort
SELECT ( 57 ) - - + col1 FROM tab1
----
104
62
71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3120
SELECT ALL * FROM tab0 WHERE NOT CAST( + - col2 AS DECIMAL ) BETWEEN - - col0 + - - 92 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3120
SELECT ALL * FROM tab0 WHERE NOT CAST ( + - col2 AS REAL ) BETWEEN - - col0 + - - 92 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( ( 63 ) ) AS col0 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE - 3 * - 21 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3124
SELECT DISTINCT 49 + + COUNT( * ) AS col1, + 57 AS col0 FROM tab0, tab2 AS cor0
----
58
57

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT 49 + + COUNT ( * ) AS col1, + 57 AS col0 FROM tab0, tab2 AS cor0
----
58
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT + COUNT( * ) * 64 FROM tab0 cor0
----
192

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + COUNT ( * ) * 64 FROM tab0 cor0
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3126
SELECT ALL + - COUNT( * ) DIV - 95 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + - COUNT ( * ) / - 95 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col0, 8 AS col1 FROM tab1 AS cor0
----
32
8
32
8
32
8

query II rowsort
SELECT + col0, + col2 AS col1 FROM tab1 cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 90 col1 FROM tab2
----
46
90
64
90
75
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab0 WHERE NOT - + ( - 68 ) - + 70 / + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 96 + col1 - - col2 * - 81 FROM tab2
----
-1716
-3067
-4535

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT - - CAST( - + 76 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - col0 AND NULL
----
-76
-76

skipif mysql # not compatible
query I rowsort label-3133
SELECT - - CAST ( - + 76 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - col0 AND NULL
----
-76
-76

query I rowsort
SELECT + - col0 + - col0 * - 30 * + ( + col2 ) - col1 AS col2 FROM tab1 AS cor0
----
146815
150360
185502

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - - MIN( + ( + 17 ) ) + + 24 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3135
SELECT - - MIN ( + ( + 17 ) ) + + 24 FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT 87 + + SUM( DISTINCT col0 ) + COUNT( * ) col2 FROM tab0 AS cor0
----
289

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3136
SELECT 87 + + SUM ( DISTINCT col0 ) + COUNT ( * ) col2 FROM tab0 AS cor0
----
289

query I rowsort
SELECT ALL + 89 + - col2 + + 31 * - col1 FROM tab2 AS cor0
----
-1515
-2046
-2338

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + MAX( ALL + 51 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3138
SELECT + MAX ( ALL + 51 ) FROM tab1
----
51

query I rowsort
SELECT ALL col1 - + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3140
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0, 4 AS col0 FROM tab0 cor0
----
15
4
87
4
97
4

skipif mysql # not compatible
query II rowsort label-3140
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0, 4 AS col0 FROM tab0 cor0
----
15
4
87
4
97
4

query I rowsort
SELECT DISTINCT col2 * col0 + + ( col0 ) FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT - - CAST( + 96 AS SIGNED ) - - 52 FROM tab0 AS cor0
----
148
148
148

skipif mysql # not compatible
query I rowsort label-3142
SELECT - - CAST ( + 96 AS INTEGER ) - - 52 FROM tab0 AS cor0
----
148
148
148

query II rowsort
SELECT 73 - col0 AS col1, col1 + - - col0 + + col1 FROM tab2 AS cor0
----
-2
209
27
148
9
218

query I rowsort
SELECT DISTINCT + col0 * col1 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
159036
18240
9506

query III rowsort
SELECT * FROM tab1 cor0 WHERE 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 43, + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
43
15
43
87
43
97

query I rowsort
SELECT DISTINCT + col1 + - 21 AS col2 FROM tab0 AS cor0
----
-20
0
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT ALL - COUNT( * ) DIV + SUM( - - col0 ) - + 87 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - COUNT ( * ) / + SUM ( - - col0 ) - + 87 FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3149
SELECT DISTINCT CAST( ( - - 94 ) AS SIGNED ) + - - col0 DIV - 10 col0 FROM tab2
----
87
88
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3149
SELECT DISTINCT CAST ( ( - - 94 ) AS INTEGER ) + - - col0 / - 10 col0 FROM tab2
----
87
88
90

query I rowsort
SELECT + col1 + - 18 + + col2 * - 84 AS col1 FROM tab2
----
-1899
-3301
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT + COUNT( * ) * - 5 * 89 + SUM( ALL + 56 ) col0 FROM tab1
----
-1167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3151
SELECT + COUNT ( * ) * - 5 * 89 + SUM ( ALL + 56 ) col0 FROM tab1
----
-1167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 AS col2, + col1 * col2 + - ( + col1 ) col2 FROM tab1
----
35
1330
35
290
35
3149

query I rowsort
SELECT - 67 * - col0 * + col0 AS col1 FROM tab1 AS cor0
----
174267
484075
554827

query I rowsort
SELECT + - col2 * col2 * + col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col0 ) col2 FROM tab1 cor0 WHERE NOT col1 < - 27
----
51
85
91

query II rowsort
SELECT ALL - - col1 AS col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT DISTINCT - col1 AS col0, ( - - col0 ) * - col0 FROM tab1 AS cor0
----
-14
-2601
-47
-8281
-5
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - - SUM( - + 68 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - ( + col0 ), col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT - - SUM ( - + 68 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - ( + col0 ), col2 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT + - col1 * 35 * + + col0 * - + col2 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
10200750
-67
1888530
-51
6899200
-77

query I rowsort
SELECT 17 * + - 11 + - - col0 FROM tab2 AS cor0
----
-112
-123
-141

query I rowsort
SELECT DISTINCT - - 65 + + 13 AS col1 FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col1 + - 45 AS col2 FROM tab0 AS cor0
----
-126
-46
-66

query I rowsort
SELECT DISTINCT col2 + - 91 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col0 * + col0 * - + 78 >= + + ( + + col2 )
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT ( - ( - col2 ) ) < 26
----
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT col1 DIV - col0 col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3168
SELECT col1 / - col0 col1 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT - 43 DIV col1 AS col1 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - 43 / col1 AS col1 FROM tab1
----
-3
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL COUNT( ALL - 84 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL COUNT ( ALL - 84 ) FROM tab1
----
3

query I rowsort
SELECT ALL - - col0 + col0 * + - col1 AS col0 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT col0 + - col1 FROM tab1 WHERE - col2 - + ( + col0 ) + col2 + + - 36 < ( col2 )
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3173
SELECT col1 * 9 * + ( CAST( NULL AS SIGNED ) ) + + col0 - - + 39 AS col2, + col1 * - - col1 * col1, col1 FROM tab1
----
9 values hashing to 2b2794d08797e567d1f8b5aa914ec67a

skipif mysql # not compatible
query III rowsort label-3173
SELECT col1 * 9 * + ( CAST ( NULL AS INTEGER ) ) + + col0 - - + 39 AS col2, + col1 * - - col1 * col1, col1 FROM tab1
----
9 values hashing to 2b2794d08797e567d1f8b5aa914ec67a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL + col2 * col1 * - col2 + 68 + + col1 / + - ( + col0 ) * - 88 + - + col1 AS col1 FROM tab0 WHERE + - col1 <= - col2 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + col2 * col1 * - col2 + 68 + + col1 / + - ( + col0 ) * - 88 + - + col1 AS col1 FROM tab0 WHERE + - col1 <= - col2 + + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 0 + + + 99 FROM tab1 AS cor0
----
99
99
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - 2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 AS col0, + col2 * - - col1 * - col1 col2, - col2 * col0 AS col2 FROM tab2 cor0
----
9 values hashing to 26bbd5be966f8758cd918943f14714d1

query I rowsort
SELECT 34 * col0 AS col0 FROM tab0
----
2958
3298
510

query I rowsort
SELECT ALL ( 11 ) FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE + 74 / - col2 - + col1 + + 42 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE + 74 / - col2 - + col1 + + 42 NOT BETWEEN + - col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT col2 * + 86 FROM tab1
----
5074
5848
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT + + MAX( - 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3183
SELECT + + MAX ( - 41 ) FROM tab1 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL col2 * 78 AS col2 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 75 + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 36 AS col2 FROM tab0 cor0
----
-36
-36
-36

query II rowsort
SELECT DISTINCT - + 93 + 90 * + + col0 AS col0, col2 + 28 + + 80 AS col1 FROM tab1 cor0
----
4497
204
7557
167
8097
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col1 * + ( + col2 ) AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 68 * + col1 + col0 AS col0 FROM tab2
----
3514
4631
5300

query I rowsort
SELECT DISTINCT - col2 * col0 * - col0 AS col1 FROM tab1
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL ( + 79 ) DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL ( + 79 ) / - col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT - 15 * + col1 AS col1 FROM tab1
----
-210
-705
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT ALL - 82 DIV - col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - 82 / - col0 AS col2 FROM tab0
----
0
0
5

query I rowsort
SELECT 89 + + ( + 65 ) FROM tab0
----
154
154
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 + + col2 col0 FROM tab0
----
15
87
97

query II rowsort
SELECT - col2 + + col2 AS col0, + 21 FROM tab0 AS cor0
----
0
21
0
21
0
21

query I rowsort
SELECT DISTINCT + 51 * - col0 AS col0 FROM tab2 WHERE + col0 + + - col0 - + 64 < NULL
----

query I rowsort
SELECT - 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + - 36 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3203
SELECT ALL * FROM tab2 cor0 WHERE NOT - 48 * + col1 IN ( + 10 * + + CAST( - col1 AS SIGNED ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3203
SELECT ALL * FROM tab2 cor0 WHERE NOT - 48 * + col1 IN ( + 10 * + + CAST ( - col1 AS INTEGER ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT DISTINCT MAX( DISTINCT + 64 ) col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3204
SELECT DISTINCT MAX ( DISTINCT + 64 ) col1 FROM tab0 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT - 63 * - col0 - + 40 DIV + - col0 AS col2 FROM tab1 AS cor0
----
3213
5355
5733

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 63 * - col0 - + 40 / + - col0 AS col2 FROM tab1 AS cor0
----
3213
5355
5733

query I rowsort
SELECT + col1 * + + 36 AS col0 FROM tab2 AS cor0 WHERE NOT 61 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3207
SELECT COUNT( * ) AS col0, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3207
SELECT COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0
----
3
-3

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 - col2 FROM tab0
----
-1
-98
-21
11
-81
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3209
SELECT DISTINCT + col2, + col0 + CAST( col1 AS SIGNED ) + col1 + + - col1 FROM tab2
----
23
97
40
141
58
142

skipif mysql # not compatible
query II rowsort label-3209
SELECT DISTINCT + col2, + col0 + CAST ( col1 AS INTEGER ) + col1 + + - col1 FROM tab2
----
23
97
40
141
58
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col0 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 38 - col0 - + - 13 = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT - CAST( - + COUNT( ( + - col0 ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3212
SELECT - CAST ( - + COUNT ( ( + - col0 ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 81 AS col1 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3214
SELECT + MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL + COUNT( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3215
SELECT ALL + COUNT ( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 WHERE NOT - 99 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3218
SELECT - col1 DIV 54 * - 84 * - - col0 AS col1 FROM tab0
----
0
0
1260

skipif mysql # not compatible
query I rowsort label-3218
SELECT - col1 / 54 * - 84 * - - col0 AS col1 FROM tab0
----
0
0
1260

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( * ) + + + SUM( col1 ) AS col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( * ) + + + SUM ( col1 ) AS col2 FROM tab2 AS cor0
----
192

query I rowsort
SELECT + 70 + - + col0 AS col2 FROM tab2 AS cor0
----
-5
24
6

query I rowsort
SELECT ALL 80 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT - MIN( ALL - 59 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - MIN ( ALL - 59 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL 47 * - col2 FROM tab0 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 57 + - 56 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( + + 47 ) FROM tab0
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE 11 / + + col2 > NULL
----

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 66 * + 86 AS col0 FROM tab2
----
5676
5676
5676

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + col2 <> col2
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + 46 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT 40 DIV + - 14 AS col2 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3232
SELECT 40 / + - 14 AS col2 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL + 75 + - COUNT( * ) AS col2 FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + 75 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + + 13 + - COUNT( * ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3234
SELECT + + 13 + - COUNT ( * ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL col1 + - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL col1 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 95 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col1 col0 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT DISTINCT + + col0 * + 44 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL >= - ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + + col0 * + 44 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL >= - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT - 75, - 46 + - MIN( 41 ) AS col1 FROM tab1
----
-75
-87

skipif mysql # not compatible
query II rowsort label-3240
SELECT - 75, - 46 + - MIN ( 41 ) AS col1 FROM tab1
----
-75
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT MAX( + + ( - - 8 ) ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3241
SELECT MAX ( + + ( - - 8 ) ) AS col0 FROM tab2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT COUNT( * ) * 93 * + + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-3242
SELECT COUNT ( * ) * 93 * + + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + COUNT( col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3243
SELECT + COUNT ( col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col1 IN ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - 80 * col2
----

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - 80 * col2
----

query II rowsort
SELECT ALL + ( + col0 ) AS col2, + col2 + - ( - + col1 ) AS col1 FROM tab0 cor0
----
15
128
87
31
97
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IN ( - + 54 + + 35 * + 30 + + - col2, + col0 * - col2, col1 + - + 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IN ( - + 54 + + 35 * + 30 + + - col2, + col0 * - col2, col1 + - + 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2, col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT + + 17 AS col2 FROM tab1 cor0
----
17

query I rowsort
SELECT - ( + 3 ) AS col1 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL - col0 * col1 * + 76 + - col1 AS col0 FROM tab2 AS cor0
----
-178347
-374605
-381967

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 36 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 * - 20 - - - col1 + + + col1 AS col2 FROM tab1
----
184224
69561
92412

query III rowsort
SELECT ALL * FROM tab1 WHERE - 94 <= - col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3255
SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST( NULL AS SIGNED ) * + col1 * + col2 AS col1 FROM tab1
----
1751
NULL

skipif mysql # not compatible
query II rowsort label-3255
SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col1 FROM tab1
----
1751
NULL

query I rowsort
SELECT ALL 14 FROM tab2 WHERE NOT + col2 IS NULL
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3257
SELECT DISTINCT ( + col1 ), + col2 + CAST( + col0 AS SIGNED ) + + col1 FROM tab1
----
14
161
47
206
5
149

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT ( + col1 ), + col2 + CAST ( + col0 AS INTEGER ) + + col1 FROM tab1
----
14
161
47
206
5
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT MAX( 36 ) * + COUNT( * ) * - 98 FROM tab0 AS cor0
----
-10584

skipif mysql # not compatible
query I rowsort label-3258
SELECT MAX ( 36 ) * + COUNT ( * ) * - 98 FROM tab0 AS cor0
----
-10584

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + 68 * + + COUNT( * ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3259
SELECT + 68 * + + COUNT ( * ) FROM tab1 AS cor0
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT + COUNT( * ) DIV + SUM( - 27 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT + COUNT ( * ) / + SUM ( - 27 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col2
----

query I rowsort
SELECT ALL + col1 * ( ( - + col1 ) ) FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE - col1 BETWEEN NULL AND + col0
----

query II rowsort
SELECT col0 AS col1, - 46 FROM tab0 cor0
----
15
-46
87
-46
97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + 18 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 18 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL 28 DIV + ( + col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL 28 / + ( + col0 ) FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - col1 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT - - ( - 88 ) * + COUNT( DISTINCT + 81 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3268
SELECT - - ( - 88 ) * + COUNT ( DISTINCT + 81 ) FROM tab0 AS cor0
----
-88

query I rowsort
SELECT + 3 * 68 AS col1 FROM tab1 AS cor0
----
204
204
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - 36 AS col1, col1 + - - 94 col1 FROM tab2
----
1440
171
2088
161
828
145

query I rowsort
SELECT DISTINCT - 54 * + 24 AS col2 FROM tab1
----
-1296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * 67 col1 FROM tab1
----
2747

query II rowsort
SELECT + col0 * col1 AS col0, + col0 + - col2 * 20 + ( - + col2 ) FROM tab1
----
425
-1154
4277
-1337
714
-1965

query I rowsort
SELECT DISTINCT - col1 * 96 FROM tab0
----
-2016
-7776
-96

query II rowsort
SELECT DISTINCT + col2 + col1, - col1 - + col1 AS col0 FROM tab0 AS cor0
----
100
-2
128
-162
31
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - + COUNT( * ) + 38 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
29

skipif mysql # not compatible
query I rowsort label-3276
SELECT - + COUNT ( * ) + 38 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL ( - SUM( 79 ) ) AS col2 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL ( - SUM ( 79 ) ) AS col2 FROM tab1 AS cor0
----
-237

query I rowsort
SELECT - col2 + - + 6 FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT ALL - 81 + - col0 FROM tab2 AS cor0
----
-127
-145
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL MAX( ALL + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL MAX ( ALL + col0 ) FROM tab2 cor0
----
75

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col1 + - 34 FROM tab2
----
17
33
43

query I rowsort
SELECT ALL - ( + 58 ) FROM tab1 WHERE NOT 21 + - ( 91 ) + col2 / + - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT ( - COUNT( * ) ) + 97 AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT ( - COUNT ( * ) ) + 97 AS col1 FROM tab1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT + CAST( NULL AS SIGNED ) - + + COUNT( * ) + + 65 * + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + + 65 * + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT 81 - + 20 * - + CAST( + SUM( DISTINCT + col2 ) AS SIGNED ) FROM tab2
----
2501

skipif mysql # not compatible
query I rowsort label-3287
SELECT 81 - + 20 * - + CAST ( + SUM ( DISTINCT + col2 ) AS INTEGER ) FROM tab2
----
2501

query I rowsort
SELECT ALL + 68 + + - 58 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT col2 * + col0 * 21 FROM tab2
----
22218
53760
91350

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + SUM( DISTINCT + col1 ) * + 26 AS col1 FROM tab0
----
2678

skipif mysql # not compatible
query I rowsort label-3290
SELECT + SUM ( DISTINCT + col1 ) * + 26 AS col1 FROM tab0
----
2678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT ALL + CAST( + 21 AS SIGNED ) * + + col1 + - col1 FROM tab0 WHERE NOT NULL < - col0 + col1
----

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + CAST ( + 21 AS INTEGER ) * + + col1 + - col1 FROM tab0 WHERE NOT NULL < - col0 + col1
----

query I rowsort
SELECT ALL ( - ( col2 ) ) + - col2 * + 8 + - col2 - + col1 * 32 / col0 AS col2 FROM tab1 WHERE + - col0 + col0 IS NULL
----

query I rowsort
SELECT col0 * - - col0 * 61 * + col0 + - col2 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + ( - - 78 ) col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 2 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 99 * - 48 FROM tab1 AS cor0
----
4752
4752
4752

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + col0 + + ( - - 63 )
----

query I rowsort
SELECT 67 * + - col1 AS col2 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT + 99 * - 67 * - + col1 AS col1 FROM tab2
----
338283
444411
510741

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT - 5 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT - 5 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3302
SELECT col1, col2 DIV - col2 FROM tab1
----
14
-1
47
-1
5
-1

skipif mysql # not compatible
query II rowsort label-3302
SELECT col1, col2 / - col2 FROM tab1
----
14
-1
47
-1
5
-1

query I rowsort
SELECT ALL + 44 * + col1 AS col1 FROM tab0
----
3564
44
924

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT ALL - 38 DIV - 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - 38 / - 85 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL - COUNT( * ) + - - COUNT( DISTINCT - - col0 ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - COUNT ( * ) + - - COUNT ( DISTINCT - - col0 ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT + COUNT( DISTINCT ( col1 ) ) * COUNT( - col2 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + COUNT ( DISTINCT ( col1 ) ) * COUNT ( - col2 ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT ALL + 97, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-3308
SELECT ALL + 97, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
97
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT - col2 * ( + + ( + 19 ) ) + + CAST( - - col0 AS SIGNED ) * - + col0 AS col1 FROM tab1 cor0
----
-4425
-8346
-9573

skipif mysql # not compatible
query I rowsort label-3309
SELECT - col2 * ( + + ( + 19 ) ) + + CAST ( - - col0 AS INTEGER ) * - + col0 AS col1 FROM tab1 cor0
----
-4425
-8346
-9573

query I rowsort
SELECT ALL + col0 + - + 56 AS col1 FROM tab2
----
-10
19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT + ( - MIN( - - col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + ( - MIN ( - - col0 ) ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3312
SELECT * FROM tab0 AS cor0 WHERE - ( - - col1 ) - + + ( + - col1 ) * + + 47 IN ( + col1, - col2 * - col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3312
SELECT * FROM tab0 AS cor0 WHERE - ( - - col1 ) - + + ( + - col1 ) * + + 47 IN ( + col1, - col2 * - col0 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT DISTINCT 98 DIV - - ( - col2 ) AS col0 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT 98 / - - ( - col2 ) AS col0 FROM tab2 cor0
----
-1
-2
-4

query I rowsort
SELECT + - AVG ( + 90 ) FROM tab1 cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - COUNT( * ) * + COUNT( * ) - + ( + 78 ) + - + 59 AS col2 FROM tab0 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-3315
SELECT - COUNT ( * ) * + COUNT ( * ) - + ( + 78 ) + - + 59 AS col2 FROM tab0 AS cor0
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT - 43 * - COUNT( * ) * - + CAST( NULL AS SIGNED ) + - ( - ( 86 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 43 * - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - ( - ( 86 ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 IS NULL OR NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT SUM( 85 ) + + + MIN( + - 20 ) FROM tab1
----
235

skipif mysql # not compatible
query I rowsort label-3319
SELECT SUM ( 85 ) + + + MIN ( + - 20 ) FROM tab1
----
235

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT col0 * + + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - col1 + + + col1 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + SUM( ALL 17 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3323
SELECT + SUM ( ALL 17 ) col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 87 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT ALL col2 AS col0, + col0 * - col0 AS col2 FROM tab2
----
23
-2116
40
-4096
58
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3326
SELECT ALL - COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3326
SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

query I rowsort
SELECT DISTINCT 88 + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 4 col0, - 34 FROM tab0 AS cor0
----
4
-34

query I rowsort
SELECT DISTINCT - + col2 * + 37 AS col1 FROM tab1 AS cor0
----
-2183
-2516
-3552

query II rowsort
SELECT + - ( col1 ) AS col1, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT - 52 DIV - - 66 - - col2 * - 64 + + col1 FROM tab0 AS cor0
----
-2927
-619
-6335

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 52 / - - 66 - - col2 * - 64 + + col1 FROM tab0 AS cor0
----
-2927
-619
-6335

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - + 15
----

query I rowsort
SELECT ALL + 77 + - - col2 AS col0 FROM tab1 AS cor0
----
136
145
173

query I rowsort
SELECT + col0 + col0 + col1 + + col0 AS col1 FROM tab1 AS cor0
----
167
260
320

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT 36 + - col2 + + col2 FROM tab0
----
36
36
36

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND + col1
----

query I rowsort
SELECT 85 * - - col1 FROM tab1
----
1190
3995
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 8 + col2 col0 FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT - col0 * + + 72 - col2 FROM tab0
----
-1127
-6274
-7083

onlyif mysql # aggregate syntax: 
query II rowsort label-3341
SELECT ALL 63, COUNT( * ) AS col0 FROM tab1
----
63
3

skipif mysql # not compatible
query II rowsort label-3341
SELECT ALL 63, COUNT ( * ) AS col0 FROM tab1
----
63
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT MAX( DISTINCT - col1 ) + ( - + 37 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-3342
SELECT MAX ( DISTINCT - col1 ) + ( - + 37 ) FROM tab1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL + SUM( ALL + col1 ) - COUNT( * ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + SUM ( ALL + col1 ) - COUNT ( * ) AS col2 FROM tab2
----
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - + 5 > + col0
----

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 67 * - - col2 > - col2 / 34
----

query I rowsort
SELECT col0 - - + 42 AS col0 FROM tab1
----
127
133
93

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 - 59 + + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL SUM( + 58 ) AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL SUM ( + 58 ) AS col2 FROM tab0
----
174

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 33 IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - col1 col1 FROM tab2 cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 - + col1 BETWEEN ( + col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= - 13 * + col0 * 75 + - ( - 19 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ( - SUM( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3357
SELECT ( - SUM ( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 AS cor0 WHERE + 74 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT CAST( col0 AS SIGNED ) FROM tab0 cor0 WHERE 84 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3359
SELECT CAST ( col0 AS INTEGER ) FROM tab0 cor0 WHERE 84 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col0 / - col1 * col0 * - + col0 * + + col1 + - 37 - + + 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3362
SELECT DISTINCT col1, col0 DIV - col1 FROM tab0
----
1
-97
21
-4
81
0

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT col1, col0 / - col1 FROM tab0
----
1
-97
21
-4
81
0

query II rowsort
SELECT ALL + col2 AS col2, - col1 + col2 + - 82 AS col0 FROM tab2
----
23
-110
40
-119
58
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - COUNT( * ) + + + 48 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3364
SELECT - COUNT ( * ) + + + 48 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT DISTINCT + 19 + - COUNT( * ) + - 8 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT + 19 + - COUNT ( * ) + - 8 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL + ( - col1 ) + 36 FROM tab1 AS cor0
----
-11
22
31

query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * - 99 - + col0 FROM tab0 AS cor0
----
-11229
-1518
-9899

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3368
SELECT CAST( col0 AS SIGNED ) col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3368
SELECT CAST ( col0 AS INTEGER ) col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT - 74 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-74

query I rowsort
SELECT DISTINCT + 48 * - 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1200

query I rowsort
SELECT DISTINCT 39 - - col1 AS col1 FROM tab1 AS cor0
----
44
53
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT 17 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3372
SELECT 17 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
14

query I rowsort
SELECT + col2 + + + col2 + + col1 FROM tab2 AS cor0
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT DISTINCT - 86 * ( + COUNT( * ) ) FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT - 86 * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT ALL - CAST( NULL AS SIGNED ) * - 7 + + - 8 + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3375
SELECT ALL - CAST ( NULL AS INTEGER ) * - 7 + + - 8 + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 > + col1 * - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT + - 67 DIV col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT + - 67 / col0 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT - 90 DIV 36 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3378
SELECT - 90 / 36 AS col2 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - 11 * 86 <> - 4 + ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3380
SELECT ALL * FROM tab0 WHERE NULL = CAST( col0 AS SIGNED ) + - 75 * - col1 + - 66
----

skipif mysql # not compatible
query III rowsort label-3380
SELECT ALL * FROM tab0 WHERE NULL = CAST ( col0 AS INTEGER ) + - 75 * - col1 + - 66
----

query I rowsort
SELECT + col2 * + col1 + - - col0 AS col1 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 / + 45 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + - col2 + col0 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3384
SELECT ALL CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - COUNT( * ) + + 25 FROM tab0 WHERE NOT col0 + - col0 * + col2 IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - COUNT ( * ) + + 25 FROM tab0 WHERE NOT col0 + - col0 * + col2 IS NOT NULL
----
25

query I rowsort
SELECT DISTINCT 45 * - col2 - - col0 FROM tab2 WHERE NOT - col0 * 24 - col0 * - col0 IS NULL
----
-1736
-2535
-989

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - 87 + + col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * col0 - - 40 col0 FROM tab0
----
-1874
-2094
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3390
SELECT COUNT( * ) DIV 87 + ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( * ) / 87 + ( - COUNT ( * ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( 29 ) = + ( col2 ) + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3392
SELECT DISTINCT - ( MIN( CAST( NULL AS SIGNED ) ) ) * CAST( MIN( ALL + col2 ) AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - ( MIN ( CAST ( NULL AS INTEGER ) ) ) * CAST ( MIN ( ALL + col2 ) AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT COUNT( * ) * 66 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3393
SELECT COUNT ( * ) * 66 FROM tab1
----
198

query I rowsort
SELECT ALL - ( col2 ) * - col1 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT CAST( NULL AS SIGNED ) * - 11 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3395
SELECT CAST ( NULL AS INTEGER ) * - 11 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 52 >= ( + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 22 AS col2 FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT + 41 * + MIN( ALL col2 ) + + 25 AS col2 FROM tab1
----
2444

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + 41 * + MIN ( ALL col2 ) + + 25 AS col2 FROM tab1
----
2444

query I rowsort
SELECT DISTINCT - 70 + + col1 * - col2 FROM tab1
----
-1414
-3266
-365

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT 47 * + col2 + - 6 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > + col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3401
SELECT 47 * + col2 + - 6 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > + col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + SUM( ( + col1 ) ) * 15 col2 FROM tab1
----
990

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT + SUM ( ( + col1 ) ) * 15 col2 FROM tab1
----
990

query I rowsort
SELECT - col0 * + 49 AS col1 FROM tab2
----
-2254
-3136
-3675

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1 * col1 )
----

query I rowsort
SELECT ( 91 ) AS col1 FROM tab1
----
91
91
91

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab1 WHERE NOT NULL = + ( + ( - col1 ) ) * + col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT - 18 * + COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT - 18 * + COUNT ( * ) FROM tab2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT SUM( CAST( + 65 AS SIGNED ) ) AS col0 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT SUM ( CAST ( + 65 AS INTEGER ) ) AS col0 FROM tab1
----
195

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - ( col0 ) + - 75 * + col1 AS col2 FROM tab1
----
-1101
-3616
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT COUNT( ( + col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3411
SELECT COUNT ( ( + col2 ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 53 + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT + ( COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + ( COUNT ( * ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + col0 + - ( col1 ) FROM tab2 WHERE NOT ( col1 ) - - col2 BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT + col1 * 99 AS col1 FROM tab2 cor0
----
5049
6633
7623

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 46 * col1 + + ( + col2 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT 74 + MIN( DISTINCT + col2 + 53 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT 74 + MIN ( DISTINCT + col2 + 53 ) FROM tab2 AS cor0
----
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT col1 * + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + ( + 25 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3423
SELECT + COUNT( * ) DIV MAX( ALL 75 ) + 70 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3423
SELECT + COUNT ( * ) / MAX ( ALL 75 ) + 70 FROM tab0
----
70

query I rowsort
SELECT - 74 + 45 FROM tab2
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - 79 ) + - 23 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 85 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( - 11 )
----

query I rowsort
SELECT DISTINCT + - col1 * 34 AS col0 FROM tab2 cor0
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT + - 54 * + COUNT( * ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + - 54 * + COUNT ( * ) FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL MAX( ALL col1 ) FROM tab0 AS cor0 WHERE NOT - col1 + + col2 <= col1 * - col2 + ( col0 - 55 )
----
81

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL MAX ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT - col1 + + col2 <= col1 * - col2 + ( col0 - 55 )
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 43 col1 FROM tab0 cor0
----
3741
4171
645

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + ( col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT ALL + 59 DIV + MAX( 56 * col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 59 / + MAX ( 56 * col0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT + col0 DIV + - 95 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3434
SELECT + col0 / + - 95 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3435
SELECT - SUM( col0 ) DIV - 60 AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3435
SELECT - SUM ( col0 ) / - 60 AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT 66 * - AVG ( DISTINCT CAST( - col1 AS SIGNED ) ) FROM tab0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT 66 * - AVG ( DISTINCT CAST ( - col1 AS INTEGER ) ) FROM tab0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col1 AS col1 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3438
SELECT DISTINCT + CAST( ( + CAST( - col2 AS DECIMAL ) ) AS DECIMAL ) + - col0 / + col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + CAST ( ( + CAST ( - col2 AS REAL ) ) AS REAL ) + - col0 / + col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 73 * - 74 AS col2 FROM tab1
----
-5402

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 / - col0 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT ALL + - 54 DIV + - ( + COUNT( * ) ) - 82 AS col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + - 54 / + - ( + COUNT ( * ) ) - 82 AS col1 FROM tab0 AS cor0
----
-64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + + col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3443
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 31 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 31 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - 64 * + COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - 64 * + COUNT ( * ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT ALL + col2 + + + col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE col2 + + 14 IN ( - col1 + - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT 84 + MIN( 78 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT 84 + MIN ( 78 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
165

query I rowsort
SELECT DISTINCT 92 + - + col1 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - - SUM( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3449
SELECT - - SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( + + 31 )
----

query I rowsort
SELECT DISTINCT - col0 + - - col1 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT COUNT( * ) + + 87 AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3452
SELECT COUNT ( * ) + + 87 AS col2 FROM tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT 65 + + - 15 + + - col1 FROM tab0
----
-31
29
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT + 13 + - col0 DIV + 40 FROM tab1
----
11
11
12

skipif mysql # not compatible
query I rowsort label-3454
SELECT + 13 + - col0 / + 40 FROM tab1
----
11
11
12

query III rowsort
SELECT * FROM tab2 WHERE + col2 > - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT col1 + - 39 * col2 DIV col0 + col1 FROM tab0
----
-37
38
40

skipif mysql # not compatible
query I rowsort label-3456
SELECT col1 + - 39 * col2 / col0 + col1 FROM tab0
----
-37
38
40

query I rowsort
SELECT ALL col2 + + 79 * + col0 AS col1 FROM tab2
----
3657
5096
5983

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( ( 35 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN + col0 AND NULL
----
75
67
58

query I rowsort
SELECT ALL + 64 + + - col1 FROM tab1 AS cor0
----
17
50
59

query I rowsort
SELECT 65 * - ( - 49 ) - - 0 * 2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3185
3185
3185

query I rowsort
SELECT col1 + 43 FROM tab0 cor0 WHERE col0 * - + 1 IS NULL
----

query I rowsort
SELECT + - ( 4 ) FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + - ( + - MAX( DISTINCT + - ( + col1 ) ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3465
SELECT + - ( + - MAX ( DISTINCT + - ( + col1 ) ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3466
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3466
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * - + col2 * 41 FROM tab0 AS cor0
----
401841
4100
90569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3468
SELECT DISTINCT - COUNT( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - COUNT ( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) AND col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 * + - col2 col1 FROM tab0 AS cor0
----
2350
4950
500

query I rowsort
SELECT col2 * ( - 56 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3471
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT - CAST( - - 40 AS SIGNED ) FROM tab2 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-3472
SELECT - CAST ( - - 40 AS INTEGER ) FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT - 65 * + - 22 * col2 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
141471
14290
67163

skipif mysql # not compatible
query I rowsort label-3473
SELECT - 65 * + - 22 * col2 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
141471
14290
67163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT COUNT( * ) * + 42 AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT COUNT ( * ) * + 42 AS col2 FROM tab1
----
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3476
SELECT 40 * + col0 + + col0 AS col2 FROM tab0 WHERE NOT + ( - col2 ) - - 52 * + col0 > CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3476
SELECT 40 * + col0 + + col0 AS col2 FROM tab0 WHERE NOT + ( - col2 ) - - 52 * + col0 > CAST ( + col0 AS REAL )
----

query II rowsort
SELECT ALL + col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT + 34 IN ( + 32, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + 54 col0, col0 FROM tab0
----
2538
15
5346
97
540
87

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col0 * + 62 * col1 * 76 + + col1 * col1 ) <> ( + 71 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT - 78 * - COUNT( * ) AS col0 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - 78 * - COUNT ( * ) AS col0 FROM tab0
----
234

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab1 WHERE NULL IS NULL
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT - col1 DIV ( - col2 ) * - col2 FROM tab0
----
-20
-47
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT - col1 / ( - col2 ) * - col2 FROM tab0
----
-20
-47
0

query I rowsort
SELECT - col0 * + col0 + + col0 AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-2070
-4032
-5550

query I rowsort
SELECT ALL + + col1 * - + 30 AS col0 FROM tab1 AS cor0
----
-1410
-150
-420

query II rowsort
SELECT DISTINCT - 14 AS col1, col0 FROM tab0 AS cor0
----
-14
15
-14
87
-14
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT MIN( ALL 59 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

skipif mysql # not compatible
query I rowsort label-3487
SELECT MIN ( ALL 59 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query I rowsort
SELECT + col1 * + 83 + - col2 FROM tab2 AS cor0
----
4210
5503
6351

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3489
SELECT DISTINCT - col0 DIV CAST( NULL AS SIGNED ) AS col1, + col1 DIV col2 * ( - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
102
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3489
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) AS col1, + col1 / col2 * ( - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
102
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + - ( + col0 ) col1 FROM tab0 AS cor0
----
-163
-173
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) + - - col2 NOT IN ( + 17 / col1 * - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 63 + - 23 AS col2 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL <= ( + 44 + - 6 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + - - 87 * 75 ) <> - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - 62 * - 6 * + col0 FROM tab2
----
17112
23808
27900

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) = ( + + col2 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 95 ) - - - col0 + 59 col2 FROM tab0
----
139
57
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT ALL 7 + - + ( col1 ) DIV + col0 AS col1 FROM tab0
----
2
7
7

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL 7 + - + ( col1 ) / + col0 AS col1 FROM tab0
----
2
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT 32 AS col2, - SUM( ALL + 67 ) FROM tab2
----
32
-201

skipif mysql # not compatible
query II rowsort label-3500
SELECT 32 AS col2, - SUM ( ALL + 67 ) FROM tab2
----
32
-201

query I rowsort
SELECT DISTINCT + 45 - 92 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3502
SELECT COUNT( * ) col0, 6 col2 FROM tab0
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3502
SELECT COUNT ( * ) col0, 6 col2 FROM tab0
----
3
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - 39 col1 FROM tab0
----
-18
-38
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 40 * - 38 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT DISTINCT - col2 DIV - 53 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT - col2 / - 53 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3506
SELECT - 51 * + - 72 / + col1 AS col0, col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( + + 9 )
----

skipif mysql # not compatible
query II rowsort label-3506
SELECT - 51 * + - 72 / + col1 AS col0, col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( + + 9 )
----

query I rowsort
SELECT DISTINCT + + col0 + + + 46 AS col1 FROM tab1 cor0
----
131
137
97

query I rowsort
SELECT - + col0 * - col0 FROM tab0 WHERE NOT ( - ( - - 98 ) + - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - + 53 AS col1 FROM tab0 cor0
----
-53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND + + col1
----

query II rowsort
SELECT DISTINCT 35 AS col1, 98 FROM tab0
----
35
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 67 + - - 49 FROM tab1
----
51
116
85
116
91
116

query I rowsort
SELECT DISTINCT + col2 * - + col1 * + col0 AS col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - ( + - ( - 53 ) ) * - ( - col0 ) * col1 )
----

query I rowsort
SELECT + 24 * + - 9 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-216
-216
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT DISTINCT - CAST( - ( 1 ) AS SIGNED ) + - SUM( DISTINCT - - 3 ) col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT DISTINCT - CAST ( - ( 1 ) AS INTEGER ) + - SUM ( DISTINCT - - 3 ) col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 26 AS col2 FROM tab2 AS cor0 WHERE ( 13 ) NOT BETWEEN - col0 AND - - col2
----

query I rowsort
SELECT - + 91 + + col1 + + 31 FROM tab2 AS cor0
----
-9
17
7

query I rowsort
SELECT ALL - ( - col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT COUNT( ALL + col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3521
SELECT COUNT ( ALL + col0 ) col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 99 AS col2, - 5 FROM tab1
----
99
-5

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 10, col2 AS col0 FROM tab0 cor0
----
-10
10
-10
47
-10
99

query I rowsort
SELECT - 53 - - - col0 FROM tab2 AS cor0
----
-117
-128
-99

query I rowsort
SELECT ALL 28 + + - col2 AS col2 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT + 46 + CAST( + + SUM( - + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + 46 + CAST ( + + SUM ( - + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3528
SELECT - + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT - + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) + - col0 + - - col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query II rowsort label-3530
SELECT col0 + - col2, - col2 DIV + col2 AS col2 FROM tab2
----
17
-1
23
-1
24
-1

skipif mysql # not compatible
query II rowsort label-3530
SELECT col0 + - col2, - col2 / + col2 AS col2 FROM tab2
----
17
-1
23
-1
24
-1

query I rowsort
SELECT col2 + 14 AS col2 FROM tab1
----
110
73
82

query II rowsort
SELECT DISTINCT col2 - 80 AS col0, col2 FROM tab1
----
-12
68
-21
59
16
96

query III rowsort
SELECT * FROM tab2 WHERE + - 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3534
SELECT ALL + ( - col0 ), - ( - - col2 ) DIV + - col1 + col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

skipif mysql # not compatible
query II rowsort label-3534
SELECT ALL + ( - col0 ), - ( - - col2 ) / + - col1 + col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL - ( COUNT( * ) ) - - ( + + 70 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - ( COUNT ( * ) ) - - ( + + 70 ) FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + 78 * + - COUNT( DISTINCT col0 ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3536
SELECT + 78 * + - COUNT ( DISTINCT col0 ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + COUNT( ALL col0 ) * + - 20 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + COUNT ( ALL col0 ) * + - 20 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - SUM( + 1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - SUM ( + 1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT + + COUNT( ALL - 47 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= + - col0 - - + 82 * - + 6
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT + + COUNT ( ALL - 47 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= + - col0 - - + 82 * - + 6
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 BETWEEN col0 + + 76 AND + col2 )
----

query I rowsort
SELECT + col2 / + - col2 FROM tab0 AS cor0 WHERE NOT col2 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3542
SELECT - 31 AS col1, 75 + + col0 + + col2 * CAST( NULL AS SIGNED ) + + col1 FROM tab1 cor0
----
-31
NULL
-31
NULL
-31
NULL

skipif mysql # not compatible
query II rowsort label-3542
SELECT - 31 AS col1, 75 + + col0 + + col2 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1 cor0
----
-31
NULL
-31
NULL
-31
NULL

query II rowsort
SELECT DISTINCT - col2, - 22 AS col2 FROM tab0 AS cor0
----
-10
-22
-47
-22
-99
-22

query I rowsort
SELECT ALL - - 93 + - ( + col1 ) FROM tab2 AS cor0
----
16
26
42

query I rowsort
SELECT DISTINCT - col2 + col1 + + - col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3546
SELECT col2, col1 + + 61 AS col1 FROM tab1 WHERE NOT 99 + + col1 / - col2 * - - 11 + - + col0 IN ( + CAST( NULL AS SIGNED ) - + - 8 / + col2, - col0 )
----

skipif mysql # not compatible
query II rowsort label-3546
SELECT col2, col1 + + 61 AS col1 FROM tab1 WHERE NOT 99 + + col1 / - col2 * - - 11 + - + col0 IN ( + CAST ( NULL AS INTEGER ) - + - 8 / + col2, - col0 )
----

query I rowsort
SELECT ALL + 52 * + col2 FROM tab1
----
3068
3536
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - COUNT( - + 5 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3548
SELECT - COUNT ( - + 5 ) FROM tab0
----
-3

query I rowsort
SELECT + - 17 * - col1 AS col0 FROM tab0 WHERE NOT + col0 * + ( + col1 ) + - col0 * col0 IS NULL
----
1377
17
357

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + MIN( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + MIN ( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND + 43
----

query I rowsort
SELECT DISTINCT + col0 * + + 47 + + col1 FROM tab0
----
4110
4560
786

query I rowsort
SELECT 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT col1 + - + col2 DIV + + col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3554
SELECT col1 + - + col2 / + + col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3555
SELECT ALL + + 60 DIV - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + + 60 / - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + - COUNT( * ) + + + 86 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3556
SELECT + - COUNT ( * ) + + + 86 FROM tab1 AS cor0
----
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - 51
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT + + ( + MIN( ALL + - col1 ) ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT + + ( + MIN ( ALL + - col1 ) ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT col0 DIV - 74 + ( + col2 ) + - col1 AS col2 FROM tab1 cor0
----
20
53
82

skipif mysql # not compatible
query I rowsort label-3560
SELECT col0 / - 74 + ( + col2 ) + - col1 AS col2 FROM tab1 cor0
----
20
53
82

query II rowsort
SELECT ALL - col0 AS col0, + 31 AS col1 FROM tab1 AS cor0
----
-51
31
-85
31
-91
31

query I rowsort
SELECT + col2 * - - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 49
----

query I rowsort
SELECT ALL + 35 * + - col2 + + + col1 + + col2 FROM tab2 cor0
----
-1283
-1905
-731

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - 58 * 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> col1 + - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT CAST( + + col2 AS SIGNED ) * 34 + col2 FROM tab1
----
2065
2380
3360

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) * 34 + col2 FROM tab1
----
2065
2380
3360

query I rowsort
SELECT ALL col0 * col1 + col0 + + - col0 + + col0 AS col0 FROM tab1
----
4368
510
765

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + col2 + - + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + 72 * + + col1 FROM tab0
----
1599
169
5847

query I rowsort
SELECT 59 - - 35 FROM tab2
----
94
94
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT ALL COUNT( * ) AS col1, + 20 FROM tab2
----
3
20

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL COUNT ( * ) AS col1, + 20 FROM tab2
----
3
20

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + + col0 AND col0
----

query I rowsort
SELECT DISTINCT 96 * + col0 * - col1 AS col0 FROM tab0
----
-116640
-175392
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL + + CAST( - + col2 AS SIGNED ) + - col0 AS col1 FROM tab0 WHERE NOT - + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + + CAST ( - + col2 AS INTEGER ) + - col0 AS col1 FROM tab0 WHERE NOT - + col1 < NULL
----

query I rowsort
SELECT ALL ( 86 ) AS col0 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT ALL + col0 * - col2 * + 55 AS col2 FROM tab0 AS cor0
----
-38775
-47850
-528165

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - COUNT( * ) * 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-126

skipif mysql # not compatible
query I rowsort label-3577
SELECT - COUNT ( * ) * 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 4 * + 41 - + 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-3579
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3580
SELECT MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 61 ) * col0 - - col1 + - + col2 * - col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 85 AS col1, + 29 * - 70 AS col1 FROM tab2
----
85
-2030
85
-2030
85
-2030

query I rowsort
SELECT + col1 * 22 AS col0 FROM tab1
----
1034
110
308

query I rowsort
SELECT col0 * - + col0 * col0 AS col0 FROM tab1
----
-132651
-614125
-753571

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3585
SELECT * FROM tab0 WHERE NOT ( ( - ( + CAST( + col0 AS SIGNED ) ) ) NOT BETWEEN + - col0 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-3585
SELECT * FROM tab0 WHERE NOT ( ( - ( + CAST ( + col0 AS INTEGER ) ) ) NOT BETWEEN + - col0 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT + col1 DIV ( - col0 ) * col2 + - 10 + col2 FROM tab1
----
49
58
86

skipif mysql # not compatible
query I rowsort label-3586
SELECT + col1 / ( - col0 ) * col2 + - 10 + col2 FROM tab1
----
49
58
86

query II rowsort
SELECT DISTINCT - col0 AS col1, - col0 FROM tab1
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE col1 + col0 <= + col0 * + col2
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 + col1 col0 FROM tab2 AS cor0
----
-24
-8
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT - SUM( DISTINCT + 17 ) + - 57 AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - SUM ( DISTINCT + 17 ) + - 57 AS col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL - col0 + - - ( col2 ) - + 67 + - col1 * + - col2 * - col0 * - col2 AS col0 FROM tab1
----
1479332
19776758
6580202

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 9 AS col2 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * - col0 * - col0 * col0 col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT DISTINCT - - col2 + + + CAST( - 21 AS SIGNED ) - - col0 AS col2 FROM tab1 AS cor0
----
123
126
138

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - - col2 + + + CAST ( - 21 AS INTEGER ) - - col0 AS col2 FROM tab1 AS cor0
----
123
126
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3598
SELECT DISTINCT + 88 * - MAX( DISTINCT + 20 ) + - ( - 87 ) DIV + 91 AS col2 FROM tab0 cor0
----
-1760

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT + 88 * - MAX ( DISTINCT + 20 ) + - ( - 87 ) / + 91 AS col2 FROM tab0 cor0
----
-1760

query I rowsort
SELECT ALL - col0 + 53 * col0 AS col0 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT DISTINCT SUM( DISTINCT + 48 ) * CAST( NULL AS SIGNED ) * - + 7 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT SUM ( DISTINCT + 48 ) * CAST ( NULL AS INTEGER ) * - + 7 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 22 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT + 46 DIV + - 85 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3602
SELECT + 46 / + - 85 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT + col0 + - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-3603
SELECT + col0 + - col2 / col2 AS col2 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT col1 + + col1 + col1 AS col2 FROM tab2 AS cor0
----
153
201
231

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT + 58 + + COUNT( - col1 ), + COUNT( * ) AS col1 FROM tab2
----
61
3

skipif mysql # not compatible
query II rowsort label-3605
SELECT + 58 + + COUNT ( - col1 ), + COUNT ( * ) AS col1 FROM tab2
----
61
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 96 * + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 96 * + col0 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT - col1, - 78 AS col2 FROM tab1
----
-14
-78
-47
-78
-5
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 42 * - - 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + + ( - col1 ) FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL + MAX( + col0 ) * - 25 col1 FROM tab2 AS cor0
----
-1875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3612
SELECT ALL + MAX ( + col0 ) * - 25 col1 FROM tab2 AS cor0
----
-1875

query I rowsort
SELECT ALL + - col2 * + col1 * 87 FROM tab0 WHERE + col0 + + ( + 24 ) + + col0 * - - col0 * 14 BETWEEN - col1 + - 95 - col0 + + 40 * - col2 - - - 64 AND + col1
----

query I rowsort
SELECT + col0 * + 68 FROM tab2 cor0
----
3128
4352
5100

query I rowsort
SELECT ALL col0 * - 20 FROM tab1 AS cor0
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3616
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3616
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + CAST ( + col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT DISTINCT - col2 DIV 71 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - col2 / 71 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - + col1 * - 1 + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

query II rowsort
SELECT ALL 97 * - + col2 AS col0, - col0 FROM tab0
----
-4559
-15
-9603
-97
-970
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab0 WHERE + 73 + + col1 >= + + col0
----
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + MAX( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3621
SELECT + MAX ( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-5

query I rowsort
SELECT - + ( - + col0 ) - + ( - - col2 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL col1 + - 16 AS col1 FROM tab1
----
-11
-2
31

query II rowsort
SELECT col1, - col1 * col0 FROM tab0
----
1
-97
21
-1827
81
-1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT DISTINCT - ( - 67 ) - + + CAST( + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
20
53
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT DISTINCT - ( - 67 ) - + + CAST ( + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
20
53
62

query I rowsort
SELECT DISTINCT - - 3 * - col2 + col1 + - col2 AS col1 FROM tab2 cor0 WHERE NOT ( 84 ) <= NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 90 - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + ( col1 ) FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - - - col1 IS NOT NULL
----

query I rowsort
SELECT - 94 FROM tab1 WHERE NOT + + col2 * - 21 + + col1 >= - - col1
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ( - - ( MAX( ALL + 62 ) ) ) AS col2 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3631
SELECT ( - - ( MAX ( ALL + 62 ) ) ) AS col2 FROM tab0
----
62

query I rowsort
SELECT ALL + col2 * - - col1 * - col1 AS col0 FROM tab0
----
-308367
-4410
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( 14 )
----

query I rowsort
SELECT 10 * - col2 FROM tab1 cor0
----
-590
-680
-960

query I rowsort
SELECT ALL col1 * - 52 * + + 62 FROM tab2
----
-164424
-216008
-248248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) * col1 * 58 col1 FROM tab1
----
-24650
-248066
-41412

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3638
SELECT col1 + + + col2 / - - col2 / - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + ( col0 ) NOT IN ( - CAST( + + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3638
SELECT col1 + + + col2 / - - col2 / - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + ( col0 ) NOT IN ( - CAST ( + + col0 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT + + CAST( + 33 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3639
SELECT + + CAST ( + 33 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
33
33
33

query II rowsort
SELECT - col1 AS col1, + 88 - + - 90 AS col2 FROM tab0 cor0
----
-1
178
-21
178
-81
178

query I rowsort
SELECT + 36 AS col0 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + + ( - col0 ) + - 73 + - 99 * + - col2 * + - col1 * - 85 AS col0 FROM tab1 AS cor0
----
11309636
2482267
26894176

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 4 + - + 42 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT CAST( - + col2 AS SIGNED ) + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT CAST ( - + col2 AS INTEGER ) + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT DISTINCT col2 / + col2 + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3646
SELECT DISTINCT col2 / + col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3647
SELECT DISTINCT * FROM tab1 WHERE NOT - - 38 <> - + CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3647
SELECT DISTINCT * FROM tab1 WHERE NOT - - 38 <> - + CAST ( - col0 AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL + 40 DIV 59 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + 40 / 59 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT CAST( NULL AS SIGNED ) + - 79 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT CAST ( NULL AS INTEGER ) + - 79 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, - col1 + - - 56 + + col0 col1 FROM tab2
----
-23
51
-40
43
-58
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col0 + - + 85 col1 FROM tab1
----
51
-34
85
0
91
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL + MAX( ALL col1 ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + MAX ( ALL col1 ) AS col2 FROM tab0 cor0
----
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 47 / + 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL - SUM( ALL 77 ) AS col0 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - SUM ( ALL 77 ) AS col0 FROM tab0 AS cor0
----
-231

query II rowsort
SELECT ALL 22 * + 81 + - ( + col2 ) AS col0, + 69 * - 71 AS col2 FROM tab0 AS cor0
----
1683
-4899
1735
-4899
1772
-4899

query I rowsort
SELECT DISTINCT - 62 - 49 + - col0 * + col1 - - col2 AS col1 FROM tab1
----
-4320
-477
-729

query I rowsort
SELECT ( 98 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT SUM( - 7 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT SUM ( - 7 ) FROM tab2 AS cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + + 16 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3660
SELECT - ( + 7 ) DIV SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT - ( + 7 ) / SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL - CAST( - col2 AS SIGNED ) + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - CAST ( - col2 AS INTEGER ) + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT - - 69 * col0 AS col0 FROM tab0 cor0
----
1035
6003
6693

query II rowsort
SELECT + - col2 * - col2, - 84 + + col2 AS col0 FROM tab2 AS cor0
----
1600
-44
3364
-26
529
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3664
SELECT DISTINCT 94, col2 - col2 AS col1 FROM tab1 cor0 WHERE + CAST( + + col2 AS DECIMAL ) <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-3664
SELECT DISTINCT 94, col2 - col2 AS col1 FROM tab1 cor0 WHERE + CAST ( + + col2 AS REAL ) <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 + ( - - 41 ) FROM tab1 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT 3 * - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3667
SELECT 3 * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-9

query I rowsort
SELECT 32 * - 5 / - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 7 * - 32 AS col0 FROM tab2
----
-224
-224
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT DISTINCT 27, MAX( + col2 ) AS col2 FROM tab0
----
27
99

skipif mysql # not compatible
query II rowsort label-3670
SELECT DISTINCT 27, MAX ( + col2 ) AS col2 FROM tab0
----
27
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3671
SELECT DISTINCT - 51, col0 DIV + - 48 AS col2 FROM tab2
----
-51
-1
-51
0

skipif mysql # not compatible
query II rowsort label-3671
SELECT DISTINCT - 51, col0 / + - 48 AS col2 FROM tab2
----
-51
-1
-51
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL < col2 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + ( - 29 )
----

query II rowsort
SELECT + + 97 AS col1, + col2 * + col0 AS col1 FROM tab2 AS cor0
----
97
1058
97
2560
97
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 29 + + col1 * 61 * - ( ( col2 ) ) - col0 + col1 + - col1 / + - col2 * col0 <= + + col2 - 62
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3677
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 * + col2 * + + CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3677
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 * + col2 * + + CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL + COUNT( * ) + + + 84 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + COUNT ( * ) + + + 84 FROM tab0 AS cor0
----
87

query I rowsort
SELECT + 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + 33 + 15 AS col0 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT + col2 * + 43 + - 3 FROM tab0 cor0
----
2018
4254
427

query I rowsort
SELECT ALL - col0 + 2 AS col0 FROM tab0 AS cor0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT - ( - SUM( DISTINCT 39 ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - ( - SUM ( DISTINCT 39 ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
39

query I rowsort
SELECT - col2 * 41 + - - 45 FROM tab0 AS cor0
----
-1882
-365
-4014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 + - - col1 col0 FROM tab2 AS cor0
----
22
38
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3686
SELECT ALL + col1 + - - col0 col2, col2 + + + col0 DIV + 66 AS col2 FROM tab1 AS cor0
----
138
69
65
96
90
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3686
SELECT ALL + col1 + - - col0 col2, col2 + + + col0 / + 66 AS col2 FROM tab1 AS cor0
----
138
69
65
96
90
60

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 62 / - - 84 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL - - col0 * 43 + - col0 DIV + col2 + + col0 FROM tab1 AS cor0
----
2244
3739
4003

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - - col0 * 43 + - col0 / + col2 + + col0 FROM tab1 AS cor0
----
2244
3739
4003

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL + ( + 13 ) + ( - + ( - MIN( ALL - col2 ) ) ) + - 81 AS col1 FROM tab1 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + ( + 13 ) + ( - + ( - MIN ( ALL - col2 ) ) ) + - 81 AS col1 FROM tab1 AS cor0
----
-164

query I rowsort
SELECT DISTINCT 77 + - col2 FROM tab0
----
-22
30
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT DISTINCT + 80 + - col1 * - - col0 + - col1 DIV - col0 FROM tab0
----
-1130
-17
-1747

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT + 80 + - col1 * - - col0 + - col1 / - col0 FROM tab0
----
-1130
-17
-1747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT CAST( NULL AS SIGNED ) * + 72 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3692
SELECT CAST ( NULL AS INTEGER ) * + 72 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + COUNT( * ) * - 33 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3693
SELECT + COUNT ( * ) * - 33 FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 94 - 11 * - col1 <= - col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE + col0 - 22 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 42 ) FROM tab0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 39 col0 FROM tab2 AS cor0 WHERE NOT 17 + - col0 > 18
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT + - 16 AS col2, ( + ( COUNT( * ) ) ) FROM tab0 cor0 WHERE NOT + col0 IN ( + + 17, - col0 * 16 ) OR NOT NULL NOT BETWEEN NULL AND NULL
----
-16
3

skipif mysql # not compatible
query II rowsort label-3698
SELECT + - 16 AS col2, ( + ( COUNT ( * ) ) ) FROM tab0 cor0 WHERE NOT + col0 IN ( + + 17, - col0 * 16 ) OR NOT NULL NOT BETWEEN NULL AND NULL
----
-16
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT - + col0 DIV + + col0 - - 98 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-3699
SELECT - + col0 / + + col0 - - 98 FROM tab0 AS cor0
----
97
97
97

query II rowsort
SELECT + 25, col1 FROM tab1
----
25
14
25
47
25
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( + - 45 ) ) col1 FROM tab2
----
45
45
45

query II rowsort
SELECT DISTINCT - col1 AS col0, + 11 FROM tab0
----
-1
11
-21
11
-81
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 8 + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT col0 * col2 * - col1 * + 88 * - ( + 69 ) - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT col0 * col2 * - col1 * + 88 * - ( + 69 ) - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - ( 33 ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - SUM( ALL 39 ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - SUM ( ALL 39 ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT + col0 * + col2 * + - 67 FROM tab1
----
-328032
-336005
-414596

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3708
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + col2 - + - col2 + col1 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3708
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + col2 - + - col2 + col1 * + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3709
SELECT + 62 DIV - + col1 AS col2, - col0 AS col2 FROM tab1
----
-1
-91
-12
-85
-4
-51

skipif mysql # not compatible
query II rowsort label-3709
SELECT + 62 / - + col1 AS col2, - col0 AS col2 FROM tab1
----
-1
-91
-12
-85
-4
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT ALL + 78 DIV - MIN( DISTINCT - 29 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + 78 / - MIN ( DISTINCT - 29 ) FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT MAX( ALL + 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT MAX ( ALL + 84 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + + 51 + + COUNT( * ) * - MIN( DISTINCT + - col0 ) * MAX( ALL 26 ) FROM tab0 AS cor0
----
7617

skipif mysql # not compatible
query I rowsort label-3712
SELECT + + 51 + + COUNT ( * ) * - MIN ( DISTINCT + - col0 ) * MAX ( ALL 26 ) FROM tab0 AS cor0
----
7617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT DISTINCT col2 + col2 + - CAST( + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + 44 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT col2 + col2 + - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + 44 <> NULL
----

query I rowsort
SELECT - 3 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

query I rowsort
SELECT ALL - 30 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3717
SELECT + CAST( NULL AS DECIMAL ) * ( + - 29 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT + CAST ( NULL AS REAL ) * ( + - 29 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 61 + - ( 73 ) * + - col2 col1, - 66 AS col1 FROM tab1 AS cor0
----
4246
-66
4903
-66
6947
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT DISTINCT - COUNT( * ), MIN( ( col2 ) ) + 50 AS col2 FROM tab1 AS cor0
----
-3
109

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT - COUNT ( * ), MIN ( ( col2 ) ) + 50 AS col2 FROM tab1 AS cor0
----
-3
109

query I rowsort
SELECT ALL - - col0 * col1 - col2 + - 5 - + col1 + + col2 FROM tab0 AS cor0
----
1129
1801
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL 28 + COUNT( * ) * MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-263

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL 28 + COUNT ( * ) * MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + MAX( ALL - col2 ) + COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3722
SELECT + MAX ( ALL - col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3723
SELECT DISTINCT - 52 + + col2 * + CAST( NULL AS SIGNED ) AS col0, ( CAST( NULL AS SIGNED ) ) + - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT - 52 + + col2 * + CAST ( NULL AS INTEGER ) AS col0, ( CAST ( NULL AS INTEGER ) ) + - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT DISTINCT 72 DIV - col0 - 19 FROM tab0
----
-19
-23

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT 72 / - col0 - 19 FROM tab0
----
-19
-23

query I rowsort
SELECT col0 * col2 + + + 23 AS col2 FROM tab1
----
4919
5038
6211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 72 ) - 83 + col2 + - col0 * - + 74 col0 FROM tab0
----
1146
6437
7266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col1 FROM tab2 WHERE NULL IS NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL + COUNT( ALL + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + COUNT ( ALL + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL 41 - + COUNT( * ) - - + COUNT( - 50 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL 41 - + COUNT ( * ) - - + COUNT ( - 50 ) FROM tab2
----
41

query I rowsort
SELECT ALL col2 * + - col2 - + - col1 AS col2 FROM tab2
----
-1523
-3297
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - 18 - COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - 18 - COUNT ( * ) FROM tab1
----
-21

query I rowsort
SELECT DISTINCT 59 * + + ( 33 ) AS col2 FROM tab2 cor0
----
1947

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT - col1 DIV ( - 85 ) * - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT - col1 / ( - 85 ) * - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 45 col1 FROM tab0 cor0
----
-3645
-45
-945

query I rowsort
SELECT ALL - + col2 * col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT DISTINCT 93 * - col2 AS col2 FROM tab1
----
-5487
-6324
-8928

query I rowsort
SELECT ALL - 56 * col1 AS col1 FROM tab1 AS cor0
----
-2632
-280
-784

query II rowsort
SELECT - 58 AS col0, - col2 FROM tab2 AS cor0
----
-58
-23
-58
-40
-58
-58

query I rowsort
SELECT ALL - col1 / - col0 * col2 + col2 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 93 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 93 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < - col0 * - 5 * + col2 + + + col2 + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT + - SUM( - col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3742
SELECT DISTINCT + - SUM ( - col0 ) col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query III rowsort label-3743
SELECT DISTINCT - 51 AS col1, SUM( + + 64 ), + 51 AS col0 FROM tab1 AS cor0
----
-51
192
51

skipif mysql # not compatible
query III rowsort label-3743
SELECT DISTINCT - 51 AS col1, SUM ( + + 64 ), + 51 AS col0 FROM tab1 AS cor0
----
-51
192
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3744
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - COUNT( - 67 ) FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - COUNT ( - 67 ) FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----
NULL

query I rowsort
SELECT 61 * - 26 * + 53 FROM tab0
----
-84058
-84058
-84058

query I rowsort
SELECT ALL col0 * - + 28 * + col2 FROM tab1
----
-137088
-140420
-173264

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT ( NOT ( NOT NULL IS NOT NULL ) ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + COUNT( 58 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3748
SELECT + COUNT ( 58 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query III rowsort label-3749
SELECT COUNT( * ) col0, 17 col2, - - ( + - 5 ) + COUNT( * ) FROM tab0
----
3
17
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3749
SELECT COUNT ( * ) col0, 17 col2, - - ( + - 5 ) + COUNT ( * ) FROM tab0
----
3
17
-2

query II rowsort
SELECT col0, + 86 AS col0 FROM tab0 AS cor0
----
15
86
87
86
97
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT DISTINCT + MAX( col1 ) DIV - SUM( ALL + - 65 ) + - 34 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT + MAX ( col1 ) / - SUM ( ALL + - 65 ) + - 34 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - MAX( + + 14 ) FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3752
SELECT - MAX ( + + 14 ) FROM tab2 cor0
----
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 60 + - - 23 IN ( + col0 - + 16 + - - col0 )
----

query I rowsort
SELECT - col2 * + 86 + 66 + col2 - - col0 * - 97 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 + 74 * + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3756
SELECT ALL + CAST( - + 30 AS SIGNED ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL + CAST ( - + 30 AS INTEGER ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-30
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3757
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS DECIMAL ) / + - col2 BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-3757
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS REAL ) / + - col2 BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 45 * - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) + - AVG ( DISTINCT - + 77 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - AVG ( DISTINCT - + 77 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT 73 + + + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) BETWEEN NULL AND NULL
----
73

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT 73 + + + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) BETWEEN NULL AND NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT + COUNT( + + 62 ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3761
SELECT DISTINCT + COUNT ( + + 62 ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL >= + 78
----

query I rowsort
SELECT col2 * + col0 + - - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ( col0 ) DIV + ( - col2 ) - + col0 * - ( col1 ) FROM tab1
----
424
4276
714

skipif mysql # not compatible
query I rowsort label-3764
SELECT ( col0 ) / + ( - col2 ) - + col0 * - ( col1 ) FROM tab1
----
424
4276
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT CAST( NULL AS SIGNED ) - + col0 + + + col2 * col0 * 12 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT CAST ( NULL AS INTEGER ) - + col0 + + + col2 * col0 * 12 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + COUNT( * ) - - - COUNT( * ) * + + 46 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-3766
SELECT + COUNT ( * ) - - - COUNT ( * ) * + + 46 FROM tab0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT + COUNT( * ) * + - MIN( ALL + + col1 ) - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT + COUNT ( * ) * + - MIN ( ALL + + col1 ) - + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-3768
SELECT col1 DIV + 99 * - col1 - + + 69 AS col1, - 77 AS col2 FROM tab1
----
-69
-77
-69
-77
-69
-77

skipif mysql # not compatible
query II rowsort label-3768
SELECT col1 / + 99 * - col1 - + + 69 AS col1, - 77 AS col2 FROM tab1
----
-69
-77
-69
-77
-69
-77

query I rowsort
SELECT - col1 - - + col1 + - col2 * - 92 AS col1 FROM tab1 AS cor0
----
5428
6256
8832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT ALL - col0 - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - col0 - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT DISTINCT + + 26 AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-3771
SELECT DISTINCT + + 26 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL + + 33 * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + + 33 * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - 10 * - ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query II rowsort
SELECT DISTINCT + 47 AS col1, col0 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT ALL CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT col0 / + + col2 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3779
SELECT * FROM tab2 cor0 WHERE NOT + 51 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3779
SELECT * FROM tab2 cor0 WHERE NOT + 51 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT 31 * + col1 AS col1 FROM tab1
----
1457
155
434

query I rowsort
SELECT col2 * - - 2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT + 55 * - + col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT - + col0 AS col0, + 53 AS col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - col0 < col0
----

skipif mysql # not compatible
query II rowsort label-3784
SELECT - + col0 AS col0, + 53 AS col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - col0 < col0
----

query I rowsort
SELECT 79 * + + 95 AS col0 FROM tab2
----
7505
7505
7505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3786
SELECT - 10 + + MAX( - col1 ) AS col2, - CAST( NULL AS SIGNED ) / - + 33 AS col1 FROM tab0 AS cor0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-3786
SELECT - 10 + + MAX ( - col1 ) AS col2, - CAST ( NULL AS INTEGER ) / - + 33 AS col1 FROM tab0 AS cor0
----
-11
NULL

query I rowsort
SELECT ALL + + 26 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT 4, col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 - - col0 + + + col2 AS col2 FROM tab2 cor0
----
120
181
200

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT + - COUNT( * ) AS col2, 74 * - - COUNT( * ) AS col1 FROM tab0 cor0
----
-3
222

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT + - COUNT ( * ) AS col2, 74 * - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3
222

query I rowsort
SELECT DISTINCT - - col1 + 29 FROM tab1 cor0
----
34
43
76

query I rowsort
SELECT - col0 + - 95 AS col1 FROM tab0 AS cor0
----
-110
-182
-192

query I rowsort
SELECT DISTINCT 68 * - col1 - - - 84 AS col1 FROM tab0 AS cor0
----
-1512
-152
-5592

query I rowsort
SELECT - 93 + + col0 FROM tab0
----
-6
-78
4

query I rowsort
SELECT ALL + col0 + ( - + 40 ) FROM tab2
----
24
35
6

query I rowsort
SELECT - col2 * - 23 FROM tab2 AS cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT MAX( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT MAX ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab2 cor0
----
10

query I rowsort
SELECT DISTINCT + col0 + + ( - - 79 ) * + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1157
3804
480

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL ( + - MAX( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL ( + - MAX ( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL MAX( + 70 ) AS col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL MAX ( + 70 ) AS col2 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + col0 + + col1 * + 67
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 45 - + col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + COUNT( * ) + - 21 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3806
SELECT + COUNT ( * ) + - 21 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3807
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + + col0 - + col0 * 52 / + col2 + + + 94, col1 + 93 AS col1 FROM tab2
----
NULL
144
NULL
160
NULL
170

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col0 - + col0 * 52 / + col2 + + + 94, col1 + 93 AS col1 FROM tab2
----
NULL
144
NULL
160
NULL
170

query I rowsort
SELECT ALL + col2 * + col0 * + col2 AS col2 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ( - ( - COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3809
SELECT ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0
----
3

query II rowsort
SELECT DISTINCT col0 * - col2, - col0 AS col0 FROM tab0
----
-705
-15
-870
-87
-9603
-97

query I rowsort
SELECT - 40 * + 5 AS col2 FROM tab2
----
-200
-200
-200

query II rowsort
SELECT ( - col2 ) AS col1, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT MIN( - + 34 ) + - COUNT( * ) - + + COUNT( * ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT MIN ( - + 34 ) + - COUNT ( * ) - + + COUNT ( * ) FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - col1 * col0 * + + 14 FROM tab1
----
-5945
-59831
-9982

query I rowsort
SELECT - ( col1 ) + - 44 AS col1 FROM tab0
----
-125
-45
-65

query I rowsort
SELECT ALL 73 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 35 col2, - col2 AS col1 FROM tab2
----
-35
-23
-35
-40
-35
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> + col2 * col1 * 7 * + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - - 36 ) col1 FROM tab1 AS cor0
----
-1836
-3060
-3276

query II rowsort
SELECT DISTINCT 10 + + + col2 AS col2, + col0 * col0 + - col2 FROM tab2 AS cor0 WHERE NOT 58 NOT IN ( - col0 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + COUNT( * ) * 37 AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3823
SELECT + COUNT ( * ) * 37 AS col1 FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL + COUNT( - col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL + COUNT ( - col1 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT COUNT( * ) + - 72 AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT COUNT ( * ) + - 72 AS col1 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL >= NULL AND NOT - 12 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - - + col1 >= NULL
----

query I rowsort
SELECT ALL 46 * + col1 AS col0 FROM tab1 WHERE 72 IS NOT NULL
----
2162
230
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 65 AS col0, col0 col1 FROM tab2
----
-65
46
-65
64
-65
75

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( ( - col1 ), + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3831
SELECT - col1 DIV + + 15 AS col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT - col1 / + + 15 AS col0 FROM tab0
----
-1
-5
0

query II rowsort
SELECT + 79 AS col1, col0 * col1 * + - col1 FROM tab2
----
79
-119646
79
-336675
79
-379456

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT 12, - ( + COUNT( * ) ) AS col2 FROM tab0
----
12
-3

skipif mysql # not compatible
query II rowsort label-3833
SELECT 12, - ( + COUNT ( * ) ) AS col2 FROM tab0
----
12
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + MIN( + + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + MIN ( + + col2 ) AS col0 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT + ( - - COUNT( DISTINCT - 30 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + ( - - COUNT ( DISTINCT - 30 ) ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 44 AND + + col1 + - 60 * - 41 - + - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL + + MIN( - col1 ) col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT ALL + + MIN ( - col1 ) col1 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3839
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - CAST( NULL AS SIGNED ) NOT BETWEEN 52 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3839
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - CAST ( NULL AS INTEGER ) NOT BETWEEN 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3840
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 19 NOT BETWEEN - CAST( - col1 AS SIGNED ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3840
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 19 NOT BETWEEN - CAST ( - col1 AS INTEGER ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL - + SUM( + col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - + SUM ( + col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL + col0 * col0 + - col2 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2070
4016
5509

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + col0 * col0 + - col2 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2070
4016
5509

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT COUNT( DISTINCT - + col0 ) * + ( - 67 ) AS col2 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) * + ( - 67 ) AS col2 FROM tab1 AS cor0
----
-201

query I rowsort
SELECT ALL + - col1 + - 36 AS col2 FROM tab1 AS cor0
----
-41
-50
-83

query I rowsort
SELECT ALL + 63 * - 58 AS col1 FROM tab0 AS cor0
----
-3654
-3654
-3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT - - 7 AS col0 FROM tab1 AS cor0 WHERE + CAST( - col0 AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - - 7 AS col0 FROM tab1 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND + - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT COUNT( * ) + - COUNT( * ) + 29 AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3848
SELECT COUNT ( * ) + - COUNT ( * ) + 29 AS col1 FROM tab2
----
29

query I rowsort
SELECT ALL + ( - + 6 ) FROM tab1
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT CAST( + col1 AS SIGNED ) * 75 + + 81 FROM tab2
----
3906
5106
5856

skipif mysql # not compatible
query I rowsort label-3850
SELECT CAST ( + col1 AS INTEGER ) * 75 + + 81 FROM tab2
----
3906
5106
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE col1 - col0 NOT IN ( + 62 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT + col1 FROM tab2 WHERE - 74 * + CAST( + 53 AS SIGNED ) NOT IN ( + col2 * col1 + 94 * - col0 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3853
SELECT + col1 FROM tab2 WHERE - 74 * + CAST ( + 53 AS INTEGER ) NOT IN ( + col2 * col1 + 94 * - col0 )
----
51
67
77

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT ( - col2 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - col0 * 27 AS col2 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT + 59 FROM tab0 WHERE ( NULL ) IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT DISTINCT - ( - 81 ) DIV 88 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - ( - 81 ) / 88 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab0 WHERE ( - col0 ) BETWEEN col2 AND - 29
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3859
SELECT - 54 DIV CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3859
SELECT - 54 / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3860
SELECT - MIN( 29 ) DIV COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3860
SELECT - MIN ( 29 ) / COUNT ( * ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT col2 - 51 DIV 53 col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3861
SELECT DISTINCT col2 - 51 / 53 col1 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE - 40 * + 9 IN ( 36 + 57 / col0 )
----

query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + 41 ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT - 44 DIV + 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT - 44 / + 90 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3867
SELECT ALL CAST( + 67 AS SIGNED ) + COUNT( * ) DIV ( 90 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL CAST ( + 67 AS INTEGER ) + COUNT ( * ) / ( 90 ) FROM tab1
----
67

query I rowsort
SELECT 71 AS col0 FROM tab0 WHERE - 22 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT 98 * + COUNT( * ) AS col2 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-3870
SELECT 98 * + COUNT ( * ) AS col2 FROM tab1
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT + col1 + col1 DIV col0 col2 FROM tab0 WHERE NOT + 25 * col0 IS NULL
----
1
21
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT + col1 + col1 / col0 col2 FROM tab0 WHERE NOT + 25 * col0 IS NULL
----
1
21
86

query I rowsort
SELECT ALL - col1 + 16 AS col2 FROM tab2
----
-35
-51
-61

query I rowsort
SELECT col1 * col0 + + col1 * + col0 FROM tab1 WHERE NOT col0 > ( col2 )
----
1428

query III rowsort
SELECT * FROM tab2 WHERE NOT 4 < ( + col1 )
----

query I rowsort
SELECT DISTINCT + ( 14 ) FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - col2 + - col2 NOT BETWEEN - 10 * - col2 AND col1 + CAST( - col2 + 86 AS SIGNED ) * + ( col2 * col0 - + col0 )
----

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - col2 + - col2 NOT BETWEEN - 10 * - col2 AND col1 + CAST ( - col2 + 86 AS INTEGER ) * + ( col2 * col0 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3877
SELECT * FROM tab2 WHERE NOT - ( ( CAST( NULL AS SIGNED ) ) ) = + col2 * 66
----

skipif mysql # not compatible
query III rowsort label-3877
SELECT * FROM tab2 WHERE NOT - ( ( CAST ( NULL AS INTEGER ) ) ) = + col2 * 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT MAX( DISTINCT ( + 63 ) ) AS col1 FROM tab0 WHERE + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT MAX ( DISTINCT ( + 63 ) ) AS col1 FROM tab0 WHERE + col1 < NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - 3 + col2 * + 27 ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( + 93 ) FROM tab2 WHERE ( NULL ) < - 59 / + col0
----

query I rowsort
SELECT ALL + col1 * col2 + col2 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT ( SUM( DISTINCT + ( + col0 ) ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT ( SUM ( DISTINCT + ( + col0 ) ) ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + 11 FROM tab0 WHERE NOT ( + ( - col2 ) ) IS NULL
----
11
11
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) BETWEEN 23 AND NULL
----

query I rowsort
SELECT ALL 49 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT + COUNT( * ) + + 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
106

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + COUNT ( * ) + + 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
106

query I rowsort
SELECT - col0 * + 2 + - col1 AS col1 FROM tab0 AS cor0
----
-111
-195
-195

query I rowsort
SELECT + 2 + col1 AS col2 FROM tab2 AS cor0
----
53
69
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN 67 + - 73 AND col0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col0 * 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - ( 93 ) + + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3891
SELECT - ( 93 ) + + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT - 66 * + col0 + col0 FROM tab2 AS cor0
----
-2990
-4160
-4875

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 3 >= 83 + + col1
----

query I rowsort
SELECT - 69 * col0 + - 7 FROM tab0 cor0
----
-1042
-6010
-6700

query I rowsort
SELECT ALL + col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT - col2 + 68 * col1 FROM tab1 AS cor0
----
281
3128
856

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE - col0 + + col0 NOT BETWEEN ( - col0 ) AND ( + 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL - col1 + + CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3898
SELECT ALL - col1 + + CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE 10 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * + col0 + - 93 AS col2 FROM tab2
----
2253
4835
4932

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + SUM( 48 ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-3903
SELECT + SUM ( 48 ) AS col0 FROM tab1
----
144

query I rowsort
SELECT 33 * - 13 * + col1 AS col1 FROM tab0
----
-34749
-429
-9009

query I rowsort
SELECT DISTINCT 57 + col2 AS col0 FROM tab0 AS cor0
----
104
156
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - 71 + COUNT( * ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - 71 + COUNT ( * ) FROM tab1 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3907
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT DISTINCT - COUNT( col0 ) AS col1 FROM tab2 WHERE ( 28 - + col2 * - 51 ) < - CAST( col0 AS SIGNED ) * - col1
----
-3

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT - COUNT ( col0 ) AS col1 FROM tab2 WHERE ( 28 - + col2 * - 51 ) < - CAST ( col0 AS INTEGER ) * - col1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > - ( 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL COUNT( * ) - + 22 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL COUNT ( * ) - + 22 FROM tab1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3911
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( + - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( + - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 51 ) = - 96
----
-3

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 51 ) = - 96
----
-3

query I rowsort
SELECT + 6 * - col0 FROM tab0 cor0
----
-522
-582
-90

query I rowsort
SELECT DISTINCT - ( 24 ) * - + 50 FROM tab1 AS cor0
----
1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col2 FROM tab0 AS cor0 WHERE NOT ( - ( + col2 ) ) >= 18 * - col1
----
56

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + + col1 * - col1 + + col1 / col2 )
----

query I rowsort
SELECT DISTINCT + col2 * 58 AS col0 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + COUNT( 87 ) AS col0 FROM tab1 AS cor0 WHERE 39 / + col2 + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + COUNT ( 87 ) AS col0 FROM tab1 AS cor0 WHERE 39 / + col2 + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT ALL - - COUNT( * ), 98 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
294

skipif mysql # not compatible
query II rowsort label-3920
SELECT ALL - - COUNT ( * ), 98 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
294

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) * col2 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT 24 DIV + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3923
SELECT 24 / + col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT MIN( DISTINCT ( col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3924
SELECT MIN ( DISTINCT ( col0 ) ) FROM tab0
----
15

query I rowsort
SELECT - - col0 * + + ( - + ( - + ( 56 ) ) ) + + col0 FROM tab2 AS cor0
----
2622
3648
4275

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 40 / col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + + col1 ) + - + col2 - + col0 - col1 FROM tab0 AS cor0
----
-139
-198
-224

query I rowsort
SELECT DISTINCT + - 24 AS col2 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE col0 * + col1 + + 21 - + 98 + - col1 NOT BETWEEN col2 * col2 + + col2 / + 5 AND ( col0 / 93 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 53
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + 92 + - col0 + - - ( - 88 ) / 18 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT col2 DIV - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT col2 / - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-3
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 45 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 + + 35 AS col1 FROM tab1 AS cor0
----
-12
21
30

query I rowsort
SELECT + col2 AS col1 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col1 * + 77 + - - 31 FROM tab0 AS cor0
----
108
1648
6268

query I rowsort
SELECT col1 * + col1 * - col2 * - - col1 + - - 4 FROM tab2
----
-17444250
-18261316
-3050969

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL COUNT( * ) + + - 33 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL COUNT ( * ) + + - 33 FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT MIN( 80 ) col1 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT DISTINCT MIN ( 80 ) col1 FROM tab1
----
80

query III rowsort
SELECT * FROM tab2 WHERE 4 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL + 40 * + + 21 + + + COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
843

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL + 40 * + + 21 + + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT - col1 * + col1 + + CAST( col2 AS SIGNED ) + col0 FROM tab0
----
-344
-6499
195

skipif mysql # not compatible
query I rowsort label-3943
SELECT - col1 * + col1 + + CAST ( col2 AS INTEGER ) + col0 FROM tab0
----
-344
-6499
195

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - - col2 + - 60 FROM tab1
----
-39
-6
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT - MAX( + + ( + + 58 ) ) AS col0 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - MAX ( + + ( + + 58 ) ) AS col0 FROM tab0
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-3947
SELECT + + col1 AS col0, + 45 DIV 81 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3947
SELECT + + col1 AS col0, + 45 / 81 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3948
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 18 * - 77 NOT BETWEEN CAST( - - col2 AS DECIMAL ) + - - ( col2 ) AND + col1 + col0 / 10
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 18 * - 77 NOT BETWEEN CAST ( - - col2 AS REAL ) + - - ( col2 ) AND + col1 + col0 / 10
----
3

query I rowsort
SELECT ALL - 73 + - col0 FROM tab0 cor0
----
-160
-170
-88

query II rowsort
SELECT 73 AS col0, col1 AS col1 FROM tab2 cor0
----
73
51
73
67
73
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 * - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT 54 * col2 DIV 47 * - col0 - 71 FROM tab2
----
-1267
-2951
-5021

skipif mysql # not compatible
query I rowsort label-3952
SELECT 54 * col2 / 47 * - col0 - 71 FROM tab2
----
-1267
-2951
-5021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( 3 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( 3 AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + 47 + col0 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-1110
-49
-7599

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 85 * + - col1 AS col2 FROM tab0 AS cor0
----
1785
6885
85

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 31 * col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 / - col1 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 8 IS NULL
----

query I rowsort
SELECT ALL col1 * + 11 FROM tab2
----
561
737
847

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT col0 DIV 28 AS col0 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-3961
SELECT col0 / 28 AS col0 FROM tab1
----
1
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT ALL 75 * + - CAST( - col1 AS SIGNED ) FROM tab2
----
3825
5025
5775

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 75 * + - CAST ( - col1 AS INTEGER ) FROM tab2
----
3825
5025
5775

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 col2, col0 FROM tab1 AS cor0
----
44
51
44
85
44
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT MAX( + - col1 ) * - 88 + + + 76 - COUNT( * ) * + - MIN( ALL + col2 ) FROM tab0 AS cor0
----
194

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT MAX ( + - col1 ) * - 88 + + + 76 - COUNT ( * ) * + - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
194

query I rowsort
SELECT + 96 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, ( + - 25 ) col2 FROM tab0 AS cor0
----
-1
-25
-21
-25
-81
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT ALL - + ( col0 ) + + + col1 DIV - 42 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - + ( col0 ) + + + col1 / - 42 FROM tab1 AS cor0
----
-51
-85
-92

query I rowsort
SELECT DISTINCT + - ( + 14 ) * + 0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + 96 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + 16 AS col0 FROM tab1
----
-1088
-1536
-944

query I rowsort
SELECT - - col2 + + col0 * - + 22 FROM tab0 AS cor0
----
-1904
-2035
-283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT + COUNT( * ) + + ( - - 96 ) + - - CAST( + + 22 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COUNT ( * ) + + ( - - 96 ) + - - CAST ( + + 22 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
121

query I rowsort
SELECT + + ( + + col0 ) + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + col1 + - + 69 - + - col1 + - col2 FROM tab0 AS cor0
----
-166
-37
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT DISTINCT + 95 DIV - + col1 FROM tab1 AS cor0
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT + 95 / - + col1 FROM tab1 AS cor0
----
-19
-2
-6

query I rowsort
SELECT DISTINCT col2 * - 92 + + - col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

query I rowsort
SELECT DISTINCT + - 70 + - + 30 FROM tab2 AS cor0
----
-100

query II rowsort
SELECT DISTINCT - - 76 + - col2 AS col1, col2 + - - col2 * - - col0 AS col1 FROM tab1 AS cor0
----
-20
4992
17
5074
8
6256

query III rowsort
SELECT ALL * FROM tab2 WHERE 10 IN ( + 14 + + col1 / + col2 * + col1 * - col2, + ( + 59 ) )
----

query I rowsort
SELECT ALL - + col0 + - - 63 * col2 * + col2 * col2 FROM tab0 WHERE + + col1 = + 15
----

query I rowsort
SELECT ALL 99 + - 96 FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - MAX( DISTINCT + 35 ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-3986
SELECT - MAX ( DISTINCT + 35 ) FROM tab1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL + MIN( ALL + - 4 ) - + - ( + ( - - 63 ) ) AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + MIN ( ALL + - 4 ) - + - ( + ( - - 63 ) ) AS col2 FROM tab2
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + col2 AND NOT - 25 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE - + 9 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - 17 + + col1 AS col2 FROM tab2
----
100
108
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT DISTINCT 66 DIV + col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT 66 / + col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL + + SUM( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + + SUM ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + - 90 - - col1 FROM tab1 AS cor0
----
-43
-76
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3994
SELECT ALL * FROM tab2 cor0 WHERE NOT 91 NOT BETWEEN col1 AND + CAST( NULL AS SIGNED ) * 67
----

skipif mysql # not compatible
query III rowsort label-3994
SELECT ALL * FROM tab2 cor0 WHERE NOT 91 NOT BETWEEN col1 AND + CAST ( NULL AS INTEGER ) * 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT DISTINCT - col2 * - 47 + - col2 DIV - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2773
3196
4511

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - col2 * - 47 + - col2 / - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2773
3196
4511

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT 17 * + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT 17 * + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT + 59 + - + ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
118
127
155

query I rowsort
SELECT ALL + 51 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL - COUNT( * ) * + 42 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + 27, - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - COUNT ( * ) * + 42 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + 27, - 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + 63 * - 86 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16254

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + 63 * - 86 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16254

query I rowsort
SELECT DISTINCT col1 * 65 AS col2 FROM tab2
----
3315
4355
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT ALL AVG ( + col1 ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL AVG ( + col1 ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + 38 * - col2 FROM tab0
----
-1786
-3762
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + col0 * + col2 * - 31 * col0 col1 FROM tab2
----
203161600
34700284
586597500

query I rowsort
SELECT ALL - 37 * + col1 * - 68 FROM tab1
----
118252
12580
35224

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT 84 * - + MIN( + + col1 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT 84 * - + MIN ( + + col1 ) FROM tab0 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 67 - - col0 < - 13
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 32 * col1 * - - 34 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4011
SELECT ALL + - col2, CAST( - 53 AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4011
SELECT ALL + - col2, CAST ( - 53 AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT CAST( NULL AS SIGNED ) + 56 * + - col0 + + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 56 * + - col0 + + col2 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - - ( - col1 ) NOT BETWEEN + + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT ALL 90 DIV - COUNT( * ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 90 / - COUNT ( * ) FROM tab2
----
-30

query I rowsort
SELECT col2 + - - col1 + + + col1 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT ALL + - 79 FROM tab1 AS cor0 WHERE ( - col2 * + 32 ) NOT BETWEEN + col2 * col1 AND NULL
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + + ( - - col0 ) col2, - col1 FROM tab0 AS cor0
----
-2
-1
-32
-81
77
-21

query I rowsort
SELECT ALL col1 + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
114
76
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4019
SELECT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4019
SELECT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) IN ( col1 )
----

query I rowsort
SELECT + col1 + - 53 FROM tab1
----
-39
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - 43 + + COUNT( * ) AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 43 + + COUNT ( * ) AS col1 FROM tab2
----
-40

query I rowsort
SELECT ALL + col1 - - - col2 AS col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + col1 + + col2 * - + ( 88 ) * - 8 * col2 + col1 + + col1 AS col1 FROM tab0
----
1555379
6899907
70463

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4024
SELECT * FROM tab2 WHERE + ( + CAST( col2 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4024
SELECT * FROM tab2 WHERE + ( + CAST ( col2 AS REAL ) ) IS NULL
----

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + col1, - ( col0 ) + + - col1 / + 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT DISTINCT - + col1 DIV - + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - + col1 / - + col2 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - SUM( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4028
SELECT - SUM ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT MAX( DISTINCT + 47 ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4029
SELECT DISTINCT MAX ( DISTINCT + 47 ) col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= - + 94 + - - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 26 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT DISTINCT 55 AS col2, - ( COUNT( * ) ) AS col0 FROM tab0
----
55
-3

skipif mysql # not compatible
query II rowsort label-4032
SELECT DISTINCT 55 AS col2, - ( COUNT ( * ) ) AS col0 FROM tab0
----
55
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 38 AND + - col2
----

query II rowsort
SELECT ALL col0, + 11 + + col0 - - col0 * + - 36 * - - col1 FROM tab2
----
46
-84399
64
-177333
75
-180814

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT MIN( - - col0 ) * + COUNT( * ) + - - 87 AS col0 FROM tab0 WHERE - - 12 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT MIN ( - - col0 ) * + COUNT ( * ) + - - 87 AS col0 FROM tab0 WHERE - - 12 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - ( MAX( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4036
SELECT - ( MAX ( col2 ) ) FROM tab2
----
-58

query I rowsort
SELECT + col1 * + col2 * + + col1 * - col2 FROM tab0 AS cor0 WHERE col0 * col1 >= - - col0
----
-14493249
-44100
-9801

query I rowsort
SELECT DISTINCT - + col1 + - col2 * - + col0 + col2 FROM tab2 AS cor0
----
1030
2523
4341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT + MIN( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - col0 + - 7, - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-53
0
-71
0
-82
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 + - + col0 * col0 col1 FROM tab2 AS cor0
----
-51
-2065
-67
-5558
-77
-4019

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + 53 + + COUNT( * ) + - SUM( ALL - - col0 ) AS col0 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-4043
SELECT + 53 + + COUNT ( * ) + - SUM ( ALL - - col0 ) AS col0 FROM tab2
----
-129

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 22 - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( 69, - col0, - 45 / + 68 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT DISTINCT + ( - MIN( ALL 80 ) ) AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT + ( - MIN ( ALL 80 ) ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-80
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4047
SELECT + + COUNT( * ) DIV COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4047
SELECT + + COUNT ( * ) / COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 41 * - 8 AS col0 FROM tab0 AS cor0
----
328

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT ALL + + col0 + + - col0 DIV + col2 AS col1 FROM tab2 cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + + col0 + + - col0 / + col2 AS col1 FROM tab2 cor0
----
44
63
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT - - col1 DIV + + 70 + - 94 - - col1 FROM tab1 AS cor0
----
-47
-80
-89

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - - col1 / + + 70 + - 94 - - col1 FROM tab1 AS cor0
----
-47
-80
-89

query I rowsort
SELECT ALL 98 * - - 73 + col0 FROM tab2 AS cor0
----
7200
7218
7229

query I rowsort
SELECT DISTINCT - 72 + - ( - 55 ) + - col0 AS col2 FROM tab0 AS cor0
----
-104
-114
-32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + ( - - col1 )
----

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL - COUNT( - ( col2 ) ) AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - COUNT ( - ( col2 ) ) AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT + 28, + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
28
1344
28
295
28
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT DISTINCT - + ( - col0 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT - + ( - col0 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT + AVG ( col2 ) * + ( - - ( COUNT( * ) ) ) FROM tab1 AS cor0 WHERE NOT 5 + - col0 + CAST( NULL AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT + AVG ( col2 ) * + ( - - ( COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE NOT 5 + - col0 + CAST ( NULL AS INTEGER ) = NULL
----
NULL

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 1 / col1 > col2 + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 99 / - + ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4063
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 99 / - + ( col2 )
----
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col2 + 29 AS col0 FROM tab2
----
52
69
87

query II rowsort
SELECT ALL - 6 AS col2, ( + - 48 ) FROM tab0
----
-6
-48
-6
-48
-6
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT col1 DIV + col1 + + ( + col0 ) FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4067
SELECT col1 / + col1 + + ( + col0 ) FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL COUNT( + 80 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL COUNT ( + 80 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT ALL + + 13 DIV - 91 + + + col1 * + - 78 AS col2 FROM tab0 AS cor0
----
-1638
-6318
-78

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + + 13 / - 91 + + + col1 * + - 78 AS col2 FROM tab0 AS cor0
----
-1638
-6318
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + 46 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - col1 AS col0, - 3 FROM tab0 AS cor0
----
1
-3
21
-3
81
-3

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab0, tab2 AS cor0
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL + MAX( DISTINCT + 82 ) * + COUNT( * ) FROM tab2 WHERE - + col0 + + + ( + col1 ) > 44 + - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + MAX ( DISTINCT + 82 ) * + COUNT ( * ) FROM tab2 WHERE - + col0 + + + ( + col1 ) > 44 + - - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 74 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
666

skipif mysql # not compatible
query I rowsort label-4077
SELECT 74 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
666

query I rowsort
SELECT ALL ( + 94 ) AS col2 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - MIN( - col0 ) + COUNT( * ) FROM tab0 cor0
----
100

skipif mysql # not compatible
query I rowsort label-4079
SELECT - MIN ( - col0 ) + COUNT ( * ) FROM tab0 cor0
----
100

query I rowsort
SELECT DISTINCT + col2 * + col2 + + col1 AS col0 FROM tab0 cor0
----
121
2290
9802

query I rowsort
SELECT - - col1 + 13 FROM tab0 AS cor0
----
14
34
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL - 25 + - CAST( 26 AS SIGNED ) + col0 * + col2 + + col0 + - - col1 + 7 + 95 + - col2 + 27 * + col0 col2 FROM tab0 WHERE - ( ( - col2 ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4082
SELECT ALL - 25 + - CAST ( 26 AS INTEGER ) + col0 * + col2 + + col0 + - - col1 + 7 + 95 + - col2 + 27 * + col0 col2 FROM tab0 WHERE - ( ( - col2 ) ) IS NULL
----

query I rowsort
SELECT ( - col0 ) * - 2 AS col0 FROM tab0
----
174
194
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4084
SELECT ALL + 92 * col1 DIV - col1 AS col2, + col0 * + 87 FROM tab2
----
-92
4002
-92
5568
-92
6525

skipif mysql # not compatible
query II rowsort label-4084
SELECT ALL + 92 * col1 / - col1 AS col2, + col0 * + 87 FROM tab2
----
-92
4002
-92
5568
-92
6525

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT BETWEEN + col0 AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + col1 * + 56 FROM tab2 WHERE NULL <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL - col2 * - + 92 FROM tab2 WHERE col0 NOT IN ( - - 74 * - 27 * + + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - col2 * - + 92 FROM tab2 WHERE col0 NOT IN ( - - 74 * - 27 * + + CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT ALL + col0 * - + ( 61 ) AS col1 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT ALL 44 + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
125
45
65

query I rowsort
SELECT ALL - col1 * - + 63 AS col1 FROM tab2 AS cor0
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - SUM( DISTINCT ( - - col2 ) ) col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4091
SELECT - SUM ( DISTINCT ( - - col2 ) ) col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4092
SELECT DISTINCT - - COUNT( * ) DIV - 82, 23 AS col0 FROM tab1 AS cor0
----
0
23

skipif mysql # not compatible
query II rowsort label-4092
SELECT DISTINCT - - COUNT ( * ) / - 82, 23 AS col0 FROM tab1 AS cor0
----
0
23

query I rowsort
SELECT DISTINCT + - 7 * - 46 * - 82 AS col0 FROM tab2 AS cor0
----
-26404

query II rowsort
SELECT ALL col2, - 58 * - 91 AS col0 FROM tab1
----
59
5278
68
5278
96
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - - col0 + - + 10 FROM tab0 AS cor0
----
5
77
87

query I rowsort
SELECT col2 + + + col1 * + + col1 * col0 FROM tab0 cor0
----
196
38377
98462

query I rowsort
SELECT + 56 + - - col0 AS col0 FROM tab2 AS cor0
----
102
120
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL - - CAST( 39 AS SIGNED ) FROM tab1 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - - CAST ( 39 AS INTEGER ) FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT + 61 + - 15 AS col0 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + + 57 + - 50 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT + 58 + - - COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT + 58 + - - COUNT ( * ) FROM tab0
----
61

query I rowsort
SELECT DISTINCT col0 + + ( - - ( col2 ) ) AS col1 FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col0 FROM tab2
----
52

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4106
SELECT col1 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT col1 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4107
SELECT DISTINCT + 58 DIV + - col0, col0 AS col2 FROM tab2
----
-1
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-4107
SELECT DISTINCT + 58 / + - col0, col0 AS col2 FROM tab2
----
-1
46
0
64
0
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4108
SELECT CAST( NULL AS DECIMAL ) / - - 95 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT CAST ( NULL AS REAL ) / - - 95 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4109
SELECT col2 DIV - col2 * col2 DIV + col2 col2, 21 * - 1 AS col0 FROM tab0 AS cor0
----
-1
-21
-1
-21
-1
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4109
SELECT col2 / - col2 * col2 / + col2 col2, 21 * - 1 AS col0 FROM tab0 AS cor0
----
-1
-21
-1
-21
-1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT + SUM( 64 ) + - COUNT( * ) FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + SUM ( 64 ) + - COUNT ( * ) FROM tab2 cor0
----
189

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4111
SELECT ALL CAST( NULL AS DECIMAL ) + 86 - + + 90 * 51 * - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL CAST ( NULL AS REAL ) + 86 - + + 90 * 51 * - COUNT ( * ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4112
SELECT ALL CAST( - col0 AS SIGNED ) + - + 26 DIV col1 + col0 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL CAST ( - col0 AS INTEGER ) + - + 26 / col1 + col0 FROM tab1
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT col2 DIV ( col2 ) + 35 - - ( 61 ) + col2 * + col2 + col2 AS col2 FROM tab1
----
3637
4789
9409

skipif mysql # not compatible
query I rowsort label-4113
SELECT col2 / ( col2 ) + 35 - - ( 61 ) + col2 * + col2 + col2 AS col2 FROM tab1
----
3637
4789
9409

query I rowsort
SELECT ALL - 35 + + - 64 FROM tab1
----
-99
-99
-99

query II rowsort
SELECT col1 AS col0, + 44 AS col0 FROM tab1
----
14
44
47
44
5
44

query II rowsort
SELECT DISTINCT col0, col0 FROM tab0 WHERE NOT NULL BETWEEN - 55 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT COUNT( ALL 81 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4117
SELECT COUNT ( ALL 81 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT col1 * + ( col2 ) FROM tab1 cor0 WHERE col0 BETWEEN + col2 * + - col2 * - col0 + col0 AND + - col0 - - + col2 + - col2 * + CAST( + col0 AS SIGNED ) / - - 49
----

skipif mysql # not compatible
query I rowsort label-4118
SELECT col1 * + ( col2 ) FROM tab1 cor0 WHERE col0 BETWEEN + col2 * + - col2 * - col0 + col0 AND + - col0 - - + col2 + - col2 * + CAST ( + col0 AS INTEGER ) / - - 49
----

query I rowsort
SELECT ALL - + 52 AS col1 FROM tab1 AS cor0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 35 AS col0 FROM tab2 cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > 42
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col1 FROM tab0
----
11

query II rowsort
SELECT DISTINCT 22, + col1 AS col2 FROM tab2
----
22
51
22
67
22
77

query I rowsort
SELECT 48 * + col2 FROM tab0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT 89 * COUNT( + col0 ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-4127
SELECT 89 * COUNT ( + col0 ) FROM tab0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 col2, - col1 + - - col0 FROM tab0
----
30
-66
30
66
30
96

query II rowsort
SELECT col1, - 43 AS col2 FROM tab1
----
14
-43
47
-43
5
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL + CAST( + 66 AS SIGNED ) AS col1 FROM tab0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + CAST ( + 66 AS INTEGER ) AS col1 FROM tab0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 17 col0 FROM tab0
----
15
17
87
17
97
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT MAX( - col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4132
SELECT DISTINCT MAX ( - col0 ) col1 FROM tab0
----
-15

query II rowsort
SELECT 30, col0 AS col1 FROM tab1
----
30
51
30
85
30
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL 65 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----
0

query I rowsort
SELECT 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - ( ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE + 87 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL SUM( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
199

query II rowsort
SELECT + col2 + - col2 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4142
SELECT * FROM tab2 WHERE + col1 BETWEEN + col1 + + + col2 AND ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4142
SELECT * FROM tab2 WHERE + col1 BETWEEN + col1 + + + col2 AND ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + 53 + - col0 AS col1 FROM tab2
----
-11
-22
7

query I rowsort
SELECT DISTINCT - 98 + col0 * - col0 + - + col1 + 71 AS col2 FROM tab1
----
-2642
-7257
-8355

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - ( + - COUNT( * ) ) + COUNT( * ) + - ( - - 14 ) col1 FROM tab0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4145
SELECT - ( + - COUNT ( * ) ) + COUNT ( * ) + - ( - - 14 ) col1 FROM tab0
----
-8

query I rowsort
SELECT DISTINCT 72 * + - col1 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT DISTINCT - 97 DIV + col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT - 97 / + col2 FROM tab2
----
-1
-2
-4

query II rowsort
SELECT ALL + col2 AS col1, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT - CAST( NULL AS SIGNED ) * - + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT - CAST ( NULL AS INTEGER ) * - + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + - col0 * - + 73 AS col1 FROM tab0 AS cor0
----
1014
6330
7080

query II rowsort
SELECT col0 AS col0, - 21 FROM tab1 AS cor0
----
51
-21
85
-21
91
-21

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab2 AS cor0 WHERE + col1 * - + col2 >= + - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL - AVG ( ALL + 36 ) + + COUNT( - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + col0, col2, 78 / col2 + + + col0 * - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - AVG ( ALL + 36 ) + + COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + col0, col2, 78 / col2 + + + col0 * - 11 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT 90 DIV - + 35 + - col1 AS col1 FROM tab0 AS cor0
----
-23
-3
-83

skipif mysql # not compatible
query I rowsort label-4154
SELECT 90 / - + 35 + - col1 AS col1 FROM tab0 AS cor0
----
-23
-3
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - 35 * + MAX( col0 ) * - 98 * - + COUNT( - 94 ) FROM tab1 AS cor0
----
-936390

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 35 * + MAX ( col0 ) * - 98 * - + COUNT ( - 94 ) FROM tab1 AS cor0
----
-936390

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT - 2 DIV + 39 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT - 2 / + 39 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - 68, + 41 AS col0 FROM tab1
----
-68
41
-68
41
-68
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) = col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL + MAX( DISTINCT - 92 ) AS col2 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + MAX ( DISTINCT - 92 ) AS col2 FROM tab1
----
-92

query II rowsort
SELECT ALL + col1 AS col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + COUNT( 41 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4161
SELECT + COUNT ( 41 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 85 - - + 52 * + 54 * col2 * col2 FROM tab0 AS cor0 WHERE + col1 >= - 90 - + col1
----
27521293
280885
6202957

query I rowsort
SELECT DISTINCT - 87 * + 32 FROM tab0
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT col2 * col0 + - + col1 + col0 * - col2 + - col1 + - + col1 + - CAST( NULL AS SIGNED ) + + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT col2 * col0 + - + col1 + col0 * - col2 + - col1 + - + col1 + - CAST ( NULL AS INTEGER ) + + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT - CAST( NULL AS SIGNED ) + + col0 * - - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4165
SELECT - CAST ( NULL AS INTEGER ) + + col0 * - - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT - MIN( 78 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4166
SELECT - MIN ( 78 ) FROM tab2 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 + + col0 col0 FROM tab0 cor0
----
118
143
197

query I rowsort
SELECT ALL - col1 * + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-210
-3807
-99

query I rowsort
SELECT + col0 - - ( col2 ) FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT 43 * + CAST( NULL AS SIGNED ) - - 93 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT 43 * + CAST ( NULL AS INTEGER ) - - 93 + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - MIN( - col1 ) * - COUNT( * ) - - 70 FROM tab0
----
-173

skipif mysql # not compatible
query I rowsort label-4171
SELECT - MIN ( - col1 ) * - COUNT ( * ) - - 70 FROM tab0
----
-173

query I rowsort
SELECT DISTINCT - - col2 * - 72 AS col2 FROM tab1 AS cor0
----
-4248
-4896
-6912

query I rowsort
SELECT - 71 + + 51 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL col0 + col2 + - - col1 * - col2 FROM tab2 cor0
----
-1104
-2976
-3753

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL - COUNT( * ) * - 18 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - COUNT ( * ) * - 18 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT COUNT( * ) - - - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT COUNT ( * ) - - - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 76 * - - 92 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT DISTINCT MAX( DISTINCT - - CAST( + - 52 AS SIGNED ) ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT MAX ( DISTINCT - - CAST ( + - 52 AS INTEGER ) ) FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + - MIN( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + - MIN ( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4181
SELECT DISTINCT + - col0, col1 * ( - CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

skipif mysql # not compatible
query II rowsort label-4181
SELECT DISTINCT + - col0, col1 * ( - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT - - ( + CAST( NULL AS SIGNED ) ) * + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - - ( + CAST ( NULL AS INTEGER ) ) * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT DISTINCT + + 27 DIV + - col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT + + 27 / + - col1 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 66 * + col1 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL ( ( + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL ( ( + COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4188
SELECT + + 22 + + + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT + + 22 + + + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0 cor0
----
-60

query I rowsort
SELECT 85 + - + 84 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + ( - + 7 ) + 55 FROM tab1 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL COUNT( * ) + + COUNT( * ) + + 69 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL COUNT ( * ) + + COUNT ( * ) + + 69 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - 50 + col1 AS col0 FROM tab0 AS cor0
----
-29
-49
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT - col1 + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - col1 + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT col0 * - - ( - - col2 ) FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + 26 + - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + 26 + - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query I rowsort
SELECT ALL 18 * col0 * + 17 + + col0 FROM tab1 AS cor0
----
15657
26095
27937

query I rowsort
SELECT + + 15 + + 35 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT ALL - - col1 DIV - col1 + 89 AS col1 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - - col1 / - col1 + 89 AS col1 FROM tab2 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 28 * - col2 BETWEEN + 84 + 35 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT DISTINCT col1 + + col0 DIV - col0 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT col1 + + col0 / - col0 FROM tab2 AS cor0
----
50
66
76

query III rowsort
SELECT * FROM tab0 WHERE + 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL + 3 + ( + COUNT( * ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + 3 + ( + COUNT ( * ) ) FROM tab0
----
6

query I rowsort
SELECT - ( + 13 ) + - - col2 AS col2 FROM tab2
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT - COUNT( * ) + ( - - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - COUNT ( * ) + ( - - COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT COUNT( + 16 ) * + + 93 AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4206
SELECT COUNT ( + 16 ) * + + 93 AS col1 FROM tab2
----
279

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 - + + 11 AND + col1
----

query I rowsort
SELECT col0 * col0 * + 70 FROM tab0 cor0
----
15750
529830
658630

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - 66 * col2 * - - ( - - 82 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - 66 * col2 * - - ( - - 82 ) IS NULL
----
0

query I rowsort
SELECT ALL 20 * + col0 + - col1 FROM tab0 AS cor0
----
1719
1939
219

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT + MIN( DISTINCT - ( 45 ) ), - 4 col2 FROM tab2 cor0
----
-45
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4211
SELECT + MIN ( DISTINCT - ( 45 ) ), - 4 col2 FROM tab2 cor0
----
-45
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + MIN( - + 76 ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT + MIN ( - + 76 ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 91 * - - ( 18 ) = + 78 + - 93
----
-46
-64
-75

query I rowsort
SELECT + 85 * - 18 FROM tab1 AS cor0
----
-1530
-1530
-1530

query I rowsort
SELECT - ( - + ( - 82 ) ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - + 87 * + col2 AS col1 FROM tab1 AS cor0
----
-5133
-5916
-8352

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL - CAST( + SUM( ALL col2 ) AS SIGNED ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - CAST ( + SUM ( ALL col2 ) AS INTEGER ) AS col2 FROM tab0
----
-156

query II rowsort
SELECT ALL - col0 AS col0, + col1 * col1 * - 52 * + col2 FROM tab0
----
-15
-16035084
-87
-229320
-97
-5148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + col0 * - col0 AS col2 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - 90 + - 40 * + col2 * 81
----

query I rowsort
SELECT DISTINCT - ( - - 94 ) AS col1 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + ( - MIN( - 63 ) ) AS col0 FROM tab2 WHERE NOT + 10 + - + col1 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + ( - MIN ( - 63 ) ) AS col0 FROM tab2 WHERE NOT + 10 + - + col1 IS NULL
----
63

query I rowsort
SELECT DISTINCT - col1 + 46 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-21
-31
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / + + col0 + - - 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT + + 6 + - + MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4226
SELECT + + 6 + - + MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-45

query II rowsort
SELECT ( col1 ) + - col0 + + 49 AS col0, col2 * col0 FROM tab1 AS cor0
----
-31
5015
12
4896
5
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT ALL + col0 * CAST( NULL AS SIGNED ) / - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) / - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 47 * - - ( col2 ) AS col1 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT DISTINCT + 32 + col2 AS col1 FROM tab2 AS cor0
----
55
72
90

query I rowsort
SELECT DISTINCT - 43 + - + col0 FROM tab2
----
-107
-118
-89

query I rowsort
SELECT ALL - col2 - - - col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL col2 - - col0 * + ( 18 ) FROM tab2
----
1192
1408
851

query I rowsort
SELECT + 18 * - col1 * + 64 FROM tab1 cor0
----
-16128
-54144
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT - MAX( DISTINCT - 33 ) col1 FROM tab0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT DISTINCT - MAX ( DISTINCT - 33 ) col1 FROM tab0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT - SUM( ALL + col2 ) * - 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-4236
SELECT DISTINCT - SUM ( ALL + col2 ) * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * - col0 - - 59 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL - + col2 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - + col2 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL + col2 * ( + col2 ) FROM tab0 WHERE 91 + + ( + + col0 ) NOT BETWEEN + CAST( NULL AS SIGNED ) * + 56 + 31 AND ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + col2 * ( + col2 ) FROM tab0 WHERE 91 + + ( + + col0 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) * + 56 + 31 AND ( + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT + CAST( NULL AS SIGNED ) / + - 31 * + 46 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT + CAST ( NULL AS INTEGER ) / + - 31 * + 46 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 59 * - col1 AS col0 FROM tab1 AS cor0
----
2773
295
826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4242
SELECT ( - CAST( - + 8 AS SIGNED ) ) * col2 AS col0, col1 FROM tab2 AS cor0
----
184
51
320
77
464
67

skipif mysql # not compatible
query II rowsort label-4242
SELECT ( - CAST ( - + 8 AS INTEGER ) ) * col2 AS col0, col1 FROM tab2 AS cor0
----
184
51
320
77
464
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT - + 62 DIV - 60 + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT - + 62 / - 60 + COUNT ( * ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT - col2 * + - 47 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT col1 * - - 30 FROM tab0
----
2430
30
630

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
83

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT ( NOT col0 * col1 IS NOT NULL )
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 66 col0 FROM tab1
----
-3894
-4488
-6336

query I rowsort
SELECT DISTINCT - 58 * + 11 FROM tab1
----
-638

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT 53 DIV col1 + col2 FROM tab0
----
12
152
47

skipif mysql # not compatible
query I rowsort label-4251
SELECT 53 / col1 + col2 FROM tab0
----
12
152
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT CAST( NULL AS SIGNED ) + col0 - + 58 * - + col1 * + 95 * - ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4252
SELECT CAST ( NULL AS INTEGER ) + col0 - + 58 * - + col1 * + 95 * - ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 56 * + col0 + - col2 FROM tab2 AS cor0
----
2553
3544
4142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT + CAST( NULL AS SIGNED ) * 26 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4254
SELECT + CAST ( NULL AS INTEGER ) * 26 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL col2 DIV + - 95 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL col2 / + - 95 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + + + ( + 98 ) * + 63 AS col0 FROM tab0 cor0
----
6189
6261
6271

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL - COUNT( * ) * MIN( - - col0 ) + 70 AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - COUNT ( * ) * MIN ( - - col0 ) + 70 AS col1 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT DISTINCT + - 77 + - - 42 + - col1 FROM tab2 AS cor0
----
-102
-112
-86

query I rowsort
SELECT - col1 + - + col2 * + + col1 / - col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT 27 + ( - col1 ) - col0 AS col0 FROM tab2 AS cor0
----
-114
-115
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT + + CAST( NULL AS SIGNED ) * col1 * - ( - col0 ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT + + CAST ( NULL AS INTEGER ) * col1 * - ( - col0 ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + ( - + 95 ) + - MIN( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4262
SELECT + ( - + 95 ) + - MIN ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL + 6 + - 55 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - col0 + - + col1 * + col1 FROM tab0
----
-528
-6576
-98

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT + 52 + - col2 <= - + 14 * + col0 * + col0
----
1
21
81

query I rowsort
SELECT ALL 73 - + 10 AS col0 FROM tab1
----
63
63
63

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 96, 35 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4268
SELECT * FROM tab0 AS cor0 WHERE NOT 21 NOT BETWEEN CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4268
SELECT * FROM tab0 AS cor0 WHERE NOT 21 NOT BETWEEN CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4269
SELECT + - ( COUNT( * ) ) * - 36 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT + - ( COUNT ( * ) ) * - 36 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 16 * + col1 AS col2 FROM tab1 cor0
----
224
752
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND col1 * + col0 * + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 91 col2, col1 * - - 96 - + col2 FROM tab1 AS cor0
----
-91
1248
-91
421
-91
4444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT + - 70 + 26 * - + col1 + CAST( - - col1 AS SIGNED ) * - col1 * + - 70 FROM tab1 AS cor0
----
13286
153338
1550

skipif mysql # not compatible
query I rowsort label-4273
SELECT + - 70 + 26 * - + col1 + CAST ( - - col1 AS INTEGER ) * - col1 * + - 70 FROM tab1 AS cor0
----
13286
153338
1550

query I rowsort
SELECT ALL 54 AS col2 FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
54
54
54

query I rowsort
SELECT + - 66 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + col2 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
4345
484
810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT - 41 / + + CAST( NULL AS SIGNED ) + 98 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT - 41 / + + CAST ( NULL AS INTEGER ) + 98 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col0 + + - col1 * + + 7 FROM tab0 AS cor0
----
-50
-505
189

query I rowsort
SELECT col1 * col0 + + col1 + - 37 * - - col2 + + + 37 * - 79 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT col2 * col1 DIV ( + + col1 ) col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4281
SELECT col2 * col1 / ( + + col1 ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4282
SELECT * FROM tab1 WHERE - - 81 - col2 <> + col1 / CAST( - + col1 AS SIGNED ) - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4282
SELECT * FROM tab1 WHERE - - 81 - col2 <> + col1 / CAST ( - + col1 AS INTEGER ) - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT ALL col2 + + + col2 DIV + - 21 AS col0 FROM tab1
----
57
65
92

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL col2 + + + col2 / + - 21 AS col0 FROM tab1
----
57
65
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT 9 * COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT 9 * COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 * + 84 * col1 * - + 12 AS col0 FROM tab2
----
-2364768
-4967424
-5065200

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT col1 - - 41 + 7 DIV - col2 AS col1 FROM tab0 AS cor0
----
122
42
62

skipif mysql # not compatible
query I rowsort label-4286
SELECT col1 - - 41 + 7 / - col2 AS col1 FROM tab0 AS cor0
----
122
42
62

query I rowsort
SELECT DISTINCT col2 + 71 AS col1 FROM tab1 AS cor0
----
130
139
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL CAST( NULL AS SIGNED ) * 7 + - + col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4288
SELECT ALL CAST ( NULL AS INTEGER ) * 7 + - + col0 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 + - - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 + - - col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 66 * + 49 - - col2 AS col0 FROM tab0 AS cor0
----
3244
3281
3333

query I rowsort
SELECT DISTINCT col2 / + - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL SUM( DISTINCT - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL SUM ( DISTINCT - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT col1 + + col0 + + 69 FROM tab0 AS cor0
----
165
167
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col1 FROM tab0 cor0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT CAST( - ( MAX( ALL 82 ) ) AS SIGNED ) + - COUNT( * ) * - - COUNT( * ) * + ( + AVG ( ALL + col0 ) ) FROM tab1 WHERE NOT ( - 21 ) < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT CAST ( - ( MAX ( ALL 82 ) ) AS INTEGER ) + - COUNT ( * ) * - - COUNT ( * ) * + ( + AVG ( ALL + col0 ) ) FROM tab1 WHERE NOT ( - 21 ) < col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT DISTINCT + col2 DIV 12 AS col1 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + col2 / 12 AS col1 FROM tab2
----
1
3
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4297
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4297
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) col0 FROM tab2
----
3
3

query II rowsort
SELECT - 2 AS col1, col1 AS col0 FROM tab0
----
-2
1
-2
21
-2
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT + col1 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT + col1 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 55 ) AS col1 FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT + col1 * + + CAST( NULL AS SIGNED ) - - - col1 * - CAST( NULL AS SIGNED ) + + 21 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT + col1 * + + CAST ( NULL AS INTEGER ) - - - col1 * - CAST ( NULL AS INTEGER ) + + 21 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, 0 col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT ALL - col2 - + col1 * col0 AS col0 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + SUM( - col2 ) col2 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT ALL + SUM ( - col2 ) col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4305
SELECT COUNT( * ) DIV + 78 + - COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4305
SELECT COUNT ( * ) / + 78 + - COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - CAST( 83 AS SIGNED ) FROM tab2 WHERE NOT NULL < ( col0 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-4307
SELECT - CAST ( 83 AS INTEGER ) FROM tab2 WHERE NOT NULL < ( col0 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 35 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col1 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL + col2 * CAST( - 94 AS SIGNED ) FROM tab0
----
-4418
-9306
-940

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + col2 * CAST ( - 94 AS INTEGER ) FROM tab0
----
-4418
-9306
-940

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab2 WHERE NOT ( col2 + col0 ) > ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * + 48 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT 27 - - COUNT( + col0 + col2 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4314
SELECT 27 - - COUNT ( + col0 + col2 ) FROM tab0
----
30

query I rowsort
SELECT DISTINCT + 55 * col2 FROM tab2
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - 86 / MAX( + 17 ) FROM tab2 WHERE NOT - col2 * col2 + - 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT - 86 / MAX ( + 17 ) FROM tab2 WHERE NOT - col2 * col2 + - 68 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - ( - 18 ) * - 23 IS NULL
----

query I rowsort
SELECT DISTINCT + ( col2 ) - col0 * col0 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT 88 * + COUNT( * ) AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4319
SELECT 88 * + COUNT ( * ) AS col2 FROM tab2
----
264

query I rowsort
SELECT ALL + ( ( + col0 ) ) + col0 AS col0 FROM tab0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + COUNT( * ) * - 32 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4322
SELECT + COUNT ( * ) * - 32 FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT + ( - col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4323
SELECT + ( - col2 ) / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL COUNT( * ) + - ( 82 ) FROM tab1 cor0 WHERE NOT ( + col2 - + 34 ) < + col0
----
-81

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL COUNT ( * ) + - ( 82 ) FROM tab1 cor0 WHERE NOT ( + col2 - + 34 ) < + col0
----
-81

query I rowsort
SELECT col2 * - 19 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4326
SELECT * FROM tab0 AS cor0 WHERE col0 < CAST( col2 AS SIGNED )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-4326
SELECT * FROM tab0 AS cor0 WHERE col0 < CAST ( col2 AS INTEGER )
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * - col2 col1 FROM tab2 AS cor0
----
-1978
-3440
-4988

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4328
SELECT ALL col0 AS col0 FROM tab1 cor0 WHERE + col1 BETWEEN CAST( NULL AS DECIMAL ) AND col2
----

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL col0 AS col0 FROM tab1 cor0 WHERE + col1 BETWEEN CAST ( NULL AS REAL ) AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT ALL col2 - - ( col1 ) DIV 64 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL col2 - - ( col1 ) / 64 FROM tab0
----
10
48
99

query I rowsort
SELECT col1 - ( col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 * 57 - - 5 FROM tab0
----
4964
5534
860

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + 94 / 90 NOT BETWEEN + 39 AND 96
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 27 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
27

query I rowsort
SELECT col1 + + 37 * col2 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT ALL 15 * 35 AS col2 FROM tab2 AS cor0
----
525
525
525

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 32 * col2 <= col0 + col0
----

query I rowsort
SELECT + 92 * col1 AS col0 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT - col2 * 12 AS col1 FROM tab0 AS cor0
----
-1188
-120
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT MAX( - col2 ) * + COUNT( - col0 / + 80 ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT MAX ( - col2 ) * + COUNT ( - col0 / + 80 ) AS col2 FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT - + 32 * - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - + 32 * - COUNT ( * ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT 0 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col1 * 33 + + col1 * - 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT + ( + ( - col0 ) ) DIV - 67 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4343
SELECT + ( + ( - col0 ) ) / - 67 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT DISTINCT + col1 * ( + col2 ) DIV col0 FROM tab2
----
25
48
51

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + col1 * ( + col2 ) / col0 FROM tab2
----
25
48
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col0 - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4347
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4347
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT - ( + - col1 ) DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT - ( + - col1 ) / col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4349
SELECT ALL + CAST( 88 AS SIGNED ) DIV + col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + CAST ( 88 AS INTEGER ) / + col1 AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 12 + 91 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4351
SELECT DISTINCT + 44 AS col0 FROM tab2 WHERE + col1 + + ( - CAST( NULL AS DECIMAL ) ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + 44 AS col0 FROM tab2 WHERE + col1 + + ( - CAST ( NULL AS REAL ) ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT + COUNT( * ) * - ( 59 ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-4352
SELECT + COUNT ( * ) * - ( 59 ) AS col2 FROM tab1
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - ( - - 33 ) AS col0 FROM tab1
----
-33
-33
-33

query I rowsort
SELECT + + 76 * + 43 FROM tab2 AS cor0
----
3268
3268
3268

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) <> - col1 + ( + col1 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4357
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT ALL ( col1 ) DIV + col1 + 52 AS col1 FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL ( col1 ) / + col1 + 52 AS col1 FROM tab0
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4360
SELECT DISTINCT SUM( DISTINCT + col2 ) col0 FROM tab1 WHERE NOT + 6 NOT BETWEEN NULL AND + col1 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4360
SELECT DISTINCT SUM ( DISTINCT + col2 ) col0 FROM tab1 WHERE NOT + 6 NOT BETWEEN NULL AND + col1 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT + COUNT( * ) - + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4361
SELECT DISTINCT + COUNT ( * ) - + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-13

query II rowsort
SELECT ALL col0, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT + + 23 + + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + + 23 + + COUNT ( * ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - 6 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4364
SELECT - 6 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4365
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col2 AND - CAST( NULL AS SIGNED ) + - 83
----

skipif mysql # not compatible
query III rowsort label-4365
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col2 AND - CAST ( NULL AS INTEGER ) + - 83
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4366
SELECT - + col1 + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT - + col1 + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4367
SELECT ALL COUNT( * ) + + COUNT( * ) DIV + SUM( - CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL COUNT ( * ) + + COUNT ( * ) / + SUM ( - CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT DISTINCT - col2 + + - 70 DIV - 10 - col1 * col2 FROM tab2 cor0
----
-1189
-3113
-3937

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT - col2 + + - 70 / - 10 - col1 * col2 FROM tab2 cor0
----
-1189
-3113
-3937

query I rowsort
SELECT DISTINCT ( + - 13 ) AS col1 FROM tab1
----
-13

query I rowsort
SELECT DISTINCT + 9 * + 0 * - - 64 + - - 15 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE - - 39 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - - 39 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT - ( - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4372
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( + + 3 ) IS NULL
----

query I rowsort
SELECT - 71 * - 4 FROM tab0
----
284
284
284

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT COUNT( * ) * + 68 AS col1 FROM tab1 WHERE NOT col1 <> - - col2
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT COUNT ( * ) * + 68 AS col1 FROM tab1 WHERE NOT col1 <> - - col2
----
0

query I rowsort
SELECT DISTINCT col2 - + col1 * - - col0 - - - ( - col2 ) FROM tab2
----
-2300
-4848
-4909

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0, col2 + - + 58 + 71 )
----

query I rowsort
SELECT - + col2 + col0 + + 60 AS col0 FROM tab1 AS cor0
----
15
83
86

query I rowsort
SELECT ALL 15 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 * + 17 + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT + 74 * - + COUNT( * ) * 48 FROM tab0 cor0 WHERE - 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + 74 * - + COUNT ( * ) * 48 FROM tab0 cor0 WHERE - 27 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 5 NOT BETWEEN - col2 + - col1 AND col2
----

query I rowsort
SELECT col1 + + + 86 AS col2 FROM tab2
----
137
153
163

query I rowsort
SELECT DISTINCT + col0 - + 93 FROM tab0
----
-6
-78
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * - + 93 col1 FROM tab2
----
6417
6417
6417

query I rowsort
SELECT ALL - col0 / - col2 FROM tab0 WHERE NOT 99 NOT IN ( - col1 * + col0 ) OR 30 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4386
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4386
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ( col0 ) * ( + col1 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT + + COUNT( - - 69 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT + + COUNT ( - - 69 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - 95, + 34 * + 27 * col1 AS col0 FROM tab1 AS cor0
----
-95
12852
-95
43146
-95
4590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT ALL CAST( + 79 AS SIGNED ) * - col1 AS col1 FROM tab2 cor0
----
-4029
-5293
-6083

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL CAST ( + 79 AS INTEGER ) * - col1 AS col1 FROM tab2 cor0
----
-4029
-5293
-6083

query I rowsort
SELECT DISTINCT col2 / + 60 * - 37 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT - - col1 AS col2, - col2 AS col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT - col0 * - - col2 * 0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - 11 ) IS NOT NULL
----

query I rowsort
SELECT + 24 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
24
24
24

query II rowsort
SELECT col2 * + 19 AS col2, + col1 AS col0 FROM tab0
----
1881
1
190
21
893
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4398
SELECT DISTINCT * FROM tab1 WHERE + - 51 * - col1 * - ( col1 ) + CAST( - col2 AS SIGNED ) + col0 <= col0 / + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4398
SELECT DISTINCT * FROM tab1 WHERE + - 51 * - col1 * - ( col1 ) + CAST ( - col2 AS INTEGER ) + col0 <= col0 / + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT DISTINCT - SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT - COUNT( * ) * 59 AS col1 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - COUNT ( * ) * 59 AS col1 FROM tab0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT - COUNT( - ( - col0 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT - COUNT ( - ( - col0 ) ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + ( + 98 ) >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT COUNT( * ) * - COUNT( + col1 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT COUNT ( * ) * - COUNT ( + col1 ) FROM tab0
----
-9

query I rowsort
SELECT - 81 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 * - col0 * - 72 ) < ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - + 68 / - ( col1 ) + + + col2 + + col2 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT - 69 DIV + 60 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4406
SELECT - 69 / + 60 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 78 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - ( + col2 ) ) * 9 col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-531
-612
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4409
SELECT ALL + - 5 DIV + COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + - 5 / + COUNT ( * ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT - - col0 * - - 15 + ( - + 51 ) AS col2 FROM tab2 AS cor0
----
1074
639
909

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4411
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <= CAST( - 78 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4411
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <= CAST ( - 78 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT + + 40 + col1 * - - col2 FROM tab0 AS cor0
----
139
250
3847

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4414
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 69 - - col1 AS col0 FROM tab2 AS cor0
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - COUNT( * ) * - - 82 + - 90 + + + COUNT( DISTINCT - 83 ) FROM tab1 AS cor0
----
-335

skipif mysql # not compatible
query I rowsort label-4416
SELECT - COUNT ( * ) * - - 82 + - 90 + + + COUNT ( DISTINCT - 83 ) FROM tab1 AS cor0
----
-335

query I rowsort
SELECT ALL - col0 + + ( - - ( - col2 ) ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + + ( - - 36 ) + - col0 * + col2 - - 51 FROM tab2 cor0
----
-2473
-4263
-971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT - col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4419
SELECT - col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 27 + - col0 FROM tab2
----
-102
-73
-91

query I rowsort
SELECT ALL - 94 + col2 + - col1 AS col1 FROM tab1
----
-12
-40
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT 86 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT 86 IS NULL
----
3

query I rowsort
SELECT col1 * col0 + - + col2 FROM tab2 WHERE NULL >= + + 37 + - col0 + col0
----

query I rowsort
SELECT DISTINCT col2 - + - col0 + ( + col2 ) FROM tab0
----
107
109
295

query III rowsort
SELECT * FROM tab1 WHERE - - 31 BETWEEN col1 / col0 - - col0 + - col2 * 9 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4426
SELECT COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT COUNT ( * ) + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + - 20 AS col2, + ( 19 ) AS col0 FROM tab2 AS cor0
----
-20
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 82 ) col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( + 51, 67 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4429
SELECT CAST( NULL AS SIGNED ) AS col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-4429
SELECT CAST ( NULL AS INTEGER ) AS col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL MAX( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + 10 * - col0 + + col2 AS col1, col2 FROM tab1 AS cor0
----
-414
96
-791
59
-842
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT DISTINCT + CAST( - ( - - 52 ) AS SIGNED ) + 66 * - col1 FROM tab1 AS cor0
----
-3154
-382
-976

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + CAST ( - ( - - 52 ) AS INTEGER ) + 66 * - col1 FROM tab1 AS cor0
----
-3154
-382
-976

query I rowsort
SELECT ALL 70 AS col2 FROM tab0 WHERE + ( + + col0 ) NOT IN ( + col0 * + col1 - + + col0, col1 + col0 )
----
70
70
70

query I rowsort
SELECT ALL - - 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - + 70 ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( ( 22 ) ) + 57
----

query I rowsort
SELECT + col2 * 26 * - 70 FROM tab2 AS cor0
----
-105560
-41860
-72800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT DISTINCT 52 * CAST( + - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4438
SELECT DISTINCT 52 * CAST ( + - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

query I rowsort
SELECT ALL - 2 * + col1 * col0 AS col2 FROM tab0 AS cor0
----
-194
-2430
-3654

query I rowsort
SELECT + - col1 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL col2 * - + 40 AS col1 FROM tab0
----
-1880
-3960
-400

query I rowsort
SELECT ALL - 84 AS col1 FROM tab1 WHERE NOT + 18 < col2
----

query I rowsort
SELECT DISTINCT ( - 6 ) FROM tab0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 28 + + 23 NOT BETWEEN - col1 * - col2 AND ( 73 )
----

query I rowsort
SELECT ALL ( + 51 ) AS col0 FROM tab2
----
51
51
51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 * + ( + + 27 ) < NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( - 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL MAX( + col2 ) col2 FROM tab0 WHERE NOT + - col0 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4448
SELECT ALL MAX ( + col2 ) col2 FROM tab0 WHERE NOT + - col0 + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 57 + + col1 FROM tab2
----
-6
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - - SUM( - 97 ) * - 37 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
32301

skipif mysql # not compatible
query I rowsort label-4450
SELECT - - SUM ( - 97 ) * - 37 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
32301

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT ALL - 77 DIV col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - 77 / col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + + col0 * - 8 * - + col0 FROM tab2 AS cor0
----
16928
32768
45000

query I rowsort
SELECT 50 * col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 24 * - col0 * 9 + 65 AS col1 FROM tab2 AS cor0
----
-13759
-16135
-9871

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT ALL - 99 - - - SUM( col2 ) + + 75 AS col1, 30 FROM tab0 AS cor0
----
-180
30

skipif mysql # not compatible
query II rowsort label-4455
SELECT ALL - 99 - - - SUM ( col2 ) + + 75 AS col1, 30 FROM tab0 AS cor0
----
-180
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4456
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 39 col2, col0 AS col0 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-4456
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 39 col2, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL col2 + - - 42 FROM tab0
----
141
52
89

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + col0 ) - + 83 FROM tab0
----
-170
-180
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col2 FROM tab0
----
-73
-73
-73

query I rowsort
SELECT 75 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1 + - - 37 AS col1, col0 * 58 AS col2 FROM tab1
----
42
4930
51
2958
84
5278

query I rowsort
SELECT 46 + col2 AS col2 FROM tab0 AS cor0
----
145
56
93

query I rowsort
SELECT DISTINCT 94 * - - col0 + + col1 AS col1 FROM tab2 AS cor0
----
4375
6093
7117

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT MIN( + 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4466
SELECT MIN ( + 27 ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + COUNT( * ) + + - 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4467
SELECT + COUNT ( * ) + + - 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query II rowsort
SELECT DISTINCT - - ( col2 ) * col1 AS col1, col1 * + + 18 FROM tab0 WHERE col0 IS NOT NULL
----
210
378
3807
1458
99
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL - SUM( DISTINCT 46 ) AS col2 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - SUM ( DISTINCT 46 ) AS col2 FROM tab1 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 10 IS NOT NULL
----

query II rowsort
SELECT col1, 72 * + ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
-3312
67
-5400
77
-4608

query II rowsort
SELECT col1 AS col2, 91 AS col0 FROM tab2 AS cor0
----
51
91
67
91
77
91

query I rowsort
SELECT DISTINCT - col0 * col0 * - - col2 AS col1 FROM tab2
----
-163840
-326250
-48668

query II rowsort
SELECT DISTINCT - ( - col1 ), + 22 + col1 AS col1 FROM tab2
----
51
73
67
89
77
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT CAST( 95 AS SIGNED ) AS col2 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-4476
SELECT CAST ( 95 AS INTEGER ) AS col2 FROM tab2
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - MAX( - col2 ) col1 FROM tab2 WHERE NOT + 37 NOT BETWEEN 6 AND - - col1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4477
SELECT - MAX ( - col2 ) col1 FROM tab2 WHERE NOT + 37 NOT BETWEEN 6 AND - - col1
----
23

query I rowsort
SELECT 31 * - 18 FROM tab2
----
-558
-558
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT MAX( col0 ) DIV + SUM( - + ( - 84 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT MAX ( col0 ) / + SUM ( - + ( - 84 ) ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT col0 + - col1 - + + col1 DIV + - 24 AS col2 FROM tab0
----
-63
66
96

skipif mysql # not compatible
query I rowsort label-4480
SELECT col0 + - col1 - + + col1 / + - 24 AS col2 FROM tab0
----
-63
66
96

query I rowsort
SELECT 38 * col0 * - + col2 + col2 * 2 FROM tab2
----
-165184
-40158
-97200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 13 * - col1 col2 FROM tab2
----
33813
58357
77077

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT DISTINCT + - 90 DIV + + col1 AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + - 90 / + + col1 AS col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT - 41 - col0 * + 78 * + col0 AS col1 FROM tab0 cor0 WHERE - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + 49 * + col0 + - 31 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 49 * + col0 + - 31 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT + 16 DIV + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + 16 / + col0 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT COUNT( DISTINCT - - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4487
SELECT COUNT ( DISTINCT - - col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + col1 * 47 AS col2 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT - col2 - - 99 FROM tab2
----
41
59
76

query I rowsort
SELECT DISTINCT col1 + - col2 * - + col0 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT - col1 * - CAST( NULL AS SIGNED ) * - col2 * ( - col2 ) + + CAST( ( - CAST( col1 AS SIGNED ) ) AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4491
SELECT - col1 * - CAST ( NULL AS INTEGER ) * - col2 * ( - col2 ) + + CAST ( ( - CAST ( col1 AS INTEGER ) ) AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + - MIN( DISTINCT + col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + - MIN ( DISTINCT + col0 ) FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL + MIN( 73 ) + + ( + 67 ) FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + MIN ( 73 ) + + ( + 67 ) FROM tab1 AS cor0
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT + - col1 DIV ( - - col1 ) + - - col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-4494
SELECT + - col1 / ( - - col1 ) + - - col1 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT + ( + + 99 ) DIV + col2 + + col2 FROM tab0 AS cor0
----
100
19
49

skipif mysql # not compatible
query I rowsort label-4495
SELECT + ( + + 99 ) / + col2 + + col2 FROM tab0 AS cor0
----
100
19
49

query I rowsort
SELECT DISTINCT + col0 - - col0 AS col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT - ( + 80 ) * - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
240

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - ( + 80 ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT ALL 13 DIV + - col1 - 71 FROM tab0
----
-71
-71
-84

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL 13 / + - col1 - 71 FROM tab0
----
-71
-71
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT + col1 + - + CAST( - col2 AS SIGNED ) FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-4499
SELECT + col1 + - + CAST ( - col2 AS INTEGER ) FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 21 * - col1 - col1 FROM tab0
----
-1782
-22
-462

query II rowsort
SELECT col0 AS col2, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL CAST( - col1 AS SIGNED ) + + + col0 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL CAST ( - col1 AS INTEGER ) + + + col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT - 54 AS col0 FROM tab2 WHERE 26 IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT - + col0 * - + 36 * + + 19 FROM tab0 cor0
----
10260
59508
66348

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 - - col0 + - col2 / + 20 * - col0 NOT BETWEEN + col0 + - + col0 - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT - + 63 * - col1 + + - ( - CAST( - + col2 AS SIGNED ) ) - + - ( + - col2 ) FROM tab0 AS cor0
----
-135
1303
5009

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - + 63 * - col1 + + - ( - CAST ( - + col2 AS INTEGER ) ) - + - ( + - col2 ) FROM tab0 AS cor0
----
-135
1303
5009

query I rowsort
SELECT ALL - + 27 * - ( 15 ) + col1 AS col1 FROM tab2 AS cor0
----
456
472
482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT 39, + COUNT( * ) col1 FROM tab2
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4509
SELECT 39, + COUNT ( * ) col1 FROM tab2
----
39
3

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT + - 16 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col0 * 89 AS col2, - 60 - + ( - col2 ) col1 FROM tab2
----
-208794
-37
-438592
-20
-447225
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT ALL - COUNT( * ) col0, COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
-3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4513
SELECT ALL - COUNT ( * ) col0, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
-3
-9

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - ( - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT - 79 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT - 79 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT - ( MIN( + + 96 ) ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT - ( MIN ( + + 96 ) ) AS col1 FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT col2 + 28 + + 93 * col1 * col0 + col1 FROM tab0 AS cor0
----
113151
169970
9149

onlyif mysql # DIV for integer division: 
query II rowsort label-4518
SELECT DISTINCT - - col1 * - col2 + - 97 DIV + col2, col1 + + + col2 DIV col2 AS col1 FROM tab2 cor0
----
-1177
52
-3082
78
-3887
68

skipif mysql # not compatible
query II rowsort label-4518
SELECT DISTINCT - - col1 * - col2 + - 97 / + col2, col1 + + + col2 / col2 AS col1 FROM tab2 cor0
----
-1177
52
-3082
78
-3887
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4519
SELECT COUNT( * ) * + MIN( ALL - col2 ) * + - COUNT( - col0 ) / - COUNT( * ) + - - COUNT( * ) + - 80 * + CAST( NULL AS SIGNED ), COUNT( * ) * + SUM( ALL - col0 ) AS col1 FROM tab1
----
NULL
-681

skipif mysql # not compatible
query II rowsort label-4519
SELECT COUNT ( * ) * + MIN ( ALL - col2 ) * + - COUNT ( - col0 ) / - COUNT ( * ) + - - COUNT ( * ) + - 80 * + CAST ( NULL AS INTEGER ), COUNT ( * ) * + SUM ( ALL - col0 ) AS col1 FROM tab1
----
NULL
-681

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4520
SELECT DISTINCT * FROM tab0 WHERE CAST( col1 AS SIGNED ) NOT BETWEEN col0 AND + - ( col0 ) * - + col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-4520
SELECT DISTINCT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) NOT BETWEEN col0 AND + - ( col0 ) * - + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT col2 * CAST( NULL AS SIGNED ) + + col1 * col1 AS col1 FROM tab0 WHERE - 60 + - 7 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT col2 * CAST ( NULL AS INTEGER ) + + col1 * col1 AS col1 FROM tab0 WHERE - 60 + - 7 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4522
SELECT col0 DIV 78 * col1 * + col1 AS col0, col1 FROM tab0 AS cor0
----
0
81
1
1
441
21

skipif mysql # not compatible
query II rowsort label-4522
SELECT col0 / 78 * col1 * + col1 AS col0, col1 FROM tab0 AS cor0
----
0
81
1
1
441
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT - SUM( + 56 ) AS col2, - 62 + + + ( 97 ) FROM tab0 AS cor0
----
-168
35

skipif mysql # not compatible
query II rowsort label-4523
SELECT - SUM ( + 56 ) AS col2, - 62 + + + ( 97 ) FROM tab0 AS cor0
----
-168
35

query I rowsort
SELECT ALL + 64 * + 57 * + col0 * + + col0 FROM tab2 AS cor0
----
14942208
20520000
7719168

query I rowsort
SELECT ALL - col0 + + 18 AS col0 FROM tab0 cor0
----
-69
-79
3

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( - 10 IS NOT NULL )
----
10
47
99

query I rowsort
SELECT DISTINCT ( + + 37 ) * + 63 + - 42 AS col1 FROM tab0 AS cor0
----
2289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT 13 * + col2 - + + CAST( - ( - 96 ) AS SIGNED ) * + - col2 FROM tab2
----
2507
4360
6322

skipif mysql # not compatible
query I rowsort label-4528
SELECT 13 * + col2 - + + CAST ( - ( - 96 ) AS INTEGER ) * + - col2 FROM tab2
----
2507
4360
6322

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - COUNT( - 7 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - COUNT ( - 7 ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT ALL - col1 DIV + - 7 AS col0 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - col1 / + - 7 AS col0 FROM tab2
----
11
7
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT COUNT( * ) * + 17 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4531
SELECT COUNT ( * ) * + 17 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + SUM( + + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4532
SELECT + SUM ( + + col1 ) AS col0 FROM tab0
----
103

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col2 + - 64 * + col1 / - 41 >= col2 OR - col0 + + col2 < NULL
----

query I rowsort
SELECT - 84 * col2 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT - - 37 * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
181152
185555
228956

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + col1 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 39 * + col2 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # DIV for integer division: 
query II rowsort label-4538
SELECT + col0 AS col2, ( - col2 ) + - - col1 DIV 35 DIV ( col1 ) AS col0 FROM tab2
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
query II rowsort label-4538
SELECT + col0 AS col2, ( - col2 ) + - - col1 / 35 / ( col1 ) AS col0 FROM tab2
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 * + ( + - col1 ) >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 79 + + col2 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * 80 col0 FROM tab1 AS cor0 WHERE col0 * + col2 <> + col0
----
4080
6800
7280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4541
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * 80 col0 FROM tab1 AS cor0 WHERE col0 * + col2 <> + col0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - MIN( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT - MIN ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 5 + - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab2 WHERE - - col2 * - 24 IS NULL
----

query I rowsort
SELECT - col0 * + + col1 + + - ( - 74 ) FROM tab2
----
-2272
-4854
-4951

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT - col2 * + 69 * 55 IS NOT NULL AND ( + - col2 ) + + 63 NOT IN ( + col2, + ( col1 ) + - ( - - 41 ), - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4547
SELECT ALL + 56 + - + COUNT( * ) AS col2, COUNT( * ) * CAST( NULL AS SIGNED ) / + + 20 FROM tab1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4547
SELECT ALL + 56 + - + COUNT ( * ) AS col2, COUNT ( * ) * CAST ( NULL AS INTEGER ) / + + 20 FROM tab1
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT + MAX( DISTINCT - ( - - col0 ) ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + MAX ( DISTINCT - ( - - col0 ) ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT + - ( + 30 ) FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - col1 * - 39 AS col0 FROM tab1
----
1833
195
546

query III rowsort
SELECT * FROM tab1 WHERE - col0 - - col0 + + - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT - col0 + CAST( NULL AS SIGNED ) + + CAST( 79 AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT - col0 + CAST ( NULL AS INTEGER ) + + CAST ( 79 AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL MAX( DISTINCT 14 ) AS col2 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL MAX ( DISTINCT 14 ) AS col2 FROM tab1 AS cor0
----
14

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + - 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL - - 68 * + COUNT( * ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - - 68 * + COUNT ( * ) FROM tab2 AS cor0
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 * 52 col2 FROM tab1 AS cor0
----
22100
222404
37128

query I rowsort
SELECT + + col2 * + col1 * - - col0 * 58 + + 77 AS col2 FROM tab0 AS cor0
----
1059737
3312167
557051

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT 4 DIV + + 79 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT 4 / + + 79 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - + ( - col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE + col0 BETWEEN NULL AND - 40
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT + SUM( ALL - col1 ) DIV + + 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + SUM ( ALL - col1 ) / + + 72 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL + + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + + col2 / + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + + 40 * 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + COUNT( - 71 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4566
SELECT + COUNT ( - 71 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ( + - COUNT( * ) ) * + 69 FROM tab1 AS cor0 WHERE NOT 11 + - 82 > - col1 * col1
----
-69

skipif mysql # not compatible
query I rowsort label-4567
SELECT ( + - COUNT ( * ) ) * + 69 FROM tab1 AS cor0 WHERE NOT 11 + - 82 > - col1 * col1
----
-69

query I rowsort
SELECT col1 * - + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL + 37 + + - COUNT( * ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + 37 + + - COUNT ( * ) FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT + col0 + - + col0 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT CAST( + - 80 AS SIGNED ) * + - col2 FROM tab0 AS cor0
----
3760
7920
800

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT CAST ( + - 80 AS INTEGER ) * + - col2 FROM tab0 AS cor0
----
3760
7920
800

query I rowsort
SELECT ALL col0 * - col0 + + + col2 AS col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - COUNT( * ) + - COUNT( * ) + + 84 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4573
SELECT - COUNT ( * ) + - COUNT ( * ) + + 84 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL + 38 + - 49 AS col0 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - ( + + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4575
SELECT - ( + + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 49 + - + col2 FROM tab1 AS cor0
----
-10
-19
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT ALL - col2 + + col2 + + 92 DIV 83 + + + col2 AS col1 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - col2 + + col2 + + 92 / 83 + + + col2 AS col1 FROM tab2
----
24
41
59

query I rowsort
SELECT DISTINCT 99 * 91 * col2 FROM tab0
----
423423
891891
90090

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT 66 * - - MAX( DISTINCT col1 ) col1 FROM tab0
----
5346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4579
SELECT 66 * - - MAX ( DISTINCT col1 ) col1 FROM tab0
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL COUNT( col1 ) AS col2 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL COUNT ( col1 ) AS col2 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 21 * 55 FROM tab1
----
-1155
-1155
-1155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4582
SELECT ALL - 16 DIV CAST( + 18 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - 16 / CAST ( + 18 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT 89, - col1 AS col2 FROM tab0
----
89
-1
89
-21
89
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT COUNT( * ) * 87 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-4584
SELECT COUNT ( * ) * 87 FROM tab0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4585
SELECT * FROM tab2 WHERE - 54 IN ( + - col1 + - ( - - ( - col2 ) ), CAST( + col2 AS SIGNED ) * - CAST( col0 AS SIGNED ) + + - col0 - - 93 / + col2 + + col0 / - col0 - - col0 - 88 + + - 45 )
----

skipif mysql # not compatible
query III rowsort label-4585
SELECT * FROM tab2 WHERE - 54 IN ( + - col1 + - ( - - ( - col2 ) ), CAST ( + col2 AS INTEGER ) * - CAST ( col0 AS INTEGER ) + + - col0 - - 93 / + col2 + + col0 / - col0 - - col0 - 88 + + - 45 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT 85, MAX( DISTINCT + + col2 ) AS col0 FROM tab2
----
85
58

skipif mysql # not compatible
query II rowsort label-4586
SELECT 85, MAX ( DISTINCT + + col2 ) AS col0 FROM tab2
----
85
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT + ( - ( - col2 ) ) - + + CAST( + col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4587
SELECT + ( - ( - col2 ) ) - + + CAST ( + col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 28 + + col0 AS col0 FROM tab1 AS cor0
----
113
119
79

query I rowsort
SELECT 53 + col2 - + - col1 FROM tab2 AS cor0
----
127
170
178

query I rowsort
SELECT - col1 + + + 36 + + + col0 * - col0 * - ( - + col0 ) AS col1 FROM tab1 cor0
----
-132629
-614094
-753582

query I rowsort
SELECT + 74 * 82 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT + ( + COUNT( * ) ) + + ( - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT + ( + COUNT ( * ) ) + + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 19 * col2 * + - col2 + col0 AS col0 FROM tab1 AS cor0
----
-175053
-66054
-87765

query I rowsort
SELECT DISTINCT - 67 + + col2 AS col2 FROM tab0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - COUNT( * ) col0 FROM tab2 WHERE col2 - - 44 BETWEEN ( NULL ) AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4595
SELECT - COUNT ( * ) col0 FROM tab2 WHERE col2 - - 44 BETWEEN ( NULL ) AND + col0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN ( - col1 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL - MIN( DISTINCT - 35 ) col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4597
SELECT ALL - MIN ( DISTINCT - 35 ) col2 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT SUM( ALL - 79 ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4598
SELECT SUM ( ALL - 79 ) FROM tab0 AS cor0
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4599
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT - - 30 * col2 - + 75 FROM tab1 AS cor0
----
1695
1965
2805

query II rowsort
SELECT DISTINCT - + ( - col0 ) AS col1, + 29 AS col1 FROM tab0 AS cor0
----
15
29
87
29
97
29

query I rowsort
SELECT + 69 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
69
69
69

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col1 * - col0 * - 28 AS col1 FROM tab2 AS cor0 WHERE - col0 * + col2 = - col2
----

query I rowsort
SELECT ( col2 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT COUNT( + 70 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT COUNT ( + 70 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + COUNT( * ) * - + 16 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4606
SELECT + COUNT ( * ) * - + 16 FROM tab2
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT MAX( - col1 ) * - + CAST( - + 23 AS SIGNED ) FROM tab2
----
-1173

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT MAX ( - col1 ) * - + CAST ( - + 23 AS INTEGER ) FROM tab2
----
-1173

query I rowsort
SELECT + + 4 * - col0 - - - 16 + col2 AS col1 FROM tab1 WHERE NOT - + col1 BETWEEN - 72 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT ALL - col1 * + ( - - CAST( - col1 AS SIGNED ) ) col1 FROM tab1 cor0
----
196
2209
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4610
SELECT ALL - col1 * + ( - - CAST ( - col1 AS INTEGER ) ) col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT + - 64 FROM tab1 AS cor0 WHERE NOT + 4 / + + col1 NOT BETWEEN + 25 * - + col2 AND col1 * + col1
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT 71 DIV - 94 * col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT 71 / - 94 * col2 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 78 * + col1, + col0 col0 FROM tab2
----
3978
46
5226
75
6006
64

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT MIN( ALL + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4615
SELECT MIN ( ALL + + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4616
SELECT - - 92 + + col1 AS col2, + 22 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
106
NULL
139
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4616
SELECT - - 92 + + col1 AS col2, + 22 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
106
NULL
139
NULL
97
NULL

query I rowsort
SELECT ALL 62 + - - 81 AS col2 FROM tab2
----
143
143
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL + MAX( + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + MAX ( + col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT ALL - col1 * + - 10 FROM tab0
----
10
210
810

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT ALL 48 DIV - col1 FROM tab1
----
-1
-3
-9

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 48 / - col1 FROM tab1
----
-1
-3
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT 5 + - col0 FROM tab2
----
-41
-59
-70

query II rowsort
SELECT ALL + col0, + col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT BETWEEN + col0 + - col0 AND col2 + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT - MAX( 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - MAX ( 47 ) FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT COUNT( * ) - + CAST( + - CAST( + 78 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4626
SELECT COUNT ( * ) - + CAST ( + - CAST ( + 78 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT DISTINCT + col0 DIV + - col1 AS col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + col0 / + - col1 AS col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL MIN( DISTINCT - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 + - col2 col1 FROM tab2 cor0 WHERE NOT - col2 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - COUNT( DISTINCT - col2 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4632
SELECT - COUNT ( DISTINCT - col2 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT + + COUNT( * ) DIV - 6 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT + + COUNT ( * ) / - 6 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL COUNT( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT 35 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4635
SELECT 35 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT MIN( col1 ) * + 49 AS col0 FROM tab1
----
245

skipif mysql # not compatible
query I rowsort label-4637
SELECT MIN ( col1 ) * + 49 AS col0 FROM tab1
----
245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT + + SUM( DISTINCT col0 ) / - 47 + - - COUNT( * ) col0 FROM tab0 WHERE - - col0 + + CAST( + col2 AS SIGNED ) = - + 56 + ( + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT DISTINCT + + SUM ( DISTINCT col0 ) / - 47 + - - COUNT ( * ) col0 FROM tab0 WHERE - - col0 + + CAST ( + col2 AS INTEGER ) = - + 56 + ( + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT - + MAX( - + col2 ) col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4639
SELECT - + MAX ( - + col2 ) col0 FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN + 99 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col2 col1 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col1 col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL + 24 DIV - + col1 - + - col0 * - col0 + + + col1 AS col2 FROM tab2 AS cor0
----
-2065
-4019
-5558

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 24 / - + col1 - + - col0 * - col0 + + + col1 AS col2 FROM tab2 AS cor0
----
-2065
-4019
-5558

query I rowsort
SELECT + 21 + - col1 + - + col2 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + 14 + - + col2 * + col0 + col1 * col0 * - col0 + - col2 FROM tab1 AS cor0
----
-395449
-41185
-41392

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 91 < 22 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 91 < 22 + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT - ( - COUNT( * ) ) + - COUNT( DISTINCT + 77 ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - ( - COUNT ( * ) ) + - COUNT ( DISTINCT + 77 ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL - 10 + - + COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - 10 + - + COUNT ( * ) FROM tab0 AS cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + + col0 * - - col0 + - + ( - col1 ) + - 58 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 27 + + 6 AS col2 FROM tab2
----
-21

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 94 + + col1 FROM tab1
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT - COUNT( - col2 ) AS col0 FROM tab1 WHERE + col1 / + - col2 + - col0 < + ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT - COUNT ( - col2 ) AS col0 FROM tab1 WHERE + col1 / + - col2 + - col0 < + ( col1 )
----
-3

query II rowsort
SELECT DISTINCT col1 - - + ( + col2 ) - + 12, + 54 - col1 + - 68 * + - col0 * + + 14 + + 76 AS col2 FROM tab1
----
103
86715
52
81045
98
48668

query I rowsort
SELECT 33 - + - col0 AS col2 FROM tab0
----
120
130
48

query II rowsort
SELECT col2 * - 1 * + + col0 - - col0, col0 AS col2 FROM tab0
----
-690
15
-783
87
-9506
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL MIN( ALL + + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL MIN ( ALL + + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + 43 + col1 DIV - 47 col1 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4658
SELECT + 43 + col1 / - 47 col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab0 AS cor0 WHERE 14 IS NOT NULL
----
-77

query I rowsort
SELECT ALL - - 24 AS col0 FROM tab0 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + ( - 71 ) + + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT ALL MIN( - col0 ) + SUM( - - 85 ) + 56, 30 col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN col1 AND NULL
----
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4664
SELECT ALL MIN ( - col0 ) + SUM ( - - 85 ) + 56, 30 col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN col1 AND NULL
----
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT CAST( COUNT( * ) AS SIGNED ) * SUM( DISTINCT - col2 ) + - COUNT( * ) AS col0 FROM tab2
----
-366

skipif mysql # not compatible
query I rowsort label-4665
SELECT CAST ( COUNT ( * ) AS INTEGER ) * SUM ( DISTINCT - col2 ) + - COUNT ( * ) AS col0 FROM tab2
----
-366

query I rowsort
SELECT ALL + ( 60 ) FROM tab0
----
60
60
60

query II rowsort
SELECT DISTINCT 57, col2 AS col1 FROM tab2
----
57
23
57
40
57
58

query II rowsort
SELECT - 68 AS col1, col0 FROM tab2
----
-68
46
-68
64
-68
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT + col1 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT + col1 / - - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 85 col2, - 62 FROM tab1
----
-85
-62
-85
-62
-85
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 47 col0, - col0 FROM tab1
----
47
-51
47
-85
47
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + col1 col2 FROM tab1 AS cor0
----
101
59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT + 45 + - COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT + 45 + - COUNT ( * ) FROM tab2 AS cor0
----
42

query II rowsort
SELECT col2 * col1 AS col2, - ( - + 85 ) * + col0 FROM tab2
----
1173
3910
3080
5440
3886
6375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4676
SELECT ALL col2 + + 48 col2, + CAST( + - 5 AS SIGNED ) AS col2 FROM tab1
----
107
-5
116
-5
144
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4676
SELECT ALL col2 + + 48 col2, + CAST ( + - 5 AS INTEGER ) AS col2 FROM tab1
----
107
-5
116
-5
144
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4677
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL - MIN( + + 73 ) + - 41 * + 49 + - 86 FROM tab0 cor0
----
-2168

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - MIN ( + + 73 ) + - 41 * + 49 + - 86 FROM tab0 cor0
----
-2168

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4681
SELECT DISTINCT + col2 / - - col1 / + col1 - + 30 + - - col1 * ( col2 ) * col1 + + CAST( 85 AS DECIMAL ) / - - col2 FROM tab0 AS cor0 WHERE NOT + 59 NOT BETWEEN + + col2 + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + col2 / - - col1 / + col1 - + 30 + - - col1 * ( col2 ) * col1 + + CAST ( 85 AS REAL ) / - - col2 FROM tab0 AS cor0 WHERE NOT + 59 NOT BETWEEN + + col2 + col0 AND NULL
----

query I rowsort
SELECT ( 26 ) + + + col1 AS col2 FROM tab2 AS cor0
----
103
77
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT COUNT( * ) * - MAX( DISTINCT - col1 ) + 25 + + 4 DIV - COUNT( * ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4683
SELECT COUNT ( * ) * - MAX ( DISTINCT - col1 ) + 25 + + 4 / - COUNT ( * ) FROM tab2 AS cor0
----
177

query I rowsort
SELECT DISTINCT - col0 - - + col2 AS col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 12 * + + 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT 98 * CAST( NULL AS SIGNED ) / + - ( 54 ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT 98 * CAST ( NULL AS INTEGER ) / + - ( 54 ) + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + 61 ) FROM tab2
----
61
61
61

query II rowsort
SELECT + 14, 58 + 57 AS col2 FROM tab0
----
14
115
14
115
14
115

query I rowsort
SELECT DISTINCT - col1 - 76 AS col1 FROM tab0
----
-157
-77
-97

query I rowsort
SELECT ALL 31 * - + col0 AS col2 FROM tab1 AS cor0
----
-1581
-2635
-2821

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT DISTINCT + + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT + + col1 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + SUM( ALL + - 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4692
SELECT + SUM ( ALL + - 8 ) FROM tab2 AS cor0
----
-24

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + - 42 IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL - + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + MAX( DISTINCT + - 5 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4695
SELECT + MAX ( DISTINCT + - 5 ) FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4696
SELECT DISTINCT CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT CAST ( CAST ( NULL AS REAL ) AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 * - + col2 AS col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query II rowsort label-4698
SELECT + col2 * + col1 AS col1, + 57 DIV + 25 AS col2 FROM tab0 AS cor0
----
210
2
3807
2
99
2

skipif mysql # not compatible
query II rowsort label-4698
SELECT + col2 * + col1 AS col1, + 57 / + 25 AS col2 FROM tab0 AS cor0
----
210
2
3807
2
99
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4699
SELECT ALL + - 6 DIV + - CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + - 6 / + - CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col2 ) * - + 34 FROM tab2 AS cor0
----
-1360
-1972
-782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( col0 ) >= - + 28 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 19 + - - col2 FROM tab2 AS cor0
----
21
39
4

query I rowsort
SELECT + 16 + + col1 AS col1 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE 7 * + 6 * - + col0 * col0 * + - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col0 FROM tab2
----
77
77
77

query I rowsort
SELECT - col1 * + 95 FROM tab1 cor0
----
-1330
-4465
-475

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL
----

query II rowsort
SELECT ALL - - col0 AS col0, + 98 AS col2 FROM tab0 AS cor0
----
15
98
87
98
97
98

query I rowsort
SELECT ALL - ( - col2 ) * + 23 + ( + - col0 ) FROM tab0 AS cor0
----
1066
143
2180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 48 col0 FROM tab0 AS cor0
----
-51
1
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 - + - ( col1 ) col2 FROM tab1 AS cor0
----
44
53
86

query I rowsort
SELECT DISTINCT col0 - ( col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL - COUNT( * ) - - - 68 col2 FROM tab0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4715
SELECT ALL - COUNT ( * ) - - - 68 col2 FROM tab0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab2 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT 90 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + ( - + ( + 6 ) ) + col1 FROM tab0
----
-5
15
75

query I rowsort
SELECT ( + col0 ) + + col0 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 66 BETWEEN - 81 * + - 68 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4721
SELECT ALL - - COUNT( * ) * + COUNT( * ), - 35 AS col2 FROM tab1 AS cor0
----
9
-35

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL - - COUNT ( * ) * + COUNT ( * ), - 35 AS col2 FROM tab1 AS cor0
----
9
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT - 70 + MAX( + - 99 ) + - + 9 + - + COUNT( * ) * MIN( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 70 + MAX ( + - 99 ) + - + 9 + - + COUNT ( * ) * MIN ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT ALL col2 * - + 16 AS col2, 60 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0 * + + ( col2 )
----

query I rowsort
SELECT - 57 * + col2 AS col1 FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT + MIN( ALL 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + MIN ( ALL 35 ) FROM tab0
----
35

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE 90 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT ALL - col2 + - + col0 + + - col2 DIV + col1 FROM tab0 AS cor0
----
-295
-62
-97

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - col2 + - + col0 + + - col2 / + col1 FROM tab0 AS cor0
----
-295
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT CAST( - 3 AS SIGNED ) - - ( 67 ) col2 FROM tab2
----
64
64
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4731
SELECT CAST ( - 3 AS INTEGER ) - - ( 67 ) col2 FROM tab2
----
64
64
64

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL < col2
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE 69 * - - 42 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - col1 + - + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * 21 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + 29 AS col0 FROM tab2 AS cor0
----
106
80
96

query I rowsort
SELECT ALL - col1 * + - col0 + + col0 * + + col0 FROM tab0 AS cor0
----
1440
9396
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL 8 - + COUNT( * ) col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT ALL 8 - + COUNT ( * ) col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
94

query II rowsort
SELECT - 19 AS col1, + 25 FROM tab0
----
-19
25
-19
25
-19
25

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col0 - + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT ALL + ( ( + - CAST( NULL AS SIGNED ) ) ) * - 15 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + ( ( + - CAST ( NULL AS INTEGER ) ) ) * - 15 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4743
SELECT * FROM tab2 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4743
SELECT * FROM tab2 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 * ( - 44 ) FROM tab2
----
-2244
-2948
-3388

query II rowsort
SELECT 74, + col1 AS col2 FROM tab1 AS cor0
----
74
14
74
47
74
5

query II rowsort
SELECT DISTINCT + col0, + col1 - + col2 FROM tab0 AS cor0
----
15
34
87
11
97
-98

query I rowsort
SELECT DISTINCT col1 * + + 89 AS col1 FROM tab1 AS cor0
----
1246
4183
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab0 AS cor0 WHERE NOT + 41 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 0 NOT BETWEEN NULL AND 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2 col2, col0 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab2
----
48
48
48

query I rowsort
SELECT ALL + col1 * + col0 * + col0 * + - col0 / 48 FROM tab2 WHERE NOT - - col2 * - col2 * 31 < - col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL + + 47 * + - 68 * - COUNT( * ) col0 FROM tab2 cor0
----
9588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4754
SELECT ALL + + 47 * + - 68 * - COUNT ( * ) col0 FROM tab2 cor0
----
9588

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 50 + + COUNT( * ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4755
SELECT 50 + + COUNT ( * ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT col1 * - 69 + + - col0 + + + col0 FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4757
SELECT - CAST( NULL AS DECIMAL ) * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT - CAST ( NULL AS REAL ) * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 * 81 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 * 81 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 14 AS col0 FROM tab2 AS cor0
----
37
54
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + col1 <> NULL
----

query I rowsort
SELECT ALL + col1 + - col0 * - + 87 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL CAST( + 38 AS SIGNED ) FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL CAST ( + 38 AS INTEGER ) FROM tab1
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4764
SELECT - + col2 AS col1, CAST( + + 26 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

skipif mysql # not compatible
query II rowsort label-4764
SELECT - + col2 AS col1, CAST ( + + 26 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 + - + 8 AS col1 FROM tab2 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT + 17 col1 FROM tab1 WHERE NOT ( + ( CAST( + col2 AS SIGNED ) ) * 93 ) NOT BETWEEN + col0 AND - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT + 17 col1 FROM tab1 WHERE NOT ( + ( CAST ( + col2 AS INTEGER ) ) * 93 ) NOT BETWEEN + col0 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT ALL - col1 DIV 35 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - col1 / 35 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT col0 - CAST( - 47 AS SIGNED ) * + col2 FROM tab1
----
2858
3287
4563

skipif mysql # not compatible
query I rowsort label-4769
SELECT col0 - CAST ( - 47 AS INTEGER ) * + col2 FROM tab1
----
2858
3287
4563

query III rowsort
SELECT ALL * FROM tab2 WHERE 84 * - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL MAX( DISTINCT col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL MAX ( DISTINCT col1 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT 35 * - COUNT( * ) col1 FROM tab0
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4772
SELECT 35 * - COUNT ( * ) col1 FROM tab0
----
-105

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 67 + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT ALL col1 * + col0 + col0 DIV + 18 FROM tab1
----
4282
429
716

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL col1 * + col0 + col0 / + 18 FROM tab1
----
4282
429
716

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4775
SELECT 41 + + CAST( NULL AS DECIMAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT 41 + + CAST ( NULL AS REAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 40 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT DISTINCT MIN( DISTINCT - 69 ) DIV COUNT( * ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT MIN ( DISTINCT - 69 ) / COUNT ( * ) FROM tab1
----
-23

query I rowsort
SELECT - col2 + + ( 43 ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-15
20
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT + 77 DIV - COUNT( * ) AS col2 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + 77 / - COUNT ( * ) AS col2 FROM tab0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT - 46 * MAX( DISTINCT col2 * CAST( - 52 * + col0 AS SIGNED ) ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 46 * MAX ( DISTINCT col2 * CAST ( - 52 * + col0 AS INTEGER ) ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab1 WHERE NOT col2 = NULL
----

query I rowsort
SELECT DISTINCT + 25 + - 76 AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( col2 - col0 * 89 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4783
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( col2 - col0 * 89 ) IS NULL
----
-3

query I rowsort
SELECT + ( 80 ) FROM tab0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - SUM( ALL 55 ) AS col2 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-4785
SELECT - SUM ( ALL 55 ) AS col2 FROM tab2
----
-165

query I rowsort
SELECT ALL col0 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 37 + + 99 * 0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - 25 / col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 / + 58 AND ( NULL )
----

query I rowsort
SELECT ( - col0 ) - + col2 AS col0 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 WHERE ( 67 * col1 + + 53 ) BETWEEN + 16 AND ( + col1 / col0 )
----

query I rowsort
SELECT 63 * ( - 2 ) AS col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT 50 <> 15
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT 50 <> 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL MAX( + 94 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL MAX ( + 94 ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT - SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - col1 * + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + - MAX( DISTINCT - 66 ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4798
SELECT + - MAX ( DISTINCT - 66 ) AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4799
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4799
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 55 BETWEEN - col1 - col1 * 8 AND col2
----
75
67
58

query I rowsort
SELECT ALL - - col1 + 25 AS col0 FROM tab1 AS cor0
----
30
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT + MAX( ( + col0 ) ) + 75 AS col1 FROM tab1 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + MAX ( ( + col0 ) ) + 75 AS col1 FROM tab1 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - ( + COUNT( * ) ) + - MAX( + 85 ) AS col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - ( + COUNT ( * ) ) + - MAX ( + 85 ) AS col0 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL COUNT( * ) * - 46 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL COUNT ( * ) * - 46 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL COUNT( * ) + - MAX( DISTINCT 25 ) * 4 AS col2 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT 25 ) * 4 AS col2 FROM tab2
----
-97

query I rowsort
SELECT ALL 65 + + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
124
133
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT COUNT( * ) + + 26 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4807
SELECT COUNT ( * ) + + 26 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - 7 * - COUNT( * ) * 99 + MAX( + col2 ) FROM tab2
----
2137

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 7 * - COUNT ( * ) * 99 + MAX ( + col2 ) FROM tab2
----
2137

query I rowsort
SELECT + col0 * col1 * col2 + 71 * 23 AS col2 FROM tab1
----
26708
292469
70177

query I rowsort
SELECT DISTINCT + col2 + - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND 95 * + ( col1 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4812
SELECT DISTINCT 50 DIV + - COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT 50 / + - COUNT ( * ) FROM tab1
----
-16

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col0 FROM tab0 WHERE NOT + col0 * col1 NOT IN ( + col0 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT 77 + - COUNT( * ) + + 22 DIV - COUNT( * ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-4814
SELECT 77 + - COUNT ( * ) + + 22 / - COUNT ( * ) FROM tab0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT 95 + col1 + - col1 DIV col1 AS col1 FROM tab1
----
108
141
99

skipif mysql # not compatible
query I rowsort label-4815
SELECT 95 + col1 + - col1 / col1 AS col1 FROM tab1
----
108
141
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( + 1 * col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + 81 * + 71 + MIN( + col0 ) AS col2 FROM tab0
----
5766

skipif mysql # not compatible
query I rowsort label-4817
SELECT + 81 * + 71 + MIN ( + col0 ) AS col2 FROM tab0
----
5766

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT SUM( + 78 ) AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT SUM ( + 78 ) AS col1 FROM tab2
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 col2 FROM tab0 cor0
----
-81
-81
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= ( + 17 )
----

query I rowsort
SELECT ALL 44 * - col1 + - col0 + - ( + col2 + 12 ) AS col1 FROM tab2 AS cor0
----
-2325
-3093
-3504

query I rowsort
SELECT DISTINCT col1 / + 55 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 20 AS col2 FROM tab1 WHERE ( - 62 ) <= col1
----
20
20
20

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - col1 / + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL - COUNT( * ) - + COUNT( ALL + col1 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL - COUNT ( * ) - + COUNT ( ALL + col1 ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT ALL col2 - - 33 * col2 FROM tab1
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - MIN( ALL + + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - MIN ( ALL + + col2 ) AS col1 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col0 * col1 * ( 82 ) * + ( col0 + + 78 ) + + 29 FROM tab1 AS cor0
----
5680579
59270695
7552721

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> 9 + col1 * ( + col0 / 1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1 / + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - COUNT( * ) * MAX( + - col0 ) AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4832
SELECT - COUNT ( * ) * MAX ( + - col0 ) AS col2 FROM tab2 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT - ( - + col2 ) BETWEEN col0 AND ( NULL )
----
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT ALL - COUNT( DISTINCT - 28 ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - COUNT ( DISTINCT - 28 ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT COUNT( * ) DIV + COUNT( * ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT COUNT ( * ) / + COUNT ( * ) col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col0 )
----
36
36
36

query I rowsort
SELECT + 54 * + col0 + + 48 FROM tab1 AS cor0 WHERE NOT col1 - + - 44 >= - col2 + - 51 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col0 ) NOT IN ( + col0 * - col0 + + 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4839
SELECT DISTINCT * FROM tab2 WHERE + - col0 * - + CAST( NULL AS SIGNED ) BETWEEN ( col0 * + col0 + 92 / col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4839
SELECT DISTINCT * FROM tab2 WHERE + - col0 * - + CAST ( NULL AS INTEGER ) BETWEEN ( col0 * + col0 + 92 / col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT - MIN( ALL + col2 ) / + COUNT( * ) AS col0 FROM tab2 WHERE ( + 1 + - col0 / - col2 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - MIN ( ALL + col2 ) / + COUNT ( * ) AS col0 FROM tab2 WHERE ( + 1 + - col0 / - col2 ) > NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 70 <= + col1
----
15
81
47

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( - 37 ) = + col1 + - col1 * - col1
----

query I rowsort
SELECT + - 73 * - 14 AS col2 FROM tab2 AS cor0
----
1022
1022
1022

query I rowsort
SELECT - 95 AS col0 FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT + + col1 DIV col2 + + 77 DIV 38 col2 FROM tab2 AS cor0
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4845
SELECT DISTINCT + + col1 / col2 + + 77 / 38 col2 FROM tab2 AS cor0
----
3
4

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 4 + - + col1 ) IS NOT NULL
----

query I rowsort
SELECT col1 * + + col2 + - col1 AS col2 FROM tab2 WHERE NOT - - col2 IS NULL
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + 74 + - ( + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 74 + - ( + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT COUNT( ALL col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4849
SELECT COUNT ( ALL col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + - col0 * - 24 + 59 FROM tab0 AS cor0
----
2147
2387
419

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT - - 55 + COUNT( * ) * SUM( ALL - - 40 ) FROM tab2 AS cor0
----
415

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - - 55 + COUNT ( * ) * SUM ( ALL - - 40 ) FROM tab2 AS cor0
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - MAX( ALL 97 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4852
SELECT - MAX ( ALL 97 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - COUNT( * ) * + 79 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4853
SELECT - COUNT ( * ) * + 79 FROM tab0 AS cor0
----
-237

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4855
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( - col2 AS SIGNED ) * - col0 IN ( - col0 * 68 )
----

skipif mysql # not compatible
query III rowsort label-4855
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) * - col0 IN ( - col0 * 68 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + ( + + ( + 36 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 54 FROM tab0, tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT CAST( + 67 AS SIGNED ) AS col1 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT CAST ( + 67 AS INTEGER ) AS col1 FROM tab2
----
67

query I rowsort
SELECT ALL - ( - - 35 ) - 36 AS col2 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT ALL + + col1 + + 39 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col2 - - - col0 FROM tab1 WHERE NULL <= col0 + 69
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT DISTINCT + 25 + col2 + + col2 FROM tab1 AS cor0
----
143
161
217

query I rowsort
SELECT - + col1 + - col2 + col1 * col2 AS col2 FROM tab0 cor0
----
-1
179
3679

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL + + SUM( + col1 ) + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + + SUM ( + col1 ) + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
106

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + 65 * + col1 FROM tab2
----
3338
4413
5045

query I rowsort
SELECT DISTINCT col1 + - 5 + col2 * col1 AS col2 FROM tab1
----
1353
295
3238

query I rowsort
SELECT DISTINCT + - col1 * + - 10 FROM tab0 AS cor0
----
10
210
810

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col2 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT - 41 DIV col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT - 41 / col0 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT - 95, + col1 * - col1 + + 45 AS col2 FROM tab2
----
-95
-2556
-95
-4444
-95
-5884

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT - - 0 IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT 57, + col0 + + col1 * + col2 AS col1 FROM tab1
----
57
1395
57
3287
57
380

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT + 85 AS col2, - COUNT( - col0 ) AS col1 FROM tab2
----
85
-3

skipif mysql # not compatible
query II rowsort label-4876
SELECT + 85 AS col2, - COUNT ( - col0 ) AS col1 FROM tab2
----
85
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL < - 33 + + 34
----
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL < - 33 + + 34
----
0

query I rowsort
SELECT DISTINCT + col0 + - + 87 FROM tab0 AS cor0
----
-72
0
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4879
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 29 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 29 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4880
SELECT DISTINCT 39 + + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + - + col1 IN ( - + 75 )
----

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 39 + + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) + - + col1 IN ( - + 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT + 69 DIV + + 81 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT + 69 / + + 81 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4882
SELECT 34 + - - col2 AS col1 FROM tab2 AS cor0 WHERE col0 * + col1 * - CAST( NULL AS DECIMAL ) - - 87 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4882
SELECT 34 + - - col2 AS col1 FROM tab2 AS cor0 WHERE col0 * + col1 * - CAST ( NULL AS REAL ) - - 87 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 = + 3 + - 43
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT 98 + - col2 / + - CAST( NULL AS SIGNED ) * + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4885
SELECT 98 + - col2 / + - CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 32 + + col1 * 79 AS col0 FROM tab0 AS cor0
----
111
1691
6431

query I rowsort
SELECT col2 + - + ( col2 ) AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + 2 + + - col0 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT - 84 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT - 84 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL - ( + col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 68 > + + 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 5 + col2 + - - col0 * 91 * + + 61 FROM tab1 AS cor0
----
283202
471899
505214

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 22 ) * - col0 * col0 * + col2 = ( col1 )
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4896
SELECT ALL COUNT( * ) * + 98 * 24 + + MIN( ALL - + 71 ) DIV + + 84 + + COUNT( * ) FROM tab1 AS cor0
----
7059

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL COUNT ( * ) * + 98 * 24 + + MIN ( ALL - + 71 ) / + + 84 + + COUNT ( * ) FROM tab1 AS cor0
----
7059

query I rowsort
SELECT - ( + 53 ) AS col0 FROM tab2
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4898
SELECT - 70 AS col2, COUNT( * ) col2 FROM tab1
----
-70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4898
SELECT - 70 AS col2, COUNT ( * ) col2 FROM tab1
----
-70
3

query I rowsort
SELECT ALL - ( col0 ) * + - 25 + 13 + col0 AS col2 FROM tab2
----
1209
1677
1963

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 / + + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, - col2 * + - 33 col0 FROM tab0 AS cor0
----
1
3267
21
330
81
1551

query I rowsort
SELECT ALL 17 * + col1 * - col2 FROM tab1 AS cor0
----
-22848
-5015
-54332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT col2 * + - ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT col2 * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + col1 + - col1 col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - ( MAX( - + 42 ) ) AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - ( MAX ( - + 42 ) ) AS col2 FROM tab2 AS cor0
----
42

query II rowsort
SELECT + 21 AS col0, 39 AS col1 FROM tab0 AS cor0
----
21
39
21
39
21
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col1, col1 + - - ( col2 ) FROM tab0 cor0 WHERE NULL IS NULL AND col1 IS NOT NULL
----
27
100
27
128
27
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4908
SELECT + 57 DIV 1 AS col2, + col0 FROM tab1
----
57
51
57
85
57
91

skipif mysql # not compatible
query II rowsort label-4908
SELECT + 57 / 1 AS col2, + col0 FROM tab1
----
57
51
57
85
57
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col1 col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + MAX( ALL col2 ) * + COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT + col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + MAX ( ALL col2 ) * + COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT + col1 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4911
SELECT - col0 DIV + 24 AS col2, - col1 + CAST( col2 AS SIGNED ) FROM tab2
----
-1
-28
-2
-37
-3
-9

skipif mysql # not compatible
query II rowsort label-4911
SELECT - col0 / + 24 AS col2, - col1 + CAST ( col2 AS INTEGER ) FROM tab2
----
-1
-28
-2
-37
-3
-9

query I rowsort
SELECT - - 28 AS col1 FROM tab0 WHERE NOT ( col0 / + ( + 81 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 24 * - 33 * + - col2 AS col2 FROM tab1
----
46728
53856
76032

onlyif mysql # DIV for integer division: 
query II rowsort label-4914
SELECT ALL + col0 DIV + + col0 col1, - ( - col2 ) FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4914
SELECT ALL + col0 / + + col0 col1, - ( - col2 ) FROM tab0
----
1
10
1
47
1
99

query I rowsort
SELECT ALL + 34 * 34 AS col1 FROM tab0 AS cor0
----
1156
1156
1156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT + MAX( - col2 ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + MAX ( - col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 8 FROM tab0 AS cor0 WHERE NOT - 23 * + - col2 < NULL
----

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - + col0 * + - 72, + col1 + - + col1 AS col1 FROM tab2 AS cor0
----
3312
0
4608
0
5400
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT + - COUNT( * ) * 23 AS col2, - MIN( - 62 ) FROM tab2 AS cor0
----
-69
62

skipif mysql # not compatible
query II rowsort label-4920
SELECT + - COUNT ( * ) * 23 AS col2, - MIN ( - 62 ) FROM tab2 AS cor0
----
-69
62

query I rowsort
SELECT ALL 82 + + 36 FROM tab2
----
118
118
118

query I rowsort
SELECT DISTINCT col1 * + + 45 FROM tab2
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT SUM( DISTINCT - ( - col1 ) ) + - 39 AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-4923
SELECT SUM ( DISTINCT - ( - col1 ) ) + - 39 AS col0 FROM tab2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + - COUNT( * ) * 41 AS col1 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4924
SELECT + - COUNT ( * ) * 41 AS col1 FROM tab1 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT - 50 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-50
-3

skipif mysql # not compatible
query II rowsort label-4925
SELECT - 50 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-50
-3

query I rowsort
SELECT + + 38 AS col1 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT - 70 AS col0, - SUM( 81 ) AS col1 FROM tab1 cor0
----
-70
-243

skipif mysql # not compatible
query II rowsort label-4927
SELECT - 70 AS col0, - SUM ( 81 ) AS col1 FROM tab1 cor0
----
-70
-243

query I rowsort
SELECT DISTINCT col1 + + ( + 61 ) + + col0 AS col0 FROM tab1 cor0
----
126
151
199

query I rowsort
SELECT ALL + + 15 + - + 59 AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT col2 + - + col0 + col0 AS col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( col1 ) * col2 col2 FROM tab1
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT - CAST( + col0 AS SIGNED ) + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4932
SELECT - CAST ( + col0 AS INTEGER ) + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + + 60 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT DISTINCT ( 81 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT SUM( DISTINCT + - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT SUM ( DISTINCT + - col2 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT ( - - 80 ) AS col1 FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT - 12 * + 75 AS col1 FROM tab0
----
-900

query I rowsort
SELECT ALL - + ( + ( 31 ) ) * col0 FROM tab2 AS cor0
----
-1426
-1984
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL - CAST( + ( MIN( - col2 ) ) AS SIGNED ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - CAST ( + ( MIN ( - col2 ) ) AS INTEGER ) AS col2 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL - + MAX( DISTINCT 64 ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL - + MAX ( DISTINCT 64 ) FROM tab1 AS cor0
----
-64

query I rowsort
SELECT 38 / 98 FROM tab2 AS cor0 WHERE NOT NULL >= + 41
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 86 > + + ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT + MIN( + - col2 ) col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4943
SELECT DISTINCT + MIN ( + - col2 ) col0 FROM tab0 cor0
----
-99

query II rowsort
SELECT ALL - 63 AS col1, col2 * - - 41 FROM tab2
----
-63
1640
-63
2378
-63
943

query I rowsort
SELECT AVG ( DISTINCT + col0 ) FROM tab1 WHERE NOT - - 75 * + col0 NOT BETWEEN + + col1 * - - col0 AND + 41 / - 8 + - col1 * 91
----
NULL

query I rowsort
SELECT + ( + col1 ) + - - ( 11 ) * 6 FROM tab0
----
147
67
87

query I rowsort
SELECT DISTINCT + 91 * + - 55 * + - col2 FROM tab0
----
235235
495495
50050

query I rowsort
SELECT 30 + - + col1 + + col0 FROM tab2
----
17
25
38

query I rowsort
SELECT - ( + + 74 ) + + - col1 FROM tab1
----
-121
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT - MIN( DISTINCT - 89 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - MIN ( DISTINCT - 89 ) FROM tab1
----
89

query I rowsort
SELECT ALL col0 * 84 * + 70 AS col0 FROM tab2
----
270480
376320
441000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT + 18 * + CAST( NULL AS SIGNED ) + + MIN( + 0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 18 * + CAST ( NULL AS INTEGER ) + + MIN ( + 0 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL + - ( CAST( - 24 AS SIGNED ) ) FROM tab2 cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + - ( CAST ( - 24 AS INTEGER ) ) FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + 48 * col1 + - - 11 + - - col2 AS col0 FROM tab0 AS cor0
----
1029
158
3946

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT DISTINCT - ( 95 ) col1, + COUNT( * ) AS col1 FROM tab0 cor0
----
-95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4955
SELECT DISTINCT - ( 95 ) col1, + COUNT ( * ) AS col1 FROM tab0 cor0
----
-95
3

query I rowsort
SELECT DISTINCT + 57 + + - col2 FROM tab1
----
-11
-2
-39

query I rowsort
SELECT ( - 78 ) FROM tab0
----
-78
-78
-78

query II rowsort
SELECT ALL - col2 AS col0, - 79 AS col0 FROM tab2
----
-23
-79
-40
-79
-58
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - - MIN( ALL col2 ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - - MIN ( ALL col2 ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4960
SELECT DISTINCT + col0 AS col2, 66 DIV - - 57 + + 59 * - 80 AS col0 FROM tab2 cor0
----
46
-4719
64
-4719
75
-4719

skipif mysql # not compatible
query II rowsort label-4960
SELECT DISTINCT + col0 AS col2, 66 / - - 57 + + 59 * - 80 AS col0 FROM tab2 cor0
----
46
-4719
64
-4719
75
-4719

query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + MAX( DISTINCT - - col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4962
SELECT + MAX ( DISTINCT - - col2 ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + 93 * + + 24 FROM tab2 AS cor0
----
2232
2232
2232

query I rowsort
SELECT ALL col2 * + col0 + - col1 FROM tab1
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT MAX( DISTINCT 58 ) * + COUNT( * ) * 8 FROM tab2
----
1392

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT MAX ( DISTINCT 58 ) * + COUNT ( * ) * 8 FROM tab2
----
1392

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 41 AND 17
----

query II rowsort
SELECT ALL + col1 AS col0, + ( - col2 ) FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT + col1 AS col0, + col0 * - - col2 FROM tab0 WHERE + 72 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT ALL - 81 AS col2, - COUNT( * ) FROM tab0
----
-81
-3

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL - 81 AS col2, - COUNT ( * ) FROM tab0
----
-81
-3

query I rowsort
SELECT col2 * 59 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT ALL 5 + - col2 + + col1 - - col0 FROM tab0 AS cor0
----
103
4
54

query I rowsort
SELECT - + ( + 90 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query II rowsort
SELECT ALL - col2 AS col1, 91 FROM tab0
----
-10
91
-47
91
-99
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT - + MAX( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4975
SELECT - + MAX ( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
-99

query I rowsort
SELECT ALL ( + - 73 ) FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT - MIN( ALL + CAST( - 8 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4977
SELECT - MIN ( ALL + CAST ( - 8 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT + + col1 DIV 57 DIV + - col2 * + col2 - - 44 AS col0 FROM tab1 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-4978
SELECT + + col1 / 57 / + - col2 * + col2 - - 44 AS col0 FROM tab1 AS cor0
----
44
44
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <= ( ( + + 91 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT - + COUNT( * ) + SUM( + col2 ) col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT DISTINCT - + COUNT ( * ) + SUM ( + col2 ) col2 FROM tab0 AS cor0
----
153

query I rowsort
SELECT DISTINCT - + 16 + + - col2 FROM tab0 cor0
----
-115
-26
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT + 24 FROM tab1 WHERE - col0 * + - col2 * - 27 + + CAST( NULL AS SIGNED ) * + 22 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + 24 FROM tab1 WHERE - col0 * + - col2 * - 27 + + CAST ( NULL AS INTEGER ) * + 22 IS NULL
----
24

query I rowsort
SELECT + + 30 AS col0 FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT + ( + 93 ) AS col2 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT - - SUM( + col0 ) FROM tab1 cor0 WHERE col2 * + col1 >= 30
----
227

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - - SUM ( + col0 ) FROM tab1 cor0 WHERE col2 * + col1 >= 30
----
227

query I rowsort
SELECT DISTINCT - 12 - - 76 * + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col2 * + + col1
----

query I rowsort
SELECT - col0 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + + 79 > - col1 + - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - MIN( + col2 ) * 35 * - COUNT( * ) FROM tab0
----
1050

skipif mysql # not compatible
query I rowsort label-4988
SELECT - MIN ( + col2 ) * 35 * - COUNT ( * ) FROM tab0
----
1050

query I rowsort
SELECT DISTINCT - ( - col1 ) * 62 + - col0 AS col2 FROM tab2 AS cor0
----
3116
4079
4710

query I rowsort
SELECT ALL col2 + 73 FROM tab1 cor0
----
132
141
169

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 BETWEEN - - col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT 28 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT 28 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT ALL + col0 * - col0 * + ( col1 ) + - - col0 DIV - col0 FROM tab0 AS cor0
----
-158950
-18226
-9410

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + col0 * - col0 * + ( col1 ) + - - col0 / - col0 FROM tab0 AS cor0
----
-158950
-18226
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT MAX( col2 ) - COUNT( * ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT MAX ( col2 ) - COUNT ( * ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL col2 * col0 + col0 AS col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL - MAX( - - 93 ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - MAX ( - - 93 ) AS col2 FROM tab0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + COUNT( * ) + + + COUNT( + col1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4997
SELECT + COUNT ( * ) + + + COUNT ( + col1 ) FROM tab0
----
6

query I rowsort
SELECT - 26 + col2 + - col1 * - ( + - col0 ) + - - 56 * col1 * + + col1 FROM tab1
----
1008
10332
119469

query I rowsort
SELECT DISTINCT + - 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT + 35 * + - COUNT( * ) - + COUNT( * ) + + + 68 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + 35 * + - COUNT ( * ) - + COUNT ( * ) + + + 68 FROM tab1
----
-40

query I rowsort
SELECT + col1 * + ( col2 ) - + col0 AS col2 FROM tab0
----
123
2
3792

query I rowsort
SELECT DISTINCT - - 39 AS col0 FROM tab1 AS cor0
----
39

query I rowsort
SELECT ALL - 43 - col1 FROM tab1 cor0
----
-48
-57
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - SUM( ALL col1 ) + + - 45 + + + AVG ( DISTINCT + col2 ) + - 13 FROM tab2 cor0 WHERE - 45 > + 14 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT - SUM ( ALL col1 ) + + - 45 + + + AVG ( DISTINCT + col2 ) + - 13 FROM tab2 cor0 WHERE - 45 > + 14 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - ( + COUNT( * ) ) + 2 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN col2 AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-5005
SELECT - ( + COUNT ( * ) ) + 2 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN col2 AND NULL
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 92
----

query I rowsort
SELECT - col2 * - - 78 AS col2 FROM tab1 AS cor0
----
-4602
-5304
-7488

query III rowsort
SELECT ALL * FROM tab0 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT ALL + COUNT( + 52 ) DIV + 17 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + COUNT ( + 52 ) / + 17 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT col1 * CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5010
SELECT col1 * CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - 11 col2 FROM tab1
----
51
-11
85
-11
91
-11

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 WHERE + + 87 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE + 45 NOT BETWEEN col0 * - col2 AND + 46 * - 23 - - col0
----
15
87
97

query I rowsort
SELECT DISTINCT + 80 * + + 87 AS col1 FROM tab2
----
6960

query II rowsort
SELECT - col0, col2 AS col1 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT DISTINCT - col2 * - col0, col1 AS col0 FROM tab0 AS cor0
----
705
81
870
21
9603
1

query I rowsort
SELECT - 12 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 NOT BETWEEN col0 + col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT DISTINCT + 0 * - + col0 * + col2 DIV + 10 * + 12 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT + 0 * - + col0 * + col2 / + 10 * + 12 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT ALL + - 91 + - COUNT( * ) + + COUNT( * ) AS col2, 65 FROM tab1 AS cor0
----
-91
65

skipif mysql # not compatible
query II rowsort label-5020
SELECT ALL + - 91 + - COUNT ( * ) + + COUNT ( * ) AS col2, 65 FROM tab1 AS cor0
----
-91
65

query I rowsort
SELECT ALL col2 + + - col2 * - + col1 FROM tab1 AS cor0
----
1440
3264
354

query II rowsort
SELECT DISTINCT + ( - - col1 ) AS col2, + col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 99 IS NULL
----

query II rowsort
SELECT DISTINCT + - col0 + - - 52 AS col1, 7 * + + col1 AS col2 FROM tab0 AS cor0
----
-35
147
-45
7
37
567

query I rowsort
SELECT ALL + col2 + - + col1 AS col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + 79 + + COUNT( * ) * COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + 79 + + COUNT ( * ) * COUNT ( * ) FROM tab1
----
88

query II rowsort
SELECT DISTINCT col2, col2 - + 54 AS col0 FROM tab2
----
23
-31
40
-14
58
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL + MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5029
SELECT ALL col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 59 + + - 40 - + 33 + + col2 * - - col1 / col0 IS NULL
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 59 + + - 40 - + 33 + + col2 * - - col1 / col0 IS NULL
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5030
SELECT - - col1 + - + col1 DIV - col0, + col1 FROM tab0 cor0
----
1
1
21
21
86
81

skipif mysql # not compatible
query II rowsort label-5030
SELECT - - col1 + - + col1 / - col0, + col1 FROM tab0 cor0
----
1
1
21
21
86
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5031
SELECT ALL + + col0 + + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) + + CAST( + col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + + col0 + + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) + + CAST ( + col0 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - COUNT( * ) + 41 col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5032
SELECT ALL - COUNT ( * ) + 41 col2 FROM tab2 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT + 10 DIV - col1 + 68 AS col0 FROM tab2 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5033
SELECT + 10 / - col1 + 68 AS col0 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL col0 + + 89 AS col0 FROM tab0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT - 23 - - - COUNT( * ) * + - 16 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT - 23 - - - COUNT ( * ) * + - 16 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT MIN( + 8 ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5036
SELECT MIN ( + 8 ) AS col2 FROM tab2
----
8

query I rowsort
SELECT ALL 60 + col1 * - - col0 + + ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2452
5052
5160

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT - col1 DIV + 95 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT - col1 / + 95 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5039
SELECT * FROM tab0 cor0 WHERE + col0 * - col2 + - 77 = NULL AND NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( + 38 ) * CAST( + 48 AS SIGNED ) + 68 + + + col0 AND - col2 + + - col1
----

skipif mysql # not compatible
query III rowsort label-5039
SELECT * FROM tab0 cor0 WHERE + col0 * - col2 + - 77 = NULL AND NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( + 38 ) * CAST ( + 48 AS INTEGER ) + 68 + + + col0 AND - col2 + + - col1
----

query I rowsort
SELECT col1 * - 39 - + - 67 FROM tab2 AS cor0
----
-1922
-2546
-2936

query I rowsort
SELECT DISTINCT + 57 * - col1 * - 80 FROM tab1 AS cor0
----
214320
22800
63840

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT - col1 * col1, col2 + + - 39 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT COUNT( * ) * 95 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-5045
SELECT COUNT ( * ) * 95 FROM tab0
----
285

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT - 77 + 14 BETWEEN - - 27 AND + + col2
----
51
67
77

query I rowsort
SELECT ALL - 19 * + col0 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5050
SELECT - COUNT( * ) DIV + 58 * + 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT - COUNT ( * ) / + 58 * + 85 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col1 * - - 63 * - - 65 AS col2, col0 FROM tab1
----
192465
91
20475
85
57330
51

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= + + ( 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( col1 ) * - 18 AS col1 FROM tab2
----
-1206
-1386
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT ALL + 27 DIV col1 FROM tab0 cor0
----
0
1
27

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + 27 / col1 FROM tab0 cor0
----
0
1
27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 - - col0 > + 30 - - 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - ( col1 )
----

query I rowsort
SELECT - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT 34 * - col1 FROM tab2 AS cor0
----
-1734
-2278
-2618

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT DISTINCT + col0 DIV col0 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + col0 / col0 AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL + 93 + col0 - col2 AS col0 FROM tab0 AS cor0
----
170
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT + MAX( + col1 ) + + COUNT( * ) + - + MAX( col2 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5062
SELECT + MAX ( + col1 ) + + COUNT ( * ) + - + MAX ( col2 ) FROM tab2 AS cor0
----
22

query II rowsort
SELECT ALL 63 AS col0, - 53 * + + col1 + - col2 FROM tab0 cor0
----
63
-1123
63
-152
63
-4340

query I rowsort
SELECT ALL - + col2 + + 70 FROM tab2 cor0
----
12
30
47

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab1 AS cor0 WHERE 70 < - col0 * - - 90 - - 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT col2 + + col0 DIV - 55 + + col2 FROM tab1 AS cor0
----
117
135
192

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT col2 + + col0 / - 55 + + col2 FROM tab1 AS cor0
----
117
135
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT 88 + - ( + + COUNT( * ) ) FROM tab2 cor0
----
85

skipif mysql # not compatible
query I rowsort label-5067
SELECT 88 + - ( + + COUNT ( * ) ) FROM tab2 cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT col0 + CAST( NULL AS SIGNED ) * + + 4 / ( - - col1 ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT col0 + CAST ( NULL AS INTEGER ) * + + 4 / ( - - col1 ) + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 + + col1 * - 33 - + col2 AS col2 FROM tab1
----
-1619
-224
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + 18 + ( + + COUNT( * ) ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5070
SELECT + 18 + ( + + COUNT ( * ) ) AS col2 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT + COUNT( * ) + - COUNT( * ) AS col1, - MIN( DISTINCT - col1 ) FROM tab2
----
0
77

skipif mysql # not compatible
query II rowsort label-5071
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1, - MIN ( DISTINCT - col1 ) FROM tab2
----
0
77

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + + col1 + + col2 - - col0 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 91 ) col1 FROM tab0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT + ( - + CAST( col0 AS SIGNED ) ) - + col1 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + ( - + CAST ( col0 AS INTEGER ) ) - + col1 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT + CAST( NULL AS SIGNED ) * + 73 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT + CAST ( NULL AS INTEGER ) * + 73 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 80 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT + 87 IS NULL
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5077
SELECT - - col2, col0 - + - 37 + + ( col0 ) FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * CAST( col0 AS SIGNED ) NOT BETWEEN - col0 * - col1 * col2 * - - col1 + + col0 + - - 6 / - col1 + - col0 + + col0 + - 81 / + col1 AND col2
----

skipif mysql # not compatible
query II rowsort label-5077
SELECT - - col2, col0 - + - 37 + + ( col0 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * CAST ( col0 AS INTEGER ) NOT BETWEEN - col0 * - col1 * col2 * - - col1 + + col0 + - - 6 / - col1 + - col0 + + col0 + - 81 / + col1 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT COUNT( * ) DIV - 9 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT COUNT ( * ) / - 9 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + - col2 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT + - ( CAST( - + 83 AS SIGNED ) ) * + col0 FROM tab2 AS cor0
----
3818
5312
6225

skipif mysql # not compatible
query I rowsort label-5081
SELECT + - ( CAST ( - + 83 AS INTEGER ) ) * + col0 FROM tab2 AS cor0
----
3818
5312
6225

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT + - 32 AS col2, + COUNT( * ) * - COUNT( * ) col2 FROM tab2 AS cor0
----
-32
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5082
SELECT + - 32 AS col2, + COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-32
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + - 96 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT SUM( + col1 ) * - 38 AS col2 FROM tab1 AS cor0
----
-2508

skipif mysql # not compatible
query I rowsort label-5085
SELECT SUM ( + col1 ) * - 38 AS col2 FROM tab1 AS cor0
----
-2508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5086
SELECT DISTINCT - CAST( + - AVG ( ALL + col1 ) AS SIGNED ) AS col1, + 70 FROM tab0 AS cor0
----
34
70

skipif mysql # not compatible
query II rowsort label-5086
SELECT DISTINCT - CAST ( + - AVG ( ALL + col1 ) AS INTEGER ) AS col1, + 70 FROM tab0 AS cor0
----
34
70

query I rowsort
SELECT - 91 * + 72 AS col0 FROM tab2
----
-6552
-6552
-6552

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 13 - - + col0 / + 69 <> ( 34 ) * + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) * 59 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 59 FROM tab0
----
NULL

query I rowsort
SELECT - col0 / col2 FROM tab2 WHERE NOT + - col1 * ( col1 ) * col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * - - 70 + - ( + 86 ) NOT IN ( - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT col2 * - - 8 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT DISTINCT - 17 * + col1 FROM tab1 AS cor0
----
-238
-799
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5094
SELECT DISTINCT - col0 + + col1 - + + ( - - col1 ) DIV + CAST( col0 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-112
-133
-139

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - col0 + + col1 - + + ( - - col1 ) / + CAST ( col0 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + SUM( 89 ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-5095
SELECT + SUM ( 89 ) FROM tab1 AS cor0
----
267

query II rowsort
SELECT - col2 AS col2, + col2 * + 46 + - 84 + col1 FROM tab0 AS cor0
----
-10
397
-47
2159
-99
4471

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT ( - COUNT( + 95 ) ) + 26 AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT ( - COUNT ( + 95 ) ) + 26 AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT - ( - - ( - - 87 ) ) FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + 52 + - + col1 AS col2 FROM tab2
----
-15
-25
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5101
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT ( col1 + - CAST( NULL AS SIGNED ) <= NULL ) ) )
----

skipif mysql # not compatible
query III rowsort label-5101
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT ( col1 + - CAST ( NULL AS INTEGER ) <= NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT - 39 * CAST( NULL AS SIGNED ) + COUNT( col1 ) + 91 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - 39 * CAST ( NULL AS INTEGER ) + COUNT ( col1 ) + 91 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( - ( + col2 ) ) ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * 12 * - col0 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL + COUNT( 56 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + COUNT ( 56 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5106
SELECT ALL + CAST( - AVG ( DISTINCT + 80 ) AS SIGNED ) AS col2, 4 AS col1 FROM tab1
----
-80
4

skipif mysql # not compatible
query II rowsort label-5106
SELECT ALL + CAST ( - AVG ( DISTINCT + 80 ) AS INTEGER ) AS col2, 4 AS col1 FROM tab1
----
-80
4

query II rowsort
SELECT ALL - col2 AS col2, + 63 * - 41 AS col2 FROM tab0
----
-10
-2583
-47
-2583
-99
-2583

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - 56 + COUNT( * ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 56 + COUNT ( * ) FROM tab2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + COUNT( * ) * 4 + 39 * - MIN( ALL + 24 ) AS col1 FROM tab0
----
-924

skipif mysql # not compatible
query I rowsort label-5109
SELECT + COUNT ( * ) * 4 + 39 * - MIN ( ALL + 24 ) AS col1 FROM tab0
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT ( + - CAST( - - MIN( - - 85 ) AS SIGNED ) ) + + 77 AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5110
SELECT ( + - CAST ( - - MIN ( - - 85 ) AS INTEGER ) ) + + 77 AS col1 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT col1 * - ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 96 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT ALL - - ( + ( - col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col2 * 17 + col1 + col1 FROM tab2 AS cor0
----
1120
493
834

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 + 98 NOT BETWEEN 2 AND - - ( 59 ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - 52 * + + 22 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT + 46, + COUNT( * ) * - 67 col0 FROM tab0
----
46
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5117
SELECT + 46, + COUNT ( * ) * - 67 col0 FROM tab0
----
46
-201

query I rowsort
SELECT ALL - - col2 + col2 FROM tab1 WHERE NULL IS NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL + COUNT( * ) - + 27 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL + COUNT ( * ) - + 27 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT - ( - 36 ) AS col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT MAX( - + 44 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT MAX ( - + 44 ) AS col2 FROM tab2 AS cor0
----
-44

query II rowsort
SELECT col2 AS col0, - col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = + + col1 )
----

query II rowsort
SELECT - col2 AS col0, + 91 * 46 AS col2 FROM tab1
----
-59
4186
-68
4186
-96
4186

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + + col1 ) / - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 18
----

query II rowsort
SELECT - col0, 28 AS col1 FROM tab2 AS cor0
----
-46
28
-64
28
-75
28

query II rowsort
SELECT - col1, - 12 AS col1 FROM tab2 cor0
----
-51
-12
-67
-12
-77
-12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / 11 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 82 col0 FROM tab0 AS cor0
----
103
163
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5131
SELECT * FROM tab1 AS cor0 WHERE + 12 NOT BETWEEN col2 - CAST( - ( ( col2 ) ) AS SIGNED ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5131
SELECT * FROM tab1 AS cor0 WHERE + 12 NOT BETWEEN col2 - CAST ( - ( ( col2 ) ) AS INTEGER ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT ALL + + COUNT( ALL - col0 ), 23 AS col1 FROM tab0 AS cor0 WHERE NULL > col1 + + col0
----
0
23

skipif mysql # not compatible
query II rowsort label-5132
SELECT ALL + + COUNT ( ALL - col0 ), 23 AS col1 FROM tab0 AS cor0 WHERE NULL > col1 + + col0
----
0
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT - col2 * col1 DIV - col2 col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5133
SELECT - col2 * col1 / - col2 col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT - col1 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5134
SELECT - col1 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 10 BETWEEN col0 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT - 53 DIV col0 - col0 + + col0 + - 9 FROM tab2 AS cor0
----
-10
-9
-9

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 53 / col0 - col0 + + col0 + - 9 FROM tab2 AS cor0
----
-10
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT + MAX( ( 39 ) ) FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + MAX ( ( 39 ) ) FROM tab1 cor0
----
39

query I rowsort
SELECT - 80 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - + 6 + - col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 46 = NULL )
----

query I rowsort
SELECT + col2 - + + col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + col0 - - 63 AS col1 FROM tab2
----
109
127
138

query I rowsort
SELECT 73 + + 5 + + + col2 FROM tab0
----
125
177
88

query I rowsort
SELECT + 23 * col1 * 39 AS col0 FROM tab2
----
45747
60099
69069

query II rowsort
SELECT - - col0 * - col2 * + + col0 + - col1 AS col0, + col2 * - col2 FROM tab0 AS cor0
----
-10656
-2209
-75711
-100
-931492
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 52 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT ALL - 63 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - 63 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 89 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT + + CAST( + - AVG ( DISTINCT + - 2 ) AS SIGNED ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + + CAST ( + - AVG ( DISTINCT + - 2 ) AS INTEGER ) FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT ALL col2 DIV - + 66 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL col2 / - + 66 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IN ( - + col1 + + ( col1 ), 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 46 * - 28 * + + col2 FROM tab2
----
-29624
-51520
-74704

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT + 99 * + 92 + col0 AS col2 FROM tab0
----
9123
9195
9205

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT 63 * + 60 * + + COUNT( * ) FROM tab1
----
11340

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT 63 * + 60 * + + COUNT ( * ) FROM tab1
----
11340

query I rowsort
SELECT 87 + + + col1 AS col1 FROM tab2
----
138
154
164

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - + 69
----

query I rowsort
SELECT 95 + - + 38 AS col2 FROM tab0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col2 - + ( + - ( - 53 ) ) * col1 + - 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT + COUNT( * ) col1, - SUM( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
3
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5163
SELECT + COUNT ( * ) col1, - SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
3
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 44 * col2 * col0 <= NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - - 18 + + col1 FROM tab2 cor0
----
1273
1463
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col1 col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL ( - + col1 ) - - 64 AS col0 FROM tab2
----
-13
-3
13

query II rowsort
SELECT DISTINCT + col0 - - col0 AS col1, col0 * - 33 * + 47 FROM tab1
----
102
-79101
170
-131835
182
-141141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 64, - col0 )
----

query II rowsort
SELECT - - 60 + + col1 AS col1, - 1 * - col2 AS col0 FROM tab1 AS cor0
----
107
68
65
59
74
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 75 IS NULL
----

query I rowsort
SELECT ALL - 43 * - 34 + + 21 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT - MAX( + col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - MAX ( + col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT NULL >= + + col2 * + 41 + 92 + 37 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL COUNT( + + col2 ) * + + 36 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL COUNT ( + + col2 ) * + + 36 FROM tab2
----
108

query III rowsort
SELECT * FROM tab2 WHERE NOT - 14 BETWEEN - col1 AND + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 23 * 0 AND NULL
----

query I rowsort
SELECT DISTINCT - - 43 AS col1 FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL + 65 AS col1 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT + COUNT( col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + COUNT ( col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( 31 ) + col1 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + col2 * 46 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 26 * - 2 + col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE NOT ( - col0 * col1 ) = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5184
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE NOT ( - col0 * col1 ) = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT col2 * 66 - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 = ( col2 * ( - col1 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT col2 * 66 - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 = ( col2 * ( - col1 ) )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND 0 + 72
----
40

query I rowsort
SELECT + col2 - col0 * + ( - 86 ) AS col1 FROM tab2
----
3979
5544
6508

query I rowsort
SELECT + 39 * col0 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT 26 - col2 FROM tab1
----
-33
-42
-70

query I rowsort
SELECT + col1 + ( col2 ) * col0 AS col2 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT - col1 FROM tab2 WHERE 73 * CAST( NULL AS SIGNED ) NOT BETWEEN col2 AND + col1 * 86
----

skipif mysql # not compatible
query I rowsort label-5192
SELECT - col1 FROM tab2 WHERE 73 * CAST ( NULL AS INTEGER ) NOT BETWEEN col2 AND + col1 * 86
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5193
SELECT ALL col1 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 22 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT col1 DIV 35 + - col2 FROM tab1 WHERE NOT ( 4 ) BETWEEN ( 87 ) AND - col2 * + col1 + 96
----
-59
-67
-96

skipif mysql # not compatible
query I rowsort label-5195
SELECT col1 / 35 + - col2 FROM tab1 WHERE NOT ( 4 ) BETWEEN ( 87 ) AND - col2 * + col1 + 96
----
-59
-67
-96

query III rowsort
SELECT * FROM tab2 WHERE - col1 - col0 NOT BETWEEN col1 + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( col1 * + 32 ) AND ( ( col2 ) + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 / 51 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab2 WHERE NOT ( + col2 + col2 ) <= + col0 + + col1
----

query I rowsort
SELECT DISTINCT ( ( col1 ) ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - 13 + + 59 AS col1 FROM tab2 WHERE - col1 * col1 + - col1 * - col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT DISTINCT - 15 + + ( + SUM( col0 ) ) AS col1 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT - 15 + + ( + SUM ( col0 ) ) AS col1 FROM tab0
----
184

query I rowsort
SELECT + 11 + - 20 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - COUNT( * ) + + ( - 63 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - COUNT ( * ) + + ( - 63 ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT 12 + + col0 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT 4 + + col2 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT + 84 * col0 + - col1 * 18 FROM tab0 cor0
----
-198
6930
8130

query I rowsort
SELECT + 10 + - 44 * col2 AS col0 FROM tab1 AS cor0
----
-2586
-2982
-4214

query I rowsort
SELECT DISTINCT col2 - - col1 * + 71 AS col2 FROM tab0
----
1501
170
5798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT col2 - - CAST( col2 AS SIGNED ) * - col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5211
SELECT col2 - - CAST ( col2 AS INTEGER ) * - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 50 ) >= NULL
----

query I rowsort
SELECT ALL 5 - + 11 * 43 AS col0 FROM tab2 AS cor0
----
-468
-468
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL + - COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + - COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT + col1 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT + col1 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT 91 = + col1 + col1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT COUNT( * ) * + 86 AS col2 FROM tab1 cor0 WHERE NULL IN ( 40 * + CAST( col1 * col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT COUNT ( * ) * + 86 AS col2 FROM tab1 cor0 WHERE NULL IN ( 40 * + CAST ( col1 * col2 AS INTEGER ) )
----
0

query I rowsort
SELECT - - ( col1 ) - 32 * col1 FROM tab1 AS cor0
----
-1457
-155
-434

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 / + col1 BETWEEN ( 60 ) AND 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 63 - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT MAX( ALL - 95 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT MAX ( ALL - 95 ) FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL - SUM( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE ( col1 * col2 ) BETWEEN - col1 * - col0 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - SUM ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE ( col1 * col2 ) BETWEEN - col1 * - col0 AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < 19 + col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT - 50 / - - 38 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT - 50 / - - 38 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 7 * - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 7 * - col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE col0 / 47 + - 5 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( + ( + col0 ) / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT MAX( ALL + + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5230
SELECT MAX ( ALL + + col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 + 17 * - 23 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 86 * col1 IS NOT NULL
----

query I rowsort
SELECT 20 FROM tab2 cor0 WHERE NOT col2 < NULL AND ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 * - col2 + col1 * col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col1 * + - col2 * + col0 col0 FROM tab1
----
14
-68544
47
-290836
5
-25075

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 27 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col2, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE - 74 * + col1 < 20 * 73
----
23
40
58

query I rowsort
SELECT ( col2 ) + + col0 + + col1 * 34 * 60 AS col0 FROM tab1 cor0
----
10344
28707
96039

query I rowsort
SELECT ALL - col0 + + col1 - col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + - col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + 37 + + ( - SUM( DISTINCT - 98 ) ) AS col1 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + 37 + + ( - SUM ( DISTINCT - 98 ) ) AS col1 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + 10 * 28 + + 76 + COUNT( * ) AS col2 FROM tab2
----
359

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 10 * 28 + + 76 + COUNT ( * ) AS col2 FROM tab2
----
359

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col2 IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT - 4 DIV - - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - 4 / - - COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT CAST( NULL AS SIGNED ) + + col0 * col1 + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT CAST ( NULL AS INTEGER ) + + col0 * col1 + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5250
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1, - 60 - - ( 25 ) - ( + 42 ) AS col1 FROM tab1
----
3
-77

skipif mysql # not compatible
query II rowsort label-5250
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, - 60 - - ( 25 ) - ( + 42 ) AS col1 FROM tab1
----
3
-77

query I rowsort
SELECT 77 * 1 AS col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col1 * + ( - + col0 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL MIN( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL MIN ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5254
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + - col0 * - col0 AND col0 - col1
----

skipif mysql # not compatible
query III rowsort label-5254
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + - col0 * - col0 AND col0 - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5255
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( - col0 + ( CAST( NULL AS DECIMAL ) ) + - col0 ) AND + 42
----

skipif mysql # not compatible
query III rowsort label-5255
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( - col0 + ( CAST ( NULL AS REAL ) ) + - col0 ) AND + 42
----

query I rowsort
SELECT ALL ( - + col2 ) + + - col0 + - col0 AS col1 FROM tab1
----
-198
-229
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE + col0 + + - col1 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE + col0 + + - col1 IS NOT NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26 AS col0, - col1 * col2 * 90 col0 FROM tab0
----
26
-18900
26
-342630
26
-8910

query II rowsort
SELECT DISTINCT - - col1 * col2 * - 75 AS col2, col2 + + + 67 * col2 FROM tab1 AS cor0
----
-100800
6528
-22125
4012
-239700
4624

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 79 >= NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT DISTINCT + 28 AS col2, COUNT( * ) FROM tab1 AS cor0
----
28
3

skipif mysql # not compatible
query II rowsort label-5262
SELECT DISTINCT + 28 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - ( + COUNT( * ) ) * 27 col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5263
SELECT ALL - ( + COUNT ( * ) ) * 27 col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 0 * - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 54 AND + - 18
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 * col2 ) = - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 9 * + 64 AS col2 FROM tab2
----
576
576
576

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5270
SELECT DISTINCT + CAST( - col2 AS SIGNED ) DIV - 44 + - + 97 AS col2, col2 * - - col0 - col0 AS col0 FROM tab0
----
-95
9506
-96
690
-97
783

skipif mysql # not compatible
query II rowsort label-5270
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) / - 44 + - + 97 AS col2, col2 * - - col0 - col0 AS col0 FROM tab0
----
-95
9506
-96
690
-97
783

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE + col2 + + - ( - 2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5272
SELECT + 14, + CAST( col0 AS SIGNED ) - ( 93 + col0 ) AS col1 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5272
SELECT + 14, + CAST ( col0 AS INTEGER ) - ( 93 + col0 ) AS col1 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5273
SELECT ALL + col1 DIV col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15

skipif mysql # not compatible
query II rowsort label-5273
SELECT ALL + col1 / col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + - MIN( - + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5274
SELECT + - MIN ( - + col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 52 ) BETWEEN + col1 + + + ( - col1 ) AND - col0 * + 68 + col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 78 ) col0 FROM tab1
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + 32 + - col1 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 84 / 72 * + - col0 NOT BETWEEN + 74 * - ( + col1 ) AND ( - 91 + - 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE col1 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col2 FROM tab1 cor0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 73 ) > + col2 * col0
----

query II rowsort
SELECT ALL + col1, + col2 * col0 FROM tab2
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT DISTINCT col2 + - 96 + + col2 * - CAST( - + col1 AS SIGNED ) AS col2 FROM tab0
----
102
124
3758

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT col2 + - 96 + + col2 * - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0
----
102
124
3758

query I rowsort
SELECT ALL + - col0 / 81 FROM tab0 WHERE ( + ( - col1 ) ) BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT COUNT( * ) col1 FROM tab2 WHERE 64 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5285
SELECT COUNT ( * ) col1 FROM tab2 WHERE 64 IS NOT NULL
----
3

query I rowsort
SELECT + 19 + - + col0 FROM tab2
----
-27
-45
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT 98 - COUNT( * ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 98 - COUNT ( * ) AS col0 FROM tab0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT CAST( NULL AS SIGNED ) * + 46 + + 31 + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT CAST ( NULL AS INTEGER ) * + 46 + + 31 + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL - CAST( + 98 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL < + col1 - 6 + - + 59 + + 17 * - - col0 * + col2 * + col2
----

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - CAST ( + 98 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL < + col1 - 6 + - + 59 + + 17 * - - col0 * + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT 27 + + COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5290
SELECT 27 + + COUNT ( * ) FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT + 37 * + 47 * + 77 * - COUNT( * ) FROM tab1
----
-401709

skipif mysql # not compatible
query I rowsort label-5291
SELECT + 37 * + 47 * + 77 * - COUNT ( * ) FROM tab1
----
-401709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT DISTINCT col0 * + col1 * - CAST( NULL AS SIGNED ) + col0 + + col0 + - col2 - + + 84 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT col0 * + col1 * - CAST ( NULL AS INTEGER ) + col0 + + col0 + - col2 - + + 84 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + + ( - - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5293
SELECT + + ( - - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT 13 * + col2 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + ( - ( 10 ) ) AS col2 FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL COUNT( * ) * + - ( + COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL COUNT ( * ) * + - ( + COUNT ( * ) ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT 52 + + 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT DISTINCT col1 DIV - + 59 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT col1 / - + 59 AS col2 FROM tab2
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT + CAST( + - ( col1 ) AS SIGNED ), + 67 AS col0 FROM tab1
----
-14
67
-47
67
-5
67

skipif mysql # not compatible
query II rowsort label-5301
SELECT + CAST ( + - ( col1 ) AS INTEGER ), + 67 AS col0 FROM tab1
----
-14
67
-47
67
-5
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT 78 * + SUM( + col2 ) FROM tab2
----
9438

skipif mysql # not compatible
query I rowsort label-5302
SELECT 78 * + SUM ( + col2 ) FROM tab2
----
9438

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT - col2 DIV - - 23 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5303
SELECT - col2 / - - 23 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT + - ( - col0 ) + col2 * col0 FROM tab2 WHERE NOT + - 54 IS NULL
----
1104
2624
4425

query II rowsort
SELECT DISTINCT col2, + col0 + - 88 AS col2 FROM tab0
----
10
-1
47
-73
99
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 90 AS col2, - col0 + + 15 col0 FROM tab1
----
90
-36
90
-70
90
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 42 + + + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 42 + + + col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT 71 * - 49 * - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT 71 * - 49 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT ALL - 68 DIV + + 47 + - col1 - 93 + - col0 FROM tab0 AS cor0
----
-190
-192
-202

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - 68 / + + 47 + - col1 - 93 + - col0 FROM tab0 AS cor0
----
-190
-192
-202

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= ( - 81 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT + + 46 IS NOT NULL WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - col2 col0 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL col1, + 58 AS col1 FROM tab1
----
14
58
47
58
5
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2, col1 * 70 FROM tab2
----
23
3570
40
5390
58
4690

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT DISTINCT + COUNT( * ), - MAX( ALL + - 42 ) col2 FROM tab0 AS cor0
----
3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5316
SELECT DISTINCT + COUNT ( * ), - MAX ( ALL + - 42 ) col2 FROM tab0 AS cor0
----
3
42

onlyif mysql # DIV for integer division: 
query II rowsort label-5317
SELECT - - 54 + col1 AS col2, 62 + + 3 DIV + 1 FROM tab0 AS cor0
----
135
65
55
65
75
65

skipif mysql # not compatible
query II rowsort label-5317
SELECT - - 54 + col1 AS col2, 62 + + 3 / + 1 FROM tab0 AS cor0
----
135
65
55
65
75
65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + col2 + + + 95 AND NULL AND NOT ( NOT ( NOT col1 >= + ( - col2 ) ) )
----

query I rowsort
SELECT ALL col1 - + + col2 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - ( - col0 )
----

query I rowsort
SELECT DISTINCT + + col0 + 30 AS col0 FROM tab2 AS cor0
----
105
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL 17 + + COUNT( * ) FROM tab1 WHERE + 24 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL 17 + + COUNT ( * ) FROM tab1 WHERE + 24 IS NOT NULL
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT ALL + COUNT( * ) - - MIN( + + CAST( ( + col0 ) AS SIGNED ) ) - + 25 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + COUNT ( * ) - - MIN ( + + CAST ( ( + col0 ) AS INTEGER ) ) - + 25 FROM tab1
----
29

query I rowsort
SELECT - 47 + + - col0 * + col2 FROM tab1
----
-4943
-5062
-6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT - col0 - - - 73 + - CAST( NULL AS SIGNED ) * - col0 + + 14 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - col0 - - - 73 + - CAST ( NULL AS INTEGER ) * - col0 + + 14 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 43 AS col2 FROM tab2 WHERE - col1 * + - 27 - - 36 IS NOT NULL
----
43
43
43

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= col0 + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 + col2 + - col2 + + col1 = 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT - MIN( - + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - MIN ( - + 27 ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT DISTINCT SUM( DISTINCT - - 13 ) col2 FROM tab0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5330
SELECT DISTINCT SUM ( DISTINCT - - 13 ) col2 FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT ALL + - CAST( NULL AS SIGNED ) / col2 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + - CAST ( NULL AS INTEGER ) / col2 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 9 col2 FROM tab0 AS cor0
----
-135
-783
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT + - SUM( 27 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT + - SUM ( 27 ) FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5334
SELECT - 88 col1, - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-88
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5334
SELECT - 88 col1, - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT 58 DIV + + 20 AS col2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5335
SELECT 58 / + + 20 AS col2 FROM tab0 AS cor0
----
2
2
2

query II rowsort
SELECT 28 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
28
14
28
47
28
5

query I rowsort
SELECT - + 30 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5338
SELECT ALL col2 AS col2, col1 + ( - CAST( + - col2 AS SIGNED ) ) + + col1 FROM tab1 AS cor0
----
59
69
68
162
96
124

skipif mysql # not compatible
query II rowsort label-5338
SELECT ALL col2 AS col2, col1 + ( - CAST ( + - col2 AS INTEGER ) ) + + col1 FROM tab1 AS cor0
----
59
69
68
162
96
124

query I rowsort
SELECT + - col2 * - + col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5340
SELECT ALL * FROM tab0 WHERE NOT ( col2 * - 22 + col1 + + col0 + - - 27 + - + CAST( + + 39 AS SIGNED ) + + col0 + + CAST( - col0 AS SIGNED ) * 35 * - col1 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5340
SELECT ALL * FROM tab0 WHERE NOT ( col2 * - 22 + col1 + + col0 + - - 27 + - + CAST ( + + 39 AS INTEGER ) + + col0 + + CAST ( - col0 AS INTEGER ) * 35 * - col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 + 23 AS col0 FROM tab2
----
69
87
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - ( ( - ( ( col0 ) ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT DISTINCT + ( ( - 57 ) ) AS col1, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57
9

skipif mysql # not compatible
query II rowsort label-5344
SELECT DISTINCT + ( ( - 57 ) ) AS col1, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57
9

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( ( NULL ) BETWEEN + col2 AND - 43 )
----

query I rowsort
SELECT ALL + 43 + - 96 * col2 FROM tab2 AS cor0
----
-2165
-3797
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - SUM( + 15 ) AS col2 FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5347
SELECT - SUM ( + 15 ) AS col2 FROM tab2 cor0
----
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 + - 33 + - col1 * 9 * + col2 * + 83 + - + 89 + 59 * - + 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 44 - + col2 + - - col1 FROM tab1
----
-10
-38
23

query I rowsort
SELECT ALL 92 + 9 FROM tab1
----
101
101
101

query I rowsort
SELECT DISTINCT - col1 - col0 + + - 74 * - + col2 AS col1 FROM tab0
----
3382
632
7228

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT + 16 - - + COUNT( * ) col0 FROM tab0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5353
SELECT DISTINCT + 16 - - + COUNT ( * ) col0 FROM tab0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT ALL + CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + col0 NOT BETWEEN NULL AND 47 - - ( + 45 ) * + 78
----

query I rowsort
SELECT + + 64 * - + col2 AS col1 FROM tab2 AS cor0
----
-1472
-2560
-3712

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 20 * - ( - 84 ) ) IS NOT NULL
----

query I rowsort
SELECT - 78 * - 83 AS col2 FROM tab0
----
6474
6474
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 73 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 73 AND + col1
----
0

query I rowsort
SELECT ALL + col1 * - + 97 AS col2 FROM tab1
----
-1358
-4559
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT COUNT( * ) + 22 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5361
SELECT COUNT ( * ) + 22 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + COUNT( * ) * - 27 * + + 22 AS col1 FROM tab0
----
-1782

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + COUNT ( * ) * - 27 * + + 22 AS col1 FROM tab0
----
-1782

query I rowsort
SELECT col1 + - col2 * - - 54 FROM tab0
----
-2457
-519
-5345

query I rowsort
SELECT - col2 + - col1 + - col0 - - 26 * - col0 + + + 86 AS col2 FROM tab1
----
-1401
-2273
-2486

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + col2 * + - col0 BETWEEN - col2 AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5367
SELECT - CAST( NULL AS DECIMAL ) + - col1 + + + 40 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT - CAST ( NULL AS REAL ) + - col1 + + + 40 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5369
SELECT - col1 AS col1, - col2 * - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
-51
-529
-67
-3364
-77
-1600

skipif mysql # not compatible
query II rowsort label-5369
SELECT - col1 AS col1, - col2 * - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
-51
-529
-67
-3364
-77
-1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT + 37 / - + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + 37 / - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 33 - + - col2 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 - + col1 * + + col1 + - 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT ALL + 61 DIV 71 * + 85 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + 61 / 71 * + 85 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL - COUNT( * ) * 55 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL - COUNT ( * ) * 55 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL - MIN( - CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) ) + - + COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - MIN ( - CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + COUNT( * ) + - + 91 AS col2 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5377
SELECT + COUNT ( * ) + - + 91 AS col2 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT ALL 76 * 31 * - 60 * col0 + ( - + col0 ) FROM tab0
----
-12298407
-13712017
-2120415

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT MAX( ALL + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5379
SELECT MAX ( ALL + + col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL CAST( - 63 AS SIGNED ) - + + COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL CAST ( - 63 AS INTEGER ) - + + COUNT ( * ) FROM tab2
----
-66

query I rowsort
SELECT ALL + col0 * + - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - 15 AS col1 FROM tab1 cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) NOT IN ( + col1, col1 + - 72, + 26 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT MIN( - 98 ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT MIN ( - 98 ) FROM tab0
----
-98

query I rowsort
SELECT + 37 + - + 80 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query III rowsort
SELECT * FROM tab1 WHERE NOT 59 * col2 - - col0 + + col2 * col2 * + col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + + col1 + col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL + - 13 + - + SUM( DISTINCT - ( - - col0 ) ) FROM tab1 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + - 13 + - + SUM ( DISTINCT - ( - - col0 ) ) FROM tab1 AS cor0
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL + - ( ( + 74 ) ) + + COUNT( DISTINCT + + 31 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + - ( ( + 74 ) ) + + COUNT ( DISTINCT + + 31 ) FROM tab1 AS cor0
----
-73

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT DISTINCT - + 42 DIV col2 * 75 + - - 0 FROM tab0 AS cor0
----
-300
0

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - + 42 / col2 * 75 + - - 0 FROM tab0 AS cor0
----
-300
0

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 WHERE NOT col2 / - 64 * col2 BETWEEN NULL AND - 88 - + col1 + col0
----
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL - COUNT( * ) * 74 AS col0 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - COUNT ( * ) * 74 AS col0 FROM tab2
----
-222

query I rowsort
SELECT DISTINCT - 99 * + - ( + ( - - 32 ) ) AS col0 FROM tab2
----
3168

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT - col0 * - 51 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * 34 AS col0 FROM tab0
----
-2754
-34
-714

query I rowsort
SELECT ALL - 68 AS col0 FROM tab2 cor0
----
-68
-68
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 95 * 85 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 90 * col2 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT - - CAST( + - col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5401
SELECT - - CAST ( + - col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + 64 * col0 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 / - col0 FROM tab2 AS cor0 WHERE NOT + col0 <> - - 21
----

query I rowsort
SELECT + + col2 * + + col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT 5 * - 71 AS col2 FROM tab1 AS cor0
----
-355
-355
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL - COUNT( DISTINCT + 84 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - COUNT ( DISTINCT + 84 ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT MIN( ( + col1 ) ) * + COUNT( * ) - - 29 + + MAX( 58 ) AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT MIN ( ( + col1 ) ) * + COUNT ( * ) - - 29 + + MAX ( 58 ) AS col2 FROM tab1 AS cor0
----
102

query I rowsort
SELECT - col1 - 55 FROM tab0 AS cor0
----
-136
-56
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5409
SELECT ALL 79 * - - col1 + col0 col2, CAST( NULL AS SIGNED ) / col0 * - col1 + col0 FROM tab0 AS cor0
----
1746
NULL
176
NULL
6414
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5409
SELECT ALL 79 * - - col1 + col0 col2, CAST ( NULL AS INTEGER ) / col0 * - col1 + col0 FROM tab0 AS cor0
----
1746
NULL
176
NULL
6414
NULL

query I rowsort
SELECT + col0 * - 35 AS col2 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # DIV for integer division: 
query II rowsort label-5411
SELECT DISTINCT - col1 DIV col0, + col1 * 23 AS col1 FROM tab1
----
0
1081
0
115
0
322

skipif mysql # not compatible
query II rowsort label-5411
SELECT DISTINCT - col1 / col0, + col1 * 23 AS col1 FROM tab1
----
0
1081
0
115
0
322

query II rowsort
SELECT + 85 * - - col1, col2 AS col1 FROM tab0
----
1785
10
6885
47
85
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 90 + - col1 * - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL + - MIN( + + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + - MIN ( + + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ( + ( - col1 ) ) * + 76 FROM tab0
----
-1596
-6156
-76

query I rowsort
SELECT DISTINCT 46 + - + col2 FROM tab1 AS cor0
----
-13
-22
-50

query I rowsort
SELECT DISTINCT 34 FROM tab0 AS cor0 WHERE ( NOT ( - col2 IS NOT NULL ) )
----

query II rowsort
SELECT + 58 AS col2, - 6 FROM tab2 cor0
----
58
-6
58
-6
58
-6

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE - col1 + - + ( + - col0 ) NOT BETWEEN - 11 AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5420
SELECT DISTINCT 21 AS col1, + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 cor0
----
21
9

skipif mysql # not compatible
query II rowsort label-5420
SELECT DISTINCT 21 AS col1, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
21
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 45 * - + col0 FROM tab2 WHERE - - col1 - - + 66 IS NOT NULL
----
-2070
-2880
-3375

query II rowsort
SELECT DISTINCT ( - + 15 ), + col2 AS col0 FROM tab2
----
-15
23
-15
40
-15
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL - COUNT( - 48 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL - COUNT ( - 48 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT ALL + col0 AS col1, + 61 AS col2 FROM tab1
----
51
61
85
61
91
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT SUM( ALL + 43 ) + - COUNT( * ) + - 13 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-5426
SELECT SUM ( ALL + 43 ) + - COUNT ( * ) + - 13 FROM tab0
----
113

query I rowsort
SELECT 24 * - + col0 * 45 + - + col2 * col0 AS col1 FROM tab2
----
-50738
-71680
-85350

query II rowsort
SELECT - col2 AS col0, ( col1 ) + col0 * + 7 AS col0 FROM tab2
----
-23
373
-40
525
-58
592

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col2 + - + col1 * col2 > NULL
----

query I rowsort
SELECT ALL + 80 + 89 FROM tab2 cor0
----
169
169
169

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + 30
----

query II rowsort
SELECT + col1 AS col1, - ( - col1 ) AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT COUNT( + 97 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT COUNT ( + 97 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 54 + 27 AS col1 FROM tab0
----
81
81
81

query I rowsort
SELECT DISTINCT + - 86 - - 40 AS col2 FROM tab1 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5436
SELECT - col0 - 57 - col0, col1 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-5436
SELECT - col0 - 57 - col0, col1 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - 6 * + 25 * - 4 * col2 AS col2 FROM tab0 cor0
----
28200
59400
6000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT - MIN( ALL + col1 ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5438
SELECT - MIN ( ALL + col1 ) / - - COUNT ( * ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + - 97 * - + 32 * + 80 + + - SUM( + - col2 ) AS col2 FROM tab2 AS cor0
----
248441

skipif mysql # not compatible
query I rowsort label-5439
SELECT + - 97 * - + 32 * + 80 + + - SUM ( + - col2 ) AS col2 FROM tab2 AS cor0
----
248441

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL col1 DIV ( col1 ) col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5440
SELECT ALL col1 / ( col1 ) col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5441
SELECT - 29 DIV - - SUM( DISTINCT - 12 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 29 / - - SUM ( DISTINCT - 12 ) FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT DISTINCT + + ( + CAST( - + 45 AS SIGNED ) ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + + ( + CAST ( - + 45 AS INTEGER ) ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - 32 * - + COUNT( DISTINCT - col1 ) * + MIN( ALL + - col0 ) + + SUM( ALL - col2 ) FROM tab1
----
-8959

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - 32 * - + COUNT ( DISTINCT - col1 ) * + MIN ( ALL + - col0 ) + + SUM ( ALL - col2 ) FROM tab1
----
-8959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) / ( - col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) / ( - col0 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 9 * + col0 FROM tab0 WHERE + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( + col0 ) / + col1 + - + 35 / + + col0 + - + ( + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - MAX( ( 56 ) ) AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - MAX ( ( 56 ) ) AS col2 FROM tab2 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5450
SELECT - + col2 AS col1, - col0 + + ( - - 11 ) * + + col0 + col2 * - CAST( NULL AS SIGNED ) * 66 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5450
SELECT - + col2 AS col1, - col0 + + ( - - 11 ) * + + col0 + col2 * - CAST ( NULL AS INTEGER ) * 66 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + 52 * - + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + 52 * - + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - col1 + - col1 col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT DISTINCT + ( - col2 ) DIV ( + + 75 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + ( - col2 ) / ( + + 75 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 8 > NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + col1 - col0 FROM tab1 AS cor0
----
-23
-75
3

query I rowsort
SELECT ALL 25 + col0 AS col0 FROM tab0 AS cor0
----
112
122
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 78 col1 FROM tab0 AS cor0
----
159
79
99

query I rowsort
SELECT - - 38 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col1 + - col2 + - + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT CAST( NULL AS SIGNED ) - - - col2 + - col1 * + + col1 * + 13 - + 55 + col0 * - - col0 * 76 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT CAST ( NULL AS INTEGER ) - - - col2 + - col1 * + + col1 * + 13 - + 55 + col0 * - - col0 * 76 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL + COUNT( + + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 - col0 + - 7 + + CAST( NULL AS SIGNED ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL + COUNT ( + + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 - col0 + - 7 + + CAST ( NULL AS INTEGER ) AND - col1
----
0

query II rowsort
SELECT ALL - ( + - col1 ) * 7, + col2 FROM tab1
----
329
68
35
59
98
96

query III rowsort
SELECT * FROM tab0 WHERE + 1 < - col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + + col1 IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT + + COUNT( * ) + - + 41 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + + COUNT ( * ) + - + 41 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT ALL 41 - + col2 + 97 * - col1 FROM tab1
----
-1413
-4586
-503

query I rowsort
SELECT + 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab0 WHERE 99 NOT BETWEEN NULL AND 59 - + - 78 / col0
----
97

query I rowsort
SELECT DISTINCT + + col0 * + col2 * 12 FROM tab1 AS cor0
----
58752
60180
74256

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL + - COUNT( + 20 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + - COUNT ( + 20 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5473
SELECT ALL - 30 DIV 10 + - MIN( + col1 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - 30 / 10 + - MIN ( + col1 ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - col2 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - - 8 AND + col2
----
-5015
-6188

query I rowsort
SELECT 34 * + + 2 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT + col1 / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + col1 / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL - MAX( - + ( - + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL - MAX ( - + ( - + col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + 92 * - + COUNT( * ) AS col1 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-5478
SELECT + 92 * - + COUNT ( * ) AS col1 FROM tab2
----
-276

query II rowsort
SELECT ALL - col2 * col2 AS col1, + 0 AS col0 FROM tab2
----
-1600
0
-3364
0
-529
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT COUNT( * ) * - MAX( ( col2 ) ) AS col0 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT COUNT ( * ) * - MAX ( ( col2 ) ) AS col0 FROM tab2
----
-174

query I rowsort
SELECT ALL ( + 42 ) * - col2 AS col2 FROM tab0
----
-1974
-4158
-420

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col1 ) >= ( 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) col1 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT ALL + col1 DIV + - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + col1 / + - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 * - 65 * 62 AS col2 FROM tab1
----
189410
20150
56420

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT ALL 59 DIV - + col2 col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT ALL 59 / - + col2 col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT - ( ( + 89 ) ) * + 82 AS col2 FROM tab0 AS cor0
----
-7298
-7298
-7298

query I rowsort
SELECT + - col0 + + - 63 + + 34 AS col0 FROM tab2 cor0
----
-104
-75
-93

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE 20 * col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5490
SELECT + COUNT( * ) * 84 + + - 81 DIV - + COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5490
SELECT + COUNT ( * ) * 84 + + - 81 / - + COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT + col1 * + + 0 + + + col1 + - + 11 + 87 * col2 + - col1 DIV 47 FROM tab1 AS cor0
----
5127
5951
8355

skipif mysql # not compatible
query I rowsort label-5492
SELECT + col1 * + + 0 + + + col1 + - + 11 + 87 * col2 + - col1 / 47 FROM tab1 AS cor0
----
5127
5951
8355

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5493
SELECT * FROM tab0 AS cor0 WHERE + 32 >= + CAST( + col2 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-5493
SELECT * FROM tab0 AS cor0 WHERE + 32 >= + CAST ( + col2 AS INTEGER )
----
87
21
10

query I rowsort
SELECT - col2 + 47 FROM tab1 AS cor0
----
-12
-21
-49

query I rowsort
SELECT - col1 * + 14 * + + col0 + + col0 AS col2 FROM tab1
----
-5865
-59787
-9945

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT 11 + + COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5497
SELECT 11 + + COUNT ( * ) FROM tab0
----
14

query I rowsort
SELECT ( - ( + + col0 ) ) * 43 + + col2 FROM tab2
----
-1955
-2712
-3167

onlyif mysql # DIV for integer division: 
query II rowsort label-5499
SELECT 59 DIV - col0, + col2 AS col0 FROM tab2
----
-1
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-5499
SELECT 59 / - col0, + col2 AS col0 FROM tab2
----
-1
23
0
40
0
58

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL IN ( + ( - col0 ) + - col0, - 21, col0 )
----

query I rowsort
SELECT ALL + - col1 + + - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

query II rowsort
SELECT + col1 - + 72 AS col1, 18 * + col0 AS col0 FROM tab2 AS cor0
----
-21
828
-5
1350
5
1152

query I rowsort
SELECT DISTINCT - 51 + col0 AS col0 FROM tab0 WHERE NULL IN ( col2 + ( + - 51 ), ( col1 ) )
----

query I rowsort
SELECT ALL 75 * - col0 FROM tab1 cor0
----
-3825
-6375
-6825

query II rowsort
SELECT DISTINCT col2, 49 FROM tab2 AS cor0
----
23
49
40
49
58
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + 65 * + SUM( DISTINCT 3 ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 65 * + SUM ( DISTINCT 3 ) FROM tab0 AS cor0
----
195

query I rowsort
SELECT - col2 * + 39 FROM tab2 cor0
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5508
SELECT - - COUNT( * ) DIV - - 83 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5508
SELECT - - COUNT ( * ) / - - 83 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * - 29 AS col0 FROM tab0 AS cor0
----
-2349
-29
-609

query I rowsort
SELECT col2 * + - 19 FROM tab1
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL ( - + COUNT( * ) ) * + - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL ( - + COUNT ( * ) ) * + - COUNT ( * ) AS col2 FROM tab1
----
9

query III rowsort
SELECT ALL 55 * - col2 * col0 * + col2 AS col2, ( col1 ) + + + 31 - - 52 * + col0, - ( + + col2 ) AS col2 FROM tab1
----
9 values hashing to 8403e53035010b58c68b41aad95b5a72

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE ( NULL <> col1 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL <> col1 + + col0 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - 49 + + 76
----

query I rowsort
SELECT DISTINCT - 88 * - + 10 FROM tab1 cor0
----
880

query I rowsort
SELECT + 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + + MIN( col1 ) * + - 84 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5517
SELECT + + MIN ( col1 ) * + - 84 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - MIN( ALL - ( col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5518
SELECT - MIN ( ALL - ( col0 ) ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN + - col2 + - - col1 AND NULL
----

query II rowsort
SELECT - - col2 * + col0, col2 FROM tab1 AS cor0
----
4896
96
5015
59
6188
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + COUNT( * ) * + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COUNT ( * ) * + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - MIN( - + 36 ) AS col0 FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-5522
SELECT - MIN ( - + 36 ) AS col0 FROM tab2 cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 2 AND NULL
----

query I rowsort
SELECT DISTINCT + 94 + + col1 AS col2 FROM tab2 AS cor0
----
145
161
171

query I rowsort
SELECT ALL - 65 - - - col1 * - + 31 FROM tab1 AS cor0
----
1392
369
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT - 94 * - COUNT( ALL + col0 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT - 94 * - COUNT ( ALL + col0 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL COUNT( * ) + - MAX( 72 ) AS col2 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL COUNT ( * ) + - MAX ( 72 ) AS col2 FROM tab2 cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL BETWEEN + - 63 - - col2 AND + 69
----

query I rowsort
SELECT DISTINCT col2 * + 54 + - - col1 FROM tab0
----
2619
5347
561

query I rowsort
SELECT ALL col1 - - ( + 73 ) + - col0 FROM tab0
----
-23
139
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT col2 + + 47 * + 21 + - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
987
987
987

skipif mysql # not compatible
query I rowsort label-5532
SELECT col2 + + 47 * + 21 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
987
987
987

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - - 21 * col1 AS col0 FROM tab2
----
1025
1332
1553

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + - MIN( + 25 ) AS col1 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5535
SELECT + - MIN ( + 25 ) AS col1 FROM tab0 cor0
----
-25

query I rowsort
SELECT DISTINCT - 26 * 30 + + 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-688

query I rowsort
SELECT ALL + - 52 FROM tab0 cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - 96 AS col0 FROM tab2 cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL - - CAST( + SUM( ALL col0 ) AS SIGNED ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - - CAST ( + SUM ( ALL col0 ) AS INTEGER ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT ALL ( - COUNT( * ) ) * - 64 AS col1, ( - - 19 ) AS col1 FROM tab0
----
192
19

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL ( - COUNT ( * ) ) * - 64 AS col1, ( - - 19 ) AS col1 FROM tab0
----
192
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ( - 92 ) * 79 + + COUNT( * ) FROM tab2
----
-7265

skipif mysql # not compatible
query I rowsort label-5541
SELECT ( - 92 ) * 79 + + COUNT ( * ) FROM tab2
----
-7265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * + 3 * - - 30 col1 FROM tab1
----
6390
6390
6390

query I rowsort
SELECT 89 * - 48 * col1 FROM tab2
----
-217872
-286224
-328944

query I rowsort
SELECT ( + col1 ) * + 87 FROM tab1
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT - 41 * + COUNT( * ) + + 24, - 68 AS col0 FROM tab1
----
-99
-68

skipif mysql # not compatible
query II rowsort label-5545
SELECT - 41 * + COUNT ( * ) + + 24, - 68 AS col0 FROM tab1
----
-99
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL - + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - + MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, 23 col1 FROM tab2
----
51
23
67
23
77
23

query II rowsort
SELECT ALL + 70, col2 + - - col2 + + + 22 AS col1 FROM tab1 AS cor0
----
70
140
70
158
70
214

query II rowsort
SELECT ALL ( + col1 ) AS col2, ( col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT ALL - 77 + - COUNT( * ) AS col0, 93 FROM tab2 AS cor0
----
-80
93

skipif mysql # not compatible
query II rowsort label-5550
SELECT ALL - 77 + - COUNT ( * ) AS col0, 93 FROM tab2 AS cor0
----
-80
93

query I rowsort
SELECT - col1 + 22 AS col1 FROM tab1 cor0
----
-25
17
8

query I rowsort
SELECT col0 + - + col2 - - + col2 * - 39 FROM tab1 AS cor0
----
-2275
-2629
-3789

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 65 / + - 67 * - col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) + + MAX( DISTINCT - - 64 ) AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) + + MAX ( DISTINCT - - 64 ) AS col1 FROM tab1 AS cor0
----
61

query I rowsort
SELECT DISTINCT - 8 - + col1 - + col2 FROM tab2 AS cor0
----
-125
-133
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT SUM( - - ( - col0 ) ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5557
SELECT SUM ( - - ( - col0 ) ) col1 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT DISTINCT CAST( + - ( + 3 ) AS SIGNED ) + + col0 AS col2 FROM tab2
----
43
61
72

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT CAST ( + - ( + 3 ) AS INTEGER ) + + col0 AS col2 FROM tab2
----
43
61
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5559
SELECT ALL - MIN( ALL + 35 ), SUM( ALL + - 60 ) AS col2 FROM tab2
----
-35
-180

skipif mysql # not compatible
query II rowsort label-5559
SELECT ALL - MIN ( ALL + 35 ), SUM ( ALL + - 60 ) AS col2 FROM tab2
----
-35
-180

query I rowsort
SELECT DISTINCT 72 * - 1 * + 70 AS col1 FROM tab1
----
-5040

query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab1 cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5562
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 62, col1 / - col0 + col1, - - ( + col0 ) / + 74, + col2 / - 38, + CAST( NULL AS SIGNED ) - + + 73 )
----

skipif mysql # not compatible
query III rowsort label-5562
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 62, col1 / - col0 + col1, - - ( + col0 ) / + 74, + col2 / - 38, + CAST ( NULL AS INTEGER ) - + + 73 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT 59 DIV - - COUNT( * ) col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5563
SELECT 59 / - - COUNT ( * ) col1 FROM tab2 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT 60 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT 60 / + col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - ( + + ( - col1 ) ) FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - col0 * + 50
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5567
SELECT col1 AS col0, - col0 DIV + 6 AS col0 FROM tab1 AS cor0
----
14
-8
47
-15
5
-14

skipif mysql # not compatible
query II rowsort label-5567
SELECT col1 AS col0, - col0 / + 6 AS col0 FROM tab1 AS cor0
----
14
-8
47
-15
5
-14

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 49 * + col2 / - 25 + + 29
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
10
47
99

query II rowsort
SELECT 8 AS col1, + 71 AS col0 FROM tab1 AS cor0
----
8
71
8
71
8
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5571
SELECT - COUNT( 67 ) DIV + 46, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-5571
SELECT - COUNT ( 67 ) / + 46, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0
-3

query I rowsort
SELECT ALL col0 * - col2 + - 88 AS col2 FROM tab2
----
-1146
-2648
-4438

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - 89 * + MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
4539

skipif mysql # not compatible
query I rowsort label-5574
SELECT - 89 * + MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
4539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5575
SELECT + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT + 56 * - - 55 FROM tab1
----
3080
3080
3080

query I rowsort
SELECT - ( - 74 ) FROM tab1
----
74
74
74

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + - ( 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT + - COUNT( * ) + 57 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT + - COUNT ( * ) + 57 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL + 71 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + 71 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + COUNT( * ) FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + COUNT ( * ) FROM tab2, tab2 cor0
----
9

query I rowsort
SELECT DISTINCT 75 - + col1 + - col2 * - 28 AS col1 FROM tab1
----
1722
1932
2749

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 20 ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT SUM( + + 45 ) * + + COUNT( * ) col1 FROM tab1, tab0 AS cor0
----
3645

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5584
SELECT DISTINCT SUM ( + + 45 ) * + + COUNT ( * ) col1 FROM tab1, tab0 AS cor0
----
3645

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5585
SELECT ALL - 97 + 4 * COUNT( * ) AS col1, + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-5585
SELECT ALL - 97 + 4 * COUNT ( * ) AS col1, + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-61
NULL

query I rowsort
SELECT - 12 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-708
-816

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL col2 * + CAST( NULL AS SIGNED ) * 91 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) * 91 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 88 - + - 24 FROM tab2 AS cor0 WHERE 16 * - col2 - + col2 * col0 < + col2 / + + ( col2 )
----
158
176
187

query I rowsort
SELECT DISTINCT - + col0 + + + col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT + - col1 * + 30 - - + col1 DIV - ( + 93 ) FROM tab0 AS cor0
----
-2430
-30
-630

skipif mysql # not compatible
query I rowsort label-5591
SELECT + - col1 * + 30 - - + col1 / - ( + 93 ) FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + - 35 * + - COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + - 35 * + - COUNT ( * ) FROM tab2 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5593
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 44 * - CAST( NULL AS SIGNED ) AND + 45
----

skipif mysql # not compatible
query III rowsort label-5593
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 44 * - CAST ( NULL AS INTEGER ) AND + 45
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + col0 ) ) IN ( ( - + col0 ), 12 )
----

query I rowsort
SELECT ALL 11 - + 29 FROM tab0 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab1 WHERE col2 IS NOT NULL AND NULL <= + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 57 + + 49 AS col0 FROM tab2 WHERE - 99 + - 95 / col1 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 57 + + 49 AS col0 FROM tab2 WHERE - 99 + - 95 / col1 IS NOT NULL
----
97

query II rowsort
SELECT 72 * col0 AS col1, ( + - col2 ) FROM tab0
----
1080
-47
6264
-10
6984
-99

query I rowsort
SELECT + 33 * + col2 AS col0 FROM tab0
----
1551
3267
330

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 76 AND - 61 + - col2 * - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 27 col0 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT - 93 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT 74 DIV - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5603
SELECT 74 / - COUNT ( * ) FROM tab1
----
-24

query II rowsort
SELECT DISTINCT + col2 * + + col2, - col0 AS col0 FROM tab1
----
3481
-85
4624
-91
9216
-51

query II rowsort
SELECT ALL - 25 * - - col1 AS col0, + col1 FROM tab1 AS cor0
----
-1175
47
-125
5
-350
14

query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66