sqllogictest
Artifact Content
Not logged in

Artifact 07f9ec7e70a57b8401f4fbecfe4facd33d4972e9:


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)

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT ALL + + col1 + col2 + + col2 + col2 DIV 47 col0 FROM tab0 cor0
----
176
201
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2
SELECT ALL + + col1 + col2 + + col2 + col2 / 47 col0 FROM tab0 cor0
----
176
201
41

query II rowsort
SELECT col1, - 83 AS col1 FROM tab2 cor0
----
51
-83
67
-83
77
-83

query I rowsort
SELECT 45 * + - 30 AS col0 FROM tab0 AS cor0
----
-1350
-1350
-1350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * - ( - CAST( - ( - col2 ) AS SIGNED ) ) IN ( col1 )
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * - ( - CAST ( - ( - col2 ) AS INTEGER ) ) IN ( col1 )
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 + + + 68 * 73 IS NULL
----

query I rowsort
SELECT DISTINCT + + 53 - - + col0 * + 80 * - col0 AS col0 FROM tab1 cor0
----
-208027
-577947
-662427

query I rowsort
SELECT - + col2 * - + 66 * col0 AS col2 FROM tab2 AS cor0
----
168960
287100
69828

query I rowsort
SELECT 96 * col2 AS col1 FROM tab1 AS cor0
----
5664
6528
9216

query I rowsort
SELECT + 24 * + 60 AS col2 FROM tab0 AS cor0
----
1440
1440
1440

query I rowsort
SELECT 53 * + 28 * - 34 AS col1 FROM tab1
----
-50456
-50456
-50456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-12
SELECT DISTINCT 80 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT 80 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE NULL IN ( + 37 ) AND - 19 < col2 * + 15
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT + COUNT( * ) + - ( + - 37 ) AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-15
SELECT + COUNT ( * ) + - ( + - 37 ) AS col2 FROM tab1
----
40

query I rowsort
SELECT DISTINCT 4 * + + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-47
173
299

query I rowsort
SELECT - 98 + 59 + - ( + col0 ) - - col0 AS col2 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT ALL col2 * - - 77 FROM tab2
----
1771
3080
4466

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - - col0 >= ( - ( - - 61 ) ) AND NOT col0 * - col1 IS NULL
----

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 69 * 37 AS col0 FROM tab2 AS cor0
----
2553
2553
2553

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 67 - - ( - col0 ) ) NOT BETWEEN - col0 AND ( col2 )
----
87
21
10
97
1
99

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

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

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

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

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

query I rowsort
SELECT + col0 + 24 + col1 / + 42 FROM tab2 WHERE NOT - 6 / + - 63 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT - 90 * col0 DIV - - col0 FROM tab1
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-34
SELECT - 90 * col0 / - - col0 FROM tab1
----
-90
-90
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 52 * - - 62 * + 38 * col2 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT ( - MAX( - col1 ) ) * 30 AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-36
SELECT ( - MAX ( - col1 ) ) * 30 AS col0 FROM tab0
----
30

query I rowsort
SELECT 94 * 46 * - col0 + + + col1 + + - 32 AS col0 FROM tab2
----
-198885
-276691
-324265

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

query I rowsort
SELECT + col1 + 11 * - - 28 AS col0 FROM tab1
----
313
322
355

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-40
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN + 47 * col1 * + col1 / CAST( NULL AS SIGNED ) - + ( 42 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-40
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN + 47 * col1 * + col1 / CAST ( NULL AS INTEGER ) - + ( 42 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 56 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT COUNT( * ) * - 58 - - 78 - - 10 AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-42
SELECT COUNT ( * ) * - 58 - - 78 - - 10 AS col1 FROM tab2
----
-86

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

query I rowsort
SELECT ALL col2 + - col2 + - 3 + + 4 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
-10407
-28903
-33127

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

query I rowsort
SELECT + 33 * + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - 93 + 25 BETWEEN + 50 AND ( - 15 )
----

query I rowsort
SELECT ALL - col0 * + + ( 49 ) FROM tab2 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + col0 * - col2 + - col2 + + 38 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> + ( - 93 )
----

query I rowsort
SELECT ALL + col0 * - ( + col0 ) + + + col0 AS col2 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT ALL - 55 * + col0 FROM tab2
----
-2530
-3520
-4125

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE - col1 IN ( + 3, col2 * + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 71 / ( - 59 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 70 - + 71 AS col1 FROM tab2 WHERE - 25 + + col2 * + - col1 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT ALL 78 * + - 63 + - 61 AS col2, MIN( - 47 ) * - 81 + ( + MAX( + col0 ) ) + + 9 AS col2 FROM tab0
----
-4975
3913

skipif mysql # not compatible
query II rowsort label-56
SELECT ALL 78 * + - 63 + - 61 AS col2, MIN ( - 47 ) * - 81 + ( + MAX ( + col0 ) ) + + 9 AS col2 FROM tab0
----
-4975
3913

query I rowsort
SELECT ALL + 49 + - col2 AS col1 FROM tab2 AS cor0
----
-9
26
9

query I rowsort
SELECT ALL + 40 * 47 * + col0 FROM tab0 AS cor0
----
163560
182360
28200

query I rowsort
SELECT + 5 + + - col1 * - - col1 FROM tab2 AS cor0 WHERE NULL = NULL AND NOT NULL >= NULL
----

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

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

query I rowsort
SELECT ALL 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

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

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab1 AS cor0 WHERE 48 * + col1 BETWEEN - + 38 AND col0 + - 16
----

query II rowsort
SELECT 84, ( + - ( col2 ) ) AS col0 FROM tab0 cor0 WHERE NOT + col1 * 34 NOT BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col0 col0 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT 16 * + + col1 + + - 59 + + col1 - - col2 AS col0 FROM tab0 AS cor0
----
1365
308
57

query I rowsort
SELECT - 82 * ( 1 ) AS col1 FROM tab2
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT ALL col0 DIV + + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL col0 / + + col1 FROM tab0
----
0
4
97

query III rowsort
SELECT ALL col0, 82 - - 37 AS col1, col0 * col2 AS col0 FROM tab2
----
9 values hashing to 6a36e72ad17cef2a02e96cd4358d3289

query I rowsort
SELECT DISTINCT + col1 + - 67 FROM tab0
----
-46
-66
14

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 59 * + - 66 IS NOT NULL
----

query I rowsort
SELECT - 59 * + col1 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT ALL + col1 DIV + 96 + - - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL + col1 / + 96 + - - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-75
SELECT - CAST( + - col0 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-75
SELECT - CAST ( + - col0 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT 26 * - 39 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cbd873c0c665268ab6e70a2105125d5e

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

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

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

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-80
SELECT 49 AS col2, + 6 DIV + 26 AS col1 FROM tab1 cor0
----
49
0
49
0
49
0

skipif mysql # not compatible
query II rowsort label-80
SELECT 49 AS col2, + 6 / + 26 AS col1 FROM tab1 cor0
----
49
0
49
0
49
0

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

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

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

query I rowsort
SELECT DISTINCT + - col1 - - - 85 + + col1 + ( 88 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT - + 10 * + MAX( ALL + col2 ) - - - 81 + - 94 DIV - + MIN( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-1041

skipif mysql # not compatible
query I rowsort label-84
SELECT - + 10 * + MAX ( ALL + col2 ) - - - 81 + - 94 / - + MIN ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-1041

query I rowsort
SELECT + 53 - - - col0 - + 64 FROM tab2
----
-57
-75
-86

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

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

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

query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab1 WHERE NOT - - 49 IN ( - - col1 - - ( + - col0 ) * - col1 + + + 55, - 42 + + col0 * + ( + col2 ) )
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( - + col0 / + 30 IS NOT NULL ) )
----

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

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

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + 35 * - col0 / + + 74 IS NOT NULL
----

query II rowsort
SELECT + ( - + col0 ) * + - col1, + col1 AS col0 FROM tab1 AS cor0
----
425
5
4277
47
714
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 29 * + col1 <> - col2 / - 72 - + ( ( col1 ) )
----

query I rowsort
SELECT - - col2 * 63 * 61 FROM tab2 AS cor0
----
153720
222894
88389

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

query I rowsort
SELECT ALL + ( + col2 ) * + + col0 * 18 AS col2 FROM tab0 AS cor0
----
12690
15660
172854

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

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL - col0 * - - 61 * + col2 AS col2 FROM tab1
----
-298656
-305915
-377468

query I rowsort
SELECT + 99 + - + col2 + - col0 AS col0 FROM tab2
----
-34
-5
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-103
SELECT DISTINCT - 4 DIV col2 AS col2, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-103
SELECT DISTINCT - 4 / col2 AS col2, col2 FROM tab2
----
0
23
0
40
0
58

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

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

query I rowsort
SELECT DISTINCT + 64 * - 84 * - col1 AS col1 FROM tab1 AS cor0
----
252672
26880
75264

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT DISTINCT - 34 DIV + - 16 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - 34 / + - 16 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - MIN( - 18 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-108
SELECT - MIN ( - 18 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + + 94 + - + SUM( col0 ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-110
SELECT + + 94 + - + SUM ( col0 ) FROM tab0 AS cor0
----
-105

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

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

query I rowsort
SELECT ALL + - col2 - - - col2 + + 18 AS col0 FROM tab2 AS cor0
----
-28
-62
-98

query I rowsort
SELECT DISTINCT + 54 + + - col1 * - - col0 FROM tab2 cor0
----
-2292
-4874
-4971

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 54 IS NULL
----

query I rowsort
SELECT ALL + col2 - ( + + col1 ) AS col1 FROM tab0
----
-11
-34
98

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

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

query I rowsort
SELECT - 56 * - 0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 62 FROM tab2 WHERE NULL = NULL
----

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

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

query I rowsort
SELECT DISTINCT - 94 * - col0 - + 98 FROM tab1 AS cor0
----
4696
7892
8456

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + + 37 * + 34 <= NULL
----

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

query I rowsort
SELECT DISTINCT - 21 * - col1 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT - MAX( ALL + 78 ) * ( + 91 ) FROM tab2
----
-7098

skipif mysql # not compatible
query I rowsort label-124
SELECT - MAX ( ALL + 78 ) * ( + 91 ) FROM tab2
----
-7098

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

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

query I rowsort
SELECT DISTINCT 92 * ( - 98 ) AS col0 FROM tab2 AS cor0
----
-9016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * - + col2 col1 FROM tab2 AS cor0
----
1058
2560
4350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT + SUM( ALL - 19 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-130
SELECT + SUM ( ALL - 19 ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 + 73 - 51 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 + 73 - 51 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT COUNT( * ) AS col1 FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-132
SELECT COUNT ( * ) AS col1 FROM tab2, tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT ALL 50 DIV - 67 + + + ( + col0 ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL 50 / - 67 + + + ( + col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT 74 + - + 98 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - col1 * + ( 38 ) AS col1 FROM tab0 AS cor0
----
-3078
-38
-798

query I rowsort
SELECT col2 * + 95 + + 92 FROM tab0
----
1042
4557
9497

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 20 BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - col1 + 36 FROM tab0 AS cor0
----
134
2
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT + - MIN( + col1 ) * - 1 AS col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-142
SELECT + - MIN ( + col1 ) * - 1 AS col1 FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT + + col1 * - + col1 + + 67 FROM tab1 AS cor0
----
-129
-2142
42

query I rowsort
SELECT DISTINCT + 70 * - 51 FROM tab0
----
-3570

query I rowsort
SELECT + + col1 * 98 * col2 AS col0 FROM tab1 AS cor0
----
131712
28910
313208

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

query I rowsort
SELECT ALL + - col0 + - - col0 AS col2 FROM tab2 AS cor0 WHERE 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT COUNT( * ) * + ( + - 63 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-567

skipif mysql # not compatible
query I rowsort label-148
SELECT COUNT ( * ) * + ( + - 63 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-567

query I rowsort
SELECT ALL - col0 + - + 86 * + 11 FROM tab2
----
-1010
-1021
-992

query I rowsort
SELECT - ( + 40 ) * + - col2 FROM tab1
----
2360
2720
3840

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

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

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

query I rowsort
SELECT + + col2 * - - col0 * - 14 * 27 * col1 FROM tab2 AS cor0
----
-110168100
-20396124
-74511360

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN + col2 + col2 + - 94 + - col1 / col0 AND NULL
----

query I rowsort
SELECT col0 + - + col2 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 * - col0 FROM tab0 AS cor0
----
15
-225
87
-7569
97
-9409

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT COUNT( * ) + + - 53 FROM tab1 AS cor0 WHERE + 85 <> - col1
----
-50

skipif mysql # not compatible
query I rowsort label-158
SELECT COUNT ( * ) + + - 53 FROM tab1 AS cor0 WHERE + 85 <> - col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT DISTINCT 4 + - MIN( + 13 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT 4 + - MIN ( + 13 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT col2 + - 23 FROM tab1
----
36
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL - 10 + + COUNT( ALL + 72 ) col1 FROM tab1
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-161
SELECT ALL - 10 + + COUNT ( ALL + 72 ) col1 FROM tab1
----
-7

query I rowsort
SELECT DISTINCT ( + col2 ) * + - 18 * ( + col2 ) + + col1 + + col0 AS col0 FROM tab1
----
-165823
-62568
-83094

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-163
SELECT 16 + 73, ( - - ( CAST( - 99 AS SIGNED ) ) ) + + col1 AS col1 FROM tab1
----
89
-52
89
-85
89
-94

skipif mysql # not compatible
query II rowsort label-163
SELECT 16 + 73, ( - - ( CAST ( - 99 AS INTEGER ) ) ) + + col1 AS col1 FROM tab1
----
89
-52
89
-85
89
-94

query I rowsort
SELECT + 36 + 33 FROM tab1
----
69
69
69

query I rowsort
SELECT col1 * + 26 + - col0 AS col2 FROM tab1
----
1131
313
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT + COUNT( - 23 ) * + 53 AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-168
SELECT + COUNT ( - 23 ) * + 53 AS col1 FROM tab1 AS cor0
----
159

query I rowsort
SELECT + - 96 AS col2 FROM tab1 AS cor0 WHERE ( - - 92 * ( + 67 ) IS NULL )
----

query II rowsort
SELECT + - ( + 91 ) - + 23 AS col0, + col2 * + col2 * ( + 89 ) - - + col2 FROM tab2 AS cor0
----
-114
142440
-114
299454
-114
47104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + - 27 + + - 14, 84 * 21 + + col2 col2 FROM tab0
----
-2201
1811
-41
1863
-581
1774

query I rowsort
SELECT + 80 * + col2 + - col1 FROM tab1
----
4715
5393
7666

query II rowsort
SELECT ALL - col1 + 83 * + + col1 AS col1, + 39 FROM tab0
----
1722
39
6642
39
82
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT ALL + CAST( - AVG ( ALL col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + CAST ( - AVG ( ALL col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-40

query II rowsort
SELECT DISTINCT 10 AS col2, + 49 AS col0 FROM tab1 AS cor0
----
10
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + MIN( ALL - col0 ) * + 73 FROM tab2 WHERE NOT + col1 <> + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT + MIN ( ALL - col0 ) * + 73 FROM tab2 WHERE NOT + col1 <> + col0
----
NULL

query I rowsort
SELECT ( 17 ) AS col0 FROM tab2
----
17
17
17

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

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) FROM tab2, tab1 AS cor0
----
9
-9

skipif mysql # not compatible
query II rowsort label-180
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2, tab1 AS cor0
----
9
-9

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

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

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

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

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

query II rowsort
SELECT ALL + 86, + col0 AS col2 FROM tab0
----
86
15
86
87
86
97

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

query I rowsort
SELECT DISTINCT - 4 + 24 AS col0 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT DISTINCT - + 99 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-891

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - + 99 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL + COUNT( * ) + + 39 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL + COUNT ( * ) + + 39 FROM tab0
----
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL - SUM( + 35 ) * + 79 FROM tab1 AS cor0 WHERE NOT + 36 * + 0 + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - SUM ( + 35 ) * + 79 FROM tab1 AS cor0 WHERE NOT + 36 * + 0 + - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL - + SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 99 - + 9 AND col1 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL - + SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 99 - + 9 AND col1 * - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - - 68 * - MAX( - col2 ) FROM tab0 AS cor0
----
680

skipif mysql # not compatible
query I rowsort label-192
SELECT - - 68 * - MAX ( - col2 ) FROM tab0 AS cor0
----
680

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - 8 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT + 27 DIV - 91 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-194
SELECT + 27 / - 91 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 50 * - col1 FROM tab0
----
1050
4050
50

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

query I rowsort
SELECT DISTINCT + 81 + + col0 FROM tab2
----
127
145
156

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

query I rowsort
SELECT - 50 + col1 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT 40 + - 19 FROM tab2 AS cor0
----
21
21
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 27 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL COUNT( * ) * 74 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL COUNT ( * ) * 74 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-205
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - col0 * + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT 26 * + col0 - - col0 AS col1 FROM tab1 AS cor0
----
1377
2295
2457

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 24 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT DISTINCT 4 * + CAST( + 55 AS SIGNED ) - - ( + 1 ) + - col0 AS col2 FROM tab2 AS cor0
----
146
157
175

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT 4 * + CAST ( + 55 AS INTEGER ) - - ( + 1 ) + - col0 AS col2 FROM tab2 AS cor0
----
146
157
175

query II rowsort
SELECT ALL + - col0 * + 70 AS col2, col0 FROM tab1 AS cor0
----
-3570
51
-5950
85
-6370
91

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

query I rowsort
SELECT DISTINCT + 59 * - 8 + + - col0 FROM tab2 AS cor0
----
-518
-536
-547

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

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

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

query I rowsort
SELECT + 89 * - 15 AS col0 FROM tab0 cor0
----
-1335
-1335
-1335

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT + col1 + - 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NULL = - - ( + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT - MAX( - 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-219
SELECT - MAX ( - 43 ) FROM tab2
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + col1 * ( - - ( - col1 ) ) + - col2 - + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL + SUM( ALL - 7 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-221
SELECT ALL + SUM ( ALL - 7 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - + col0 * + 9 FROM tab1 cor0
----
-459
-765
-819

query I rowsort
SELECT ALL - col1 * - + col0 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT MIN( - 41 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-41

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT MIN ( - 41 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-41

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

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT 39 / + COUNT ( * ) FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT COUNT( * ) + - ( MAX( ALL - ( 95 ) ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
104

skipif mysql # not compatible
query I rowsort label-226
SELECT COUNT ( * ) + - ( MAX ( ALL - ( 95 ) ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
104

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

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

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

query I rowsort
SELECT - col2 + 38 - + + ( - 35 ) FROM tab1 AS cor0
----
-23
14
5

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT col0 * + col0 + 21 DIV - + col2 * - col2 * col2 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-230
SELECT col0 * + col0 + 21 / - + col2 * - col2 * col2 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT ALL - col2 * col1 + 45 + - + ( col1 ), 64 AS col2 FROM tab0
----
-186
64
-3843
64
-55
64

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT DISTINCT 10, COUNT( col0 ) * + + 85 AS col0 FROM tab0
----
10
255

skipif mysql # not compatible
query II rowsort label-232
SELECT DISTINCT 10, COUNT ( col0 ) * + + 85 AS col0 FROM tab0
----
10
255

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ALL - 82 + + COUNT( * ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - 82 + + COUNT ( * ) FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NULL = + 39
----
0

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NULL = + 39
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
35
35
35

query II rowsort
SELECT DISTINCT col1 - 33 * col2 AS col0, 81 + - + 33 AS col2 FROM tab0 AS cor0
----
-1470
48
-309
48
-3266
48

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT + MIN ( DISTINCT + col2 ) col1 FROM tab2
----
23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT - 87 DIV 35 * + - ( - + COUNT( * ) ) + - 16 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-239
SELECT - 87 / 35 * + - ( - + COUNT ( * ) ) + - 16 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT - 91 * 42 AS col1 FROM tab0 AS cor0
----
-3822
-3822
-3822

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

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - - MAX ( + - 58 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE - col2 - - - col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + - ( + 82 ) * + - col2 AS col0 FROM tab1 cor0
----
4838
5576
7872

query I rowsort
SELECT ALL + col0 * - 99 + + + ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-8513
198
724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT DISTINCT - + 33 DIV - COUNT( * ) col1 FROM tab2 AS cor0
----
11

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-246
SELECT col0 / - + CAST( NULL AS SIGNED ) * - 91, col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-246
SELECT col0 / - + CAST ( NULL AS INTEGER ) * - 91, col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab0 AS cor0
----
-85

query I rowsort
SELECT + col0 * + ( 50 ) FROM tab2
----
2300
3200
3750

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 3 > + col2 + - 60
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL COUNT( * ) * - COUNT( * ) * COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT + COUNT( * ) * + + 22 col0 FROM tab1
----
66

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - - 15
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 * col0 col2 FROM tab0 AS cor0
----
3654
4074
630

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT + col1 * - - col0 + + col0 - + 76 + 46 DIV - col1 AS col1 FROM tab1
----
425
4292
686

skipif mysql # not compatible
query I rowsort label-254
SELECT + col1 * - - col0 + + col0 - + 76 + 46 / - col1 AS col1 FROM tab1
----
425
4292
686

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT DISTINCT col2 DIV - col2 + + ( + col0 ) + + col0 FROM tab0 AS cor0
----
173
193
29

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT col2 / - col2 + + ( + col0 ) + + col0 FROM tab0 AS cor0
----
173
193
29

query I rowsort
SELECT - 44 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT col0 / - col0 / - col0 * col0 * + + 31 * - 92 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-261
SELECT + col2 * 63 - + - col1 + col2 AS col2, - col1 - + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - 5 IS NOT NULL
----
1523
-74
2637
-117
3779
-125

skipif mysql # not compatible
query II rowsort label-261
SELECT + col2 * 63 - + - col1 + col2 AS col2, - col1 - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - 5 IS NOT NULL
----
1523
-74
2637
-117
3779
-125

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

query I rowsort
SELECT + - col2 * + 56 + col1 AS col2 FROM tab2 AS cor0
----
-1237
-2163
-3181

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - 58 * COUNT( * ) FROM tab0 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-264
SELECT - 58 * COUNT ( * ) FROM tab0 cor0
----
-174

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

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

query I rowsort
SELECT ALL - col0 + + - ( + - col0 ) - + + col2 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col1 * - col0 - - col0 col1 FROM tab1
----
4300
451
669

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

query I rowsort
SELECT + 0 * + 97 AS col0 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 69 * - col1 + 3 + - 72 + col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
1401
5601

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-273
SELECT + CAST( col0 AS SIGNED ) + + + col2 + - - 38 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 86 IS NULL
----
-3016
-701
158

skipif mysql # not compatible
query I rowsort label-273
SELECT + CAST ( col0 AS INTEGER ) + + + col2 + - - 38 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 86 IS NULL
----
-3016
-701
158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT + + 40 * - - 90 + - COUNT( * ) FROM tab0 AS cor0
----
3597

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT + + 40 * - - 90 + - COUNT ( * ) FROM tab0 AS cor0
----
3597

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

query I rowsort
SELECT - + 24 * col1 AS col2 FROM tab1 AS cor0
----
-1128
-120
-336

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

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

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

query I rowsort
SELECT + col0 * - - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT DISTINCT - col2 AS col0, - 95 + - 10 FROM tab0 cor0
----
-10
-105
-47
-105
-99
-105

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

query I rowsort
SELECT ALL - 66 + + - col2 AS col2 FROM tab1
----
-125
-134
-162

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

query II rowsort
SELECT ALL 86, + 78 AS col0 FROM tab1
----
86
78
86
78
86
78

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

query I rowsort
SELECT + 99 + + 83 FROM tab1
----
182
182
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 82 + - 79 col0 FROM tab0
----
1151
7055
7875

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT 23 * + 47 * + COUNT( * ) FROM tab1 AS cor0
----
3243

skipif mysql # not compatible
query I rowsort label-289
SELECT 23 * + 47 * + COUNT ( * ) FROM tab1 AS cor0
----
3243

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT ALL - - col2 + col2 + + 80 AS col0 FROM tab1 WHERE + ( CAST( - + 91 AS SIGNED ) ) NOT BETWEEN - col2 AND - + col1 * - col1 + + col1
----
198
216

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL - - col2 + col2 + + 80 AS col0 FROM tab1 WHERE + ( CAST ( - + 91 AS INTEGER ) ) NOT BETWEEN - col2 AND - + col1 * - col1 + + col1
----
198
216

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT col2 + + 15 + col0 + + - col0 DIV + + 83 col1 FROM tab0
----
111
210
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-292
SELECT col2 + + 15 + col0 + + - col0 / + + 83 col1 FROM tab0
----
111
210
77

query I rowsort
SELECT 8 + + - col1 FROM tab0 AS cor0
----
-13
-73
7

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

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

query I rowsort
SELECT ALL + col2 - - 12 * 58 AS col1 FROM tab0 cor0
----
706
743
795

query II rowsort
SELECT ALL + 6 - + 57 + + + col1 AS col2, - ( - col2 ) FROM tab0 AS cor0
----
-30
10
-50
99
30
47

query I rowsort
SELECT DISTINCT + col2 * + 72 AS col2 FROM tab0
----
3384
7128
720

query I rowsort
SELECT + 37 * - col2 FROM tab1
----
-2183
-2516
-3552

query II rowsort
SELECT + 21, ( + col2 ) FROM tab0
----
21
10
21
47
21
99

query I rowsort
SELECT + 4 * + 81 FROM tab1
----
324
324
324

query I rowsort
SELECT DISTINCT ( + + col1 ) * + col1 * + col2 AS col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT - col0 * 76 + - col0 FROM tab0 AS cor0 WHERE NOT - col2 / + + 63 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT - MIN( ALL - col1 ) AS col1 FROM tab0 WHERE NOT + col1 NOT IN ( - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT - MIN ( ALL - col1 ) AS col1 FROM tab0 WHERE NOT + col1 NOT IN ( - + col1 )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-305
SELECT + SUM ( - - col0 ) col0 FROM tab0
----
199

query I rowsort
SELECT - col0 * + - col1 * + 60 FROM tab2
----
140760
295680
301500

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

query II rowsort
SELECT col1, - 58 FROM tab2
----
51
-58
67
-58
77
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT - ( + 79 ) * - + col0 + col2 + - col2 * + + ( 56 ) + - CAST( col1 AS SIGNED ) + + col0 FROM tab0 WHERE NOT NULL <= + col1 * + col0 + + - col1
----

skipif mysql # not compatible
query I rowsort label-309
SELECT - ( + 79 ) * - + col0 + col2 + - col2 * + + ( 56 ) + - CAST ( col1 AS INTEGER ) + + col0 FROM tab0 WHERE NOT NULL <= + col1 * + col0 + + - col1
----

query I rowsort
SELECT ALL + col1 * + - col1 + - col0 AS col2 FROM tab1
----
-110
-2300
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT COUNT( DISTINCT 68 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-311
SELECT COUNT ( DISTINCT 68 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 * + 61 FROM tab2
----
-2806
-3904
-4575

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

query I rowsort
SELECT ALL col2 + 15 FROM tab1
----
111
74
83

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( NOT NULL <> 75 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + + 63 + + + 14 + - 38 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 19b1f1fcc466c23e5267b585248665fc

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

query I rowsort
SELECT ALL - 82 + - + 44 AS col1 FROM tab0 AS cor0
----
-126
-126
-126

query I rowsort
SELECT ALL col1 + - col0 * - 32 AS col0 FROM tab0 AS cor0
----
2805
3105
561

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-321
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT IN ( 44 * + col1 + col1 + + CAST( NULL AS SIGNED ) + - + col1, col2 * - + col2, - - 88 + col1 )
----

skipif mysql # not compatible
query III rowsort label-321
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT IN ( 44 * + col1 + col1 + + CAST ( NULL AS INTEGER ) + - + col1, col2 * - + col2, - - 88 + col1 )
----

query I rowsort
SELECT ALL - - 8 * col1 - - - col2 * col2 + - 98 AS col2 FROM tab2 AS cor0
----
-1082
-219
-2926

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT ALL - col1 + col1 DIV col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL - col1 + col1 / col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT DISTINCT - + CAST( - 49 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
2303
4851
490

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
2303
4851
490

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT 23 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT 23 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
26

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT DISTINCT - MIN( DISTINCT 56 ) * 9 AS col1 FROM tab1 AS cor0
----
-504

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT - MIN ( DISTINCT 56 ) * 9 AS col1 FROM tab1 AS cor0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT + COUNT( DISTINCT - 71 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-330
SELECT + COUNT ( DISTINCT - 71 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-331
SELECT + - 84 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-331
SELECT + - 84 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT ALL - 4 * col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL - 4 * col0 / - col0 AS col2 FROM tab1 AS cor0
----
4
4
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT + ( - 59 ) DIV - col0 col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-334
SELECT + ( - 59 ) / - col0 col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 62 / + col2 <= ( + col2 * - col1 * ( col2 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 85 * - col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT ALL col0 DIV 94 * 62 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL col0 / 94 * 62 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 * + col0 + + 45 * - - col2 + col1 AS col1 FROM tab0 WHERE - 32 * - col2 * - col0 NOT IN ( ( - col1 ), - 29, + + col0 + + + col2 )
----
-399
-5147
1491

query I rowsort
SELECT DISTINCT col1 + - 42 + col1 FROM tab2
----
112
60
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-343
SELECT ALL * FROM tab2 WHERE - - 61 - + + col1 + - 44 + + CAST( + + 85 AS SIGNED ) / + + 55 + + 36 + - - 54 - 68 * col2 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-343
SELECT ALL * FROM tab2 WHERE - - 61 - + + col1 + - 44 + + CAST ( + + 85 AS INTEGER ) / + + 55 + + 36 + - - 54 - 68 * col2 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 47 * + col1 * 89 + 83 AS col1 FROM tab1
----
-196518
-20832
-58479

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT DISTINCT - COUNT( ALL 95 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT - COUNT ( ALL 95 ) FROM tab0
----
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT col1 * 80 * + - 1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + - - 19 FROM tab1
----
104
110
70

query I rowsort
SELECT DISTINCT + col0 - - col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + 52 * - 40 FROM tab2 AS cor0
----
-2080

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

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL - - CAST ( NULL AS REAL ) * - 61 * + ( + 73 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT DISTINCT - col0 DIV - 90 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - col0 / - 90 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL 92 * - col2 AS col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT col1 * col0 * + ( col1 ) AS col1 FROM tab0
----
38367
97
98415

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

query I rowsort
SELECT + 59 * - 51 * - col0 * - 96 FROM tab1
----
-14732064
-24553440
-26286624

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL 77 * MAX( - col0 ) AS col0 FROM tab2
----
-3542

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL 77 * MAX ( - col0 ) AS col0 FROM tab2
----
-3542

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT DISTINCT 77 DIV MIN( - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT 77 / MIN ( - col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( * ) FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( * ) FROM tab0 AS cor0 INNER JOIN tab0 cor1 ON NULL IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( - col2 / - ( + 69 ) + - 24 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-367
SELECT ALL COUNT( DISTINCT CAST( 92 AS SIGNED ) ) DIV + - ( - 20 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL COUNT ( DISTINCT CAST ( 92 AS INTEGER ) ) / + - ( - 20 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-368
SELECT SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * + SUM( + 95 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-368
SELECT SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + SUM ( + 95 ) col1 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 42 BETWEEN - col0 AND col1 - + - col2
----

query I rowsort
SELECT + 79 * + 96 AS col2 FROM tab2 cor0
----
7584
7584
7584

query I rowsort
SELECT ALL + col1 + - + col2 + 90 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT + + COUNT( DISTINCT 86 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-373
SELECT + + COUNT ( DISTINCT 86 ) AS col0 FROM tab0 AS cor0
----
1

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

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

skipif mysql # not compatible
query I rowsort label-375
SELECT + + COUNT ( + col0 ) FROM tab1 AS cor0 WHERE - ( - 90 ) * + + col2 - - - ( 55 ) / - col0 * - 42 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-376
SELECT ALL - COUNT( * ) DIV SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL - COUNT ( * ) / SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-378
SELECT ALL + col1 DIV - - col1 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-378
SELECT ALL + col1 / - - col1 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col1 + + 47 AS col1 FROM tab1
----
52
61
94

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

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 * - col0 + - + col0 AS col0 FROM tab2
----
3358
7424
9300

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + col2 ) + + + col0 * 89 <> - + 57 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 48 + + col1 * + - col1 + 33 col2 FROM tab0 cor0
----
-16
-456
-6576

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 - - col0 - ( col0 ) + + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-609
-762
-9505

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT + 5 + - ( - MAX( DISTINCT + ( - - col0 ) ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-387
SELECT + 5 + - ( - MAX ( DISTINCT + ( - - col0 ) ) ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL - 65 * + 76 AS col2 FROM tab2
----
-4940
-4940
-4940

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 16 ) NOT IN ( - col0 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 83 - - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( + 97 )
----

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE col1 = NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT 87 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT ALL - 19 * MAX( ALL - CAST( + 10 AS SIGNED ) ) + + COUNT( * ) FROM tab0
----
193

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - 19 * MAX ( ALL - CAST ( + 10 AS INTEGER ) ) + + COUNT ( * ) FROM tab0
----
193

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

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

query I rowsort
SELECT ALL - 7 * - col2 AS col0 FROM tab1 WHERE ( col0 + col2 * col0 ) IS NULL
----

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

query I rowsort
SELECT DISTINCT + 4 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) >= + 2
----

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

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

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

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

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

query I rowsort
SELECT 93 + 37 AS col1 FROM tab1
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT + COUNT( 15 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-407
SELECT + COUNT ( 15 ) FROM tab2
----
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-411
SELECT * FROM tab2 WHERE NOT - 53 + CAST( 85 AS SIGNED ) <> ( 91 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-411
SELECT * FROM tab2 WHERE NOT - 53 + CAST ( 85 AS INTEGER ) <> ( 91 + + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-412
SELECT ALL + 72 DIV + 79 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + 72 / + 79 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

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

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

query I rowsort
SELECT - 90 * 24 AS col2 FROM tab1 AS cor0
----
-2160
-2160
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL - - 85 + - COUNT( - col0 ) * - 94 FROM tab2 AS cor0
----
367

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL - - 85 + - COUNT ( - col0 ) * - 94 FROM tab2 AS cor0
----
367

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

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT ALL + 50 DIV - 85 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + 50 / - 85 FROM tab0 AS cor0
----
0
0
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 7 * 12 ) NOT IN ( 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT MIN( col2 ) * + 87 + - 46 FROM tab2 AS cor0
----
1955

skipif mysql # not compatible
query I rowsort label-420
SELECT MIN ( col2 ) * + 87 + - 46 FROM tab2 AS cor0
----
1955

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

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

query I rowsort
SELECT DISTINCT - col2 + 89 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-7
21
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-423
SELECT * FROM tab1 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-423
SELECT * FROM tab1 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * - 91 FROM tab2 AS cor0
----
2093
3640
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT + - COUNT( * ) * - 27 + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + - COUNT ( * ) * - 27 + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT MAX( - col0 ) AS col0 FROM tab1 WHERE col1 * col2 + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT MAX ( - col0 ) AS col0 FROM tab1 WHERE col1 * col2 + - col0 IS NULL
----
NULL

query I rowsort
SELECT - col2 + col0 + - 3 FROM tab2
----
14
20
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT ALL - 39 + CAST( col2 AS SIGNED ) FROM tab2
----
-16
1
19

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL - 39 + CAST ( col2 AS INTEGER ) FROM tab2
----
-16
1
19

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

query I rowsort
SELECT + ( - 71 ) AS col1 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE col2 <> 87 * - col1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 )
----

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

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NULL BETWEEN + col0 AND - col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ALL - 5 + + - COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL - 5 + + - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
-8

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

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

query I rowsort
SELECT 24 + + 15 * - col0 AS col0 FROM tab2 cor0 WHERE 49 IS NOT NULL
----
-1101
-666
-936

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-442
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - ( 7 ) * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( 7 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
NULL

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

query II rowsort
SELECT 42, col1 AS col0 FROM tab2
----
42
51
42
67
42
77

query I rowsort
SELECT + 31 AS col0 FROM tab2 AS cor0 WHERE NOT + 78 IS NULL
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT - MAX( ALL + 17 ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - MAX ( ALL + 17 ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL - + 50 * 54 * 4 * - col1 FROM tab0 AS cor0
----
10800
226800
874800

query I rowsort
SELECT DISTINCT + col0 + 45 AS col0 FROM tab2 AS cor0 WHERE ( col1 ) IN ( col0 )
----

query II rowsort
SELECT DISTINCT - + col2 AS col2, 35 FROM tab2 cor0
----
-23
35
-40
35
-58
35

query II rowsort
SELECT DISTINCT - 35 AS col0, - 75 FROM tab1 AS cor0
----
-35
-75

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT ALL - COUNT( DISTINCT CAST( - col2 AS SIGNED ) ) FROM tab2
----
-3

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

query I rowsort
SELECT col1 * + ( col2 ) AS col2 FROM tab0 WHERE NOT + - col0 > ( - 78 )
----
210
99

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT - 73 * 94 * - COUNT( * ) * - COUNT( * ) FROM tab0
----
-61758

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT - 73 * 94 * - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-61758

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL SUM( ALL 13 ) AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL SUM ( ALL 13 ) AS col2 FROM tab1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) * + col0 ) NOT IN ( col2 / 64 )
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + col0 ) NOT IN ( col2 / 64 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-458
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-464
SELECT * FROM tab1 WHERE + + 76 BETWEEN - CAST( NULL AS DECIMAL ) * + - 81 AND NULL
----

skipif mysql # not compatible
query III rowsort label-464
SELECT * FROM tab1 WHERE + + 76 BETWEEN - CAST ( NULL AS REAL ) * + - 81 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 73 col1 FROM tab1
----
120
78
87

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

query I rowsort
SELECT + + ( 41 ) * col0 FROM tab1 AS cor0
----
2091
3485
3731

query II rowsort
SELECT DISTINCT + col0, col1 * - col0 FROM tab1 AS cor0
----
51
-714
85
-425
91
-4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 85 ) col0 FROM tab1 AS cor0 WHERE col2 + 98 > + 73
----
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 6 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 78 / col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - COUNT( * ) * - 34 * COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
306
3

skipif mysql # not compatible
query II rowsort label-473
SELECT - COUNT ( * ) * - 34 * COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
306
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT + col1 - + col0 DIV + col0 - col0 AS col1 FROM tab1
----
-38
-45
-81

skipif mysql # not compatible
query I rowsort label-476
SELECT + col1 - + col0 / + col0 - col0 AS col1 FROM tab1
----
-38
-45
-81

query I rowsort
SELECT ALL + col1 * + col1 * + 7 AS col1 FROM tab0
----
3087
45927
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 + - + col2 col1 FROM tab2
----
-18
0
17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 17 * col2 ) <> + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE ( + 33 ) BETWEEN NULL AND + - ( + 49 ) + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-482
SELECT ALL - 98 - 44 * + CAST( col1 AS SIGNED ) * + 89 + + 9 DIV col2 AS col0 FROM tab0 cor0
----
-317294
-4014
-82334

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - 98 - 44 * + CAST ( col1 AS INTEGER ) * + 89 + + 9 / col2 AS col0 FROM tab0 cor0
----
-317294
-4014
-82334

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

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

query I rowsort
SELECT ALL + + col2 - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT 34 * + col1 * 47 FROM tab2 AS cor0
----
107066
123046
81498

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

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

query I rowsort
SELECT DISTINCT ( - 11 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 96 BETWEEN NULL AND - 36
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-490
SELECT + ( + - 46 ) DIV - 28 AS col0, SUM( DISTINCT col1 ) * 70 DIV + + 82 AS col0 FROM tab2 AS cor0
----
1
166

skipif mysql # not compatible
query II rowsort label-490
SELECT + ( + - 46 ) / - 28 AS col0, SUM ( DISTINCT col1 ) * 70 / + + 82 AS col0 FROM tab2 AS cor0
----
1
166

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

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

query I rowsort
SELECT ALL + - col1 / col0 FROM tab1 WHERE 73 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL - COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT MIN( ALL - - 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-494
SELECT MIN ( ALL - - 11 ) FROM tab1
----
11

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

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

query II rowsort
SELECT DISTINCT + col2 AS col1, + 98 FROM tab0 AS cor0
----
10
98
47
98
99
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = - - col1
----

query I rowsort
SELECT DISTINCT - 77 + - - col0 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-62
10
20

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

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

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

query I rowsort
SELECT + - col1 * - col1 + 32 FROM tab0 AS cor0
----
33
473
6593

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-502
SELECT - + COUNT( * ) / 11 * - MIN( DISTINCT - 48 ) * CAST( NULL AS DECIMAL ) - + 96 + - 52 + - - MIN( DISTINCT + 63 ) + + MIN( - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT - + COUNT ( * ) / 11 * - MIN ( DISTINCT - 48 ) * CAST ( NULL AS REAL ) - + 96 + - 52 + - - MIN ( DISTINCT + 63 ) + + MIN ( - col1 ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + - 58 * - - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-1208
-4651
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-505
SELECT ALL - 95 + + col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col2 + - - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-505
SELECT ALL - 95 + + col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col2 + - - col1 IS NULL
----

query I rowsort
SELECT - ( + 69 ) AS col2 FROM tab0 AS cor0 WHERE col2 = col2
----
-69
-69
-69

query I rowsort
SELECT DISTINCT col1 - - - col0 FROM tab1 cor0
----
-37
-44
-80

query II rowsort
SELECT DISTINCT + 93 * + 82 AS col0, 51 * - - col1 * + - col1 + + col2 * 9 FROM tab0 AS cor0
----
7626
-22401
7626
-334188
7626
840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-509
SELECT * FROM tab2 WHERE - + 94 / + col0 * - - col0 * 43 + ( + - CAST( NULL AS SIGNED ) ) / - col1 + - + col2 NOT BETWEEN - col2 * col2 + col0 AND col1
----

skipif mysql # not compatible
query III rowsort label-509
SELECT * FROM tab2 WHERE - + 94 / + col0 * - - col0 * 43 + ( + - CAST ( NULL AS INTEGER ) ) / - col1 + - + col2 NOT BETWEEN - col2 * col2 + col0 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 53 )
----

query I rowsort
SELECT DISTINCT - 13 * col1 AS col1 FROM tab2
----
-1001
-663
-871

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT + 33 * - - COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-513
SELECT + 33 * - - COUNT ( * ) FROM tab2
----
99

query I rowsort
SELECT 80 - - col0 + + 18 * 50 AS col2 FROM tab0
----
1067
1077
995

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - + MIN( + - 68 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-515
SELECT - + MIN ( + - 68 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
68

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2, + 96 )
----

query I rowsort
SELECT ALL + 97 * col0 FROM tab2 cor0
----
4462
6208
7275

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 14 * col0 / 92 NOT BETWEEN - 39 AND col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT ( - - 89 ) AS col2 FROM tab1
----
89
89
89

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

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + col0 / 46 AS col0 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-526
SELECT DISTINCT - col2 * - 5 + + + col1 + - - col2 DIV + col1, - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
311
-85
388
-91
500
-51

skipif mysql # not compatible
query II rowsort label-526
SELECT DISTINCT - col2 * - 5 + + + col1 + - - col2 / + col1, - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
311
-85
388
-91
500
-51

query I rowsort
SELECT DISTINCT - col2 + + 84 AS col2 FROM tab0
----
-15
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT + MAX( ALL - + 50 ) * COUNT( * ) - - 61 + + + COUNT( * ) FROM tab2, tab1 AS cor0
----
-380

skipif mysql # not compatible
query I rowsort label-528
SELECT + MAX ( ALL - + 50 ) * COUNT ( * ) - - 61 + + + COUNT ( * ) FROM tab2, tab1 AS cor0
----
-380

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

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

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

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

query I rowsort
SELECT + 39 + col0 + col2 - - col0 FROM tab0 AS cor0
----
116
223
332

query II rowsort
SELECT ALL + - col0 + ( - col1 ) AS col2, col1 + + col0 + + - col2 * - + col0 * - - 7 + - col1 + - + col2 FROM tab2 cor0
----
-141
17944
-142
30467
-97
7429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT ALL 85 * - CAST( + + AVG ( + 23 ) AS SIGNED ) FROM tab2 AS cor0
----
-1955

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL 85 * - CAST ( + + AVG ( + 23 ) AS INTEGER ) FROM tab2 AS cor0
----
-1955

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

query I rowsort
SELECT col2 - - ( + 87 ) + + 26 * - + col2 FROM tab2
----
-1363
-488
-913

query I rowsort
SELECT col2 + + 58 - col2 FROM tab0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT ALL - col1 + + - CAST( + col0 AS SIGNED ) FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - col1 + + - CAST ( + col0 AS INTEGER ) FROM tab2
----
-141
-142
-97

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <> col2
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-543
SELECT + ( CAST ( NULL AS INTEGER ) ) * COUNT ( + 14 ) + + ( - + 36 ) + - - SUM ( ALL - 66 ) FROM tab0
----
NULL

query II rowsort
SELECT - 14 AS col1, 21 FROM tab0
----
-14
21
-14
21
-14
21

query I rowsort
SELECT ALL col0 * + col2 * - - col0 + + - col1 AS col1 FROM tab1 AS cor0
----
249682
426270
563061

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

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

query I rowsort
SELECT DISTINCT - + 81 * + col0 AS col2 FROM tab2 AS cor0
----
-3726
-5184
-6075

query I rowsort
SELECT + 20 * 77 FROM tab2 cor0 WHERE NOT 98 + ( - col1 ) + + col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col0 + - - 16 FROM tab0
----
103
113
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + 55 + - COUNT( - - 1 ) AS col2 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-552
SELECT + 55 + - COUNT ( - - 1 ) AS col2 FROM tab2
----
52

query I rowsort
SELECT 82 AS col1 FROM tab2 WHERE col2 / col0 > - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 86 col0 FROM tab2
----
132
150
161

query II rowsort
SELECT 0, - 46 AS col1 FROM tab1
----
0
-46
0
-46
0
-46

query I rowsort
SELECT ALL + 76 * - + 11 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-836
-836
-836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-557
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-557
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= NULL
----

query II rowsort
SELECT 94 + + col2 AS col2, 64 * - 51 AS col0 FROM tab2
----
117
-3264
134
-3264
152
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT CAST( - + ( - 22 ) AS SIGNED ) + COUNT( * ) * + MAX( ALL + ( - 74 ) ) AS col1 FROM tab2
----
-200

skipif mysql # not compatible
query I rowsort label-559
SELECT CAST ( - + ( - 22 ) AS INTEGER ) + COUNT ( * ) * + MAX ( ALL + ( - 74 ) ) AS col1 FROM tab2
----
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT - col2 + col2 + + col0 * + 98 / + 36 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT - col2 + col2 + + col0 * + 98 / + 36 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - 49 AS col0 FROM tab2 AS cor0
----
-113
-124
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT DISTINCT + + 30 DIV - col0 + + col2 FROM tab0 AS cor0
----
10
45
99

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT + + 30 / - col0 + + col2 FROM tab0 AS cor0
----
10
45
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT - 62 + + MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-564
SELECT - 62 + + MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-63

query II rowsort
SELECT DISTINCT - + col1 - + 80 AS col2, 37 FROM tab2 AS cor0
----
-131
37
-147
37
-157
37

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT DISTINCT COUNT( * ) - + 53 AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT COUNT ( * ) - + 53 AS col0 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT - COUNT( * ) - - + 34 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT - COUNT ( * ) - - + 34 FROM tab1 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - 45 col0 FROM tab0 AS cor0
----
-132
-142
-60

query II rowsort
SELECT ALL col2, + col0 * col0 + - col1 * col2 FROM tab2
----
23
943
40
1016
58
1739

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT - col2 DIV - + 10 FROM tab0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-573
SELECT - col2 / - + 10 FROM tab0
----
1
4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT COUNT( * ) * + 97 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-574
SELECT COUNT ( * ) * + 97 FROM tab1
----
291

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2, - col0 )
----

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

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

query I rowsort
SELECT 96 / col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL - col0 * - col2 + - + col0 FROM tab2 AS cor0
----
1012
2496
4275

query I rowsort
SELECT - + 44 * - col0 * col1 FROM tab2 AS cor0
----
103224
216832
221100

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

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

query I rowsort
SELECT DISTINCT - 53 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT - 45 / - ( - + 84 ) * - col0 * - - col2 / - CAST( NULL AS SIGNED ) + 17 * + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-584
SELECT - 45 / - ( - + 84 ) * - col0 * - - col2 / - CAST ( NULL AS INTEGER ) + 17 * + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT COUNT( DISTINCT 64 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-585
SELECT COUNT ( DISTINCT 64 ) AS col0 FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT ALL - - 24 AS col2 FROM tab1 cor0
----
24
24
24

query I rowsort
SELECT - col2 * - 92 AS col0 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT ALL 98 * + - col1 FROM tab2
----
-4998
-6566
-7546

query I rowsort
SELECT DISTINCT - col1 + - col0 + col0 + - + 4 FROM tab2
----
-55
-71
-81

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 25 + col1 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL + ( - 75 ) + + COUNT( - col1 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + ( - 75 ) + + COUNT ( - col1 ) FROM tab2 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-594
SELECT + col0 DIV + + col2 + + 50 FROM tab1 AS cor0
----
50
51
51

skipif mysql # not compatible
query I rowsort label-594
SELECT + col0 / + + col2 + + 50 FROM tab1 AS cor0
----
50
51
51

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

skipif mysql # not compatible
query I rowsort label-595
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-596
SELECT CAST ( - + ( - ( + - 78 ) ) AS INTEGER ) col0 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT 5 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

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

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

query I rowsort
SELECT 44 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
44
44

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

onlyif mysql # aggregate syntax: 
query II rowsort label-602
SELECT + - 27 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-27
-3

skipif mysql # not compatible
query II rowsort label-602
SELECT + - 27 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-27
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT col1 * 72 DIV - col1 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-605
SELECT col1 * 72 / - col1 AS col1 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - - 33 AS col1 FROM tab1 cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-607
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-607
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT MIN( - 94 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-610
SELECT MIN ( - 94 ) FROM tab0
----
-94

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + 51 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT + MAX( ALL - 38 ) AS col1 FROM tab1 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-613
SELECT + MAX ( ALL - 38 ) AS col1 FROM tab1 cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT 55 * - + COUNT( * ) col1 FROM tab2 AS cor0
----
-165

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT + col1 DIV 67 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-616
SELECT + col1 / 67 AS col0 FROM tab0 AS cor0
----
0
0
1

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

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

query I rowsort
SELECT ALL ( + 16 ) + - 62 AS col2 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT ALL 35 * + col1 - + col1 FROM tab1
----
1598
170
476

query I rowsort
SELECT DISTINCT + - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 89 - ( + col0 ) col0 FROM tab2 cor0
----
-135
-153
-164

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

query I rowsort
SELECT ALL col2 * + 60 AS col1 FROM tab0 AS cor0
----
2820
5940
600

query I rowsort
SELECT + 62 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2 + - col1, col2 FROM tab0 WHERE - ( 73 ) + + col0 * col0 + + - col0 + - 49 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-626
SELECT - MAX ( - - col0 ) col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-627
SELECT DISTINCT ( ( - - 50 ) ), - COUNT( * ) AS col2 FROM tab1 AS cor0
----
50
-3

skipif mysql # not compatible
query II rowsort label-627
SELECT DISTINCT ( ( - - 50 ) ), - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
50
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL - - SUM( - + 58 ) col0 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-628
SELECT ALL - - SUM ( - + 58 ) col0 FROM tab1 AS cor0
----
-174

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + col2 = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT DISTINCT + - MAX( ALL col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT + - MAX ( ALL col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT CAST( - COUNT( DISTINCT - col0 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-631
SELECT CAST ( - COUNT ( DISTINCT - col0 ) AS INTEGER ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 21 + + 43, + 28 )
----

query I rowsort
SELECT DISTINCT col2 * 56 AS col2 FROM tab0
----
2632
5544
560

query I rowsort
SELECT ALL - 72 * + - col1 FROM tab0
----
1512
5832
72

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT ALL + 39 DIV 84 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + 39 / 84 AS col0 FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT MIN( DISTINCT - - col1 ) DIV + - SUM( DISTINCT ( ( - ( + - 86 ) ) ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-637
SELECT MIN ( DISTINCT - - col1 ) / + - SUM ( DISTINCT ( ( - ( + - 86 ) ) ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-638
SELECT - CAST( - 8 AS SIGNED ) * - CAST( col0 AS SIGNED ) - 72 AS col2 FROM tab0 AS cor0
----
-192
-768
-848

skipif mysql # not compatible
query I rowsort label-638
SELECT - CAST ( - 8 AS INTEGER ) * - CAST ( col0 AS INTEGER ) - 72 AS col2 FROM tab0 AS cor0
----
-192
-768
-848

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT - col0 + col0 * + + CAST( - + col2 AS SIGNED ) * - - col1 + + col0 AS col1 FROM tab0
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-641
SELECT - col0 + col0 * + + CAST ( - + col2 AS INTEGER ) * - - col1 + + col0 AS col1 FROM tab0
----
-18270
-57105
-9603

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

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

query I rowsort
SELECT + col2 * + - col0 + + - ( - col1 ) AS col0 FROM tab2
----
-1007
-2483
-4283

query II rowsort
SELECT ALL + + 94 + + 16 AS col1, - col1 * + col0 FROM tab2 AS cor0
----
110
-2346
110
-4928
110
-5025

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

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

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

query I rowsort
SELECT ALL - col0 + 99 + + - col0 AS col0 FROM tab1 AS cor0
----
-3
-71
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT COUNT( * ) * - - SUM( DISTINCT + col1 ) FROM tab2 cor0
----
585

skipif mysql # not compatible
query I rowsort label-648
SELECT COUNT ( * ) * - - SUM ( DISTINCT + col1 ) FROM tab2 cor0
----
585

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

query I rowsort
SELECT col1 - + - 62 AS col0 FROM tab0
----
143
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT DISTINCT - 8 * - + 46 + + COUNT( ALL - col0 ) + - COUNT( * ) FROM tab2
----
368

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT - 8 * - + 46 + + COUNT ( ALL - col0 ) + - COUNT ( * ) FROM tab2
----
368

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT ALL + 6 + - - COUNT( col0 ) AS col0, 24 * ( 19 ) + + 72 FROM tab1
----
9
528

skipif mysql # not compatible
query II rowsort label-652
SELECT ALL + 6 + - - COUNT ( col0 ) AS col0, 24 * ( 19 ) + + 72 FROM tab1
----
9
528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + 28 + - col1 - - 83 * - col0 * - 78 col1 FROM tab0
----
563276
628046
97016

query I rowsort
SELECT ALL 78 + + col2 AS col1 FROM tab0
----
125
177
88

query I rowsort
SELECT ALL 44 + - - col0 AS col2 FROM tab0
----
131
141
59

query I rowsort
SELECT ALL - 49 FROM tab1 AS cor0 WHERE + 61 IS NOT NULL
----
-49
-49
-49

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-659
SELECT - - col2 / - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - col2 DIV + 44 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-660
SELECT - col2 / + 44 AS col1 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL - + 33 * - + SUM( - - col1 ) FROM tab2 AS cor0
----
6435

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL - + 33 * - + SUM ( - - col1 ) FROM tab2 AS cor0
----
6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-662
SELECT DISTINCT ( - - col1 ) * + + CAST( 24 AS SIGNED ) AS col2 FROM tab2
----
1224
1608
1848

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT ( - - col1 ) * + + CAST ( 24 AS INTEGER ) AS col2 FROM tab2
----
1224
1608
1848

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

query I rowsort
SELECT ALL ( - - 53 ) FROM tab2
----
53
53
53

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

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

query I rowsort
SELECT + + ( + - 9 ) * + col1 * - + 65 FROM tab1 AS cor0
----
27495
2925
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 29 col2 FROM tab0 AS cor0
----
128
39
76

query III rowsort
SELECT * FROM tab2 WHERE - 69 IS NULL
----

query I rowsort
SELECT - 57 AS col1 FROM tab0 WHERE + + 57 + - 67 IN ( + + ( + 8 ) )
----

query I rowsort
SELECT - col1 * - + 47 FROM tab1
----
2209
235
658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-671
SELECT - COUNT( - + 8 ), - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-671
SELECT - COUNT ( - + 8 ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-3
NULL

query I rowsort
SELECT ALL - col0 - col0 + + col2 * - col0 FROM tab1 WHERE + col1 <= col1
----
-4998
-5185
-6370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT col1 * 66 + - 60 * 86 / CAST( NULL AS SIGNED ) * + col2 + - 2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT col1 * 66 + - 60 * 86 / CAST ( NULL AS INTEGER ) * + col2 + - 2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 AS col2, + col0 AS col1 FROM tab0 AS cor0 WHERE col1 * - col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-677
SELECT ALL - 64 AS col0, + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-677
SELECT ALL - 64 AS col0, + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT + COUNT( * ) + 32 FROM tab0 cor0 WHERE NULL >= NULL
----
32

skipif mysql # not compatible
query I rowsort label-678
SELECT + COUNT ( * ) + 32 FROM tab0 cor0 WHERE NULL >= NULL
----
32

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

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

query I rowsort
SELECT - col2 * + + ( - col2 ) * 83 * + - col0 + 12 AS col1 FROM tab2
----
-2019710
-20940888
-8499188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-682
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) >= ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-682
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) >= ( + + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT 30 * + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
1770
2040
2880

skipif mysql # not compatible
query I rowsort label-684
SELECT 30 * + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
1770
2040
2880

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-685
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + CAST( col0 AS SIGNED ) IN ( - + col0, + 36, + + ( + - col0 ), - 21 ) OR NOT NULL > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-685
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + CAST ( col0 AS INTEGER ) IN ( - + col0, + 36, + + ( + - col0 ), - 21 ) OR NOT NULL > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL + COUNT( * ) + 99 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL + COUNT ( * ) + 99 FROM tab2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT ALL + col2 + + CAST( 65 AS SIGNED ) FROM tab1
----
124
133
161

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + col2 + + CAST ( 65 AS INTEGER ) FROM tab1
----
124
133
161

query II rowsort
SELECT DISTINCT + + col2 - + col2, + col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query I rowsort
SELECT DISTINCT - 26 * - 99 + + - col0 - + - 81 + - 55 * + + 98 AS col2 FROM tab0 AS cor0
----
-2750
-2822
-2832

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

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL + 5 + + COUNT( DISTINCT - 98 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL + 5 + + COUNT ( DISTINCT - 98 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 87 col2 FROM tab1
----
-5133
-5916
-8352

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT 68 * + CAST( - col1 AS SIGNED ) * 3 + - 45 + + 28 - - 46 + - col2 FROM tab2
----
-10398
-13697
-15719

skipif mysql # not compatible
query I rowsort label-695
SELECT 68 * + CAST ( - col1 AS INTEGER ) * 3 + - 45 + + 28 - - 46 + - col2 FROM tab2
----
-10398
-13697
-15719

query I rowsort
SELECT DISTINCT - - 87 * col1 AS col2 FROM tab0 cor0
----
1827
7047
87

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

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

query I rowsort
SELECT ALL - ( - col2 ) * col0 * + col0 + + + col1 FROM tab1 AS cor0
----
249710
426280
563155

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT DISTINCT - + COUNT( ALL col2 ) * + + ( + + COUNT( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT - + COUNT ( ALL col2 ) * + + ( + + COUNT ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT 38, 81 AS col2 FROM tab0 AS cor0
----
38
81
38
81
38
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + 14 col1, - ( - col0 ) col1 FROM tab1
----
-1344
51
-826
85
-952
91

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT + SUM( - - 40 ) + - 31 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT + SUM ( - - 40 ) + - 31 FROM tab2
----
89

query I rowsort
SELECT ALL col2 * col2 * - + 65 * + + 41 AS col2 FROM tab1
----
-12322960
-24560640
-9276865

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT 44 * - ( COUNT( * ) ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-706
SELECT 44 * - ( COUNT ( * ) ) FROM tab0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + MAX( DISTINCT 13 ) + - COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + MAX ( DISTINCT 13 ) + - COUNT ( * ) FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL 9 * - MAX( - 2 ) AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL 9 * - MAX ( - 2 ) AS col2 FROM tab2 AS cor0
----
18

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-710
SELECT + + 50 DIV COUNT( * ) + - 62 FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-710
SELECT + + 50 / COUNT ( * ) + - 62 FROM tab0 cor0
----
-46

query I rowsort
SELECT + + col2 + + - col1 AS col0 FROM tab0 AS cor0
----
-11
-34
98

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

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

query I rowsort
SELECT + col1 + + col0 + col1 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL 72 * + 60 + SUM( ALL + 55 ) + - COUNT( * ) FROM tab0
----
4482

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL 72 * + 60 + SUM ( ALL + 55 ) + - COUNT ( * ) FROM tab0
----
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - - COUNT( * ) - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - - COUNT ( * ) - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT COUNT( - 61 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-716
SELECT COUNT ( - 61 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - col2 + 8 FROM tab0 AS cor0
----
-2
-39
-91

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-721
SELECT 19 DIV + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-721
SELECT 19 / + COUNT ( * ) FROM tab0 AS cor0
----
6

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

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

query I rowsort
SELECT 2 - - col2 AS col2 FROM tab2
----
25
42
60

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

query I rowsort
SELECT - 11 - + col0 FROM tab0
----
-108
-26
-98

query I rowsort
SELECT + 28 * col0 + + 96 FROM tab2
----
1384
1888
2196

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

query I rowsort
SELECT + + 91 * - + 19 FROM tab0 AS cor0
----
-1729
-1729
-1729

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT SUM( + col1 ) col0, - MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
103
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-730
SELECT SUM ( + col1 ) col0, - MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
103
-15

query II rowsort
SELECT + - 84 AS col0, 68 + - 6 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 7766ece09464e98a0028e4aeff42d8ed

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + 28 * + COUNT( * ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-732
SELECT + 28 * + COUNT ( * ) FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-733
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) > + col0 )
----

skipif mysql # not compatible
query III rowsort label-733
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) > + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 95 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 43 ) + + col0 BETWEEN ( + - 10 ) AND - ( + - col0 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ( - + COUNT( * ) ) * 96 FROM tab1 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-736
SELECT ( - + COUNT ( * ) ) * 96 FROM tab1 cor0
----
-288

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

query II rowsort
SELECT ALL - col2, 79 * col1 FROM tab1 WHERE NULL NOT BETWEEN ( + + col0 * - + 14 - + col1 ) AND + 42 - + + col1
----

query I rowsort
SELECT + + col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 35 + 73 * - col2 + - col1 + col1 / + 19 NOT BETWEEN + col2 + - - 1 AND + - 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL, tab1 AS cor2
----
243 values hashing to 566333ec9d9c6aa35b392cc5fe1bfe19

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

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

query I rowsort
SELECT DISTINCT - col2 - + 75 AS col0 FROM tab2 AS cor0
----
-115
-133
-98

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND col2 * + 3 OR NOT + col0 IN ( col2, + col2 / - - col0, + + 4 + - + 98 - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT - ( 74 ) * - - ( + col2 ) FROM tab0
----
-3478
-7326
-740

query I rowsort
SELECT DISTINCT + 67 * - col1 - + col2 + + col0 * 63 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1167
-542
178

query I rowsort
SELECT DISTINCT + 1 * + + col0 FROM tab2
----
46
64
75

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

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

skipif mysql # not compatible
query I rowsort label-756
SELECT + - MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT ALL - col0 AS col1, - col2 FROM tab1
----
-51
-96
-85
-59
-91
-68

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 83 > NULL
----

query I rowsort
SELECT DISTINCT - + col0 - col0 AS col1 FROM tab0 AS cor0 WHERE + col2 + - + col0 / - + 21 * - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT SUM( DISTINCT 58 ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-762
SELECT SUM ( DISTINCT 58 ) AS col2 FROM tab0 AS cor0
----
58

query II rowsort
SELECT - col2, - ( - col2 ) AS col1 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT 67 * col0 FROM tab2
----
3082
4288
5025

query I rowsort
SELECT ALL 19 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-767
SELECT DISTINCT ( + 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-767
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( NOT 76 IS NOT NULL )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL <= 80
----

onlyif mysql # DIV for integer division: 
query II rowsort label-770
SELECT DISTINCT col2 + 32 + col2 DIV ( + 89 ), - col2 AS col2 FROM tab0
----
132
-99
42
-10
79
-47

skipif mysql # not compatible
query II rowsort label-770
SELECT DISTINCT col2 + 32 + col2 / ( + 89 ), - col2 AS col2 FROM tab0
----
132
-99
42
-10
79
-47

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

query I rowsort
SELECT ALL col1 + col1 + + 60 AS col2 FROM tab2 WHERE NULL IS NULL
----
162
194
214

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL 68 + COUNT( * ) * ( 23 ) col1 FROM tab2
----
137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-773
SELECT ALL 68 + COUNT ( * ) * ( 23 ) col1 FROM tab2
----
137

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-775
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - - ( - CAST( NULL AS DECIMAL ) ) + + 84 IS NOT NULL AND NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-775
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - - ( - CAST ( NULL AS REAL ) ) + + 84 IS NOT NULL AND NOT ( NULL ) IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-776
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - col1 AS INTEGER ) + + col1 NOT BETWEEN NULL AND + 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-777
SELECT DISTINCT - COUNT( DISTINCT CAST( - + CAST( + col1 AS SIGNED ) AS SIGNED ) ) + + - MIN( + col2 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT - COUNT ( DISTINCT CAST ( - + CAST ( + col1 AS INTEGER ) AS INTEGER ) ) + + - MIN ( + col2 ) FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT ALL - 1 - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL - 1 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT ALL - - col1 * - - 17 - col1 + col0 - col2 FROM tab0 AS cor0
----
1264
14
413

query I rowsort
SELECT col0 * - - 77 + 30 - + + col2 * + - col1 FROM tab2 AS cor0
----
4745
8038
9691

query III rowsort
SELECT * FROM tab2 WHERE NOT - 51 > - col2
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT ALL + ( col2 ) * col2 + - - 70 FROM tab0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) * + col1 - col0 + - col1 IS NOT NULL
----
170
2279
9871

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL + ( col2 ) * col2 + - - 70 FROM tab0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) * + col1 - col0 + - col1 IS NOT NULL
----
170
2279
9871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT - col2 * - CAST( col2 AS SIGNED ) * - - col2 * + 66 + + - 71 + - - CAST( 47 AS SIGNED ) FROM tab1
----
13554990
20752488
58392552

skipif mysql # not compatible
query I rowsort label-783
SELECT - col2 * - CAST ( col2 AS INTEGER ) * - - col2 * + 66 + + - 71 + - - CAST ( 47 AS INTEGER ) FROM tab1
----
13554990
20752488
58392552

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

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT col2 / - col1 * - col0 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + ( - MIN( - - 64 ) ) AS col1 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + ( - MIN ( - - 64 ) ) AS col1 FROM tab1
----
-64

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

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

skipif mysql # not compatible
query I rowsort label-787
SELECT COUNT ( * ) * + ( - - 14 ) FROM tab2
----
42

query I rowsort
SELECT - col2 * - + 27 AS col1 FROM tab2 cor0
----
1080
1566
621

query I rowsort
SELECT DISTINCT - 12 + + 46 + - col2 FROM tab0
----
-13
-65
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT - - SUM( ALL - ( - ( + 57 ) ) ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-791
SELECT - - SUM ( ALL - ( - ( + 57 ) ) ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT - col2 * + 54 * + col1 FROM tab2 AS cor0
----
-166320
-209844
-63342

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

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

query I rowsort
SELECT + 82 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-5
67

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL 63 + - + col0 FROM tab0
----
-24
-34
48

query I rowsort
SELECT + 30 + + col1 + - + col2 AS col2 FROM tab2
----
39
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-798
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL col1 * col1 + - 73 * + 81 FROM tab1
----
-3704
-5717
-5888

query II rowsort
SELECT - ( + col2 ), col1 + col1 AS col2 FROM tab2
----
-23
102
-40
154
-58
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT - CAST( - 77 AS SIGNED ) FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-802
SELECT - CAST ( - 77 AS INTEGER ) FROM tab2
----
77
77
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT ALL - col0 * - col0 + + col0 DIV - + col2 FROM tab2 AS cor0
----
2114
4095
5624

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - col0 * - col0 + + col0 / - + col2 FROM tab2 AS cor0
----
2114
4095
5624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT - + CAST( + 52 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

skipif mysql # not compatible
query I rowsort label-805
SELECT - + CAST ( + 52 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT - MIN( col0 ) + - - 87 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-806
SELECT - MIN ( col0 ) + - - 87 FROM tab1
----
36

query II rowsort
SELECT - col0 + col1 AS col2, 3 AS col1 FROM tab0
----
-66
3
-96
3
66
3

query I rowsort
SELECT DISTINCT - col1 - - col1 * - 1 FROM tab0 AS cor0
----
-162
-2
-42

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

query I rowsort
SELECT ALL - - 70 - - - col1 + - 72 AS col0 FROM tab0 AS cor0
----
-23
-3
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-811
SELECT DISTINCT + CAST( - 87 AS SIGNED ) - - col0 FROM tab0 AS cor0
----
-72
0
10

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) - - col0 FROM tab0 AS cor0
----
-72
0
10

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT - MAX( ALL - 1 ), - 6 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
1
-3

skipif mysql # not compatible
query II rowsort label-812
SELECT - MAX ( ALL - 1 ), - 6 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1
-3

query II rowsort
SELECT ALL col0 * + + col1, 71 AS col0 FROM tab2 cor0
----
2346
71
4928
71
5025
71

query II rowsort
SELECT DISTINCT - col1 * + col0, + col2 + col2 AS col1 FROM tab2 AS cor0
----
-2346
46
-4928
80
-5025
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 75 * + - col1 col1, 9 FROM tab1 cor0
----
-1050
9
-3525
9
-375
9

query I rowsort
SELECT DISTINCT 69 * - - 90 AS col2 FROM tab2
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT + MAX( ALL + 21 ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + MAX ( ALL + 21 ) AS col0 FROM tab1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT ALL 87 DIV col2 col0 FROM tab2
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-818
SELECT ALL 87 / col2 col0 FROM tab2
----
1
2
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-819
SELECT ( + MIN ( DISTINCT + CAST ( + col1 AS INTEGER ) ) ) col0 FROM tab2
----
51

query I rowsort
SELECT 4 * col2 * - - ( + 39 ) FROM tab1
----
10608
14976
9204

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT - 5 DIV - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-821
SELECT - 5 / - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 50 * ( col1 * - col2 ) AS col0 FROM tab0
----
10500
190350
4950

query III rowsort
SELECT ALL * FROM tab2 WHERE 52 > - 95 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 25 AS col1 FROM tab0 WHERE NOT - ( + 45 ) <> - 55
----

query I rowsort
SELECT DISTINCT col1 + 74 AS col0 FROM tab0
----
155
75
95

query I rowsort
SELECT - 44 * + 95 FROM tab2
----
-4180
-4180
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL 5 * MAX( - 55 ) FROM tab2
----
-275

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL 5 * MAX ( - 55 ) FROM tab2
----
-275

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-830
SELECT ALL + COUNT( * ) + + 23 AS col1 FROM tab0 WHERE ( 95 + - 35 * + ( - CAST( NULL AS SIGNED ) ) ) IN ( - 11 )
----
23

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL + COUNT ( * ) + + 23 AS col1 FROM tab0 WHERE ( 95 + - 35 * + ( - CAST ( NULL AS INTEGER ) ) ) IN ( - 11 )
----
23

query I rowsort
SELECT - col1 * + col2 + col0 FROM tab0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 - + col2 FROM tab2
----
2323
4888
4967

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

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) * 16 + - COUNT ( * ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + 9 col0 FROM tab0
----
10
450
6570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT DISTINCT 6 + - col0 AS col0 FROM tab0 WHERE NOT col2 / col1 - col0 * CAST( NULL AS SIGNED ) NOT BETWEEN ( 35 ) AND col2
----

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT 6 + - col0 AS col0 FROM tab0 WHERE NOT col2 / col1 - col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN ( 35 ) AND col2
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT + 26 + + col1 DIV + col2 FROM tab2
----
27
27
28

skipif mysql # not compatible
query I rowsort label-839
SELECT + 26 + + col1 / + col2 FROM tab2
----
27
27
28

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( + col0 ) <> ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT - col0 DIV - ( - 75 ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-842
SELECT - col0 / - ( - 75 ) FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) - - 2 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) - - 2 AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT - col0 - + CAST( col2 + col2 AS SIGNED ) AS col2 FROM tab2
----
-144
-191
-92

skipif mysql # not compatible
query I rowsort label-844
SELECT - col0 - + CAST ( col2 + col2 AS INTEGER ) AS col2 FROM tab2
----
-144
-191
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col0 IN ( + col2 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT CAST( + 79 AS SIGNED ) + 39 AS col0 FROM tab0
----
118
118
118

skipif mysql # not compatible
query I rowsort label-846
SELECT CAST ( + 79 AS INTEGER ) + 39 AS col0 FROM tab0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + MAX( ALL col1 ) * - COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-847
SELECT + MAX ( ALL col1 ) * - COUNT ( * ) FROM tab0
----
-243

query I rowsort
SELECT + col2 * + 54 AS col0 FROM tab2
----
1242
2160
3132

query I rowsort
SELECT 82 + - 6 AS col0 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-850
SELECT * FROM tab2 cor0 WHERE ( NULL ) <= ( CAST( 36 AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-850
SELECT * FROM tab2 cor0 WHERE ( NULL ) <= ( CAST ( 36 AS INTEGER ) + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 50 ) > + col2 * 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 3 col0 FROM tab2 AS cor0
----
-26
-43
-61

query I rowsort
SELECT DISTINCT 60 * - col0 AS col0 FROM tab1 AS cor0
----
-3060
-5100
-5460

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT 31 DIV + ( - col2 ) FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-854
SELECT 31 / + ( - col2 ) FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL 88 * + col2 + col0 AS col0 FROM tab0
----
4151
8809
967

query I rowsort
SELECT DISTINCT - 72 FROM tab2 AS cor0 CROSS JOIN tab0
----
-72

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col2 + col1 >= col2 * 14
----
46
64
75

query I rowsort
SELECT DISTINCT - + 94 * col1 AS col2 FROM tab1 AS cor0
----
-1316
-4418
-470

query I rowsort
SELECT - ( - 94 ) AS col1 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT - COUNT( DISTINCT - 35 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT - COUNT ( DISTINCT - 35 ) FROM tab2 AS cor0
----
-1

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

query I rowsort
SELECT ALL - - col1 * - 72 AS col2 FROM tab2 AS cor0
----
-3672
-4824
-5544

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 col1 FROM tab1 cor0 WHERE 31 IS NOT NULL
----
-23
-26
45

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

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT - SUM ( DISTINCT + + col2 ) FROM tab0
----
-156

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT DISTINCT 8 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT 8 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT ( + col0 ) * - ( 48 * col2 + - 95 ) AS col0 FROM tab2 AS cor0
----
-116800
-201675
-46414

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-873
SELECT ALL COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT 96 * - 68 * - COUNT( * ) + + ( + COUNT( + 32 ) ) AS col0 FROM tab1 AS cor0
----
19587

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT 96 * - 68 * - COUNT ( * ) + + ( + COUNT ( + 32 ) ) AS col0 FROM tab1 AS cor0
----
19587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-875
SELECT - COUNT( ALL + + ( - 88 ) ) DIV 37 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT - COUNT ( ALL + + ( - 88 ) ) / 37 FROM tab2 cor0
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN - ( 4 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL 11 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
2

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL 11 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-879
SELECT DISTINCT 63 * - col0 + + col0 DIV + col0 AS col0 FROM tab2
----
-2897
-4031
-4724

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT 63 * - col0 + + col0 / + col0 AS col0 FROM tab2
----
-2897
-4031
-4724

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

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

query I rowsort
SELECT + ( col2 ) + + - col0 * col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 76 < + col0 + 78 / - col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT CAST( - 72 AS SIGNED ) + + + 25 + - 3 * - col2 AS col1 FROM tab0 AS cor0
----
-17
250
94

skipif mysql # not compatible
query I rowsort label-884
SELECT CAST ( - 72 AS INTEGER ) + + + 25 + - 3 * - col2 AS col1 FROM tab0 AS cor0
----
-17
250
94

query I rowsort
SELECT ALL ( col0 ) * + - ( + ( col1 ) ) FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + + COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-886
SELECT + + COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT DISTINCT CAST( - + MIN( DISTINCT + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT CAST ( - + MIN ( DISTINCT + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-5

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT ALL 29 DIV - col1 col0 FROM tab1 cor0
----
-2
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-890
SELECT ALL 29 / - col1 col0 FROM tab1 cor0
----
-2
-5
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT - col1 DIV col0 + ( col0 ) - - col0 * - col1 * col0 FROM tab0
----
-158862
-18215
-9312

skipif mysql # not compatible
query I rowsort label-892
SELECT - col1 / col0 + ( col0 ) - - col0 * - col1 * col0 FROM tab0
----
-158862
-18215
-9312

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - - 94 - col2 )
----

query I rowsort
SELECT ALL 77 * + 4 + - 24 FROM tab0
----
284
284
284

query I rowsort
SELECT DISTINCT 3 - + col0 AS col1 FROM tab2
----
-43
-61
-72

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN 78 AND ( col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-898
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ), 77 AS col0 FROM tab1 AS cor0
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-898
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ), 77 AS col0 FROM tab1 AS cor0
----
NULL
77
NULL
77
NULL
77

query II rowsort
SELECT ALL + col1 - + 64 AS col2, - ( - col0 ) FROM tab1 AS cor0
----
-17
91
-50
51
-59
85

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

query II rowsort
SELECT DISTINCT + + col0 + + col1, + col2 FROM tab2 AS cor0
----
141
40
142
58
97
23

query I rowsort
SELECT 81 + - - 13 + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL - MAX( ALL - + 70 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - MAX ( ALL - + 70 ) FROM tab1
----
70

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

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

query I rowsort
SELECT + col0 * + col2 * - + 87 AS col1 FROM tab1
----
-425952
-436305
-538356

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-906
SELECT COUNT( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT COUNT ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-907
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( - 84 AS SIGNED ) * col1 >= ( + col2 / col1 )
----

skipif mysql # not compatible
query III rowsort label-907
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( - 84 AS INTEGER ) * col1 >= ( + col2 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab2 cor0
----
-75

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

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

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

query I rowsort
SELECT - + col2 FROM tab0 cor0 WHERE NOT - 96 IS NULL
----
-10
-47
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT ALL - col1 * - - CAST( - 1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - col1 * - - CAST ( - 1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-915
SELECT + col1 col0, ( - + col2 ) + - - col0 DIV col2 AS col0 FROM tab2
----
51
-21
67
-57
77
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-915
SELECT + col1 col0, ( - + col2 ) + - - col0 / col2 AS col0 FROM tab2
----
51
-21
67
-57
77
-39

query II rowsort
SELECT DISTINCT + col2, - col1 + + col0 AS col0 FROM tab0
----
10
66
47
-66
99
96

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

query I rowsort
SELECT col1 * 42 AS col0 FROM tab0
----
3402
42
882

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-921
SELECT DISTINCT 8 * + - col0 AS col1, ( - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 cor0
----
-408
NULL
-680
NULL
-728
NULL

skipif mysql # not compatible
query II rowsort label-921
SELECT DISTINCT 8 * + - col0 AS col1, ( - - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 cor0
----
-408
NULL
-680
NULL
-728
NULL

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

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

query I rowsort
SELECT col2 * + col1 + 46 + 99 + + 89 AS col1 FROM tab2 AS cor0
----
1407
3314
4120

query I rowsort
SELECT - 31 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT ALL + CAST( NULL AS SIGNED ) - + - col1 - - 50 * + + 71 * + col1 * + - col2 + - col0 * 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + CAST ( NULL AS INTEGER ) - + - col1 - - 50 * + + 71 * + col1 * + - col2 + - col0 * 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col0 AS col2, col0 col1 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT COUNT( ALL - - col0 ) - - MIN( ALL - 76 ) AS col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-929
SELECT COUNT ( ALL - - col0 ) - - MIN ( ALL - 76 ) AS col2 FROM tab1 AS cor0
----
-73

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-933
SELECT + 6 DIV - - ( - - ( - 27 ) ) + COUNT( * ) + - - COUNT( * ) DIV - ( - COUNT( * ) ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-933
SELECT + 6 / - - ( - - ( - 27 ) ) + COUNT ( * ) + - - COUNT ( * ) / - ( - COUNT ( * ) ) FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ( + MAX( col0 ) ) + - - COUNT( ALL + + col0 ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-934
SELECT ( + MAX ( col0 ) ) + - - COUNT ( ALL + + col0 ) AS col1 FROM tab0
----
100

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

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

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

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

query II rowsort
SELECT DISTINCT col1 * - + 55 - col1 AS col2, col0 FROM tab2 AS cor0
----
-2856
46
-3752
75
-4312
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + col2 col2 FROM tab1 AS cor0 WHERE + col0 * + + col1 BETWEEN ( + 46 * + col1 ) AND 59
----

query I rowsort
SELECT ALL - 29 * col2 * + col1 + + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-110418
-2968
-6177

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - + 23 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-944
SELECT - + 23 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
69

query I rowsort
SELECT - 58 + + col0 AS col1 FROM tab0
----
-43
29
39

query I rowsort
SELECT - col1 * + 86 + + 91 + - col2 - + 43 FROM tab2 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= + + 83
----
87
21
10
97
1
99

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - + 63 ) ) > col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-951
SELECT COUNT( * ) + + 74 DIV 52 AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-951
SELECT COUNT ( * ) + + 74 / 52 AS col0 FROM tab0 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 * 66 >= + col1 * + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-953
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( CAST( NULL AS SIGNED ) ) AND CAST( - 45 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-953
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( CAST ( NULL AS INTEGER ) ) AND CAST ( - 45 AS INTEGER )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 15 col2 FROM tab0 cor0
----
1305
1455
225

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

query I rowsort
SELECT ALL - col0 * 4 AS col2 FROM tab1
----
-204
-340
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-958
SELECT + col1 DIV col1 - - 85 - - ( + col2 ) FROM tab1
----
145
154
182

skipif mysql # not compatible
query I rowsort label-958
SELECT + col1 / col1 - - 85 - - ( + col2 ) FROM tab1
----
145
154
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT DISTINCT col2 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT col2 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
118
136
192

query II rowsort
SELECT - col1 - + col0 * + col0 AS col2, - 64 AS col0 FROM tab2
----
-2167
-64
-4173
-64
-5692
-64

query II rowsort
SELECT ALL 9 * 67, col0 FROM tab1
----
603
51
603
85
603
91

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT + - SUM( DISTINCT + col0 ) AS col0, - 16 AS col2 FROM tab1 AS cor0
----
-227
-16

skipif mysql # not compatible
query II rowsort label-962
SELECT + - SUM ( DISTINCT + col0 ) AS col0, - 16 AS col2 FROM tab1 AS cor0
----
-227
-16

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

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

query II rowsort
SELECT DISTINCT 60 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE col1 + col2 NOT IN ( - col1, col0 + + col1 )
----
60
23
60
40
60
58

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT COUNT( * ) * - 98 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-882

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT COUNT ( * ) * - 98 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-882

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 BETWEEN - 53 * + 36 AND + 66
----

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

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

query II rowsort
SELECT ALL + col1 AS col0, col1 + - 84 AS col1 FROM tab1 AS cor0
----
14
-70
47
-37
5
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT - COUNT( * ) * - 96 + + 33 - - COUNT( * ) AS col1 FROM tab0
----
324

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - COUNT ( * ) * - 96 + + 33 - - COUNT ( * ) AS col1 FROM tab0
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT + 86 + + COUNT( * ) AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT + 86 + + COUNT ( * ) AS col1 FROM tab2
----
89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 38 + 24 * 26 * + col2 col0 FROM tab2
----
14344
24934
36155

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

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

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

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

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

query I rowsort
SELECT - - col1 - 9 AS col0 FROM tab2 cor0
----
42
58
68

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

skipif mysql # not compatible
query II rowsort label-979
SELECT DISTINCT + 13 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
13
3

query I rowsort
SELECT DISTINCT + - col1 + - 8 + - 4 FROM tab0 AS cor0
----
-13
-33
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-981
SELECT - col0 + + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT - col0 + + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-982
SELECT * FROM tab0 WHERE - ( CAST( NULL AS SIGNED ) ) / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-982
SELECT * FROM tab0 WHERE - ( CAST ( NULL AS INTEGER ) ) / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 53 + - col0 + - 12 FROM tab2
----
-23
-34
-5

query I rowsort
SELECT DISTINCT 59 * - col0 * 81 FROM tab2
----
-219834
-305856
-358425

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT COUNT( ALL + col2 ) FROM tab2 WHERE NULL BETWEEN ( - 16 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT COUNT ( ALL + col2 ) FROM tab2 WHERE NULL BETWEEN ( - 16 ) AND ( NULL )
----
0

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

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

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

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

query I rowsort
SELECT ALL - - 46 * - + 74 * col2 AS col2 FROM tab0 AS cor0
----
-159988
-336996
-34040

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 98
----

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

query I rowsort
SELECT + 49 FROM tab1 WHERE NOT - ( - 87 ) <= + + col0
----
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT col0 - + 59 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT col0 - + 59 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-994
SELECT + + 53 DIV COUNT( * ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-994
SELECT + + 53 / COUNT ( * ) FROM tab0 AS cor0
----
17

query I rowsort
SELECT ALL 43 * - 98 + + 12 FROM tab2 AS cor0
----
-4202
-4202
-4202

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

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT DISTINCT 58 DIV + ( - 92 ) col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-997
SELECT DISTINCT 58 / + ( - 92 ) col2 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT DISTINCT + col0 DIV - ( - col1 ) FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + col0 / - ( - col1 ) FROM tab0
----
0
4
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL + 26 + MIN( - col2 ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + 26 + MIN ( - col2 ) FROM tab1
----
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE 50 >= - col0 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT 82 DIV - col2 + - 57 FROM tab2
----
-58
-59
-60

skipif mysql # not compatible
query I rowsort label-1002
SELECT 82 / - col2 + - 57 FROM tab2
----
-58
-59
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL ( - 10 ) + + COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL ( - 10 ) + + COUNT ( * ) FROM tab0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + col0 col0 FROM tab2
----
112
130
141

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL + 19 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT col0 * - 76 AS col2 FROM tab2 AS cor0
----
-3496
-4864
-5700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 * + 19 ) <= NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1012
SELECT - COUNT ( * ) + - 45 AS col1 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT + ( 0 ) + + col0 + - + 80 + - - 23 + + + col1 AS col2 FROM tab2 AS cor0
----
40
84
85

query I rowsort
SELECT DISTINCT 6 * + + 12 - + + 14 FROM tab2 AS cor0
----
58

query II rowsort
SELECT - - col1 + - - 6, + col2 AS col2 FROM tab0 AS cor0
----
27
10
7
99
87
47

query II rowsort
SELECT ALL - + col1 - + 64 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-111
47
-69
5
-78
14

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

query I rowsort
SELECT col0 * + col1 + - - 10 FROM tab0 AS cor0 WHERE NULL IS NULL
----
107
1225
1837

query I rowsort
SELECT DISTINCT + col0 - + col0 * + 22 AS col1 FROM tab0 cor0
----
-1827
-2037
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 8 - col2 NOT BETWEEN NULL AND + - 22 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 8 - col2 NOT BETWEEN NULL AND + - 22 + CAST ( NULL AS INTEGER )
----

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

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - 5 * + 30 * + 36 * + 81 * - 27 <> NULL
----

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

query II rowsort
SELECT ALL 53 AS col1, + col2 * + 96 FROM tab0
----
53
4512
53
9504
53
960

query I rowsort
SELECT + 38 * + + col2 * col0 * - col0 AS col0 FROM tab2
----
-12397500
-1849384
-6225920

query I rowsort
SELECT - 56 * + col2 AS col2 FROM tab2
----
-1288
-2240
-3248

query II rowsort
SELECT ALL 60, col1 FROM tab1
----
60
14
60
47
60
5

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT - CAST( col1 AS SIGNED ) + - 99 AS col0 FROM tab2
----
-150
-166
-176

skipif mysql # not compatible
query I rowsort label-1034
SELECT - CAST ( col1 AS INTEGER ) + - 99 AS col0 FROM tab2
----
-150
-166
-176

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

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

query I rowsort
SELECT DISTINCT col2 * ( - 0 ) * - col1 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 34 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + 25 - col0, col0, - col0 + + col0 / - 54 + - + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1040
SELECT - COUNT( * ), - 9 + MAX( - col1 ) + + 59 AS col1 FROM tab2 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-1040
SELECT - COUNT ( * ), - 9 + MAX ( - col1 ) + + 59 AS col1 FROM tab2 AS cor0
----
-3
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT ALL + col2 FROM tab0 WHERE - - col1 * CAST( NULL AS SIGNED ) * - col0 IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + col2 FROM tab0 WHERE - - col1 * CAST ( NULL AS INTEGER ) * - col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 21 + + col0 + - + col0 AS col0 FROM tab2
----
21

query I rowsort
SELECT col1 * - - 58 AS col0 FROM tab1
----
2726
290
812

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + 97 + COUNT( * ) * + 39 AS col1 FROM tab0
----
214

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + 97 + COUNT ( * ) * + 39 AS col1 FROM tab0
----
214

query I rowsort
SELECT ALL - + col1 - + - col0 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - ( + + col2 ) * - col1 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE + + 15 >= col0
----

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + + 15 >= col0
----

query I rowsort
SELECT ALL + col2 + 62 * + col2 FROM tab0 AS cor0
----
2961
6237
630

query I rowsort
SELECT - ( col0 ) * 82 + + col0 * + col0 FROM tab2 AS cor0
----
-1152
-1656
-525

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1051
SELECT DISTINCT + col0 + + + 20 AS col0, - ( + + CAST( - - 79 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1051
SELECT DISTINCT + col0 + + + 20 AS col0, - ( + + CAST ( - - 79 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - - 56, col1 FROM tab2 AS cor0
----
56
51
56
67
56
77

query II rowsort
SELECT DISTINCT col0, 52 + + col2 FROM tab2 AS cor0
----
46
75
64
92
75
110

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

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

query I rowsort
SELECT + 21 * col0 AS col2 FROM tab0 AS cor0
----
1827
2037
315

query I rowsort
SELECT + 26 * + - col1 + col2 FROM tab2 AS cor0
----
-1303
-1684
-1962

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <= - col2 + - col0 - + 87 * + 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1060
SELECT + + MIN( - 74 ), 77 AS col0 FROM tab2 AS cor0
----
-74
77

skipif mysql # not compatible
query II rowsort label-1060
SELECT + + MIN ( - 74 ), 77 AS col0 FROM tab2 AS cor0
----
-74
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 92 BETWEEN + + 69 AND col1 + - 20
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1062
SELECT ALL - 93 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT + COUNT( * ) * COUNT( * ) + - 18 + - 26 - + COUNT( * ) * MIN( + + 90 ) * - 30 FROM tab2 AS cor0
----
8065

skipif mysql # not compatible
query I rowsort label-1063
SELECT + COUNT ( * ) * COUNT ( * ) + - 18 + - 26 - + COUNT ( * ) * MIN ( + + 90 ) * - 30 FROM tab2 AS cor0
----
8065

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 60 col0 FROM tab1 cor0
----
-25
-31
9

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 67 IS NULL
----

query I rowsort
SELECT ALL - 92 + - + 41 FROM tab2
----
-133
-133
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1068
SELECT 33 AS col2, CAST( + + COUNT( ALL - col1 ) AS SIGNED ) - - 60 AS col0 FROM tab0
----
33
63

skipif mysql # not compatible
query II rowsort label-1068
SELECT 33 AS col2, CAST ( + + COUNT ( ALL - col1 ) AS INTEGER ) - - 60 AS col0 FROM tab0
----
33
63

query II rowsort
SELECT - col2 AS col1, + col1 + col1 * - + ( - 40 ) * col2 AS col0 FROM tab2
----
-23
46971
-40
123277
-58
155507

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1070
SELECT DISTINCT * FROM tab1 WHERE ( - 10 ) IS NOT NULL OR NOT CAST( 25 AS SIGNED ) BETWEEN - + col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1070
SELECT DISTINCT * FROM tab1 WHERE ( - 10 ) IS NOT NULL OR NOT CAST ( 25 AS INTEGER ) BETWEEN - + col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab0 WHERE - ( - col0 ) IS NOT NULL
----
-10
-47
-99

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

query I rowsort
SELECT DISTINCT - 98 - + + col2 FROM tab1
----
-157
-166
-194

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

query I rowsort
SELECT ALL - 92 * + ( + col1 ) * ( col0 ) + - col0 + + col0 FROM tab0 AS cor0
----
-111780
-168084
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT - 20 * + MIN( ALL - col2 ) AS col0 FROM tab2
----
1160

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - 20 * + MIN ( ALL - col2 ) AS col0 FROM tab2
----
1160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL MAX( + col1 ) + COUNT( * ) AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL MAX ( + col1 ) + COUNT ( * ) AS col1 FROM tab0
----
84

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 IN ( - - ( col1 ), + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1081
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST( NULL AS SIGNED ) * ( - col1 ) / - col0, col0, - - col1 + + + col0 )
----

skipif mysql # not compatible
query III rowsort label-1081
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST ( NULL AS INTEGER ) * ( - col1 ) / - col0, col0, - - col1 + + + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( + - col2, - 79, - col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1083
SELECT DISTINCT + - COUNT ( + - col1 ), - COUNT ( * ) col2 FROM tab2 cor0
----
-3
-3

query II rowsort
SELECT ALL + col2 * + col0 * + col1, - col0 AS col1 FROM tab0
----
18270
-87
57105
-15
9603
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 * + 70 col1 FROM tab0
----
2100
2100
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT ALL + ( col1 ) DIV - - col2 FROM tab0 WHERE 56 >= + + col0
----
1

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + ( col1 ) / - - col2 FROM tab0 WHERE 56 >= + + col0
----
1

query I rowsort
SELECT col0 * - col0 * - 10 AS col2 FROM tab2
----
21160
40960
56250

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col0 * + 82 / - 70 + - + col0 - + col2 / + col2
----

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

skipif mysql # not compatible
query II rowsort label-1089
SELECT ALL col0, col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

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

query II rowsort
SELECT ALL - 49, 98 AS col2 FROM tab2 AS cor0
----
-49
98
-49
98
-49
98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT - + COUNT( + - 27 ) AS col2, ( + + 7 ) - + MIN( DISTINCT + - 40 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
47

skipif mysql # not compatible
query II rowsort label-1093
SELECT - + COUNT ( + - 27 ) AS col2, ( + + 7 ) - + MIN ( DISTINCT + - 40 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL MIN( DISTINCT - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL MIN ( DISTINCT - col1 ) FROM tab2 cor0
----
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT + COUNT( * ) - - 4 FROM tab0 AS cor0 WHERE NULL <> NULL
----
4

skipif mysql # not compatible
query I rowsort label-1097
SELECT + COUNT ( * ) - - 4 FROM tab0 AS cor0 WHERE NULL <> NULL
----
4

query II rowsort
SELECT - ( + + 35 ) AS col1, - col0 AS col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT 17 > NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL MAX( DISTINCT col0 ) + + 97 FROM tab2
----
172

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL MAX ( DISTINCT col0 ) + + 97 FROM tab2
----
172

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

query I rowsort
SELECT ALL + 64 + + ( + 45 ) AS col1 FROM tab2
----
109
109
109

query I rowsort
SELECT ALL + col0 * - + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT DISTINCT - COUNT( * ) * - 32 col0 FROM tab2, tab2 AS cor0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1106
SELECT DISTINCT - COUNT ( * ) * - 32 col0 FROM tab2, tab2 AS cor0
----
288

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT ( - 33 ) AS col1, + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-33
9

skipif mysql # not compatible
query II rowsort label-1108
SELECT ( - 33 ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-33
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT MIN( - col0 ) DIV - COUNT( * ) + - + COUNT( DISTINCT 21 ) + + - SUM( ALL + 39 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-1109
SELECT MIN ( - col0 ) / - COUNT ( * ) + - + COUNT ( DISTINCT 21 ) + + - SUM ( ALL + 39 ) FROM tab0
----
-86

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

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

query I rowsort
SELECT + + 98 * + + col0 FROM tab2 AS cor0
----
4508
6272
7350

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT 4 AS col2, + 9 + - - 48 * - COUNT( * ) FROM tab2 AS cor0
----
4
-135

skipif mysql # not compatible
query II rowsort label-1113
SELECT 4 AS col2, + 9 + - - 48 * - COUNT ( * ) FROM tab2 AS cor0
----
4
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT DISTINCT + - ( + MAX( ALL - + 12 ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT + - ( + MAX ( ALL - + 12 ) ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 + - 18 FROM tab0 AS cor0
----
-19
-459
-6579

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 51 * + 29 col1 FROM tab0 AS cor0
----
-146421
-14790
-69513

onlyif mysql # DIV for integer division: 
query I rowsort label-1118
SELECT DISTINCT + col1 DIV 17 AS col0 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT + col1 / 17 AS col0 FROM tab1
----
0
2

query I rowsort
SELECT ALL 55 * col0 * - + 58 * - 81 AS col2 FROM tab2
----
11885940
16536960
19379250

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL + MAX( + 93 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + MAX ( + 93 ) FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT ALL CAST( 15 AS SIGNED ) FROM tab1
----
15
15
15

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL CAST ( 15 AS INTEGER ) FROM tab1
----
15
15
15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col0 FROM tab2
----
117
125
74

query I rowsort
SELECT col2 * 37 - - - 89 AS col2 FROM tab1 AS cor0
----
2094
2427
3463

query I rowsort
SELECT DISTINCT + + col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE col0 * + col0 * + ( col1 ) + + col2 IS NOT NULL
----
-1344
-295
-3196

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

query II rowsort
SELECT ALL col1, - 74 FROM tab2
----
51
-74
67
-74
77
-74

query II rowsort
SELECT + - col0 + 86 * col1, + col0 FROM tab2 AS cor0
----
4340
46
5687
75
6558
64

query I rowsort
SELECT - col2 + + + 33 + - ( col0 ) * 59 FROM tab0 AS cor0
----
-5110
-5789
-899

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT DISTINCT - - MIN( - 76 ) * - COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
228
3

skipif mysql # not compatible
query II rowsort label-1130
SELECT DISTINCT - - MIN ( - 76 ) * - COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
228
3

query I rowsort
SELECT DISTINCT - - 52 - - - 31 AS col0 FROM tab0 AS cor0
----
21

query II rowsort
SELECT DISTINCT + - 45 AS col2, + 83 FROM tab2 cor0
----
-45
83

query I rowsort
SELECT - + col2 + + - col2 + + - col0 + + + col0 FROM tab0 AS cor0
----
-198
-20
-94

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

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

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

query I rowsort
SELECT + 68 FROM tab0 AS cor0 WHERE col2 IS NULL OR NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1137
SELECT - col1 DIV - col0, 28 AS col0 FROM tab1
----
0
28
0
28
0
28

skipif mysql # not compatible
query II rowsort label-1137
SELECT - col1 / - col0, 28 AS col0 FROM tab1
----
0
28
0
28
0
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL + col2 / - - col1 / col2 - col1 AS col1 FROM tab2 WHERE NOT - + col2 / - + col1 + + col0 + - + CAST( 23 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + col2 / - - col1 / col2 - col1 AS col1 FROM tab2 WHERE NOT - + col2 / - + col1 + + col0 + - + CAST ( 23 AS INTEGER ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT + SUM ( ALL - ( + col1 ) ) + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + ( 16 ) - - + 96 + - col0 * col2 FROM tab0
----
-593
-758
-9491

query II rowsort
SELECT 29 - - col0 AS col0, 18 AS col1 FROM tab2
----
104
18
75
18
93
18

query I rowsort
SELECT - 47 - col0 AS col2 FROM tab2
----
-111
-122
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL - COUNT( * ) * - MAX( DISTINCT + 97 ) + COUNT( * ) - 50 AS col1 FROM tab1 AS cor0
----
244

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT + 97 ) + COUNT ( * ) - 50 AS col1 FROM tab1 AS cor0
----
244

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

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

query I rowsort
SELECT 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + + 5 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 / - col1 * - + col1 <> NULL
----

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

query I rowsort
SELECT DISTINCT ( col1 ) * + 41 FROM tab0 AS cor0
----
3321
41
861

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT - 59 DIV col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1151
SELECT - 59 / col1 FROM tab2 cor0
----
-1
0
0

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

query I rowsort
SELECT DISTINCT + 72 * col1 + + 14 AS col0 FROM tab2 AS cor0
----
3686
4838
5558

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= - col1 / - 92
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1156
SELECT - col1, - col0 DIV - - col0 AS col2 FROM tab0
----
-1
-1
-21
-1
-81
-1

skipif mysql # not compatible
query II rowsort label-1156
SELECT - col1, - col0 / - - col0 AS col2 FROM tab0
----
-1
-1
-21
-1
-81
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1157
SELECT - 32 col0, MIN( 73 ) FROM tab0
----
-32
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1157
SELECT - 32 col0, MIN ( 73 ) FROM tab0
----
-32
73

query II rowsort
SELECT + col0, - 82 FROM tab2
----
46
-82
64
-82
75
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT CAST( - + MIN( + col2 ) AS SIGNED ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1159
SELECT CAST ( - + MIN ( + col2 ) AS INTEGER ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT + + col0 * - + 65 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT ALL - col2 DIV - 1 + + 5 + + col2 * col0 FROM tab1 AS cor0
----
4997
5079
6261

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - col2 / - 1 + + 5 + + col2 * col0 FROM tab1 AS cor0
----
4997
5079
6261

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT + MIN( + - 24 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT + MIN ( + - 24 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT + 23 + + COUNT( * ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1165
SELECT + 23 + + COUNT ( * ) AS col1 FROM tab2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1166
SELECT DISTINCT col2 + - col0 + - + 74 * CAST( NULL AS SIGNED ) * - 41 AS col1, - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1166
SELECT DISTINCT col2 + - col0 + - + 74 * CAST ( NULL AS INTEGER ) * - 41 AS col1, - CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1167
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) - + + CAST( - col1 AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1167
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) - + + CAST ( - col1 AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1168
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL - MIN( CAST( col1 AS SIGNED ) ) * - - 17 * + COUNT( * ) + + 66 + - 1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - MIN ( CAST ( col1 AS INTEGER ) ) * - - 17 * + COUNT ( * ) + + 66 + - 1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - col1 IS NULL )
----
NULL

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

query I rowsort
SELECT 64 - - 70 AS col1 FROM tab0 AS cor0
----
134
134
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT + MAX( - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT + MAX ( - col0 ) AS col2 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab1 WHERE + + 30 > + 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1174
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - + 90 - - - col1 < + - CAST( + col2 AS SIGNED ) + + col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-1174
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - + 90 - - - col1 < + - CAST ( + col2 AS INTEGER ) + + col1
----
97
1
99

query I rowsort
SELECT 39 * + - col2 + - col1 + col2 * + col1 FROM tab1
----
-2011
-2414
497

query II rowsort
SELECT ALL + 65 AS col0, - 57 * + 16 * + col0 AS col1 FROM tab1
----
65
-46512
65
-77520
65
-82992

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

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

query I rowsort
SELECT ALL col0 * + 73 + col2 AS col2 FROM tab0 AS cor0
----
1142
6361
7180

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

query I rowsort
SELECT ALL + 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - - 59 * - + 47 + - 72 FROM tab0 AS cor0
----
-2845
-2845
-2845

query I rowsort
SELECT - col1 * - 86 FROM tab1 cor0
----
1204
4042
430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * - - 41 col0 FROM tab1 AS cor0
----
164
164
164

query I rowsort
SELECT - - 35 * - col0 * - col0 FROM tab1 cor0
----
252875
289835
91035

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT 82 + + col2 + + col0 DIV + - col0 + - col1 * + ( + + col2 ) * + col1 FROM tab1
----
-1335
-150063
-18639

skipif mysql # not compatible
query I rowsort label-1188
SELECT 82 + + col2 + + col0 / + - col0 + - col1 * + ( + + col2 ) * + col1 FROM tab1
----
-1335
-150063
-18639

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT - ( + SUM( ALL + 75 ) ) + + 64 AS col1 FROM tab0 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT - ( + SUM ( ALL + 75 ) ) + + 64 AS col1 FROM tab0 AS cor0
----
-161

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

query I rowsort
SELECT ALL ( 88 ) * - 30 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 * col2 IN ( - col1 - 13, + col1 + + ( 41 ) ) )
----
-2640
-2640
-2640

query I rowsort
SELECT col0 * - col1 + 68 AS col0 FROM tab1 AS cor0
----
-357
-4209
-646

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1195
SELECT + COUNT( * ) * COUNT( * ) + - + ( + + MAX( DISTINCT col1 ) ) col2 FROM tab0 WHERE NULL NOT BETWEEN - ( + CAST( - col1 AS DECIMAL ) ) AND ( + - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1195
SELECT + COUNT ( * ) * COUNT ( * ) + - + ( + + MAX ( DISTINCT col1 ) ) col2 FROM tab0 WHERE NULL NOT BETWEEN - ( + CAST ( - col1 AS REAL ) ) AND ( + - col0 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 10 / - 5 * col1 AND - 29 + + - 89 / col0 / - col0 * - 25 * - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL + MAX( - col2 ) - + + COUNT( * ) * - + 41 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + MAX ( - col2 ) - + + COUNT ( * ) * - + 41 FROM tab1
----
64

query II rowsort
SELECT ALL - 50 + + 88 * - col2 * - + col1 AS col2, - 26 * + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
118222
2496
25910
1534
281198
1768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT DISTINCT - CAST( - 66 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1201
SELECT + - CAST( NULL AS DECIMAL ) + + 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT + - CAST ( NULL AS REAL ) + + 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 33 + + col1 + + - 11 AS col2 FROM tab1 cor0
----
27
36
69

query I rowsort
SELECT + - col0 * col0 + - + 41 - col0 FROM tab0 AS cor0
----
-281
-7697
-9547

query I rowsort
SELECT ALL + + col0 - - col2 + col2 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT ( + 33 ) DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1206
SELECT ( + 33 ) / + col2 FROM tab0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 * + 8 * + col1 col1 FROM tab2
----
40392
53064
60984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1208
SELECT + 5 DIV COUNT( + CAST( + 44 AS SIGNED ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1208
SELECT + 5 / COUNT ( + CAST ( + 44 AS INTEGER ) ) AS col2 FROM tab0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT 21 * - SUM( + col2 ) FROM tab2
----
-2541

skipif mysql # not compatible
query I rowsort label-1210
SELECT 21 * - SUM ( + col2 ) FROM tab2
----
-2541

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 > + col0
----
87
21
10

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

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

query II rowsort
SELECT DISTINCT col1, ( + 54 ) FROM tab0 AS cor0
----
1
54
21
54
81
54

query I rowsort
SELECT + - 78 * - - 30 * - + 89 + + 72 AS col0 FROM tab2 cor0
----
208332
208332
208332

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

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL < NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1224
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col0, + 58 - - + col2 AS col2 FROM tab1
----
NULL
117
NULL
126
NULL
154

skipif mysql # not compatible
query II rowsort label-1224
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col0, + 58 - - + col2 AS col2 FROM tab1
----
NULL
117
NULL
126
NULL
154

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

query I rowsort
SELECT - 25 FROM tab1 AS cor0 WHERE 22 IS NOT NULL
----
-25
-25
-25

query I rowsort
SELECT + col0 * 60 AS col0 FROM tab0
----
5220
5820
900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT + - MIN( ALL col1 ) DIV - COUNT( * ) FROM tab1 WHERE + col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1228
SELECT + - MIN ( ALL col1 ) / - COUNT ( * ) FROM tab1 WHERE + col0 IS NOT NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 * 71 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + - col0 - - col1 + 50 FROM tab1 AS cor0
----
-30
13
6

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

query I rowsort
SELECT DISTINCT + col0 - - + 62 FROM tab0 AS cor0
----
149
159
77

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL 63 * + col2 AS col0 FROM tab1 AS cor0
----
3717
4284
6048

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

query II rowsort
SELECT col0 * + + col2, - 25 AS col2 FROM tab0
----
705
-25
870
-25
9603
-25

query II rowsort
SELECT DISTINCT - 32 AS col2, - 86 AS col2 FROM tab0
----
-32
-86

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col0 col2, + col1 AS col2, + + col1 * + - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to ebba8e86e91cf61693f1ab18acbe9378

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

query I rowsort
SELECT ALL - 10 * - + ( - col2 ) FROM tab1 AS cor0
----
-590
-680
-960

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

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

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

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

query II rowsort
SELECT ALL - col1 AS col0, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

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

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

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

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

query I rowsort
SELECT col0 * ( + + 13 ) + - col2 FROM tab1 AS cor0
----
1046
1115
567

onlyif mysql # DIV for integer division: 
query II rowsort label-1250
SELECT + + 65 DIV - col2, + col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-1250
SELECT + + 65 / - col2, + col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

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

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab1 AS cor0 WHERE 86 >= NULL
----

query I rowsort
SELECT + col2 * + - 29 + - col0 FROM tab2 AS cor0
----
-1224
-1757
-713

query II rowsort
SELECT col0 + - + col2 - col2, + 15 AS col1 FROM tab0 AS cor0
----
-101
15
-79
15
67
15

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

skipif mysql # not compatible
query I rowsort label-1255
SELECT + ( + COUNT ( * ) ) FROM tab1, tab2 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 21 + - 92 col0 FROM tab1
----
-1163
-1877
-2003

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

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

query I rowsort
SELECT + - 1 + + ( + + 49 ) - - col0 AS col0 FROM tab2 WHERE - + 0 IS NULL
----

query I rowsort
SELECT ALL - 5 - + - col0 FROM tab2 AS cor0
----
41
59
70

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

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

query II rowsort
SELECT ALL 25 - col0 + + - 5 AS col2, col2 * + 87 + + col0 AS col2 FROM tab1 AS cor0
----
-31
8403
-65
5218
-71
6007

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 71 * - 6 <= NULL
----

query I rowsort
SELECT ALL + col2 + ( col2 ) AS col0 FROM tab1
----
118
136
192

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

query I rowsort
SELECT 95 * ( - col0 ) AS col1 FROM tab2
----
-4370
-6080
-7125

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + 45 + col0 FROM tab0
----
-3828
-4268
-660

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + 45 + col0 FROM tab0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT DISTINCT - MIN( DISTINCT col1 ) * - 81 AS col0 FROM tab1
----
405

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT - MIN ( DISTINCT col1 ) * - 81 AS col0 FROM tab1
----
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 + + col0 col1 FROM tab1
----
105
111
71

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

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

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

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

query I rowsort
SELECT - 2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE 51 - 5 >= NULL
----

query I rowsort
SELECT DISTINCT col2 - 44 AS col1 FROM tab0
----
-34
3
55

query I rowsort
SELECT 91 - + col2 AS col1 FROM tab2
----
33
51
68

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

query I rowsort
SELECT ALL + 74 + - ( 5 ) FROM tab2 WHERE + col2 / + 59 + - ( - col2 + col2 ) NOT BETWEEN col1 AND - 89
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1281
SELECT DISTINCT + CAST( ( col1 ) AS SIGNED ) DIV col0 + - 2 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + CAST ( ( col1 ) AS INTEGER ) / col0 + - 2 AS col0 FROM tab1
----
-2

query I rowsort
SELECT - col1 FROM tab1 WHERE ( + col0 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT - 58 * - COUNT( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1284
SELECT - 58 * - COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT + CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab2
----
3

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT COUNT( * ) * 83 AS col0 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT COUNT ( * ) * 83 AS col0 FROM tab0 AS cor0
----
249

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 22 NOT BETWEEN - 14 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 55 AS col0 FROM tab0 AS cor0
----
-34
-54
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 49 col1 FROM tab2
----
107
72
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT + col0 + CAST( - col2 AS SIGNED ) FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-1295
SELECT + col0 + CAST ( - col2 AS INTEGER ) FROM tab1
----
-45
23
26

query I rowsort
SELECT 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - col2 + col0 * + 38 FROM tab1
----
1842
3171
3390

query I rowsort
SELECT ALL 79 + col0 AS col2 FROM tab2
----
125
143
154

query I rowsort
SELECT ALL - 30 FROM tab2 cor0 WHERE NOT - col1 - + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT + MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT + MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT + - COUNT( * ) + + 22 FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + - COUNT ( * ) + + 22 FROM tab2 cor0
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) > ( 59 )
----
87
21
10
97
1
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL + COUNT( * ) * - MAX( col1 ) AS col2 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + COUNT ( * ) * - MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 + + col0 / 54 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT - COUNT( * ) * - 11 AS col1 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-1306
SELECT - COUNT ( * ) * - 11 AS col1 FROM tab2 cor0
----
33

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

query I rowsort
SELECT ALL - 97 AS col1 FROM tab2 AS cor0 WHERE ( + col1 ) < ( NULL )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * ( + 62 ) + col0 col2 FROM tab2
----
2278
2296
2307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1312
SELECT ALL - 50 + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - 50 + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL CAST( - col1 AS SIGNED ) + 17 col0 FROM tab2
----
-34
-50
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1314
SELECT ALL CAST ( - col1 AS INTEGER ) + 17 col0 FROM tab2
----
-34
-50
-60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT ALL - CAST( 1 AS SIGNED ) + - col2 * + col1 FROM tab2 cor0
----
-1174
-3081
-3887

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL - CAST ( 1 AS INTEGER ) + - col2 * + col1 FROM tab2 cor0
----
-1174
-3081
-3887

query I rowsort
SELECT DISTINCT col1 * + 96 * 27 AS col0 FROM tab1 AS cor0
----
121824
12960
36288

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 - + col2 )
----

query I rowsort
SELECT col0 * + col1 + ( + ( + col2 ) ) FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT + 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1323
SELECT DISTINCT MIN ( col0 ) col1 FROM tab1 AS cor0
----
51

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

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + - 95 + - col2 * 46 AND + col2
----

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

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

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

skipif mysql # not compatible
query II rowsort label-1327
SELECT ALL + 69 AS col0, ( + COUNT ( * ) ) FROM tab0 AS cor0
----
69
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 63 <= + col1
----
64
77
40
75
67
58

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

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

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

query I rowsort
SELECT - 88 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + col2 IS NULL
----
-139
-155
-165

query II rowsort
SELECT - 35, col0 - + 92 * col0 AS col1 FROM tab0 AS cor0
----
-35
-1365
-35
-7917
-35
-8827

query I rowsort
SELECT DISTINCT + - col1 * - 49 FROM tab1 AS cor0
----
2303
245
686

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT DISTINCT + 55 DIV + col0 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT + 55 / + col0 FROM tab0 AS cor0
----
0
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + - 98 * - 21 col0 FROM tab0 AS cor0
----
203742
20580
96726

query I rowsort
SELECT - col1 + + col2 + + 22 + + + col2 FROM tab1 AS cor0
----
111
135
200

query I rowsort
SELECT DISTINCT + - col2 + - 32 AS col1 FROM tab0 AS cor0
----
-131
-42
-79

query I rowsort
SELECT ALL - 11 + + col0 - + 42 + - 32 FROM tab0 AS cor0
----
-70
12
2

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

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

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

query II rowsort
SELECT ALL col0, col0 * - + 94 AS col0 FROM tab2
----
46
-4324
64
-6016
75
-7050

query III rowsort
SELECT ALL * FROM tab1 WHERE 69 = ( - - ( - + ( - col2 ) ) ) + col1
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( + - 64 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT - SUM( ALL - col0 ) AS col2 FROM tab1 WHERE ( col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT - SUM ( ALL - col0 ) AS col2 FROM tab1 WHERE ( col1 IS NULL )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1355
SELECT ALL MIN( col0 ) AS col1 FROM tab2 WHERE col0 <= ( CAST( + col0 AS SIGNED ) + - - col2 )
----
46

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL MIN ( col0 ) AS col1 FROM tab2 WHERE col0 <= ( CAST ( + col0 AS INTEGER ) + - - col2 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - COUNT( * ) - - - 1 AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1356
SELECT - COUNT ( * ) - - - 1 AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - col1 * - 40 - 27 AS col0 FROM tab1 AS cor0
----
173
1853
533

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - 73 ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( - 90 ) AS col2 FROM tab2 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + 13 ) col0, 57 * - + 56 FROM tab2 AS cor0
----
13
-3192
13
-3192
13
-3192

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT - 41 / + col2 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 92 ) AND + col0 * 41 + + - 48
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab1
----
36

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - - 23 * col2 > - ( 29 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 6 * + col0 - + col2 * - ( - + col2 ) NOT BETWEEN + + 31 AND col0
----

query I rowsort
SELECT 93 * + col2 AS col2 FROM tab2
----
2139
3720
5394

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

query II rowsort
SELECT DISTINCT + col2 AS col0, + col0 AS col2 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT col1 * 43 AS col0 FROM tab2
----
2193
2881
3311

query I rowsort
SELECT ALL + 56 AS col0 FROM tab0 AS cor0 WHERE NOT + ( + 26 ) <> + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT ALL - ( + CAST( - - CAST( - col0 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - ( + CAST ( - - CAST ( - col0 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - + 49 * - col1 AS col1 FROM tab0 AS cor0
----
1029
3969
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + 43 ) - - - col2, col0 / - - 89 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN - + 31 * col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 82 col2, col0 AS col2 FROM tab1 AS cor0
----
-1148
51
-3854
91
-410
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - - 87 col0 FROM tab0 AS cor0
----
-6
-66
-86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( + + col0, - col2 )
----

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + 27 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + + SUM( ALL - col0 ) - - 60 AS col0 FROM tab2 cor0
----
-125

skipif mysql # not compatible
query I rowsort label-1385
SELECT + + SUM ( ALL - col0 ) - - 60 AS col0 FROM tab2 cor0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT SUM( - 66 ) * + COUNT( * ) - + 63 AS col1 FROM tab2 AS cor0
----
-657

skipif mysql # not compatible
query I rowsort label-1386
SELECT SUM ( - 66 ) * + COUNT ( * ) - + 63 AS col1 FROM tab2 AS cor0
----
-657

query I rowsort
SELECT 77 - - 91 AS col2 FROM tab1
----
168
168
168

query I rowsort
SELECT - + 50 * + 29 + col2 / - col0 FROM tab1 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col2 < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT col1 + + ( - + col1 ) + col0 DIV col0 * - + col2 col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1390
SELECT col1 + + ( - + col1 ) + col0 / col0 * - + col2 col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 + + 1 AS col0 FROM tab1
----
-13
-4
-46

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

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

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

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

query I rowsort
SELECT ALL 77 + - col1 AS col0 FROM tab0 AS cor0
----
-4
56
76

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

query I rowsort
SELECT + + ( - + col2 ) * - col2 - col1 + - 99 * + col1 * - col1 FROM tab0 AS cor0
----
43738
651667
9899

query III rowsort
SELECT * FROM tab2 WHERE - col1 IS NOT NULL OR NOT NULL NOT IN ( 42 * - 43, 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND - col2 + + + col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT 93 * COUNT( * ) col2, + COUNT( * ) col0 FROM tab1 AS cor0
----
279
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1402
SELECT 93 * COUNT ( * ) col2, + COUNT ( * ) col0 FROM tab1 AS cor0
----
279
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 81 * col1 col2 FROM tab2 AS cor0
----
190026
399168
407025

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1405
SELECT DISTINCT - col1 DIV + + col2 + + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT - col1 / + + col2 + + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-14
-47
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1407
SELECT DISTINCT + 42 AS col0, MAX( DISTINCT + ( - + ( - - col1 ) ) ) + + + 92 FROM tab1 AS cor0
----
42
87

skipif mysql # not compatible
query II rowsort label-1407
SELECT DISTINCT + 42 AS col0, MAX ( DISTINCT + ( - + ( - - col1 ) ) ) + + + 92 FROM tab1 AS cor0
----
42
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT AVG ( 2 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col2, 3 * - col0 + + col1, + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT AVG ( 2 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col2, 3 * - col0 + + col1, + col1 )
----
NULL

query II rowsort
SELECT + col0 AS col2, + col0 * + col1 * + col2 * col1 + - ( - + col0 ) AS col0 FROM tab1 cor0
----
51
959667
85
125460
91
13669383

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT 44 * - + 85 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3737

skipif mysql # not compatible
query I rowsort label-1410
SELECT 44 * - + 85 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3737

query II rowsort
SELECT 54 AS col1, + col2 + - + 36 + - col1 - col2 + - 89 * - col2 + - col0 + - - col2 * + - col0 AS col0 FROM tab0 AS cor0
----
54
-124
54
-926
54
3346

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - ( - ( 85 ) ) ) + - col2 + + col0 AS col2 FROM tab0
----
162
53
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1414
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT IN ( + CAST( + 17 AS SIGNED ) * - 72 ) )
----

skipif mysql # not compatible
query III rowsort label-1414
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT IN ( + CAST ( + 17 AS INTEGER ) * - 72 ) )
----

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

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT + 75 NOT IN ( + col2, + col1 )
----

query I rowsort
SELECT + col2 * + + ( - 23 ) FROM tab2 AS cor0
----
-1334
-529
-920

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT DISTINCT AVG ( col2 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT AVG ( col2 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT + 55 + - COUNT( * ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT + 55 + - COUNT ( * ) AS col1 FROM tab1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1421
SELECT DISTINCT + 49 DIV - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT + 49 / - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
-13

query I rowsort
SELECT - col0 * 33 * + col2 + + col2 + col0 FROM tab1 AS cor0
----
-161421
-165351
-204045

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL + 56 - - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + 56 - - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT + col1 + + ( - 74 ) / col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1428
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 * + 63 / + col1 / CAST( NULL AS SIGNED ) + + 85 )
----

skipif mysql # not compatible
query III rowsort label-1428
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 * + 63 / + col1 / CAST ( NULL AS INTEGER ) + + 85 )
----

query II rowsort
SELECT DISTINCT col0 * + col1, col1 FROM tab2
----
2346
51
4928
77
5025
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT DISTINCT - 27 * CAST( + - col0 AS SIGNED ) AS col1 FROM tab1
----
1377
2295
2457

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - 27 * CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1
----
1377
2295
2457

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1432
SELECT + - col1 DIV + col0 col0 FROM tab1 WHERE CAST( + 85 AS SIGNED ) + - + 14 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1432
SELECT + - col1 / + col0 col0 FROM tab1 WHERE CAST ( + 85 AS INTEGER ) + - + 14 IS NOT NULL
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1434
SELECT DISTINCT - 0 DIV COUNT( + 50 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT - 0 / COUNT ( + 50 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 + + 2 AS col0 FROM tab2
----
48
66
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT DISTINCT 1 - - 88 DIV - ( - col2 ) AS col0 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT 1 - - 88 / - ( - col2 ) AS col0 FROM tab1
----
1
2

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT MIN( col1 ) + + MAX( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( - - col0 AS SIGNED ) + - col2 * col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL - 96 FROM tab1 AS cor0 WHERE ( + col1 * + ( + col0 ) ) > - col0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 = + 92 / + col2 + + - 55
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0 WHERE col0 <> - 33 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0 WHERE col0 <> - 33 + + col0
----
NULL

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

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

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

query I rowsort
SELECT ALL 41 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT 93 - + 51 AS col2 FROM tab2 AS cor0 WHERE NOT + 42 * - 2 IS NULL
----
42
42
42

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1452
SELECT COUNT( * ) col2, SUM( + + col2 ) FROM tab1
----
3
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1452
SELECT COUNT ( * ) col2, SUM ( + + col2 ) FROM tab1
----
3
223

query III rowsort
SELECT * FROM tab0 WHERE NOT 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT + 39 * 15 DIV - col1 AS col1 FROM tab1
----
-117
-12
-41

skipif mysql # not compatible
query I rowsort label-1454
SELECT + 39 * 15 / - col1 AS col1 FROM tab1
----
-117
-12
-41

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

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

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

query I rowsort
SELECT DISTINCT AVG ( ALL ( - 64 ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN col0 + + col1 - col0 AND + 52
----
NULL

query I rowsort
SELECT ALL - col1 * + 80 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + - col0 )
----

query I rowsort
SELECT col1 + + col2 - + + 66 AS col0 FROM tab2 AS cor0
----
51
59
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1460
SELECT - CAST( + col0 AS SIGNED ) + 53 + + 91 AS col0 FROM tab1
----
53
59
93

skipif mysql # not compatible
query I rowsort label-1460
SELECT - CAST ( + col0 AS INTEGER ) + 53 + + 91 AS col0 FROM tab1
----
53
59
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT 31 * - + CAST( + - 79 AS SIGNED ) AS col2 FROM tab0
----
2449
2449
2449

skipif mysql # not compatible
query I rowsort label-1461
SELECT 31 * - + CAST ( + - 79 AS INTEGER ) AS col2 FROM tab0
----
2449
2449
2449

query I rowsort
SELECT ALL + 2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT DISTINCT COUNT( * ) - - ( - + 4 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT COUNT ( * ) - - ( - + 4 ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1466
SELECT DISTINCT col1 * - - CAST( + - 66 AS SIGNED ) FROM tab1 AS cor0
----
-3102
-330
-924

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT col1 * - - CAST ( + - 66 AS INTEGER ) FROM tab1 AS cor0
----
-3102
-330
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, + col1 col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT ALL + col1 + + col2 FROM tab2 WHERE - ( 7 ) IS NOT NULL
----
117
125
74

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

query I rowsort
SELECT ALL 88 * - + 98 * + - 18 FROM tab0 AS cor0
----
155232
155232
155232

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

query II rowsort
SELECT - col2 AS col2, + col2 + + ( 93 ) AS col0 FROM tab1 AS cor0
----
-59
152
-68
161
-96
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1473
SELECT - - 80 AS col0, - CAST( MAX( ( + + 60 ) ) AS SIGNED ) FROM tab1 AS cor0
----
80
-60

skipif mysql # not compatible
query II rowsort label-1473
SELECT - - 80 AS col0, - CAST ( MAX ( ( + + 60 ) ) AS INTEGER ) FROM tab1 AS cor0
----
80
-60

query I rowsort
SELECT ALL 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

query I rowsort
SELECT DISTINCT + 60 * - - 58 FROM tab2 AS cor0
----
3480

query I rowsort
SELECT ALL col2 * - 83 AS col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

query II rowsort
SELECT DISTINCT + col2 * - col0 AS col2, col2 FROM tab2 AS cor0
----
-1058
23
-2560
40
-4350
58

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1480
SELECT - col2 + + col0 DIV col0 DIV - + col1 + + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-99
11
34

skipif mysql # not compatible
query I rowsort label-1480
SELECT - col2 + + col0 / col0 / - + col1 + + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-99
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT ALL - 22 DIV - ( - col2 ) col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1481
SELECT ALL - 22 / - ( - col2 ) col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT - 16 + COUNT( * ) AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-1482
SELECT - 16 + COUNT ( * ) AS col1 FROM tab2
----
-13

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

query I rowsort
SELECT DISTINCT - col2 + - 4 FROM tab0
----
-103
-14
-51

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

query I rowsort
SELECT + col0 * + - col0 * - 51 FROM tab2
----
107916
208896
286875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT DISTINCT CAST( + 64 AS SIGNED ) + col0 AS col2 FROM tab2
----
110
128
139

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT CAST ( + 64 AS INTEGER ) + col0 AS col2 FROM tab2
----
110
128
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT SUM( + 61 ) AS col1 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT SUM ( + 61 ) AS col1 FROM tab1 AS cor0
----
183

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col2 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE ( NOT - 55 = - col0 )
----
1
21
81

query I rowsort
SELECT ALL col1 + + ( + - 17 ) + + + 28 + + - 70 FROM tab2
----
-8
18
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col1 col0 FROM tab2
----
28
37
9

query II rowsort
SELECT ALL col1 + col0 + - 85 * + col2 + col1 * + col2, - col1 AS col2 FROM tab1
----
-2446
-47
-4630
-5
-6751
-14

query I rowsort
SELECT DISTINCT col1 + - + 77 FROM tab2 AS cor0
----
-10
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT DISTINCT - 23 - - MIN( + - col0 ) + + MIN( DISTINCT + + col1 ) * 51 AS col2 FROM tab2 cor0 WHERE + col0 < 78 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT - 23 - - MIN ( + - col0 ) + + MIN ( DISTINCT + + col1 ) * 51 AS col2 FROM tab2 cor0 WHERE + col0 < 78 * - col1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - col2 NOT IN ( ( - - col0 ), - col2, + - col0, - + ( + - col0 ) - - ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - + SUM( DISTINCT + col0 ) FROM tab1 cor0 WHERE + col1 BETWEEN - + 49 AND - 17 + - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT - + SUM ( DISTINCT + col0 ) FROM tab1 cor0 WHERE + col1 BETWEEN - + 49 AND - 17 + - + col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 68
----

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

query II rowsort
SELECT col1 AS col1, ( - - col0 ) AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 / + ( - col1 ) < - col1 * - + col0
----
97
1
99

query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col1 FROM tab2 WHERE NOT + 50 < col1 + 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT - 74 DIV + col0 col2 FROM tab1
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - SUM( ALL - - 14 ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-1507
SELECT - SUM ( ALL - - 14 ) AS col0 FROM tab0
----
-42

query II rowsort
SELECT DISTINCT - col1 * - - col2 AS col0, col2 + col1 FROM tab0
----
-210
31
-3807
128
-99
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 34 * - col1, + col0 * - 66 col1 FROM tab2 AS cor0
----
-1734
-3036
-2278
-4950
-2618
-4224

query I rowsort
SELECT ALL col1 * - + 91 AS col1 FROM tab0 AS cor0
----
-1911
-7371
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT + 10 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + 71 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT + 10 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + 71 IS NULL
----
0

query I rowsort
SELECT ALL + col1 * - + 42 AS col1 FROM tab0
----
-3402
-42
-882

query I rowsort
SELECT DISTINCT col0 * + 49 AS col0 FROM tab1
----
2499
4165
4459

query I rowsort
SELECT DISTINCT + 13 * - 8 FROM tab0 AS cor0
----
-104

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT + - col2 DIV + col1 - col2 FROM tab0 AS cor0
----
-10
-198
-47

skipif mysql # not compatible
query I rowsort label-1517
SELECT + - col2 / + col1 - col2 FROM tab0 AS cor0
----
-10
-198
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT - + COUNT( * ) DIV + MIN( DISTINCT 74 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT - + COUNT ( * ) / + MIN ( DISTINCT 74 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + col0 - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT DISTINCT col1 DIV 57 + + 63 FROM tab2
----
63
64

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT col1 / 57 + + 63 FROM tab2
----
63
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT - ( col2 ) DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT - ( col2 ) / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 + + col2 * + col1 AS col2 FROM tab0
----
123
2
3792

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT 5 - + MAX( 62 ) FROM tab0 WHERE ( NULL >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT 5 - + MAX ( 62 ) FROM tab0 WHERE ( NULL >= NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1526
SELECT col1 AS col1 FROM tab2 WHERE - col2 + col1 + + ( - ( + + col1 ) ) BETWEEN ( CAST( NULL AS SIGNED ) ) AND - col2 + col2
----

skipif mysql # not compatible
query I rowsort label-1526
SELECT col1 AS col1 FROM tab2 WHERE - col2 + col1 + + ( - ( + + col1 ) ) BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT ALL + SUM( ALL col0 ) FROM tab0 WHERE - 94 <= + ( 37 ) / col2
----
199

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + SUM ( ALL col0 ) FROM tab0 WHERE - 94 <= + ( 37 ) / col2
----
199

onlyif mysql # DIV for integer division: 
query II rowsort label-1528
SELECT DISTINCT col1 DIV + 28, col0 FROM tab0 AS cor0
----
0
87
0
97
2
15

skipif mysql # not compatible
query II rowsort label-1528
SELECT DISTINCT col1 / + 28, col0 FROM tab0 AS cor0
----
0
87
0
97
2
15

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT ALL + 46 * + 33 + - col0 - - CAST( 77 AS SIGNED ) FROM tab1 AS cor0
----
1504
1510
1544

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL + 46 * + 33 + - col0 - - CAST ( 77 AS INTEGER ) FROM tab1 AS cor0
----
1504
1510
1544

query I rowsort
SELECT DISTINCT col0 + + 75 AS col2 FROM tab0
----
162
172
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 78 col2 FROM tab1
----
125
83
92

query I rowsort
SELECT ALL - col0 + + 93 FROM tab2
----
18
29
47

query I rowsort
SELECT col0 - col1 + col0 FROM tab2
----
41
51
83

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT DISTINCT COUNT( * ), 60 AS col1 FROM tab0 AS cor0 WHERE NOT ( 6 ) = NULL
----
0
60

skipif mysql # not compatible
query II rowsort label-1536
SELECT DISTINCT COUNT ( * ), 60 AS col1 FROM tab0 AS cor0 WHERE NOT ( 6 ) = NULL
----
0
60

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1538
SELECT MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10

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

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

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

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

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col1 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + MAX( - + col1 ) * + COUNT( 32 ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1543
SELECT + MAX ( - + col1 ) * + COUNT ( 32 ) FROM tab1 cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) * - 19 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) * - 19 FROM tab1 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 64 / 5 + + col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT DISTINCT COUNT( * ) * - 13 * + COUNT( * ) * - 92 FROM tab1
----
10764

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT COUNT ( * ) * - 13 * + COUNT ( * ) * - 92 FROM tab1
----
10764

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 > + 63
----

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

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

query II rowsort
SELECT + col2, col2 * col0 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

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

query I rowsort
SELECT + + 41 + + - col2 AS col0 FROM tab2 AS cor0
----
-17
1
18

query I rowsort
SELECT - col0 + - - col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-112
-133
-139

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > - ( - + 91 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 + + ( - col1 ), + col0 FROM tab2 AS cor0
----
-117
64
-125
75
-74
46

query I rowsort
SELECT - ( col2 ) + + 60 AS col2 FROM tab1 AS cor0
----
-36
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT DISTINCT ( - MIN( DISTINCT ( - 79 ) ) ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT ( - MIN ( DISTINCT ( - 79 ) ) ) FROM tab1
----
79

query I rowsort
SELECT ALL - col2 + + - col0 + - col1 + + col1 * col0 FROM tab0
----
-100
1072
1709

query II rowsort
SELECT DISTINCT + col1, - col0 AS col1 FROM tab2 WHERE NULL = + 53
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT 64 + COUNT( * ) + - + 27 AS col0 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT 64 + COUNT ( * ) + - + 27 AS col0 FROM tab2
----
40

query I rowsort
SELECT ALL 16 AS col1 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL 95 + - 76 + - - col2 FROM tab0
----
118
29
66

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND 38
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1566
SELECT - col1 DIV + col1 AS col2, 19 AS col1 FROM tab0
----
-1
19
-1
19
-1
19

skipif mysql # not compatible
query II rowsort label-1566
SELECT - col1 / + col1 AS col2, 19 AS col1 FROM tab0
----
-1
19
-1
19
-1
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT - + MAX( col1 ), + ( + 60 ) - - 28 AS col0 FROM tab0 cor0
----
-81
88

skipif mysql # not compatible
query II rowsort label-1567
SELECT - + MAX ( col1 ), + ( + 60 ) - - 28 AS col0 FROM tab0 cor0
----
-81
88

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + + col2 < + 32
----

query I rowsort
SELECT - 69 * col2 AS col0 FROM tab0
----
-3243
-6831
-690

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - - col1 ) * 83 >= 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT MIN( + 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-1572
SELECT MIN ( + 10 ) FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT + MAX( - 65 ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT + MAX ( - 65 ) FROM tab1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT ( SUM( - col1 ) ) DIV COUNT( DISTINCT + 80 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1574
SELECT ( SUM ( - col1 ) ) / COUNT ( DISTINCT + 80 ) FROM tab0
----
-103

query I rowsort
SELECT ALL ( + + 21 ) AS col0 FROM tab0
----
21
21
21

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

skipif mysql # not compatible
query II rowsort label-1576
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) + - - COUNT ( * ) + - COUNT ( * ) - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT ALL 11 + + - col0 FROM tab1 AS cor0
----
-40
-74
-80

query I rowsort
SELECT + 53 + + col1 FROM tab0
----
134
54
74

query I rowsort
SELECT + 20 + - col2 AS col0 FROM tab0
----
-27
-79
10

query I rowsort
SELECT - ( col1 ) * + col0 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL BETWEEN + col1 + col1 AND - + col1 / - + col1 + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT MAX( - 12 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-1582
SELECT MAX ( - 12 ) FROM tab1
----
-12

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

query I rowsort
SELECT DISTINCT - 34 * - col1 - - col2 AS col2 FROM tab2 AS cor0
----
1757
2336
2658

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1586
SELECT - SUM( ALL - 6 ) DIV - - MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1586
SELECT - SUM ( ALL - 6 ) / - - MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 - 55 FROM tab2
----
-4
12
22

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

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

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

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

query I rowsort
SELECT DISTINCT + 84 * - col2 + + - col2 AS col2 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT ALL - col0 * - ( - col1 ) FROM tab1
----
-425
-4277
-714

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT ALL - 27 + - + COUNT( * ) AS col1, 77 FROM tab2
----
-30
77

skipif mysql # not compatible
query II rowsort label-1593
SELECT ALL - 27 + - + COUNT ( * ) AS col1, 77 FROM tab2
----
-30
77

query I rowsort
SELECT DISTINCT col1 + - - col1 + - - col1 AS col1 FROM tab1 AS cor0
----
141
15
42

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

query I rowsort
SELECT DISTINCT + - 3 AS col0 FROM tab1 AS cor0 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT + 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + ( - ( - col0 ) ) * - + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL - 52 * + + 66 * - MAX( - - ( + - col2 ) ) AS col2 FROM tab0 AS cor0
----
-34320

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL - 52 * + + 66 * - MAX ( - - ( + - col2 ) ) AS col2 FROM tab0 AS cor0
----
-34320

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 5 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1603
SELECT CAST( + - col1 AS SIGNED ) * col1 * + 39 AS col0 FROM tab0
----
-17199
-255879
-39

skipif mysql # not compatible
query I rowsort label-1603
SELECT CAST ( + - col1 AS INTEGER ) * col1 * + 39 AS col0 FROM tab0
----
-17199
-255879
-39

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

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT ( - + col2 ) / col0 AS col1 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL 43 * + SUM( ALL 78 ) + - MAX( - ( col2 ) ) FROM tab2
----
10085

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL 43 * + SUM ( ALL 78 ) + - MAX ( - ( col2 ) ) FROM tab2
----
10085

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT 14 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT 14 / + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT + col2 DIV col2 DIV + 26 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT + col2 / col2 / + 26 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1608
SELECT ( + col1 ) DIV 97 + - col1 + - col1 col2 FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1608
SELECT ( + col1 ) / 97 + - col1 + - col1 col2 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT - MAX( DISTINCT 93 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-93

skipif mysql # not compatible
query I rowsort label-1609
SELECT - MAX ( DISTINCT 93 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + COUNT( * ) * + COUNT( ALL - 39 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) * + COUNT ( ALL - 39 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - COUNT( * ) FROM tab2 WHERE NULL <> + + col1
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT - COUNT ( * ) FROM tab2 WHERE NULL <> + + col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT + + col0 DIV - + ( - col0 ) + - + 71 * + col2 AS col1 FROM tab1 AS cor0
----
-4188
-4827
-6815

skipif mysql # not compatible
query I rowsort label-1613
SELECT + + col0 / - + ( - col0 ) + - + 71 * + col2 AS col1 FROM tab1 AS cor0
----
-4188
-4827
-6815

query I rowsort
SELECT col2 + + col2 * 97 FROM tab2 AS cor0 WHERE + ( - - 6 ) NOT BETWEEN - 48 AND ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT - - MAX ( col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL - COUNT( * ) * + + 83 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - COUNT ( * ) * + + 83 FROM tab0
----
-249

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1619
SELECT ALL 13, + 27 DIV - col1 AS col2 FROM tab2
----
13
0
13
0
13
0

skipif mysql # not compatible
query II rowsort label-1619
SELECT ALL 13, + 27 / - col1 AS col2 FROM tab2
----
13
0
13
0
13
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT 77 * - + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-1620
SELECT 77 * - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
231

query I rowsort
SELECT DISTINCT ( - 50 ) + + ( + - 48 ) AS col2 FROM tab1
----
-98

query I rowsort
SELECT - 69 - - 17 FROM tab2
----
-52
-52
-52

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

query I rowsort
SELECT 28 - - - 12 FROM tab0
----
16
16
16

query I rowsort
SELECT - col0 - col2 * - - col2 AS col0 FROM tab0
----
-187
-2224
-9898

query I rowsort
SELECT ALL - col1 + col0 + - col2 FROM tab0 AS cor0
----
-113
-3
56

query I rowsort
SELECT ALL - col2 - + - 64 FROM tab1 AS cor0 WHERE + col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + - 88 - - 33 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ALL + + MIN( DISTINCT ( 27 ) ) AS col2 FROM tab0 AS cor0 WHERE 17 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + + MIN ( DISTINCT ( 27 ) ) AS col2 FROM tab0 AS cor0 WHERE 17 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - + ( - col0 ) FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT col2 * - col2 AS col2, + col2 + - - col0 FROM tab0
----
-100
97
-2209
62
-9801
196

query I rowsort
SELECT 63 * - 75 - - col1 FROM tab1 AS cor0
----
-4678
-4711
-4720

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + - 33, 84 + - + 35 col1 FROM tab2 cor0
----
1320
49
1914
49
759
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT - - col2 DIV - 63 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT - - col2 / - 63 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

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

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

query I rowsort
SELECT ALL + - col2 * + ( - - 52 ) AS col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

query I rowsort
SELECT DISTINCT - 95 * - 51 AS col2 FROM tab1 AS cor0
----
4845

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1639
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - col1 * - CAST( NULL AS SIGNED ) * col2, col1, + ( + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-1639
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - col1 * - CAST ( NULL AS INTEGER ) * col2, col1, + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT + 22 * ( COUNT( * ) ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1640
SELECT + 22 * ( COUNT ( * ) ) FROM tab2 AS cor0
----
66

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1642
SELECT ALL CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1642
SELECT ALL CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT - 60 * - 43 AS col0 FROM tab2
----
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT - MAX( DISTINCT + 53 ) AS col0 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-1644
SELECT - MAX ( DISTINCT + 53 ) AS col0 FROM tab0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT - COUNT( * ) * - + 16 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1645
SELECT - COUNT ( * ) * - + 16 FROM tab1
----
48

query I rowsort
SELECT DISTINCT + + col0 / + 76 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL 12 AS col2 FROM tab0 cor0
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL = - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 > 62 - - col1
----

query I rowsort
SELECT 76 + + + col2 FROM tab2 AS cor0
----
116
134
99

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

skipif mysql # not compatible
query I rowsort label-1651
SELECT + 98 + - MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col2 + - 20 + + + col0 FROM tab0
----
700
937
9680

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

query I rowsort
SELECT + col0 FROM tab1 WHERE + col1 <= NULL
----

query I rowsort
SELECT ALL - ( - 7 ) AS col0 FROM tab2
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1656
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col0 ) NOT BETWEEN CAST( NULL AS SIGNED ) DIV + col0 * - 35 AND - + col1 DIV col2 * + col1
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-1656
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col0 ) NOT BETWEEN CAST ( NULL AS INTEGER ) / + col0 * - 35 AND - + col1 / col2 * + col1
----
46
51
23
64
77
40

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 36 * - 57 = NULL
----

query I rowsort
SELECT col0 + + ( + col2 ) FROM tab0 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT - col0 * 88 AS col0 FROM tab2 cor0
----
-4048
-5632
-6600

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

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

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

query I rowsort
SELECT - - col2 + + 33 AS col2 FROM tab2 AS cor0
----
56
73
91

onlyif mysql # DIV for integer division: 
query II rowsort label-1666
SELECT DISTINCT + col0 DIV 38 + - ( + - col2 ) AS col1, + 83 + - col2 * + col2 FROM tab2 AS cor0
----
24
-446
41
-1517
59
-3281

skipif mysql # not compatible
query II rowsort label-1666
SELECT DISTINCT + col0 / 38 + - ( + - col2 ) AS col1, + 83 + - col2 * + col2 FROM tab2 AS cor0
----
24
-446
41
-1517
59
-3281

query I rowsort
SELECT DISTINCT + col1 + 22 AS col0 FROM tab1 AS cor0
----
27
36
69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT - 21 * - col1 * + + 78 - CAST( NULL AS SIGNED ) / - + col1 - - col2 * + - col1 * + + col1 + + 75 + + + col2 * - 13 / col1 * - + CAST( NULL AS SIGNED ) * + 26 - + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 21 * - col1 * + + 78 - CAST ( NULL AS INTEGER ) / - + col1 - - col2 * + - col1 * + + col1 + + 75 + + + col2 * - 13 / col1 * - + CAST ( NULL AS INTEGER ) * + 26 - + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 5 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT 99 * - - COUNT( * ) FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1671
SELECT 99 * - - COUNT ( * ) FROM tab1 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE col2 * col0 + - 99 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + + 46 AS col0 FROM tab2
----
113
123
97

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT DISTINCT col2 + col0, col0 + + col1 * - col2 + - ( + - col0 ) AS col2 FROM tab1
----
144
-125
147
-1242
159
-3014

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ALL col2 DIV + + 20 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL col2 / + + 20 FROM tab2
----
1
2
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT 55 * 69 * + COUNT( ALL - ( - col2 ) ) + + COUNT( * ) FROM tab1 AS cor0
----
11388

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT 55 * 69 * + COUNT ( ALL - ( - col2 ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
11388

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT - - 84 DIV - + col2 + + col2 AS col2 FROM tab2 AS cor0
----
20
38
57

skipif mysql # not compatible
query I rowsort label-1679
SELECT - - 84 / - + col2 + + col2 AS col2 FROM tab2 AS cor0
----
20
38
57

query II rowsort
SELECT - + 90 AS col1, 64 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE - 46 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL + 88 + + COUNT( * ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + 88 + + COUNT ( * ) FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT 75 + + ( ( - + COUNT( * ) ) ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-1683
SELECT 75 + + ( ( - + COUNT ( * ) ) ) AS col0 FROM tab1
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 10 BETWEEN - ( - - col0 ) AND + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + + 84 + + col2 FROM tab0 AS cor0
----
104
178
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 11, 39 + 57 col2 FROM tab2 AS cor0
----
11
96
11
96
11
96

query II rowsort
SELECT + + col2, + ( + + 33 ) * - - 69 + - col2 FROM tab2 AS cor0
----
23
2254
40
2237
58
2219

query I rowsort
SELECT DISTINCT - + 69 - - - col2 AS col0 FROM tab2 AS cor0
----
-109
-127
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - 46 col0 FROM tab1 cor0
----
-14
-46
-47
-46
-5
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1690
SELECT ALL - CAST( NULL AS DECIMAL ) - - col0 / - + 84 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-1690
SELECT ALL - CAST ( NULL AS REAL ) - - col0 / - + 84 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1692
SELECT DISTINCT - col0 AS col0, CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1692
SELECT DISTINCT - col0 AS col0, CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 63 ) * 31 col0 FROM tab0 AS cor0
----
1953
1953
1953

query I rowsort
SELECT - ( + col2 ) * 65 FROM tab2
----
-1495
-2600
-3770

query I rowsort
SELECT - - 3 * 95 AS col1 FROM tab2 WHERE NOT - ( - ( + ( + 85 ) ) ) - + col0 + - + 17 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1696
SELECT DISTINCT SUM( DISTINCT - CAST( - col2 AS SIGNED ) ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1696
SELECT DISTINCT SUM ( DISTINCT - CAST ( - col2 AS INTEGER ) ) col1 FROM tab1
----
223

query I rowsort
SELECT + 28 AS col1 FROM tab2 WHERE - col1 BETWEEN NULL AND + - col0 * - + col0 + + 70 OR NOT - col1 NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + 31 col0 FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - 3 <= 15
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / - col2 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT SUM( DISTINCT 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1703
SELECT SUM ( DISTINCT 93 ) FROM tab0
----
93

query I rowsort
SELECT ALL ( + + col1 ) * - + col2 + 86 + - col2 * 11 FROM tab0
----
-1102
-234
-4238

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT MIN( DISTINCT + - 42 ) AS col1 FROM tab0 WHERE NOT col2 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT MIN ( DISTINCT + - 42 ) AS col1 FROM tab0 WHERE NOT col2 * - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 * 88 * + 61 * - 20 AS col1 FROM tab0 AS cor0
----
-10413920
-1610400
-9340320

query I rowsort
SELECT ( - col2 ) + + col0 + - 27 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-29
-59
50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 + + 38 col2 FROM tab0 AS cor0 WHERE NOT col1 * - 37 <> NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 74 * - col2 + + col1 * - col0 FROM tab0
----
-2567
-4693
-7423

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT 31 AS col1, 12 * COUNT( * ) AS col2 FROM tab1
----
31
36

skipif mysql # not compatible
query II rowsort label-1716
SELECT 31 AS col1, 12 * COUNT ( * ) AS col2 FROM tab1
----
31
36

query I rowsort
SELECT ALL 69 + - - col0 FROM tab2
----
115
133
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT + 48 + COUNT( * ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1718
SELECT + 48 + COUNT ( * ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL 96 + + + MAX( - - col2 ) * + 91 AS col0 FROM tab1
----
8832

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL 96 + + + MAX ( - - col2 ) * + 91 AS col0 FROM tab1
----
8832

onlyif mysql # aggregate syntax: 
query II rowsort label-1720
SELECT ALL - MIN( - col2 ) + + 38 * 20 + + 65 * + 91, - COUNT( * ) + + COUNT( * ) + + - 18 * + COUNT( * ) col0 FROM tab2
----
6733
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1720
SELECT ALL - MIN ( - col2 ) + + 38 * 20 + + 65 * + 91, - COUNT ( * ) + + COUNT ( * ) + + - 18 * + COUNT ( * ) col0 FROM tab2
----
6733
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT + col1 col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) - + - 43 IN ( - col2 * col2, - ( col2 ), - col0, 58, + 84, - + 94 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1721
SELECT + col1 col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - + - 43 IN ( - col2 * col2, - ( col2 ), - col0, 58, + 84, - + 94 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT COUNT( * ) * - MAX( + 21 ) - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1724
SELECT COUNT ( * ) * - MAX ( + 21 ) - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-63

query I rowsort
SELECT DISTINCT + + 0 * - - 87 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT CAST( NULL AS SIGNED ) * - - 79 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT CAST ( NULL AS INTEGER ) * - - 79 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + - col2 * - col0 FROM tab1
----
4992
5074
6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT ALL 1 + + col0 + col1 * - + col2 + + col0 - col1 - col2 * + ( - + col2 ) * + - 99 + - - CAST( - ( - col2 ) AS SIGNED ) * - - 60 col1 FROM tab1
----
-341208
-456756
-907879

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1728
SELECT ALL 1 + + col0 + col1 * - + col2 + + col0 - col1 - col2 * + ( - + col2 ) * + - 99 + - - CAST ( - ( - col2 ) AS INTEGER ) * - - 60 col1 FROM tab1
----
-341208
-456756
-907879

query II rowsort
SELECT DISTINCT - col2 + + - col2 - col2 * 97 * 16 AS col1, + 81 AS col0 FROM tab0
----
-153846
81
-15540
81
-73038
81

query I rowsort
SELECT ALL col2 + + + col1 * - + col0 AS col1 FROM tab2 cor0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT DISTINCT - COUNT( - col0 ) - 80 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT - COUNT ( - col0 ) - 80 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT 75 + + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-12
-22
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * + col2 * col1 - + col2 + col1 + col2 col2 FROM tab1 AS cor0
----
-13270
-143773
-60466

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - - MAX( DISTINCT - 56 ) AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1734
SELECT - - MAX ( DISTINCT - 56 ) AS col1 FROM tab1 AS cor0
----
-56

query II rowsort
SELECT + col0 AS col0, col1 FROM tab0 AS cor0 WHERE NOT + col0 * + 75 * - 4 <> NULL
----

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT + - CAST( col0 AS SIGNED ) * - 53 * - + 91 AS col2 FROM tab0 AS cor0
----
-419601
-467831
-72345

skipif mysql # not compatible
query I rowsort label-1740
SELECT + - CAST ( col0 AS INTEGER ) * - 53 * - + 91 AS col2 FROM tab0 AS cor0
----
-419601
-467831
-72345

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1741
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST( col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1741
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST ( col0 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1742
SELECT ALL * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-1742
SELECT ALL * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) > NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1744
SELECT DISTINCT - 84 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT - 84 * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT MAX( 45 ) + 47 FROM tab1 WHERE NOT - col2 + col0 IS NULL
----
92

skipif mysql # not compatible
query I rowsort label-1745
SELECT MAX ( 45 ) + 47 FROM tab1 WHERE NOT - col2 + col0 IS NULL
----
92

query III rowsort
SELECT * FROM tab0 WHERE NOT + 75 NOT IN ( 6 )
----

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

query I rowsort
SELECT ALL - 25 * col1 AS col1 FROM tab0
----
-2025
-25
-525

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

query I rowsort
SELECT 48 + col0 FROM tab0
----
135
145
63

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

query I rowsort
SELECT - ( 43 ) * + 89 FROM tab0
----
-3827
-3827
-3827

query I rowsort
SELECT - 51 * + col2 + - col1 FROM tab1
----
-3014
-3515
-4910

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT 22 + COUNT( * ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-1754
SELECT 22 + COUNT ( * ) AS col1 FROM tab0
----
25

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * col0 NOT BETWEEN - col0 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT DISTINCT col1 DIV - 28 + - col0 FROM tab0
----
-17
-87
-97

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT col1 / - 28 + - col0 FROM tab0
----
-17
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE ( 80 ) + col2 > 67 * + 43
----

query I rowsort
SELECT ALL - col2 * 34 + + 48 AS col0 FROM tab2
----
-1312
-1924
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT 83 + COUNT( * ) * ( + COUNT( * ) ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-1760
SELECT 83 + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2
----
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE col0 + - 66 * 12 IN ( 68 * col1 )
----

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

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

query I rowsort
SELECT 27 + 19 AS col1 FROM tab1
----
46
46
46

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1766
SELECT ( + CAST ( + col2 AS INTEGER ) ) col2 FROM tab2
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT 25 + - COUNT( * ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT 25 + - COUNT ( * ) FROM tab2 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT col2 - 60 DIV - col0 AS col1 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-1769
SELECT col2 - 60 / - col0 AS col1 FROM tab1 AS cor0
----
59
68
97

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

query I rowsort
SELECT DISTINCT 97 * - 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( 77 / + col1 + - col1 ) NOT BETWEEN ( + 39 ) AND NULL
----
15
87

query I rowsort
SELECT 93 + - ( col0 ) FROM tab2
----
18
29
47

query III rowsort
SELECT ALL * FROM tab2 WHERE - 99 NOT BETWEEN + 55 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - COUNT( * ) + COUNT( * ) FROM tab1 WHERE 38 * col0 NOT IN ( 25 )
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE 38 * col0 NOT IN ( 25 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 65 * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + 69 AS col1 FROM tab0 cor0
----
1035
6003
6693

query I rowsort
SELECT DISTINCT ( - col2 ) * + 57 AS col1 FROM tab0
----
-2679
-5643
-570

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1784
SELECT - MIN ( - - col2 ) col0 FROM tab2
----
-23

query I rowsort
SELECT col2 * - 29 AS col0 FROM tab0
----
-1363
-2871
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT ALL 71 DIV - - COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL 71 / - - COUNT ( * ) FROM tab0
----
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 + 88 / col0 NOT BETWEEN 75 AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 8 = NULL
----

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

query I rowsort
SELECT 11 + - col0 FROM tab2 cor0
----
-35
-53
-64

query I rowsort
SELECT + col2 + - - 23 AS col0 FROM tab0 AS cor0
----
122
33
70

query I rowsort
SELECT 5 + 32 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1793
SELECT - 92 AS col0, COUNT( * ) FROM tab0
----
-92
3

skipif mysql # not compatible
query II rowsort label-1793
SELECT - 92 AS col0, COUNT ( * ) FROM tab0
----
-92
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
657

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT DISTINCT - 68 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT - 68 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON 78 = 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT + - 20 * + SUM( col1 ) AS col2 FROM tab2 cor0
----
-3900

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT + - 20 * + SUM ( col1 ) AS col2 FROM tab2 cor0
----
-3900

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

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

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

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

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

query I rowsort
SELECT - 97 + + 87 * col1 FROM tab0 cor0 WHERE ( - col0 ) <= 69
----
-10
1730
6950

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 12 ) IN ( + col1 )
----

query I rowsort
SELECT ALL - 47 * col1 FROM tab1
----
-2209
-235
-658

query I rowsort
SELECT DISTINCT - col1 + - + col2 AS col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT - COUNT( * ) * + SUM( ALL + col0 ) + + - MAX( ALL 56 ) AS col0 FROM tab0
----
-653

skipif mysql # not compatible
query I rowsort label-1807
SELECT - COUNT ( * ) * + SUM ( ALL + col0 ) + + - MAX ( ALL 56 ) AS col0 FROM tab0
----
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT + COUNT( * ) + + 77 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-1808
SELECT + COUNT ( * ) + + 77 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT DISTINCT ( + 14 ) + + + MAX( + + 11 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT ( + 14 ) + + + MAX ( + + 11 ) FROM tab2
----
25

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col1 + - col1 ) AND - col1 = + col1
----

query I rowsort
SELECT - 88 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1, 9 )
----

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

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

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT 34 * - col0 + ( - col1 ) < ( col2 ) )
----
-10
-47
-99

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

query I rowsort
SELECT + col1 * + 96 AS col1 FROM tab2
----
4896
6432
7392

query I rowsort
SELECT ALL - 91 * + - col0 FROM tab1
----
4641
7735
8281

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1818
SELECT 42 + col2 FROM tab0 cor0 WHERE NOT ( + - 90 ) + - col0 + + 80 <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1818
SELECT 42 + col2 FROM tab0 cor0 WHERE NOT ( + - 90 ) + - col0 + + 80 <= - CAST ( NULL AS REAL )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1820
SELECT ALL + col0 AS col0, col0 DIV col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
0
87
8
97
0

skipif mysql # not compatible
query II rowsort label-1820
SELECT ALL + col0 AS col0, col0 / col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
0
87
8
97
0

query I rowsort
SELECT - 71 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT - COUNT( + + 20 ) * - SUM( col2 ) AS col0 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - COUNT ( + + 20 ) * - SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
363

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1825
SELECT ALL - - SUM( CAST( col2 AS SIGNED ) ) DIV + - COUNT( * ) + + 60 col0 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1825
SELECT ALL - - SUM ( CAST ( col2 AS INTEGER ) ) / + - COUNT ( * ) + + 60 col0 FROM tab1 AS cor0
----
-14

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

query I rowsort
SELECT 61 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + - col1 * + col1 * - + ( 1 ) )
----
5307
5917
915

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT DISTINCT + COUNT( * ), - COUNT( DISTINCT - - col1 ) * - - MIN( ALL + - col2 ) AS col1 FROM tab0
----
3
297

skipif mysql # not compatible
query II rowsort label-1830
SELECT DISTINCT + COUNT ( * ), - COUNT ( DISTINCT - - col1 ) * - - MIN ( ALL + - col2 ) AS col1 FROM tab0
----
3
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 29 AS col2 FROM tab1
----
59
29
68
29
96
29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + + 50 * + col0 <= ( - + 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * 71 col2 FROM tab0
----
5680

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT - 41, - MAX( DISTINCT - ( - col2 ) ) + - 56 AS col2 FROM tab0 AS cor0
----
-41
-155

skipif mysql # not compatible
query II rowsort label-1836
SELECT - 41, - MAX ( DISTINCT - ( - col2 ) ) + - 56 AS col2 FROM tab0 AS cor0
----
-41
-155

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - MAX( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1838
SELECT - MAX ( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1839
SELECT DISTINCT col2 FROM tab0 cor0 WHERE 6 / - col0 + + + ( + 43 ) + + 47 * ( col2 ) NOT BETWEEN + CAST( NULL AS SIGNED ) + col2 AND CAST( NULL AS DECIMAL ) OR NOT NULL <> 13 * - 12
----

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT col2 FROM tab0 cor0 WHERE 6 / - col0 + + + ( + 43 ) + + 47 * ( col2 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) + col2 AND CAST ( NULL AS REAL ) OR NOT NULL <> 13 * - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT ALL + MIN( ALL 50 ) AS col1 FROM tab0 WHERE NULL IN ( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL + MIN ( ALL 50 ) AS col1 FROM tab0 WHERE NULL IN ( - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT 74 + - - 89 * COUNT( * ) FROM tab2
----
341

skipif mysql # not compatible
query I rowsort label-1841
SELECT 74 + - - 89 * COUNT ( * ) FROM tab2
----
341

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL 81 DIV + - ( col2 ) + - col2 FROM tab1
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL 81 / + - ( col2 ) + - col2 FROM tab1
----
-60
-69
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1843
SELECT DISTINCT CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col1, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1843
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col1, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + - 73 + - col1 FROM tab1 AS cor0
----
-120
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT SUM( DISTINCT + + 7 ) col1 FROM tab1 cor0 WHERE 1 + - + 13 >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1845
SELECT SUM ( DISTINCT + + 7 ) col1 FROM tab1 cor0 WHERE 1 + - + 13 >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT DISTINCT - 93 DIV - 51 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - 93 / - 51 AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 94
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN - col0 AND col2 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT - + col1 + - + ( - + col1 ) + - + col0 DIV + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - + col1 + - + ( - + col1 ) + - + col0 / + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT ALL 72 DIV + col1 AS col0 FROM tab0
----
0
3
72

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL 72 / + col1 AS col0 FROM tab0
----
0
3
72

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

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

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

query I rowsort
SELECT + 54 - + 17 FROM tab0 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT + 90 - - col1 + col0 FROM tab0 AS cor0
----
186
188
198

query I rowsort
SELECT - 14 * - col1 * col1 + col1 * - + col0 AS col0 FROM tab1 AS cor0
----
-75
2030
26649

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

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

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT 93 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 96 * + col1 col1 FROM tab1 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * - 16 col1 FROM tab0
----
-1552
-19440
-29232

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 44 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 44 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + - 12 ) FROM tab2 cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - 86 * + - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 69 * 27 AS col0 FROM tab1
----
1863
1863
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + MIN( - 50 ) AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1868
SELECT + MIN ( - 50 ) AS col1 FROM tab2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1869
SELECT * FROM tab0 WHERE NOT NULL > + 79 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1869
SELECT * FROM tab0 WHERE NOT NULL > + 79 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 23 * - col0 * - + 85 AS col1 FROM tab1
----
166175
177905
99705

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT + COUNT( * ) * + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1871
SELECT + COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1872
SELECT - COUNT( * ) AS col0, ( - - ( MAX( ALL 0 ) ) ) AS col0 FROM tab1
----
-3
0

skipif mysql # not compatible
query II rowsort label-1872
SELECT - COUNT ( * ) AS col0, ( - - ( MAX ( ALL 0 ) ) ) AS col0 FROM tab1
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 * - col1 * col0 col1, - col1 AS col0 FROM tab0
----
-1746
-1
-21870
-81
-32886
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL + 19 * + - COUNT( * ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + 19 * + - COUNT ( * ) FROM tab1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 + col1 * col1 col1, 58 col1 FROM tab2 AS cor0
----
2546
58
4434
58
5874
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - 90 * - + 1 / - col0 * + + col0 NOT IN ( - col0 * + - col1 / + ( col2 ) * col0 + - 16 * - 37 )
----

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT ALL + 76 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + 76 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + 10 FROM tab1 WHERE + col2 * + - 84 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT COUNT( + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT COUNT ( + col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT + 95 * MIN( - ( - ( - + 60 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5700

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + 95 * MIN ( - ( - ( - + 60 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + 35 - COUNT( ALL - 31 ) FROM tab2 WHERE + col0 * + - 94 * + 79 BETWEEN col2 AND NULL
----
35

skipif mysql # not compatible
query I rowsort label-1883
SELECT + 35 - COUNT ( ALL - 31 ) FROM tab2 WHERE + col0 * + - 94 * + 79 BETWEEN col2 AND NULL
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT 8 + - COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT 8 + - COUNT ( * ) FROM tab2
----
5

query I rowsort
SELECT DISTINCT - ( + - ( 0 ) ) + col1 - + 83 + + col0 * - col0 * - col0 FROM tab2
----
262138
421859
97304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL col0 - - 95 AS col0 FROM tab2 AS cor0
----
141
159
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT COUNT( * ) * MAX( DISTINCT + ( - col1 ) ) - - - 37 - - COUNT( + 78 ) * COUNT( * ) + 50 AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1888
SELECT COUNT ( * ) * MAX ( DISTINCT + ( - col1 ) ) - - - 37 - - COUNT ( + 78 ) * COUNT ( * ) + 50 AS col0 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL SUM( - - 41 ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL SUM ( - - 41 ) FROM tab1 AS cor0
----
123

query I rowsort
SELECT + 43 * + 81 + + 32 FROM tab1 cor0
----
3515
3515
3515

query I rowsort
SELECT ALL + 18 * + 47 FROM tab0
----
846
846
846

query I rowsort
SELECT ALL + col0 + 85 FROM tab1
----
136
170
176

query I rowsort
SELECT - 96 + 72 * - 58 AS col0 FROM tab0
----
-4272
-4272
-4272

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + ( - MAX( DISTINCT - 79 ) ) + + + 78 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-1894
SELECT + ( - MAX ( DISTINCT - 79 ) ) + + + 78 FROM tab1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT + 62 + + col1 AS col1, - col2 + - + CAST( NULL AS SIGNED ) FROM tab1
----
109
NULL
67
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-1895
SELECT + 62 + + col1 AS col1, - col2 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
109
NULL
67
NULL
76
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - 55 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - 55 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 - - col1 AS col2, + col1 * - col0 + - - col2 AS col0 FROM tab2
----
-8
-4967
13
-4888
5
-2323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 - + - col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
148
68
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1899
SELECT - 86 FROM tab2 WHERE NOT + CAST( - - col2 AS DECIMAL ) IS NULL
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-1899
SELECT - 86 FROM tab2 WHERE NOT + CAST ( - - col2 AS REAL ) IS NULL
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT 69 * - COUNT( * ) + - + 69 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT 69 * - COUNT ( * ) + - + 69 FROM tab0 AS cor0
----
-276

query II rowsort
SELECT ALL + - col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT + ( - + col0 ) FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT IN ( + - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT ALL MIN( + col0 ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL MIN ( + col0 ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----
NULL

query I rowsort
SELECT + col1 + - - col2 + - col2 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * + 87 IS NOT NULL OR 33 > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT DISTINCT 41 + + + 40 + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT 41 + + + 40 + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + 7 * - COUNT( * ) col1 FROM tab1
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1909
SELECT + 7 * - COUNT ( * ) col1 FROM tab1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1910
SELECT + CAST( - + AVG ( CAST( + col2 AS SIGNED ) ) AS SIGNED ) AS col2, ( + - COUNT( * ) ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-40
-1

skipif mysql # not compatible
query II rowsort label-1910
SELECT + CAST ( - + AVG ( CAST ( + col2 AS INTEGER ) ) AS INTEGER ) AS col2, ( + - COUNT ( * ) ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-40
-1

query III rowsort
SELECT * FROM tab2 WHERE + 58 + + ( col2 ) BETWEEN + 29 * + ( col2 ) AND NULL
----

query I rowsort
SELECT col2 + + 20 FROM tab2
----
43
60
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 - - - col2 + - 85 col1 FROM tab2
----
-15
-32
-50

query I rowsort
SELECT DISTINCT - + col2 + - - col0 + 11 + - ( - ( + 84 ) ) AS col1 FROM tab0 AS cor0
----
172
63
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1915
SELECT DISTINCT CAST( NULL AS SIGNED ), 91 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
-4641
NULL
-7735
NULL
-8281

skipif mysql # not compatible
query II rowsort label-1915
SELECT DISTINCT CAST ( NULL AS INTEGER ), 91 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
-4641
NULL
-7735
NULL
-8281

query II rowsort
SELECT + - ( + col2 ) * - col1 AS col1, + 69 FROM tab2 AS cor0
----
1173
69
3080
69
3886
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <> ( NULL )
----

query I rowsort
SELECT ALL + 5 * - + col0 * + 33 AS col1 FROM tab2 AS cor0
----
-10560
-12375
-7590

query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab2 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT ALL - 36 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - 36 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 52 * + 47 FROM tab1
----
2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1922
SELECT CAST( NULL AS SIGNED ) AS col0, MIN( DISTINCT - + 25 ) FROM tab1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1922
SELECT CAST ( NULL AS INTEGER ) AS col0, MIN ( DISTINCT - + 25 ) FROM tab1
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT + COUNT( * ) - + ( + 20 ) * + ( + 14 ) AS col2 FROM tab1
----
-277

skipif mysql # not compatible
query I rowsort label-1923
SELECT + COUNT ( * ) - + ( + 20 ) * + ( + 14 ) AS col2 FROM tab1
----
-277

query II rowsort
SELECT 91 AS col0, col0 AS col2 FROM tab2
----
91
46
91
64
91
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 18 * col0 + - 48 AS col0 FROM tab0
----
-10
1518
-47
222
-99
1698

query I rowsort
SELECT DISTINCT - col2 * - 14 AS col0 FROM tab2
----
322
560
812

query II rowsort
SELECT ALL - 60 AS col0, 83 + 64 FROM tab0
----
-60
147
-60
147
-60
147

onlyif mysql # DIV for integer division: 
query I rowsort label-1928
SELECT ALL + 57 DIV 30 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + 57 / 30 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - - ( - - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT DISTINCT col0 * col0 DIV col1 AS col0 FROM tab0 AS cor0
----
2
360
9409

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT col0 * col0 / col1 AS col0 FROM tab0 AS cor0
----
2
360
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + + ( - SUM( ALL + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1931
SELECT + + ( - SUM ( ALL + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1932
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) AS col0, + 99 AS col1 FROM tab1 AS cor0
----
-3
99

skipif mysql # not compatible
query II rowsort label-1932
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) AS col0, + 99 AS col1 FROM tab1 AS cor0
----
-3
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 96 + - + col0 FROM tab2
----
21
32
50

query III rowsort
SELECT * FROM tab1 WHERE 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + ( col1 ) ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) FROM tab0 WHERE NULL IS NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT - 7 + + - COUNT( * ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - 7 + + - COUNT ( * ) AS col1 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <= - 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, 8 AS col1 FROM tab2 AS cor0
----
46
8
64
8
75
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL + MIN( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + MIN ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 65 FROM tab2 WHERE NOT - col2 <> - 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT col2 DIV col0 * - - col1 AS col2 FROM tab0
----
0
1
243

skipif mysql # not compatible
query I rowsort label-1943
SELECT col2 / col0 * - - col1 AS col2 FROM tab0
----
0
1
243

query I rowsort
SELECT DISTINCT + 97 - + - 53 AS col2 FROM tab0 cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT + + ( 36 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT + + ( 36 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT + 22 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT + 22 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT CAST( NULL AS SIGNED ) / - + ( - col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT CAST ( NULL AS INTEGER ) / - + ( - col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 NOT BETWEEN ( - + 52 ) AND - 99
----

query I rowsort
SELECT ALL ( + 29 ) * col2 * - col2 AS col2 FROM tab1
----
-100949
-134096
-267264

query I rowsort
SELECT ALL col0 - col0 FROM tab0 WHERE NOT - - 48 + + col0 + + - 54 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - 31 FROM tab0 AS cor0
----
-2511
-31
-651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1952
SELECT ( - - col1 ) / - 50 * ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT ( - - col1 ) / - 50 * ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 61 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT + + COUNT( * ) * 90 + - + 31 * + MIN( DISTINCT - - 35 ) FROM tab2 AS cor0
----
-815

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + + COUNT ( * ) * 90 + - + 31 * + MIN ( DISTINCT - - 35 ) FROM tab2 AS cor0
----
-815

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT col2 < NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT DISTINCT CAST( - 97 AS SIGNED ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT CAST ( - 97 AS INTEGER ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1958
SELECT + SUM( - col1 ) DIV COUNT( * ) col2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1958
SELECT + SUM ( - col1 ) / COUNT ( * ) col2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT + - 64 + 67 + + MAX( DISTINCT 39 ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1960
SELECT + - 64 + 67 + + MAX ( DISTINCT 39 ) AS col2 FROM tab0 AS cor0
----
42

query I rowsort
SELECT + ( 13 ) + + col0 FROM tab2 AS cor0
----
59
77
88

query I rowsort
SELECT + 95 + + col2 AS col0 FROM tab0 AS cor0
----
105
142
194

query I rowsort
SELECT + + col2 + - ( col2 ) FROM tab1 AS cor0 WHERE col1 - - 8 + + - 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1964
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( col2 )
----
0

query I rowsort
SELECT ALL - ( col2 ) + + 53 FROM tab1
----
-15
-43
-6

query II rowsort
SELECT DISTINCT 94 + + + col1 * 93, 15 AS col2 FROM tab2
----
4837
15
6325
15
7255
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL COUNT( col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL COUNT ( col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT col1 * + + col1 + 68 + col2 AS col0 FROM tab1
----
152
2345
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1970
SELECT + CAST( COUNT( * ) AS SIGNED ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * 58 + + ( + col1 ) FROM tab1 AS cor0
----
3427
3991
5582

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 66 AND - 41
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 96 * - col0 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT + 17 + - MIN( - + col2 ) AS col2 FROM tab0
----
116

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + 17 + - MIN ( - + col2 ) AS col2 FROM tab0
----
116

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 >= col0
----

query II rowsort
SELECT col1 AS col0, + col1 * - col1 * - 78 FROM tab0 AS cor0
----
1
78
21
34398
81
511758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT DISTINCT + + 92 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + + 92 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 55 col1 FROM tab1 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - + col0 col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT col0 - col1 + + + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT col0 - col1 + + + col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1982
SELECT * FROM tab2 WHERE NOT - CAST( - - 40 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1982
SELECT * FROM tab2 WHERE NOT - CAST ( - - 40 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT + ( + COUNT( - col0 ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1983
SELECT DISTINCT + ( + COUNT ( - col0 ) ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT MAX( DISTINCT - col0 ) * COUNT( ALL - 67 ) + + - 49 + - ( - - COUNT( * ) ) AS col2, COUNT( * ) AS col1 FROM tab0
----
-97
3

skipif mysql # not compatible
query II rowsort label-1984
SELECT MAX ( DISTINCT - col0 ) * COUNT ( ALL - 67 ) + + - 49 + - ( - - COUNT ( * ) ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
-97
3

query I rowsort
SELECT ALL ( + 32 ) AS col1 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> NULL OR NULL <= - - col0 / + ( - - 69 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1988
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + SUM( ALL - col0 ) col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1989
SELECT + SUM ( ALL - col0 ) col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL - 36 * - - SUM( col2 ) * + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-50544

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL - 36 * - - SUM ( col2 ) * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-50544

query II rowsort
SELECT + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( + 55 BETWEEN - + 39 + - col1 * + 92 / + col2 AND - - col1 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT + COUNT( * ) * - 44 AS col1 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT + COUNT ( * ) * - 44 AS col1 FROM tab1 AS cor0
----
-132

query I rowsort
SELECT ALL - col1 + - 76 FROM tab0 cor0
----
-157
-77
-97

query II rowsort
SELECT - 58, + col2 FROM tab1
----
-58
59
-58
68
-58
96

query I rowsort
SELECT DISTINCT - col0 + - 98 AS col1 FROM tab2
----
-144
-162
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( - col1 ) col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL MAX( DISTINCT + 70 ) col0 FROM tab2
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1998
SELECT ALL MAX ( DISTINCT + 70 ) col0 FROM tab2
----
70

query I rowsort
SELECT ALL + 74 + - - 47 AS col0 FROM tab1
----
121
121
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col0, - 46 col2 FROM tab2
----
-23
-46
-40
-46
-58
-46

query I rowsort
SELECT DISTINCT col1 + + + ( - col0 ) AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL col0 + - col1 + - + 8 AS col1 FROM tab1
----
29
36
72

query I rowsort
SELECT ALL 76 + col1 AS col1 FROM tab0
----
157
77
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT DISTINCT CAST( + 31 AS SIGNED ) + - + 74 AS col1 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT CAST ( + 31 AS INTEGER ) + - + 74 AS col1 FROM tab0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT + COUNT( * ) DIV - - ( + COUNT( * ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2005
SELECT + COUNT ( * ) / - - ( + COUNT ( * ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - col2 - - 3 AS col2 FROM tab1
----
-56
-65
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT - 83 - - + MAX( + + col1 ) AS col1 FROM tab1 WHERE NOT - col1 * + col0 + + col1 + + 36 * ( + col2 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT - 83 - - + MAX ( + + col1 ) AS col1 FROM tab1 WHERE NOT - col1 * + col0 + + col1 + + 36 * ( + col2 ) >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2008
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( 25 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2008
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( 25 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2009
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( - CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2009
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 91 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 79 BETWEEN - ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL - col1 * - col1 + - ( - col1 ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + col1 NOT BETWEEN NULL AND + - ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - col1 * - col1 + - ( - col1 ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 NOT BETWEEN NULL AND + - ( + col2 )
----

query II rowsort
SELECT - 60 AS col2, + 81 + + col2 AS col0 FROM tab0
----
-60
128
-60
180
-60
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + col0 ) * - col0 + + col2, 52 col0 FROM tab2 WHERE NOT + - 93 + 32 = - col2
----
-2093
52
-4056
52
-5567
52

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col2 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT - col1 AS col0, 6 AS col1 FROM tab2
----
-51
6
-67
6
-77
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2017
SELECT ALL CAST( NULL AS SIGNED ) AS col2, COUNT( * ) col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2017
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) col0 FROM tab1
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT + + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2018
SELECT + + col2 / col1 AS col2 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT + - 83 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + - 83 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT + - SUM( col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2020
SELECT + - SUM ( col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + - col2 * + + col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL SUM( ALL - col0 ) * COUNT( * ) + - MAX( ALL 67 ) AS col0 FROM tab1
----
-748

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL SUM ( ALL - col0 ) * COUNT ( * ) + - MAX ( ALL 67 ) AS col0 FROM tab1
----
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) * + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) * + - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT + MAX( - + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2024
SELECT + MAX ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT DISTINCT - col2 DIV + + col2 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - col2 / + + col2 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + + 63 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2027
SELECT DISTINCT - col1 DIV - - 18 + col1 FROM tab0 AS cor0 WHERE NOT col1 + - 21 * - col0 IS NULL
----
1
20
77

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT - col1 / - - 18 + col1 FROM tab0 AS cor0 WHERE NOT col1 + - 21 * - col0 IS NULL
----
1
20
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * + col1 AND - - col1
----

query I rowsort
SELECT DISTINCT - + 60 AS col2 FROM tab2 AS cor0
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-2030
SELECT - ( col2 ) DIV + ( + + ( - + col1 ) ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-2030
SELECT - ( col2 ) / + ( + + ( - + col1 ) ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT MIN( ALL + + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT MIN ( ALL + + col2 ) AS col1 FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 WHERE ( 76 <= - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL + COUNT( * ) * - MIN( - + col0 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + COUNT ( * ) * - MIN ( - + col0 ) FROM tab0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 + - col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 - + col2 * 7 AS col2 FROM tab0
----
-248
-49
-692

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT 64 AS col2, + COUNT( * ) col2 FROM tab0 WHERE NULL IS NULL
----
64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2036
SELECT 64 AS col2, + COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL
----
64
3

query I rowsort
SELECT ALL + 18 + + col1 AS col2 FROM tab1
----
23
32
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2038
SELECT DISTINCT + + 66 * + CAST( + COUNT( * ) AS SIGNED ) + - + MIN( 36 ), COUNT( * ) + + COUNT( * ) + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
162
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2038
SELECT DISTINCT + + 66 * + CAST ( + COUNT ( * ) AS INTEGER ) + - + MIN ( 36 ), COUNT ( * ) + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
162
NULL

query I rowsort
SELECT - col2 * + col2 - + col1 FROM tab0 AS cor0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT SUM( ALL + + 1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT SUM ( ALL + + 1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2041
SELECT ALL + + col1 - - CAST( - col2 AS SIGNED ) DIV - col0 AS col0 FROM tab0 AS cor0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + + col1 - - CAST ( - col2 AS INTEGER ) / - col0 AS col0 FROM tab0 AS cor0
----
2
21
84

query I rowsort
SELECT DISTINCT + + ( col0 ) * col1 - 30 - + col1 FROM tab2 WHERE NOT - - col0 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2043
SELECT ALL col2 * - + CAST( col0 AS SIGNED ) - - col1 AS col1, col0 + + + col1 * col0 + col2 FROM tab2
----
-1007
2415
-2483
5032
-4283
5158

skipif mysql # not compatible
query II rowsort label-2043
SELECT ALL col2 * - + CAST ( col0 AS INTEGER ) - - col1 AS col1, col0 + + + col1 * col0 + col2 FROM tab2
----
-1007
2415
-2483
5032
-4283
5158

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 60 + + col1 * + col0 > NULL
----

query II rowsort
SELECT ALL 4, col0 AS col1 FROM tab0 AS cor0
----
4
15
4
87
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2046
SELECT MAX ( + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT - CAST( + - AVG ( - - col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2047
SELECT - CAST ( + - AVG ( - - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT + + ( - 25 ) * - col1 AS col2 FROM tab2 AS cor0 WHERE - col1 <= + + col1
----
1275
1675
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT DISTINCT - CAST( - + 56 AS SIGNED ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - CAST ( - + 56 AS INTEGER ) FROM tab2 AS cor0
----
56

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL > col2 + + + 90 * + col1 * + col1 / col0
----

query I rowsort
SELECT + col1 * + 44 AS col1 FROM tab1 AS cor0
----
2068
220
616

query I rowsort
SELECT DISTINCT - ( + 48 ) FROM tab2
----
-48

query I rowsort
SELECT ( + 8 ) AS col2 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + MIN( DISTINCT - 45 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2054
SELECT + MIN ( DISTINCT - 45 ) FROM tab2 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT MAX( + 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2055
SELECT MAX ( + 43 ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + + COUNT( * ) - - - 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-77

skipif mysql # not compatible
query I rowsort label-2056
SELECT + + COUNT ( * ) - - - 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-77

query I rowsort
SELECT + ( + 67 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT ALL + - CAST( + + 72 AS SIGNED ) FROM tab1 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL + - CAST ( + + 72 AS INTEGER ) FROM tab1 AS cor0
----
-72
-72
-72

query II rowsort
SELECT ALL - + 44, - col0 AS col0 FROM tab0 AS cor0
----
-44
-15
-44
-87
-44
-97

query I rowsort
SELECT + 20 - - - 37 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + - 19 - COUNT( * ) col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2061
SELECT + - 19 - COUNT ( * ) col0 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT - 61 + - col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-2270
-257
-86

query I rowsort
SELECT ALL col0 * + - 82 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT 74 + - MAX( ALL + - col2 ) + - + ( - ( 2 ) ) AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-2064
SELECT 74 + - MAX ( ALL + - col2 ) + - + ( - ( 2 ) ) AS col0 FROM tab2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT 77 + - + 7 DIV + + 23 AS col0 FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-2065
SELECT 77 + - + 7 / + + 23 AS col0 FROM tab2
----
77
77
77

query I rowsort
SELECT DISTINCT + 79 + - 42 FROM tab0
----
37

query II rowsort
SELECT col1 AS col0, - 10 AS col0 FROM tab2 WHERE - 21 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - 12 + COUNT( DISTINCT 76 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2068
SELECT - 12 + COUNT ( DISTINCT 76 ) FROM tab2
----
-11

query I rowsort
SELECT ALL col2 + - ( + col2 ) + 84 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + col1 + 77 FROM tab2
----
151
194
202

query I rowsort
SELECT col0 * - col2 + + - col2 * + 61 FROM tab0
----
-1480
-15642
-3572

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2072
SELECT * FROM tab0 cor0 WHERE CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2072
SELECT * FROM tab0 cor0 WHERE CAST ( - col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL + SUM( + ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + SUM ( + ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + - col1 * col1 * + ( - + 25 ) * - ( - 8 ) FROM tab0 AS cor0
----
1312200
200
88200

query I rowsort
SELECT 86 * - col0 AS col2 FROM tab1
----
-4386
-7310
-7826

query I rowsort
SELECT ALL col2 * col1 * + 8 AS col0 FROM tab1 AS cor0
----
10752
2360
25568

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2077
SELECT ALL * FROM tab0 cor0 WHERE 54 + col1 * + ( CAST( NULL AS SIGNED ) ) NOT BETWEEN - col1 AND - - col1 * col1 * + col1 * CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2077
SELECT ALL * FROM tab0 cor0 WHERE 54 + col1 * + ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN - col1 AND - - col1 * col1 * + col1 * CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT COUNT( + - 86 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2078
SELECT COUNT ( + - 86 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2079
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2079
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT DISTINCT + 46 DIV + - 48 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + 46 / + - 48 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2081
SELECT ALL CAST( NULL AS SIGNED ), + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2081
SELECT ALL CAST ( NULL AS INTEGER ), + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2082
SELECT CAST( NULL AS DECIMAL ), col2 * - col1 * col0 - col0 AS col0 FROM tab2
----
NULL
-197184
NULL
-291525
NULL
-54004

skipif mysql # not compatible
query II rowsort label-2082
SELECT CAST ( NULL AS REAL ), col2 * - col1 * col0 - col0 AS col0 FROM tab2
----
NULL
-197184
NULL
-291525
NULL
-54004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + col1 + - col1 * - 76 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + col1 + - col1 * - 76 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + 60 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT + ( + 54 ) AS col2 FROM tab2
----
54
54
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 96 * 19 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT + CAST( - 12 AS SIGNED ) + col0 FROM tab1 AS cor0
----
39
73
79

skipif mysql # not compatible
query I rowsort label-2089
SELECT + CAST ( - 12 AS INTEGER ) + col0 FROM tab1 AS cor0
----
39
73
79

query I rowsort
SELECT + - 10 + - col0 + - col0 + 88 AS col1 FROM tab2 AS cor0
----
-14
-50
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 75 + + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 70 + col2 * - 45 AS col1 FROM tab0 AS cor0
----
-2185
-4525
-520

query I rowsort
SELECT ALL - + 91 - + 4 FROM tab2 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL + MIN( - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + MIN ( - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT + col0 * + ( - ( - + col1 ) ) * - col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 < + col1
----
97
1
99

query I rowsort
SELECT - + col1 FROM tab2 WHERE + + 83 - col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT + col1 DIV + col0 - 78 - col0 * - + 53 FROM tab1
----
2625
4427
4745

skipif mysql # not compatible
query I rowsort label-2098
SELECT + col1 / + col0 - 78 - col0 * - + 53 FROM tab1
----
2625
4427
4745

query I rowsort
SELECT DISTINCT col0 + - 56 AS col2 FROM tab0
----
-41
31
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - - col2 + col0 * - col0 * + 56 * - - ( 97 ) * + + 12 + col1 col2 FROM tab2
----
-137929339
-266993667
-366660049

query I rowsort
SELECT ALL + 63 AS col1 FROM tab0 WHERE NULL BETWEEN - 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL COUNT( DISTINCT + + 90 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL COUNT ( DISTINCT + + 90 ) FROM tab1
----
1

query I rowsort
SELECT ALL + col2 + col1 * + col2 + 72 FROM tab0
----
270
292
3926

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 90 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 + - col0 + - - 36 col1 FROM tab0
----
14
24
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT + col2 DIV 94 - col0 + 90 AS col0 FROM tab2
----
15
26
44

skipif mysql # not compatible
query I rowsort label-2106
SELECT + col2 / 94 - col0 + 90 AS col0 FROM tab2
----
15
26
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT + + CAST( - 94 AS SIGNED ) FROM tab0 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-2107
SELECT + + CAST ( - 94 AS INTEGER ) FROM tab0 AS cor0
----
-94
-94
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - + 38
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2109
SELECT DISTINCT col1 DIV + col1 AS col0, - col0 + - 31 - - + 5 FROM tab1
----
1
-111
1
-117
1
-77

skipif mysql # not compatible
query II rowsort label-2109
SELECT DISTINCT col1 / + col1 AS col0, - col0 + - 31 - - + 5 FROM tab1
----
1
-111
1
-117
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - COUNT( * ) * + ( + 60 ) FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-2110
SELECT - COUNT ( * ) * + ( + 60 ) FROM tab2
----
-180

query I rowsort
SELECT ALL - col0 * col0 + - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-2185
-4200
-5758

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * - 68 + + 83 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT DISTINCT + 47 DIV + 14 + + ( + 46 ) + + - col2 col1 FROM tab1 cor0
----
-10
-19
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2113
SELECT DISTINCT + 47 / + 14 + + ( + 46 ) + + - col2 col1 FROM tab1 cor0
----
-10
-19
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * + - col0 col0 FROM tab1 AS cor0
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT MIN( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2115
SELECT MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT + COUNT( * ) FROM tab1 WHERE NOT - - 38 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2116
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - - 38 IS NULL
----
3

query I rowsort
SELECT - 85 * + ( col2 ) FROM tab1
----
-5015
-5780
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL + COUNT( * ) + + - 82 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + COUNT ( * ) + + - 82 FROM tab1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2119
SELECT COUNT( ALL - CAST( col0 AS DECIMAL ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2119
SELECT COUNT ( ALL - CAST ( col0 AS REAL ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT + COUNT( * ) * - 4 AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-2120
SELECT + COUNT ( * ) * - 4 AS col2 FROM tab1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT DISTINCT 12 DIV - col1 AS col0 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT 12 / - col1 AS col0 FROM tab1
----
-2
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT + + 98 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, - 58 - + - col0 FROM tab1
----
-51
-7
-85
27
-91
33

query I rowsort
SELECT + col0 * + ( col2 ) * 73 FROM tab2
----
186880
317550
77234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col1 FROM tab2
----
19

query I rowsort
SELECT + 33 + - 62 + col2 AS col2 FROM tab1
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ALL COUNT( - 25 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL COUNT ( - 25 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT 48 + - + 71 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1585
-2792
-4070

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 * - 92 AS col0 FROM tab1 AS cor0
----
51
-8832
85
-5428
91
-6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT CAST( NULL AS SIGNED ) * - ( + col1 ) * - - ( col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT CAST ( NULL AS INTEGER ) * - ( + col1 ) * - - ( col2 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT MIN( + 97 ) + + SUM( - + col0 ) AS col2 FROM tab1
----
-130

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT MIN ( + 97 ) + + SUM ( - + col0 ) AS col2 FROM tab1
----
-130

query I rowsort
SELECT + col1 FROM tab1 WHERE col2 = + - 98
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2134
SELECT ALL CAST( NULL AS DECIMAL ) + - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL CAST ( NULL AS REAL ) + - - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT + - col1 - + col2 + - col1 DIV 45 AS col2 FROM tab0 cor0
----
-100
-129
-31

skipif mysql # not compatible
query I rowsort label-2135
SELECT + - col1 - + col2 + - col1 / 45 AS col2 FROM tab0 cor0
----
-100
-129
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 col2, 78 + - 46 - + - 4 * - 94 AS col1 FROM tab2 AS cor0
----
-52
-344
-52
-344
-52
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT - 72 * - + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2137
SELECT - 72 * - + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
219

query II rowsort
SELECT ALL - - col0, - 93 * + col0 AS col2 FROM tab1 AS cor0
----
51
-4743
85
-7905
91
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - 98 + + SUM( ALL - - ( col2 ) ) * + SUM( ALL - - 53 ) AS col2 FROM tab2 AS cor0
----
19141

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 98 + + SUM ( ALL - - ( col2 ) ) * + SUM ( ALL - - 53 ) AS col2 FROM tab2 AS cor0
----
19141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 = 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT + + 84 * + 82 * - CAST( NULL AS SIGNED ) * - + 45 AS col1 FROM tab0 WHERE - 67 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2141
SELECT + + 84 * + 82 * - CAST ( NULL AS INTEGER ) * - + 45 AS col1 FROM tab0 WHERE - 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + COUNT( * ) + + COUNT( * ) + - ( + - COUNT( * ) ) * - - 83 AS col0 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - ( + - COUNT ( * ) ) * - - 83 AS col0 FROM tab0
----
255

query I rowsort
SELECT + 38 + + ( col1 ) FROM tab0
----
119
39
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT col2 * - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2144
SELECT col2 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT ( COUNT( * ) ) * ( - MIN( DISTINCT col2 ) ) col2, - 87 FROM tab2
----
-69
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2145
SELECT ( COUNT ( * ) ) * ( - MIN ( DISTINCT col2 ) ) col2, - 87 FROM tab2
----
-69
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ALL - + CAST( + 50 AS SIGNED ) FROM tab0 cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - + CAST ( + 50 AS INTEGER ) FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + 44 * + COUNT( * ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2147
SELECT + 44 * + COUNT ( * ) FROM tab0 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT + COUNT( + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + COUNT ( + col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT + ( - MIN( col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2149
SELECT + ( - MIN ( col1 ) ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT MAX( ALL + - col0 ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2150
SELECT MAX ( ALL + - col0 ) col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col0 col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL + ( ( col0 ) ) * + + col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + - ( - - col0 ) * + col1 + + col2 FROM tab2 cor0
----
-2323
-4888
-4967

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT - ( + - 39 ) DIV col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT - ( + - 39 ) / col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT - col0 * - + col2 * - col1 * + col2 * - + col0 + 32 FROM tab2
----
1267807532
504627232
57087596

query I rowsort
SELECT ALL + col2 + 6 AS col1 FROM tab1
----
102
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 WHERE - col0 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 WHERE - col0 * + col0 IS NULL
----

query I rowsort
SELECT ALL - + 99 * + 83 + - ( - - col2 ) - - + ( + 19 ) * + 71 FROM tab2 AS cor0
----
-6891
-6908
-6926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT - COUNT( - + col2 ) DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2161
SELECT - COUNT ( - + col2 ) / - COUNT ( * ) AS col1 FROM tab0 cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 39 ) * + + col1 / ( 80 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + + COUNT( ALL + col0 ) AS col0 FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT + + COUNT ( ALL + col0 ) AS col0 FROM tab1 WHERE NULL = NULL
----
0

query I rowsort
SELECT 69 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT 82 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 94 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col2 < NULL )
----

query I rowsort
SELECT + 74 - + 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT ALL + 55 + - col1 AS col2 FROM tab0 AS cor0
----
-26
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT ALL + + 81 DIV col1 - col1 AS col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + + 81 / col1 - col1 AS col1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT DISTINCT - col1 + + 2 FROM tab0 AS cor0
----
-19
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + COUNT( + - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2172
SELECT + COUNT ( + - col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT 98 * COUNT( * ) + - + COUNT( * ) col2 FROM tab0 cor0 WHERE + col1 * - col0 * - + col2 IS NOT NULL
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2173
SELECT 98 * COUNT ( * ) + - + COUNT ( * ) col2 FROM tab0 cor0 WHERE + col1 * - col0 * - + col2 IS NOT NULL
----
291

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 87 * col0, + 27 * - 71 - - col2 AS col2 FROM tab1
----
4437
-1821
7395
-1858
7917
-1849

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2176
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - + - col0 / - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2176
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - + - col0 / - CAST ( col2 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL 40 AS col0, 7 FROM tab1
----
40
7
40
7
40
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT col0 DIV - 42 col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2178
SELECT col0 / - 42 col0 FROM tab0
----
-2
-2
0

query I rowsort
SELECT - - col2 * - col2 - col1 * - - col0 AS col0 FROM tab0 WHERE NOT - col2 BETWEEN col0 * + + 78 * - ( + + 21 ) + - col2 + - - 93 + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * - 71 col1 FROM tab0
----
-3763
-3763
-3763

query I rowsort
SELECT - - col0 - + col1 + + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col2 * - + col2 AND 77
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <> + 27 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2184
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + CAST( NULL AS SIGNED ) * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2184
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + 79 <> + ( + col0 ) - + ( col1 )
----

query I rowsort
SELECT 22 * + 28 AS col2 FROM tab2
----
616
616
616

query I rowsort
SELECT - col2 * + col1 * col1 * - 3 * ( 97 ) FROM tab0 AS cor0
----
1283310
28809
89734797

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + 42 * - + col2 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2189
SELECT ALL col1 DIV + col2 + - 12, + col2 + - col1 + - 50 AS col2 FROM tab0
----
-10
-61
-11
-84
-12
48

skipif mysql # not compatible
query II rowsort label-2189
SELECT ALL col1 / + col2 + - 12, + col2 + - col1 + - 50 AS col2 FROM tab0
----
-10
-61
-11
-84
-12
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT COUNT( * ), + 67 AS col0 FROM tab2
----
3
67

skipif mysql # not compatible
query II rowsort label-2190
SELECT COUNT ( * ), + 67 AS col0 FROM tab2
----
3
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT col0 + col0 + - - col2 DIV + col0 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-2191
SELECT col0 + col0 + - - col2 / + col0 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT 92 + - 40 FROM tab2
----
52

query I rowsort
SELECT DISTINCT 59 + col1 AS col0 FROM tab1
----
106
64
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + - 15 col1 FROM tab1
----
23
23
23

query II rowsort
SELECT DISTINCT - + col1, col2 AS col0 FROM tab1 cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT col0 * col0 + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT col0 * col0 + col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL COUNT( * ) * + 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL COUNT ( * ) * + 56 FROM tab1
----
168

query I rowsort
SELECT ALL col0 - 75 FROM tab1
----
-24
10
16

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col0 / col2 )
----

query I rowsort
SELECT ALL - col2 + col1 * 77 AS col0 FROM tab1
----
326
3551
982

query I rowsort
SELECT DISTINCT ( + col0 ) * 70 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT DISTINCT col2 + + col1 * col1 AS col1 FROM tab0
----
100
451
6608

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col2 >= ( + 58 * col1 )
----
59
68
96

query I rowsort
SELECT 18 FROM tab1 WHERE ( + col1 * ( - 96 ) ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT CAST( - 44 AS SIGNED ) FROM tab0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-2205
SELECT CAST ( - 44 AS INTEGER ) FROM tab0
----
-44
-44
-44

query I rowsort
SELECT - 59 + col1 / + col0 FROM tab0 WHERE ( + col1 * 54 ) < - 4
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 77 + + col2 ) = ( col1 / 83 )
----
3

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 77 + + col2 ) = ( col1 / 83 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ( COUNT( * ) ) + AVG ( - col0 ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT ( COUNT ( * ) ) + AVG ( - col0 ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL 16 FROM tab0 WHERE NOT ( 71 ) IS NOT NULL
----

query I rowsort
SELECT - 42 + 56 * col0 FROM tab0
----
4830
5390
798

query I rowsort
SELECT + col1 * col1 - + col0 FROM tab0
----
-96
354
6546

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col0 + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT COUNT( * ) + - AVG ( ALL ( 32 ) ) FROM tab0 WHERE NOT - col1 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT COUNT ( * ) + - AVG ( ALL ( 32 ) ) FROM tab0 WHERE NOT - col1 + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 53 ) = ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2217
SELECT ALL * FROM tab0 WHERE - CAST( + col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2217
SELECT ALL * FROM tab0 WHERE - CAST ( + col2 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT - 41 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL + MIN( - 25 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + MIN ( - 25 ) FROM tab2 AS cor0
----
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND ( col0 - + 25 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT 35 / ( + SUM( - 72 ) ) FROM tab0 WHERE CAST( - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) / 72 >= + col0 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT 35 / ( + SUM ( - 72 ) ) FROM tab0 WHERE CAST ( - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) / 72 >= + col0 * + col2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - 89 AS col1 FROM tab1 AS cor0
----
-148
-157
-185

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 30 )
----

query I rowsort
SELECT - + 75 + + col2 AS col2 FROM tab2 cor0
----
-17
-35
-52

query I rowsort
SELECT + col0 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT 88 + col0 AS col0 FROM tab0 AS cor0
----
103
175
185

query I rowsort
SELECT 89 + - col1 AS col1 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT + 44 + 97 FROM tab0 AS cor0
----
141
141
141

query I rowsort
SELECT - - col0 * col1 + - col2 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT DISTINCT - 55 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT - col1 + 40 DIV col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2232
SELECT - col1 + 40 / col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( + col1 )
----
51
85
91

query I rowsort
SELECT 40 + 99 FROM tab0 AS cor0
----
139
139
139

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2 * col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 17 BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col2 / + 84 + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2239
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( 71 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2239
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( 71 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE ( 30 + - 50 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT ALL 17 * 70 + + COUNT( * ) DIV - 64 FROM tab0
----
1190

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL 17 * 70 + + COUNT ( * ) / - 64 FROM tab0
----
1190

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT ALL + col0 + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + col0 + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT DISTINCT 68 - col1 DIV + col2 FROM tab2
----
66
67

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT 68 - col1 / + col2 FROM tab2
----
66
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2245
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2245
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 76 AS col0 FROM tab0 cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT + 87 - - + COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2248
SELECT + 87 - - + COUNT ( * ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL + + MIN( col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + + MIN ( col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + col1 * + 55 + 40 FROM tab0 AS cor0
----
1195
4495
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - + COUNT( * ) - ( + 46 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-55

skipif mysql # not compatible
query I rowsort label-2251
SELECT - + COUNT ( * ) - ( + 46 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-55

query I rowsort
SELECT DISTINCT 89 * + col2 AS col0 FROM tab0
----
4183
8811
890

query I rowsort
SELECT 74 + + 47 + - col2 FROM tab1
----
25
53
62

query I rowsort
SELECT DISTINCT col1 + + - col2 * - 79 FROM tab0
----
3794
7822
811

query II rowsort
SELECT - + 33 AS col1, - col2 FROM tab1 AS cor0
----
-33
-59
-33
-68
-33
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL MAX( + 1 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL MAX ( + 1 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - - MIN( - 58 ) AS col0 FROM tab1 AS cor0 WHERE NOT 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT - - MIN ( - 58 ) AS col0 FROM tab1 AS cor0 WHERE NOT 27 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2258
SELECT COUNT( * ), + 32 AS col2 FROM tab1 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-2258
SELECT COUNT ( * ), + 32 AS col2 FROM tab1 AS cor0
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT - MAX( ALL ( - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - MAX ( ALL ( - col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT ALL - COUNT( * ) AS col2, - 15 FROM tab2 AS cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL - COUNT ( * ) AS col2, - 15 FROM tab2 AS cor0
----
-3
-15

query I rowsort
SELECT ALL 40 * 2 FROM tab0 AS cor0
----
80
80
80

query II rowsort
SELECT col0 AS col1, - col2 AS col2 FROM tab0 cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT + + COUNT( * ) * + ( + 1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + + COUNT ( * ) * + ( + 1 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 64 * + - col1 AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2265
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( + col2 / ( + CAST( - col1 AS DECIMAL ) ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-2265
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( + col2 / ( + CAST ( - col1 AS REAL ) ) ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2266
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( CAST( NULL AS SIGNED ) / col0 + + 37 ) AND 15 * - 44
----

skipif mysql # not compatible
query III rowsort label-2266
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( CAST ( NULL AS INTEGER ) / col0 + + 37 ) AND 15 * - 44
----

query I rowsort
SELECT DISTINCT 21 * + col2 FROM tab1
----
1239
1428
2016

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1 WHERE NULL > 17 * - col1 * 8 + col0 + - col1 * + col2
----

query II rowsort
SELECT DISTINCT col2 * col0, col1 + + - col0 - - col2 AS col1 FROM tab1
----
4896
59
5015
-21
6188
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( col2 ) col0 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( - col1 ) ) BETWEEN + col1 AND ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT ALL col1 DIV col1 * - 2 * + col1 FROM tab0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL col1 / col1 * - 2 * + col1 FROM tab0
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT ALL + ( + col0 ) DIV + col2 AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + ( + col0 ) / + col2 AS col1 FROM tab0
----
0
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2274
SELECT * FROM tab2 WHERE NOT - + CAST( - + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2274
SELECT * FROM tab2 WHERE NOT - + CAST ( - + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT 35 DIV 71 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT 35 / 71 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 60 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT + CAST( NULL AS SIGNED ) * + - col0 * + + col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT + CAST ( NULL AS INTEGER ) * + - col0 * + + col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 29 ) FROM tab0 WHERE NOT + 92 - + col1 * - col2 BETWEEN ( - col2 ) AND col1
----
29
29
29

query I rowsort
SELECT - 77 * + col0 FROM tab0 cor0
----
-1155
-6699
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 77 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77

query I rowsort
SELECT ALL + ( 71 ) * + col1 + + col0 FROM tab2 AS cor0
----
3667
4832
5531

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IN ( 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT COUNT( * ) * MIN( - 75 ) col0 FROM tab1 WHERE NULL NOT IN ( + - ( col1 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2283
SELECT DISTINCT COUNT ( * ) * MIN ( - 75 ) col0 FROM tab1 WHERE NULL NOT IN ( + - ( col1 ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
97

query I rowsort
SELECT + col2 FROM tab1 WHERE - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL - + MAX( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - + MAX ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1 + + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 + col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - COUNT( col2 ) * + - 1 AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2289
SELECT - COUNT ( col2 ) * + - 1 AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2290
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND + CAST( NULL AS SIGNED ) + + col1 + col0
----

skipif mysql # not compatible
query III rowsort label-2290
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND + CAST ( NULL AS INTEGER ) + + col1 + col0
----

query I rowsort
SELECT DISTINCT col1 + col2 + col0 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT - col0 - + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 90 + + + col0 AS col0 FROM tab1 cor0
----
141
175
181

query I rowsort
SELECT - 66 + col2 + - + 12 + - col2 FROM tab1
----
-78
-78
-78

query I rowsort
SELECT + 12 * + col0 + col2 AS col2 FROM tab2
----
575
808
958

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - COUNT( * ) - SUM( + + 69 ) * + 3 col1 FROM tab0, tab1 AS cor0
----
-1872

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2296
SELECT - COUNT ( * ) - SUM ( + + 69 ) * + 3 col1 FROM tab0, tab1 AS cor0
----
-1872

query I rowsort
SELECT DISTINCT col1 * - col2 + - 18 FROM tab0
----
-117
-228
-3825

query III rowsort
SELECT * FROM tab0 WHERE + + col1 - 84 IS NULL
----

query I rowsort
SELECT DISTINCT - 38 - + 13 FROM tab2
----
-51

query I rowsort
SELECT 72 - - - col1 AS col2 FROM tab1
----
25
58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - + col1 ) + + 24 col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2301
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - + col1 ) + + 24 col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * + + col2 + + 2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 35 )
----

query II rowsort
SELECT ( + col0 ), 94 AS col1 FROM tab2 AS cor0 WHERE NOT col0 = + col2
----
46
94
64
94
75
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 22 - + ( + - col2 ) NOT BETWEEN + col0 AND - + 11
----

query I rowsort
SELECT ALL col1 * col2 + + - col2 * + col2 * + col0 FROM tab2 AS cor0
----
-23161
-248414
-99320

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT ALL - - col1 DIV col0 + 55 AS col1 FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - - col1 / col0 + 55 AS col1 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT - col2 * + + col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ( + + col1 ) FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - + COUNT( + 10 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2310
SELECT - + COUNT ( + 10 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - MIN( + + ( col0 ) ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT - MIN ( + + ( col0 ) ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 35 + + 99 * + + col0 FROM tab0 WHERE NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL + ( ( + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + ( ( + COUNT ( * ) ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 18 ) col2 FROM tab1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2315
SELECT ALL - - COUNT( * ) DIV + 73 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL - - COUNT ( * ) / + 73 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT 96 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2316
SELECT 96 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT - COUNT( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT - COUNT ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col2 + - - 99 FROM tab0
----
109
146
198

query I rowsort
SELECT ALL 61 FROM tab1, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 73 * ( + - ( - - col2 ) ) * col1 BETWEEN ( NULL ) AND ( col1 ) )
----

query I rowsort
SELECT DISTINCT + 55 + + 73 FROM tab0 AS cor0
----
128

query I rowsort
SELECT - col0 + + - 41 + - + 28 * + 5 + + - 63 FROM tab2 AS cor0
----
-290
-308
-319

query II rowsort
SELECT + col1 + - col0 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
-8
58
13
40
5
23

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE 23 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2325
SELECT col1 + col0, + 91 DIV col2 AS col1 FROM tab2 AS cor0
----
141
2
142
1
97
3

skipif mysql # not compatible
query II rowsort label-2325
SELECT col1 + col0, + 91 / col2 AS col1 FROM tab2 AS cor0
----
141
2
142
1
97
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 1 / + col0 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT ALL + 22 - col0 + col0 DIV + + col1 AS col0 FROM tab1 AS cor0
----
-26
-46
-68

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + 22 - col0 + col0 / + + col1 AS col0 FROM tab1 AS cor0
----
-26
-46
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT DISTINCT - col1 - 67 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - col1 - 67 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 < - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2329
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * + col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2329
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT DISTINCT + 39 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT + 39 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + 37 + + 96 FROM tab1
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2332
SELECT DISTINCT * FROM tab0 WHERE - - col1 IN ( + - 94 * + CAST( NULL AS SIGNED ), - col2 * - 59, + + 61 * - 67 )
----

skipif mysql # not compatible
query III rowsort label-2332
SELECT DISTINCT * FROM tab0 WHERE - - col1 IN ( + - 94 * + CAST ( NULL AS INTEGER ), - col2 * - 59, + + 61 * - 67 )
----

query I rowsort
SELECT ALL col2 * - col0 / 60 - - - col1 FROM tab0 WHERE NULL > ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT - 10 + - COUNT( * ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - 10 + - COUNT ( * ) AS col2 FROM tab2
----
-13

query I rowsort
SELECT col1 - + col1 * - - 60 AS col2 FROM tab1
----
-2773
-295
-826

query I rowsort
SELECT DISTINCT col0 + - + 93 * + col2 + - + col1 + + col2 FROM tab1
----
-5348
-6212
-8795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT DISTINCT ( - 48 ) * COUNT( * ) - COUNT( * ) * COUNT( * ) * COUNT( * ) / - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT ( - 48 ) * COUNT ( * ) - COUNT ( * ) * COUNT ( * ) * COUNT ( * ) / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( ( col0 + col0 + - + col2 * + - 60 ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT COUNT( + 88 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT COUNT ( + 88 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 42 * + col1 FROM tab1 AS cor0
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - SUM( DISTINCT - + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2341
SELECT - SUM ( DISTINCT - + col0 ) AS col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT CAST( - 35 AS SIGNED ) FROM tab1
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-2342
SELECT CAST ( - 35 AS INTEGER ) FROM tab1
----
-35
-35
-35

query I rowsort
SELECT ALL 81 * + - col2 AS col2 FROM tab1
----
-4779
-5508
-7776

query I rowsort
SELECT DISTINCT + + ( - col2 ) * + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + 42 + + ( - MIN( ALL + col0 ) ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 94 * - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT + 42 + + ( - MIN ( ALL + col0 ) ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 94 * - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2346
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2346
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 * - 91 + - 26 AS col2 FROM tab2 AS cor0
----
232934
395824
96252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT ALL - CAST( + + MAX( ALL 52 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - CAST ( + + MAX ( ALL 52 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-52

query I rowsort
SELECT ALL - 71 * - + col0 * + 40 FROM tab2
----
130640
181760
213000

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + ( + ( + ( - COUNT( * ) ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2350
SELECT + ( + ( + ( - COUNT ( * ) ) ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT MAX( - + 6 ) * COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2351
SELECT MAX ( - + 6 ) * COUNT ( * ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL 82 + ( + COUNT( * ) ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL 82 + ( + COUNT ( * ) ) FROM tab1
----
85

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) BETWEEN NULL AND 32
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL + col0 * + 27 * + CAST( - 43 AS SIGNED ) AS col1 FROM tab0
----
-101007
-112617
-17415

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + col0 * + 27 * + CAST ( - 43 AS INTEGER ) AS col1 FROM tab0
----
-101007
-112617
-17415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col1 + + - 27 * - 22 IS NULL
----

query I rowsort
SELECT ALL + col0 - - 3 AS col2 FROM tab1
----
54
88
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT col0 / - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE col0 * + 62 NOT IN ( + CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + - 68 )
----

skipif mysql # not compatible
query I rowsort label-2358
SELECT col0 / - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE col0 * + 62 NOT IN ( + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - 68 )
----

query I rowsort
SELECT - col0 - + - 13 AS col0 FROM tab2 AS cor0
----
-33
-51
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL - - MIN( col1 ) FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - - MIN ( col1 ) FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----
NULL

query I rowsort
SELECT ALL - - col1 * - col0 * - 56 - - col2 FROM tab2 AS cor0
----
131399
276008
281458

query II rowsort
SELECT + - col1 * 40 - 66, col2 AS col2 FROM tab1 AS cor0
----
-1946
68
-266
59
-626
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT + - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col1 * + col0 + + col1 + + col2 FROM tab0 AS cor0
----
1343
1858
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT + CAST( - col2 AS SIGNED ) + 4 AS col2 FROM tab2 AS cor0
----
-19
-36
-54

skipif mysql # not compatible
query I rowsort label-2366
SELECT + CAST ( - col2 AS INTEGER ) + 4 AS col2 FROM tab2 AS cor0
----
-19
-36
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) * 74 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) * 74 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( - col2 ) + 65 FROM tab1
----
-3
-31
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL 68 * 77 + - COUNT( * ) FROM tab0
----
5233

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL 68 * 77 + - COUNT ( * ) FROM tab0
----
5233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT ALL 91 + + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL 91 + + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
94

query II rowsort
SELECT ALL + - 81 AS col1, col1 + - 95 AS col0 FROM tab2 WHERE ( col0 ) > + col2
----
-81
-18
-81
-28
-81
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT - - ( - SUM( + + col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2372
SELECT - - ( - SUM ( + + col0 ) ) FROM tab0 AS cor0
----
-199

query II rowsort
SELECT DISTINCT ( - col2 ), col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query II rowsort
SELECT ALL 4 * 49 AS col1, + ( - col2 ) FROM tab0 cor0
----
196
-10
196
-47
196
-99

query II rowsort
SELECT + col2, - col2 * + col0 FROM tab2 AS cor0 WHERE NOT 26 * - 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT DISTINCT + COUNT( * ) col0, - ( + - MIN( ALL - ( - + ( + col1 ) ) ) ) - - COUNT( * ) FROM tab2
----
3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2376
SELECT DISTINCT + COUNT ( * ) col0, - ( + - MIN ( ALL - ( - + ( + col1 ) ) ) ) - - COUNT ( * ) FROM tab2
----
3
54

query I rowsort
SELECT + - 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT - 68 * - + col1 + - 79 + + - col1 DIV + col2 AS col0 FROM tab2 cor0
----
3387
4476
5156

skipif mysql # not compatible
query I rowsort label-2378
SELECT - 68 * - + col1 + - 79 + + - col1 / + col2 AS col0 FROM tab2 cor0
----
3387
4476
5156

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT + - COUNT( ALL col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + - COUNT ( ALL col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 + + col2 + - + col1 FROM tab2 cor0 WHERE ( NULL ) <= + + col1 * + + 48 + 28 + - + 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 83 ) + - 45 col2 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2382
SELECT - + CAST( NULL AS SIGNED ) * + 61 + + CAST( col0 AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT - + CAST ( NULL AS INTEGER ) * + 61 + + CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT DISTINCT col2 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT col2 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + - col0 col1 FROM tab1 WHERE NOT col1 * - + col0 + - + col0 + 60 * + - col1 / - col0 < 90
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + 71 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 48 + - + col0 AS col2, col0 * col0 FROM tab2
----
-112
4096
-123
5625
-94
2116

query I rowsort
SELECT - ( + 26 ) * + - 67 AS col0 FROM tab0 AS cor0
----
1742
1742
1742

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( col1 / col1, + 83 )
----

query I rowsort
SELECT - 92 * - 57 + - col2 AS col0 FROM tab0 AS cor0
----
5145
5197
5234

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT DISTINCT - col0 DIV - + 91 col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2390
SELECT DISTINCT - col0 / - + 91 col0 FROM tab0 AS cor0
----
0
1

query II rowsort
SELECT DISTINCT + 90 AS col1, - col0 + 67 AS col2 FROM tab1 AS cor0
----
90
-18
90
-24
90
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT - 65 + + + COUNT( * ) AS col1 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT - 65 + + + COUNT ( * ) AS col1 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - 39 + - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 39 + - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-48

query I rowsort
SELECT + 62 + 98 AS col2 FROM tab2 AS cor0
----
160
160
160

query I rowsort
SELECT - 37 * col0 FROM tab1 cor0
----
-1887
-3145
-3367

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <= + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2397
SELECT DISTINCT col1 - - col0, CAST( + - 33 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
108
-33
96
-33
98
-33

skipif mysql # not compatible
query II rowsort label-2397
SELECT DISTINCT col1 - - col0, CAST ( + - 33 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
108
-33
96
-33
98
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL 14 * COUNT( * ) col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2398
SELECT ALL 14 * COUNT ( * ) col1 FROM tab2 AS cor0
----
42

query II rowsort
SELECT ALL + + col0 * - 43, + col2 FROM tab2 AS cor0
----
-1978
23
-2752
40
-3225
58

query I rowsort
SELECT ALL + + 32 * - col0 AS col2 FROM tab2 cor0
----
-1472
-2048
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT DISTINCT + + col1 * 3 DIV - col1 col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT DISTINCT + + col1 * 3 / - col1 col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL SUM( - 66 ) - + ( + + SUM( - col2 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL SUM ( - 66 ) - + ( + + SUM ( - col2 ) ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - col1 * 76 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT DISTINCT - ( - - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 74 col2 FROM tab0
----
1554
5994
74

query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) AS col1 FROM tab2
----
-2346
-4928
-5025

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE - 61 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2408
SELECT ALL - 15 DIV + - COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - 15 / + - COUNT ( * ) FROM tab1
----
5

query I rowsort
SELECT - + 26 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT + + ( + CAST( 31 AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT - + 69 IS NULL
----
31
31
31

skipif mysql # not compatible
query I rowsort label-2410
SELECT + + ( + CAST ( 31 AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT - + 69 IS NULL
----
31
31
31

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + + 86 / + col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - 89 * - + col1 FROM tab1
----
1246
4183
445

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + 14 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2415
SELECT SUM( CAST( - 47 AS SIGNED ) ) AS col1 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-2415
SELECT SUM ( CAST ( - 47 AS INTEGER ) ) AS col1 FROM tab0
----
-141

query II rowsort
SELECT col0, + 41 FROM tab1
----
51
41
85
41
91
41

query I rowsort
SELECT + col0 * + - 55 + + + 92 * col1 * col1 FROM tab0
----
-5243
35787
602787

query I rowsort
SELECT - 87 + - 1 - + + col0 + - col2 * + col1 * - 54 FROM tab0
----
11165
205475
5161

query I rowsort
SELECT - col0 + - 45 AS col0 FROM tab2
----
-109
-120
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2420
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 79 - + 8 AS col0 FROM tab2 AS cor0
----
71
71
71

query II rowsort
SELECT ALL - + 38 + col1 AS col1, col2 FROM tab0 AS cor0
----
-17
10
-37
99
43
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL + MIN( ALL - 4 ) * 20 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + MIN ( ALL - 4 ) * 20 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT + col1 + - 60 AS col0 FROM tab2 AS cor0
----
-9
17
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT - ( - COUNT( * ) ) + + 23 AS col0 FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2425
SELECT - ( - COUNT ( * ) ) + + 23 AS col0 FROM tab2 cor0
----
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + - col1 + ( + - col2 ) <> + 98
----

query I rowsort
SELECT ALL + - col1 - + + 87 FROM tab0 cor0
----
-108
-168
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT MIN( 40 ) AS col2 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2428
SELECT MIN ( 40 ) AS col2 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL 92 * + COUNT( + col2 ) AS col0 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL 92 * + COUNT ( + col2 ) AS col0 FROM tab1
----
276

query I rowsort
SELECT ALL + 81 * + - 90 FROM tab2
----
-7290
-7290
-7290

query I rowsort
SELECT DISTINCT col1 * - 44 FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT ALL col0 + ( - col0 ) AS col1 FROM tab2 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT MIN( col2 ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-2434
SELECT MIN ( col2 ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2435
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( - + col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2435
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( - + col1 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + ( - 52 ) ) FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col0 - + 68 NOT BETWEEN col2 + col1 AND NULL
----

query II rowsort
SELECT - 40 * - col0 * + col2 * + + col0 * col2, + 98 * - 40 AS col2 FROM tab2 AS cor0
----
262144000
-3920
44774560
-3920
756900000
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL + COUNT( * ) + + + 50 AS col0 FROM tab1 AS cor0 WHERE ( + 9 IS NULL )
----
50

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + COUNT ( * ) + + + 50 AS col0 FROM tab1 AS cor0 WHERE ( + 9 IS NULL )
----
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT col0 <= + + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL + SUM( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + SUM ( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + 15 + + - 97 AS col1 FROM tab0 AS cor0
----
-82
-82
-82

query II rowsort
SELECT DISTINCT col2, 92 * col1 + 19 FROM tab2 AS cor0
----
23
4711
40
7103
58
6183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT col0 + - ( - col0 ) * + CAST( + col1 AS SIGNED ) * col2 * col1 FROM tab0 AS cor0
----
383757
4625520
9700

skipif mysql # not compatible
query I rowsort label-2445
SELECT col0 + - ( - col0 ) * + CAST ( + col1 AS INTEGER ) * col2 * col1 FROM tab0 AS cor0
----
383757
4625520
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE 71 * col1 * - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( - - col1 ) = NULL
----

query II rowsort
SELECT DISTINCT + ( - - col1 ) + - + col0 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
-37
-14
-44
-47
-80
-5

query I rowsort
SELECT ALL + 83 * + col2 FROM tab2 cor0
----
1909
3320
4814

query I rowsort
SELECT DISTINCT + col0 + col1 + + - 84 FROM tab1 AS cor0
----
-19
54
6

query I rowsort
SELECT ( - - 3 ) - + 97 FROM tab0, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT 61 - - + col1 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT - - col1 FROM tab0 WHERE + col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2454
SELECT DISTINCT - + 71 FROM tab1 WHERE + col1 - + col1 * - CAST( col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT - + 71 FROM tab1 WHERE + col1 - + col1 * - CAST ( col2 AS REAL ) IS NULL
----

query I rowsort
SELECT + col0 - col2 * - col1 AS col0 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT DISTINCT col0 - + 19 DIV + 64 col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2456
SELECT DISTINCT col0 - + 19 / + 64 col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + 42 + + - ( col1 ) AS col2 FROM tab0
----
-39
21
41

query I rowsort
SELECT ALL + 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL 4 - - MAX( - col2 ) + - - 89 * - + COUNT( * ) FROM tab1
----
-322

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL 4 - - MAX ( - col2 ) + - - 89 * - + COUNT ( * ) FROM tab1
----
-322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 + + col1 col1 FROM tab0 AS cor0
----
-51
-71
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT - + COUNT( - 66 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT - + COUNT ( - 66 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 96 * + col1 AS col1 FROM tab1 AS cor0
----
1344
4512
480

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT - ( - - COUNT( * ) ), MAX( - 33 ) AS col0 FROM tab0
----
-3
-33

skipif mysql # not compatible
query II rowsort label-2463
SELECT - ( - - COUNT ( * ) ), MAX ( - 33 ) AS col0 FROM tab0
----
-3
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT + COUNT( ALL + 52 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2464
SELECT + COUNT ( ALL + 52 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col0 * - col1 * col1 AS col1 FROM tab1
----
-201019
-2125
-9996

query II rowsort
SELECT - col0, 26 - + ( - 77 ) * + 56 AS col2 FROM tab1
----
-51
4338
-85
4338
-91
4338

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT ALL + 36 AS col0, COUNT( * ) AS col2 FROM tab0
----
36
3

skipif mysql # not compatible
query II rowsort label-2467
SELECT ALL + 36 AS col0, COUNT ( * ) AS col2 FROM tab0
----
36
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 5 * + - col0 + + - col1 ) >= + col1
----
15
81
47

query I rowsort
SELECT 10 * - col1 * - col0 FROM tab1
----
4250
42770
7140

query I rowsort
SELECT 18 * + col1 AS col1 FROM tab0
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT ALL CAST( - 23 AS SIGNED ) AS col1 FROM tab2
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL CAST ( - 23 AS INTEGER ) AS col1 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT ALL + col1 * - + 40 AS col0 FROM tab1
----
-1880
-200
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT - col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT - col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT - 89 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT - 89 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT DISTINCT - 42 + - + ( ( - ( + - col1 ) ) ) AS col2 FROM tab0
----
-123
-43
-63

query I rowsort
SELECT ( - - 79 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - - col1 * 18 / + 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT - col0 DIV 74 col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2478
SELECT - col0 / 74 col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + 51 * - + col1 + col0 AS col2 FROM tab1
----
-170
-2306
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 88 * + 29 * + - 32 col1 FROM tab2
----
-81587
-81597
-81613

query I rowsort
SELECT ( col0 ) + - col2 AS col1 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2482
SELECT ( - + COUNT( * ) ) + + 97 * CAST( - SUM( + + 15 ) AS SIGNED ) AS col2 FROM tab2
----
-4368

skipif mysql # not compatible
query I rowsort label-2482
SELECT ( - + COUNT ( * ) ) + + 97 * CAST ( - SUM ( + + 15 ) AS INTEGER ) AS col2 FROM tab2
----
-4368

query I rowsort
SELECT ALL + 7 + + + col0 AS col1 FROM tab2 WHERE - col1 < - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2484
SELECT ALL + 32, - 77 DIV 15 AS col0 FROM tab2 AS cor0
----
32
-5
32
-5
32
-5

skipif mysql # not compatible
query II rowsort label-2484
SELECT ALL + 32, - 77 / 15 AS col0 FROM tab2 AS cor0
----
32
-5
32
-5
32
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - 16 col2 FROM tab1 AS cor0
----
-101
-107
-67

query I rowsort
SELECT DISTINCT col1 * - col1 + + col2 FROM tab2
----
-2578
-4431
-5889

query I rowsort
SELECT col2 - - col2 + + col2 FROM tab0
----
141
297
30

query I rowsort
SELECT AVG ( - col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT - + ( + COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2489
SELECT - + ( + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT - + CAST( NULL AS SIGNED ) * + + 63 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT - + CAST ( NULL AS INTEGER ) * + + 63 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT + 20 * SUM( ALL + - col0 ) FROM tab0
----
-3980

skipif mysql # not compatible
query I rowsort label-2491
SELECT + 20 * SUM ( ALL + - col0 ) FROM tab0
----
-3980

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - - col0
----

query II rowsort
SELECT DISTINCT 45 AS col0, col1 FROM tab1
----
45
14
45
47
45
5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * + 73 > + 5 + col1
----

query I rowsort
SELECT + + ( - ( col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT - - SUM( - + col0 ) AS col1 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2496
SELECT - - SUM ( - + col0 ) AS col1 FROM tab1 cor0
----
-227

query I rowsort
SELECT + 14 * - col2 + - col2 FROM tab2 AS cor0
----
-345
-600
-870

query I rowsort
SELECT ALL 66 * - 92 AS col2 FROM tab1 AS cor0
----
-6072
-6072
-6072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + - 80 AS col1 FROM tab1 AS cor0
----
-29
11
5

query I rowsort
SELECT DISTINCT + col2 * + 90 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT DISTINCT + COUNT( * ) AS col1, ( 75 ) AS col2 FROM tab2 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-2502
SELECT DISTINCT + COUNT ( * ) AS col1, ( 75 ) AS col2 FROM tab2 AS cor0
----
3
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 59 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT + + 18 DIV 66 + - 13 FROM tab0 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-2504
SELECT + + 18 / 66 + - 13 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT - col2 DIV 18 col2 FROM tab1 cor0
----
-3
-3
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2505
SELECT - col2 / 18 col2 FROM tab1 cor0
----
-3
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT - COUNT( * ) * 61 AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT - COUNT ( * ) * 61 AS col1 FROM tab0 AS cor0
----
-183

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab0 WHERE + 20 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 76 + + ( 66 ) AS col1 FROM tab1
----
-10

query I rowsort
SELECT DISTINCT 63 + - col0 FROM tab0
----
-24
-34
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT ALL + col2 DIV - col2 + - col0 AS col1 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + col2 / - col2 + - col0 AS col1 FROM tab0
----
-16
-88
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT ( CAST( col0 AS SIGNED ) ) + + + col2 * ( - - 4 ) AS col0 FROM tab1 AS cor0
----
321
363
435

skipif mysql # not compatible
query I rowsort label-2511
SELECT ( CAST ( col0 AS INTEGER ) ) + + + col2 * ( - - 4 ) AS col0 FROM tab1 AS cor0
----
321
363
435

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + ( + col0 ) * + + 62 * - col2 + - ( + - 17 ) >= - - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2514
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2514
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * CAST ( CAST ( NULL AS INTEGER ) AS REAL ) IS NULL
----

query I rowsort
SELECT + 11 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT - COUNT( DISTINCT + 53 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - COUNT ( DISTINCT + 53 ) AS col2 FROM tab0 cor0
----
-1

query II rowsort
SELECT DISTINCT col0, - col0 * - col1 AS col0 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * + ( + col0 ) * + col0 + - 56 + + col1 + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 17 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2520
SELECT col1 DIV - col0 AS col1, + 49 AS col2 FROM tab1
----
0
49
0
49
0
49

skipif mysql # not compatible
query II rowsort label-2520
SELECT col1 / - col0 AS col1, + 49 AS col2 FROM tab1
----
0
49
0
49
0
49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT + COUNT( * ) * - COUNT( + 39 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2522
SELECT + COUNT ( * ) * - COUNT ( + 39 ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - + 17 AS col2 FROM tab0 cor0
----
-17

query I rowsort
SELECT DISTINCT + col1 + - 15 AS col1 FROM tab2
----
36
52
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - + AVG ( + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + AVG ( + col1 ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT DISTINCT + 20 + - MIN( - col0 ) AS col0, 35 AS col0 FROM tab2 AS cor0
----
95
35

skipif mysql # not compatible
query II rowsort label-2528
SELECT DISTINCT + 20 + - MIN ( - col0 ) AS col0, 35 AS col0 FROM tab2 AS cor0
----
95
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL - + 37 - + MAX( 56 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - + 37 - + MAX ( 56 ) AS col2 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT - COUNT( - 32 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT - COUNT ( - 32 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 31 + col0 FROM tab2 cor0
----
106
77
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 + - col0 col1 FROM tab1 AS cor0
----
-109
-115
-75

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL <= + 56
----

query I rowsort
SELECT 1 + 53 FROM tab0
----
54
54
54

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 64 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2536
SELECT * FROM tab1 WHERE - - col0 / CAST( NULL AS SIGNED ) + + - 38 * CAST( - ( 11 ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2536
SELECT * FROM tab1 WHERE - - col0 / CAST ( NULL AS INTEGER ) + + - 38 * CAST ( - ( 11 ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + 66 + - col1 FROM tab1
----
3352
5605
5959

query I rowsort
SELECT ALL 21 + - + col1 AS col1 FROM tab1
----
-26
16
7

query II rowsort
SELECT + 7 AS col1, col1 AS col0 FROM tab1 AS cor0
----
7
14
7
47
7
5

query I rowsort
SELECT ALL + 36 * - ( - 30 ) FROM tab1 AS cor0
----
1080
1080
1080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col2, - 53 + + col1 + - - 35 * + 71 AS col2 FROM tab2 AS cor0
----
-51
2483
-67
2499
-77
2509

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL - SUM( DISTINCT + - col0 ) * COUNT( * ) * + - 98 - COUNT( - col0 ) AS col0 FROM tab1 WHERE NOT + + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - SUM ( DISTINCT + - col0 ) * COUNT ( * ) * + - 98 - COUNT ( - col0 ) AS col0 FROM tab1 WHERE NOT + + col0 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT - ( + - SUM( ALL + + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT - ( + - SUM ( ALL + + col1 ) ) FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2545
SELECT CAST( + + col0 AS SIGNED ) AS col0, 49 - - col2 AS col2 FROM tab2
----
46
72
64
89
75
107

skipif mysql # not compatible
query II rowsort label-2545
SELECT CAST ( + + col0 AS INTEGER ) AS col0, 49 - - col2 AS col2 FROM tab2
----
46
72
64
89
75
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col1 FROM tab2 cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 > - + 46 * - col1 * - col0 - + 24 + - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 87 * + + 27 AS col2 FROM tab1 AS cor0
----
2349
2349
2349

query I rowsort
SELECT DISTINCT - - col1 * + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL ( 71 ) + + COUNT( * ) + + 49 AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL ( 71 ) + + COUNT ( * ) + + 49 AS col2 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + ( - COUNT( DISTINCT col0 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT + ( - COUNT ( DISTINCT col0 ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT - col1 DIV + 74 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT - col1 / + 74 FROM tab1
----
0
0
0

query II rowsort
SELECT + col2 AS col1, 80 FROM tab2 AS cor0
----
23
80
40
80
58
80

query I rowsort
SELECT - 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT - 36 FROM tab1 WHERE + - col1 BETWEEN - + col0 * + col0 AND + col2 * + + 2
----
-36

query I rowsort
SELECT + 50 * + col0 + + 99 AS col2 FROM tab1 AS cor0
----
2649
4349
4649

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT - - 70 DIV col0 + - + col0 FROM tab0 AS cor0
----
-11
-87
-97

skipif mysql # not compatible
query I rowsort label-2557
SELECT - - 70 / col0 + - + col0 FROM tab0 AS cor0
----
-11
-87
-97

query I rowsort
SELECT - ( col0 ) * - + col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - col0 * - 4 AS col2 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT col1 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 90 AND + col1
----

skipif mysql # not compatible
query I rowsort label-2560
SELECT col1 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 90 AND + col1
----

query I rowsort
SELECT DISTINCT - 59 + - col1 FROM tab2 AS cor0
----
-110
-126
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT MAX( ALL - + ( - col1 ) ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT MAX ( ALL - + ( - col1 ) ) AS col2 FROM tab0 cor0
----
81

query III rowsort
SELECT * FROM tab2 WHERE + - col1 - + - 54 + col1 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * 25 FROM tab1
----
-1175
-125
-350

query II rowsort
SELECT col1 * + 67 - - col2, + col2 AS col1 FROM tab2
----
3440
23
4547
58
5199
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( col2 ) ) * col1 + - col2 col2 FROM tab0
----
0
200
3760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2567
SELECT 39 / - + col1 - 48 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT 39 / - + col1 - 48 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 - - 35 FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 16
----

query I rowsort
SELECT + + 64 AS col0 FROM tab0 cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 15 IS NULL
----

query I rowsort
SELECT ( + 83 ) * + - col1 FROM tab2
----
-4233
-5561
-6391

query I rowsort
SELECT + col1 * col2 * col1 AS col0 FROM tab2 AS cor0
----
237160
260362
59823

query I rowsort
SELECT DISTINCT + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT ALL 38 DIV col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
38

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL 38 / col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT SUM( DISTINCT - 8 ) col2 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2577
SELECT SUM ( DISTINCT - 8 ) col2 FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT - SUM( + + CAST( col2 AS SIGNED ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2578
SELECT - SUM ( + + CAST ( col2 AS INTEGER ) ) FROM tab2
----
-121

query I rowsort
SELECT - ( - col0 ) + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL - col2 * - 21 * - col2 AS col2 FROM tab0
----
-205821
-2100
-46389

query I rowsort
SELECT + col1 * + col0 + 36 AS col1 FROM tab0
----
1251
133
1863

query I rowsort
SELECT DISTINCT + + 79 * - col2 AS col1 FROM tab0 AS cor0
----
-3713
-7821
-790

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 76 - - 10 AS col0 FROM tab0 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-2585
SELECT DISTINCT - col0 AS col1, 23 DIV - 88 * + 99 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + - ( col0 ) IN ( + col0 )
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-2585
SELECT DISTINCT - col0 AS col1, 23 / - 88 * + 99 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + - ( col0 ) IN ( + col0 )
----
-46
0
-64
0
-75
0

query II rowsort
SELECT + col1 * 79 + - col0 AS col2, + col1 FROM tab2 AS cor0
----
3983
51
5218
67
6019
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 4 * - col0 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT COUNT( * ) * + 92 + + + MIN( DISTINCT + col2 ) FROM tab2 cor0
----
299

skipif mysql # not compatible
query I rowsort label-2588
SELECT COUNT ( * ) * + 92 + + + MIN ( DISTINCT + col2 ) FROM tab2 cor0
----
299

query I rowsort
SELECT + 94 * col1 + + col2 AS col1 FROM tab1
----
1412
4486
529

query I rowsort
SELECT + col1 + - 46 + - ( - 49 ) FROM tab0
----
24
4
84

query I rowsort
SELECT + 28 * 76 FROM tab0
----
2128
2128
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL + SUM( ALL 81 ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL + SUM ( ALL 81 ) FROM tab1
----
243

query I rowsort
SELECT + col1 * - - col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT DISTINCT ( 2 ) DIV - - col2 * + 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT ( 2 ) / - - col2 * + 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT + col2 * - col0, - col1 AS col1 FROM tab0 AS cor0
----
-705
-81
-870
-21
-9603
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2596
SELECT + SUM( + col2 ) AS col0, - COUNT( 8 ) AS col0 FROM tab2 AS cor0
----
121
-3

skipif mysql # not compatible
query II rowsort label-2596
SELECT + SUM ( + col2 ) AS col0, - COUNT ( 8 ) AS col0 FROM tab2 AS cor0
----
121
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT 19 DIV + + col1 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2597
SELECT 19 / + + col1 AS col2 FROM tab1
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL - - ( - - COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - - ( - - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - ( col0 ) FROM tab2 WHERE NOT ( + col2 ) = + 56
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT - - COUNT( * ) + - 48 FROM tab1 WHERE NOT NULL IN ( - + 66, - 40 )
----
-48

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - - COUNT ( * ) + - 48 FROM tab1 WHERE NOT NULL IN ( - + 66, - 40 )
----
-48

query I rowsort
SELECT DISTINCT - col2 * - col1 + + + col0 + col0 FROM tab0 AS cor0
----
293
3837
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2602
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ( 36 ) + + - COUNT( * ) col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT ( 36 ) + + - COUNT ( * ) col0 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + COUNT( * ) + 7 AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2604
SELECT + COUNT ( * ) + 7 AS col0 FROM tab2 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> + CAST( - 67 AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> + CAST ( - 67 AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + - 79 + col2 * - 82 FROM tab1 AS cor0
----
-4912
-5608
-7937

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT - ( ( - + SUM( DISTINCT + col1 ) ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2608
SELECT - ( ( - + SUM ( DISTINCT + col1 ) ) ) AS col2 FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2609
SELECT - COUNT( * ), - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2609
SELECT - COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-3
NULL

query II rowsort
SELECT ALL + col2 + - col2, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT + MIN( ALL - 33 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-2611
SELECT + MIN ( ALL - 33 ) FROM tab0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT DISTINCT - col1 DIV - + col1 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - col1 / - + col1 AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col1 + - 40 AS col2 FROM tab2
----
-107
-117
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT - 84 + - - COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT - 84 + - - COUNT ( * ) FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT MIN( + ( - 56 ) ) FROM tab0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT MIN ( + ( - 56 ) ) FROM tab0 WHERE NULL <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, col2 + + 97 FROM tab1 AS cor0
----
14
193
47
165
5
156

query II rowsort
SELECT + col1 + 87, - col1 AS col2 FROM tab1 AS cor0
----
101
-14
134
-47
92
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + + COUNT( ALL - + 37 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + + COUNT ( ALL - + 37 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <= ( - 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT ALL 78 DIV 24 + 52 + + ( col1 ) col0 FROM tab2
----
106
122
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2620
SELECT ALL 78 / 24 + 52 + + ( col1 ) col0 FROM tab2
----
106
122
132

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT DISTINCT + col0 - + 79 FROM tab2 AS cor0
----
-15
-33
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 2 * col1 + 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col2 + + col2 / - col2
----

query I rowsort
SELECT + ( - 32 ) FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2626
SELECT DISTINCT 73 AS col0, + COUNT( + col2 ) FROM tab1
----
73
3

skipif mysql # not compatible
query II rowsort label-2626
SELECT DISTINCT 73 AS col0, + COUNT ( + col2 ) FROM tab1
----
73
3

query I rowsort
SELECT - col2 * - - col0 * - + col2 * col1 AS col2 FROM tab0
----
182700
2683935
950697

query II rowsort
SELECT DISTINCT 80, + col2 AS col0 FROM tab2
----
80
23
80
40
80
58

query II rowsort
SELECT 44 AS col0, col1 FROM tab0
----
44
1
44
21
44
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2630
SELECT + - CAST( NULL AS SIGNED ) AS col0, - CAST( NULL AS DECIMAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2630
SELECT + - CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS REAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2631
SELECT - col1 * - CAST( - 60 AS DECIMAL ) AS col2, col2 / - + col2 AS col1 FROM tab0 cor0 WHERE NOT - ( + + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2631
SELECT - col1 * - CAST ( - 60 AS REAL ) AS col2, col2 / - + col2 AS col1 FROM tab0 cor0 WHERE NOT - ( + + col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * ( - col1 ) + - col2 AS col0 FROM tab0
----
0
200
3760

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * + col0 + + 35 / - col2 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * col0 + col0 NOT IN ( - col1 * - 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 48 / col1 + + ( - col2 ) / + 39 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 49 IN ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2638
SELECT col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT col0 + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT 5 DIV 94 + col0 DIV 86 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2639
SELECT 5 / 94 + col0 / 86 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 83 * - 96 - - 46 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2641
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN col2 AND ( ( 22 ) + + 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 29 + col1 FROM tab1
----
-15
-24
18

query I rowsort
SELECT 87 * col0 AS col0 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT DISTINCT ( - 19 ) * + col0 + + 45 FROM tab2
----
-1171
-1380
-829

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2647
SELECT DISTINCT * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) <> ( - 27 * - 63 )
----

skipif mysql # not compatible
query III rowsort label-2647
SELECT DISTINCT * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) <> ( - 27 * - 63 )
----

query I rowsort
SELECT ALL - 2 + col0 AS col1 FROM tab0
----
13
85
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL - col1 + CAST( NULL AS SIGNED ) * + 61 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) * + 61 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE ( 27 * col0 ) >= ( - 36 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 > + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL COUNT( + 11 ) - - 43 AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL COUNT ( + 11 ) - - 43 AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT 81 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 2
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 22 NOT IN ( - ( col1 ) + col1 * - 87 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL 69 - + COUNT( ALL - 3 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 69 - + COUNT ( ALL - 3 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ( + 52 ) * col0 FROM tab1 AS cor0
----
2652
4420
4732

query I rowsort
SELECT + col2 * + ( + 40 ) - 65 FROM tab2
----
1535
2255
855

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE 18 * col2 + - 51 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 34 ) >= - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 72 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 92 ) IS NULL
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2663
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2663
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab1 cor0
----
84

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE ( 43 ) NOT BETWEEN NULL AND col2 * col2
----

query I rowsort
SELECT 24 * + 91 AS col0 FROM tab1 cor0
----
2184
2184
2184

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT - SUM( - 27 ) * CAST( 49 * + ( 98 ) + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT - SUM ( - 27 ) * CAST ( 49 * + ( 98 ) + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * col1 * + ( + col2 * + col1 ) FROM tab2
----
17444254
18261320
3050973

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT ALL - COUNT( * ) DIV - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL - COUNT ( * ) / - COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT ALL + col0 * + 0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT DISTINCT col2 DIV + + 16 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT col2 / + + 16 FROM tab1
----
3
4
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT + 54 DIV + + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2674
SELECT + 54 / + + COUNT ( * ) FROM tab1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * + col1 col2 FROM tab2
----
4896
6432
7392

query I rowsort
SELECT ALL - col1 * col1 AS col1 FROM tab0 WHERE NOT NULL > ( col1 ) + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col0 ) NOT BETWEEN ( 5 / 19 ) AND + 11 * 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( ( col0 ) ) / - ( - 43 ) + col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT ALL - col0 * + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT ( ( col2 ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - col0 * + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( ( col2 ) ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 AS col2 FROM tab0 WHERE NOT - col1 NOT BETWEEN 76 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT CAST( ( col0 ) AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2681
SELECT CAST ( ( col0 ) AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT ALL - ( + COUNT( * ) ) DIV 44 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL - ( + COUNT ( * ) ) / 44 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT - CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2683
SELECT - CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2684
SELECT - COUNT( col1 ) FROM tab0 cor0 WHERE NOT - CAST( col2 AS DECIMAL ) + 46 * - 85 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2684
SELECT - COUNT ( col1 ) FROM tab0 cor0 WHERE NOT - CAST ( col2 AS REAL ) + 46 * - 85 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + + col0
----

query I rowsort
SELECT ALL col1 + col0 + 85 AS col2 FROM tab2
----
182
226
227

query I rowsort
SELECT - 92 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 * + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT - ( - - ( - COUNT( * ) ) ) + 61 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-2690
SELECT - ( - - ( - COUNT ( * ) ) ) + 61 FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - 68 * col0 NOT BETWEEN - 84 AND ( col2 - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, + col2 * col0 * 14 FROM tab1 AS cor0
----
14
68544
47
86632
5
70210

query II rowsort
SELECT ALL col2 AS col1, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL - COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 69 + - - 32 FROM tab1 AS cor0
----
101
101
101

query I rowsort
SELECT 4 + - col0 - - 16 FROM tab1 AS cor0
----
-31
-65
-71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 <> ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col0 + - 86 * + 54 FROM tab1 AS cor0
----
-4695
-4729
-4735

query III rowsort
SELECT * FROM tab1 WHERE + - col0 NOT BETWEEN + + col1 + 48 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 31 + + col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 6 + 71 * col2 * - ( col2 ) AS col2 FROM tab1
----
-247145
-328298
-654330

query III rowsort
SELECT * FROM tab0 WHERE + + col1 IN ( + 15 )
----

query I rowsort
SELECT 44 AS col0 FROM tab2 WHERE ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2705
SELECT DISTINCT COUNT( * ) DIV 23 AS col0 FROM tab0 WHERE ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT COUNT ( * ) / 23 AS col0 FROM tab0 WHERE ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

query I rowsort
SELECT - 80 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN col0 * - + 46 * + col2 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT SUM( + + col0 ) + + - 53 FROM tab0
----
146

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT SUM ( + + col0 ) + + - 53 FROM tab0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - 89 - - ( - COUNT( * ) ) AS col2 FROM tab2 WHERE col1 BETWEEN NULL AND - col1 - - col1
----
-89

skipif mysql # not compatible
query I rowsort label-2708
SELECT - 89 - - ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE col1 BETWEEN NULL AND - col1 - - col1
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + - col1 * - 43 col2 FROM tab1
----
2083
277
664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2710
SELECT * FROM tab0 WHERE NOT col2 * col0 IS NOT NULL AND NOT + col1 BETWEEN NULL AND CAST( col2 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-2710
SELECT * FROM tab0 WHERE NOT col2 * col0 IS NOT NULL AND NOT + col1 BETWEEN NULL AND CAST ( col2 AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT 93 + + ( + SUM( - 67 ) ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 93 + + ( + SUM ( - 67 ) ) FROM tab2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT + CAST( NULL AS SIGNED ) * + + col0 * - col2 - + col2 + - 38 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT + CAST ( NULL AS INTEGER ) * + + col0 * - col2 - + col2 + - 38 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT ALL - col0 * + 11 - col1 * col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-562
-796
-884

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - col0 * + 11 - col1 * col1 / col0 AS col2 FROM tab2 AS cor0
----
-562
-796
-884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT ALL - 85 AS col2 FROM tab2 AS cor0 WHERE NULL < CAST( NULL AS SIGNED ) * + col2 * 75
----

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - 85 AS col2 FROM tab2 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER ) * + col2 * 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT + + COUNT( * ) * 50 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + + COUNT ( * ) * 50 FROM tab0 AS cor0
----
150

query I rowsort
SELECT - 47 + + col2 + - col0 * + + 25 AS col0 FROM tab0 AS cor0
----
-2212
-2373
-375

query I rowsort
SELECT ALL 79 * col0 * col1 FROM tab2
----
185334
389312
396975

query I rowsort
SELECT 35 AS col2 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 59 * - ( + 52 ) * + col1 FROM tab1 AS cor0
----
-144196
-15340
-42952

query II rowsort
SELECT + 39, col2 AS col2 FROM tab2 AS cor0
----
39
23
39
40
39
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 84 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1, + col1 )
----

query I rowsort
SELECT ALL + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL + COUNT( * ) * - 17 AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL + COUNT ( * ) * - 17 AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL - COUNT( DISTINCT - 62 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2725
SELECT ALL - COUNT ( DISTINCT - 62 ) col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 * + + col0 * - col1 AS col2 FROM tab2 cor0
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN ( + + col0 ) AND 12 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - col0 * 49 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT ALL - 52, + 0 AS col2 FROM tab2
----
-52
0
-52
0
-52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - COUNT( * ) + + 51 FROM tab0 WHERE NOT + col0 IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-2730
SELECT - COUNT ( * ) + + 51 FROM tab0 WHERE NOT + col0 IS NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ( - - MIN( + col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2731
SELECT ( - - MIN ( + col0 ) ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT COUNT( * ) * + 25 AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-2732
SELECT COUNT ( * ) * + 25 AS col0 FROM tab0
----
75

query I rowsort
SELECT - col2 * 47 AS col2 FROM tab1
----
-2773
-3196
-4512

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - 30 ) ) BETWEEN + col2 AND + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2735
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT + + CAST( NULL AS DECIMAL ) BETWEEN NULL AND - + col0
----

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT + + CAST ( NULL AS REAL ) BETWEEN NULL AND - + col0
----

query I rowsort
SELECT 44 AS col1 FROM tab2 cor0 WHERE NOT 53 IS NOT NULL
----

query II rowsort
SELECT - - 15 AS col0, - 18 FROM tab2 AS cor0
----
15
-18
15
-18
15
-18

query I rowsort
SELECT - col1 + + 31 AS col2 FROM tab0 cor0
----
-50
10
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2739
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( 54 + + CAST( NULL AS DECIMAL ) + + 16 ) NOT BETWEEN ( + CAST( NULL AS DECIMAL ) + + col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2739
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( 54 + + CAST ( NULL AS REAL ) + + 16 ) NOT BETWEEN ( + CAST ( NULL AS REAL ) + + col1 ) AND NULL
----

query I rowsort
SELECT + - col0 + - ( + + col2 ) FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= + col2 * + + col1 * - 4
----

query I rowsort
SELECT + - col0 AS col0 FROM tab1 WHERE NOT ( + col0 + + 32 ) NOT BETWEEN ( - col2 ) AND col1
----

query I rowsort
SELECT DISTINCT + col1 + - - col2 + + col0 FROM tab2
----
120
181
200

query I rowsort
SELECT 73 * + + 66 AS col2 FROM tab1 cor0
----
4818
4818
4818

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 83 ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT COUNT( * ) + - MAX( ALL + + ( - 10 ) ) DIV + - 86 AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2746
SELECT COUNT ( * ) + - MAX ( ALL + + ( - 10 ) ) / + - 86 AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT col2 + + 19 * - + col0 - + 5 AS col2 FROM tab2
----
-1181
-1372
-856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - ( + + 80 ) ) col0, ( 26 ) col1 FROM tab0
----
-80
26

query III rowsort
SELECT * FROM tab0 WHERE + 17 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 90 + + col0 AS col1 FROM tab1
----
141
175
181

query I rowsort
SELECT 26 FROM tab1 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 96 - - + 36 AS col0 FROM tab2
----
132

query I rowsort
SELECT ALL + col0 * + col0 + - col0 AS col2 FROM tab0
----
210
7482
9312

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - col2 ) IN ( 31 * - 76 - - + 90 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + SUM( ALL + - 79 ) AS col2 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-2755
SELECT + SUM ( ALL + - 79 ) AS col2 FROM tab2
----
-237

query I rowsort
SELECT + col0 - + + col2 + + - col0 * - 95 FROM tab2 AS cor0
----
4393
6104
7142

query I rowsort
SELECT - col1 * - ( 94 ) AS col1 FROM tab1
----
1316
4418
470

query I rowsort
SELECT - 91 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2759
SELECT DISTINCT + + 90 * col2, col0 / - + CAST( NULL AS DECIMAL ) - col0 AS col0 FROM tab0 AS cor0
----
4230
NULL
8910
NULL
900
NULL

skipif mysql # not compatible
query II rowsort label-2759
SELECT DISTINCT + + 90 * col2, col0 / - + CAST ( NULL AS REAL ) - col0 AS col0 FROM tab0 AS cor0
----
4230
NULL
8910
NULL
900
NULL

query I rowsort
SELECT ALL + 29 * + col1 * + ( - col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-127890
-2871
-8942643

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND - 77 + 41 / - col0 * + 99 * - col2
----

query I rowsort
SELECT DISTINCT 66 * + col1 FROM tab0 AS cor0
----
1386
5346
66

query I rowsort
SELECT + col1 * + 10 FROM tab2
----
510
670
770

query I rowsort
SELECT - col0 * + - col1 * + col0 * - - col2 * 98 FROM tab2
----
1236336640
2142157500
243242664

query II rowsort
SELECT ALL + 98 AS col0, - 7 * - col2 FROM tab1
----
98
413
98
476
98
672

query I rowsort
SELECT + 42 * - col0 AS col2 FROM tab2
----
-1932
-2688
-3150

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * + col2 ) = ( + col1 + - col1 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT DISTINCT - 75 DIV - col1 + - + ( col0 ) FROM tab0 AS cor0
----
-15
-22
-84

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - 75 / - col1 + - + ( col0 ) FROM tab0 AS cor0
----
-15
-22
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2769
SELECT 34 DIV + + MAX( DISTINCT + CAST( + - col2 AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2769
SELECT 34 / + + MAX ( DISTINCT + CAST ( + - col2 AS INTEGER ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col1 + + + col2 AS col0 FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT DISTINCT + col2 + + 52 DIV + - 92 + + - 57 AS col2 FROM tab2
----
-17
-34
1

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + col2 + + 52 / + - 92 + + - 57 AS col2 FROM tab2
----
-17
-34
1

query I rowsort
SELECT DISTINCT - + 84 + - - col1 AS col1 FROM tab2 AS cor0
----
-17
-33
-7

query I rowsort
SELECT - col0 + - col2 * + col0 + + + col2 * col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT - + col2 + + - col2 DIV + 74 AS col2 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-2774
SELECT - + col2 + + - col2 / + 74 AS col2 FROM tab1 AS cor0
----
-59
-68
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT DISTINCT 77 DIV - + col1 + + col0 AS col2 FROM tab0 AS cor0
----
15
20
84

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT 77 / - + col1 + + col0 AS col2 FROM tab0 AS cor0
----
15
20
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 20 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2777
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 7 AS col0 FROM tab2 AS cor0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 7 AS col0 FROM tab2 AS cor0
----
NULL
7
NULL
7
NULL
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2778
SELECT DISTINCT - 77, - CAST( NULL AS SIGNED ) / + - col0 AS col2 FROM tab2 AS cor0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT - 77, - CAST ( NULL AS INTEGER ) / + - col0 AS col2 FROM tab2 AS cor0
----
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2779
SELECT ALL CAST( NULL AS SIGNED ), col0 - - 27 + + - 68 AS col2 FROM tab1 AS cor0
----
NULL
10
NULL
44
NULL
50

skipif mysql # not compatible
query II rowsort label-2779
SELECT ALL CAST ( NULL AS INTEGER ), col0 - - 27 + + - 68 AS col2 FROM tab1 AS cor0
----
NULL
10
NULL
44
NULL
50

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 80 * + 18 + - col1 FROM tab0
----
1359
1419
1439

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab2 WHERE NULL IN ( - 48, - 20 )
----

query I rowsort
SELECT DISTINCT - 0 + - 25 FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL - 94 - - + COUNT( * ) AS col1 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - 94 - - + COUNT ( * ) AS col1 FROM tab0
----
-91

query I rowsort
SELECT + col0 + + - 55 AS col1 FROM tab2 AS cor0
----
-9
20
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT DISTINCT - 64 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - 64 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 * 38 + + col0 * 39 FROM tab0 AS cor0
----
3663
3821
4191

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL COUNT( * ) * - 71 AS col1 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL COUNT ( * ) * - 71 AS col1 FROM tab2 AS cor0
----
-213

query I rowsort
SELECT ALL - 34 * + col0 - 18 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-2976
-3316
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT MIN( DISTINCT 3 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT MIN ( DISTINCT 3 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT 46 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * 93 FROM tab2 AS cor0
----
2139
3720
5394

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + ( + col0 ) / - 15 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 18 * + - col0 AS col0 FROM tab1 AS cor0
----
-1530
-1638
-918

query I rowsort
SELECT + col0 * + 67 * - col0 AS col0 FROM tab2
----
-141772
-274432
-376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT ALL - COUNT( * ) DIV 9 * - 43 + + COUNT( * ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2798
SELECT ALL - COUNT ( * ) / 9 * - 43 + + COUNT ( * ) col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT ALL + col0 * - 97 + + col0 DIV - 19 FROM tab0
----
-1455
-8443
-9414

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + col0 * - 97 + + col0 / - 19 FROM tab0
----
-1455
-8443
-9414

query I rowsort
SELECT ALL - ( + 97 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + - 89, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT + 77 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3927
-6545
-7007

skipif mysql # not compatible
query I rowsort label-2801
SELECT + 77 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3927
-6545
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL COUNT( * ) * + + 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
873

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL COUNT ( * ) * + + 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
873

query I rowsort
SELECT DISTINCT - 88 - + - col1 FROM tab0
----
-67
-7
-87

query I rowsort
SELECT DISTINCT + col2 + + 41 AS col1 FROM tab0 AS cor0
----
140
51
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - + col2 col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2806
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * CAST( - col0 AS SIGNED ) ) BETWEEN 72 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2806
SELECT * FROM tab2 AS cor0 WHERE ( + col1 * CAST ( - col0 AS INTEGER ) ) BETWEEN 72 AND NULL
----

query I rowsort
SELECT + ( + col2 ) * + 6 + + + 37 AS col2 FROM tab1 cor0
----
391
445
613

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT - - COUNT( DISTINCT col2 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2808
SELECT - - COUNT ( DISTINCT col2 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - 85 * - 23 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-131060
-150599
-99751

query I rowsort
SELECT - col0 + - + 7 FROM tab1
----
-58
-92
-98

query I rowsort
SELECT - col2 + - ( + col2 ) FROM tab1
----
-118
-136
-192

query III rowsort
SELECT * FROM tab0 WHERE NOT - 45 >= - col1 * + col0 + col2
----
97
1
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT + + 1 col1, COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2814
SELECT + + 1 col1, COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
1
3

query II rowsort
SELECT + - col0, ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT ( - 89 ) * COUNT( * ) AS col0 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT ( - 89 ) * COUNT ( * ) AS col0 FROM tab1
----
-267

query I rowsort
SELECT DISTINCT - 20 + col0 AS col1 FROM tab1 AS cor0 WHERE - col0 * - 94 * + - 69 NOT BETWEEN - 22 AND ( col0 * - col2 + + - col1 + + col0 * + ( + + 11 ) )
----
31
65
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2818
SELECT - col2 + + + CAST( NULL AS SIGNED ), - 43 DIV + + col0 AS col2 FROM tab0 AS cor0
----
NULL
-2
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-2818
SELECT - col2 + + + CAST ( NULL AS INTEGER ), - 43 / + + col0 AS col2 FROM tab0 AS cor0
----
NULL
-2
NULL
0
NULL
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 90 BETWEEN + col1 AND + col1 + + + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT MAX( + col2 ) * + + 84 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
4875

skipif mysql # not compatible
query I rowsort label-2820
SELECT MAX ( + col2 ) * + + 84 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4875

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 98 / + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT ALL + + 94 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
94
94
94

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + + 94 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + MIN( ALL 62 ) AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2823
SELECT + MIN ( ALL 62 ) AS col1 FROM tab1
----
62

query I rowsort
SELECT ALL - 0 + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 6 + col0 + + ( + col1 ) FROM tab0
----
102
90
92

query I rowsort
SELECT ALL - col0 * col1 * + col2 + 79 FROM tab2 AS cor0
----
-197041
-291371
-53879

query I rowsort
SELECT DISTINCT + 16 * + + 17 * + col2 * + 65 + - col0 AS col0 FROM tab1
----
1043035
1202149
1697229

query III rowsort
SELECT * FROM tab0 WHERE col1 < - + col2
----

query I rowsort
SELECT 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT DISTINCT + ( + ( - 50 ) ) - - - col1 + col0 * - - col2 DIV + + col2 AS col1 FROM tab1 AS cor0
----
-13
-6
30

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT + ( + ( - 50 ) ) - - - col1 + col0 * - - col2 / + + col2 AS col1 FROM tab1 AS cor0
----
-13
-6
30

query II rowsort
SELECT DISTINCT col0 + + - col2 * 1 AS col1, - col0 / 8 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT col1 * ( col2 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * + + col1 * - ( - + 16 ) * - + col0 FROM tab2 AS cor0
----
1914336
5386800
6071296

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT 54 * + COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2834
SELECT 54 * + COUNT ( * ) FROM tab1 AS cor0
----
162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2835
SELECT + - COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + - COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + - ( + + ( - 11 ) ) + + 35 FROM tab0 AS cor0
----
1102
200
992

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT + col0 * + + CAST( NULL AS SIGNED ) / + 57 + - col1 * - col1 FROM tab2 WHERE + - 47 + col0 NOT BETWEEN - + col1 + - 77 AND col1
----

skipif mysql # not compatible
query I rowsort label-2838
SELECT + col0 * + + CAST ( NULL AS INTEGER ) / + 57 + - col1 * - col1 FROM tab2 WHERE + - 47 + col0 NOT BETWEEN - + col1 + - 77 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 <> - - col1 * col1 + - - 55 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 23 + col1 FROM tab0
----
15
104
87
44
97
24

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - - col0 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT 35 * COUNT( * ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-2843
SELECT 35 * COUNT ( * ) FROM tab0
----
105

query II rowsort
SELECT + 36 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL MIN( - 52 ) AS col2 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL MIN ( - 52 ) AS col2 FROM tab1 AS cor0
----
-52

query II rowsort
SELECT DISTINCT + col0, - col2 FROM tab2 cor0 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( - + col0 ) ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL + SUM( + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + SUM ( + + col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT + col0, col0 * col0 AS col1 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

query II rowsort
SELECT DISTINCT + col2 AS col2, ( + col0 ) + + - col0 AS col1 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT + ( col2 ) DIV + 82 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2854
SELECT + ( col2 ) / + 82 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 85 ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2856
SELECT ALL - col2 + + ( + + col2 ) * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - col2 + + ( + + col2 ) * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 * + col1 + col2 AS col0 FROM tab0
----
114
1262
325

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + MIN( DISTINCT + - 58 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + MIN ( DISTINCT + - 58 ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT 98 + - 38 FROM tab0
----
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2860
SELECT ALL - + 3 * - ( SUM( + 38 ) ) * - 9 FROM tab2 WHERE col0 BETWEEN CAST( NULL AS DECIMAL ) AND + 50 / + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - + 3 * - ( SUM ( + 38 ) ) * - 9 FROM tab2 WHERE col0 BETWEEN CAST ( NULL AS REAL ) AND + 50 / + col0
----
NULL

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 22 + + col0 - - - col0 * col1 + + - 20 NOT IN ( 51 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 76 + + col0 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT MIN( - ( col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2863
SELECT MIN ( - ( col0 ) ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT ( col0 ) + - 17 FROM tab1
----
34
68
74

query I rowsort
SELECT DISTINCT col0 * + col1 * - + col0 - - col1 AS col0 FROM tab2 AS cor0
----
-107865
-315315
-376808

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT DISTINCT + + col0 DIV + - col0 + - col2 * + - 73 AS col1 FROM tab2 AS cor0
----
1678
2919
4233

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT + + col0 / + - col0 + - col2 * + - 73 AS col1 FROM tab2 AS cor0
----
1678
2919
4233

query I rowsort
SELECT DISTINCT - 63 * - col0 * + 40 AS col2 FROM tab0 AS cor0
----
219240
244440
37800

query I rowsort
SELECT - col0 * + col0 + + - col0 + - col1 FROM tab0 AS cor0
----
-321
-7677
-9507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) + col0 + - ( - 47 ) + + + CAST( NULL AS SIGNED ) + + + col0 * CAST( NULL AS SIGNED ) * 29 - - - 50 * - + 73 / 99 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) + col0 + - ( - 47 ) + + + CAST ( NULL AS INTEGER ) + + + col0 * CAST ( NULL AS INTEGER ) * 29 - - - 50 * - + 73 / 99 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT COUNT( 22 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT COUNT ( 22 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL 95 * + ( - col1 ), + col1 AS col1 FROM tab2 AS cor0
----
-4845
51
-6365
67
-7315
77

query II rowsort
SELECT + 73, col1 FROM tab0 AS cor0
----
73
1
73
21
73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT - SUM( col1 ) * + 94 + - 77 AS col2 FROM tab0
----
-9759

skipif mysql # not compatible
query I rowsort label-2874
SELECT - SUM ( col1 ) * + 94 + - 77 AS col2 FROM tab0
----
-9759

query III rowsort
SELECT ALL * FROM tab2 WHERE - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( NOT ( NULL >= + - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( NOT ( NULL >= + - col1 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 74 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col1 FROM tab0 cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL + 67 * - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
603

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + 67 * - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
603

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT + 34 DIV col2 * + ( + - col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + 34 / col2 * + ( + - col1 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT col2 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT + + 21 * CAST( NULL AS SIGNED ) + - AVG ( + + col1 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT + + 21 * CAST ( NULL AS INTEGER ) + - AVG ( + + col1 ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col0 / col1 / + col0 * col2 * + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT DISTINCT - - 35 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - - 35 / - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( + + 48 ) AS col1 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT + col0 + - 41 * + 46 AS col1 FROM tab0 AS cor0
----
-1789
-1799
-1871

query I rowsort
SELECT 70 * - - col0 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL + COUNT( * ) + + + 42 col1 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2888
SELECT ALL + COUNT ( * ) + + + 42 col1 FROM tab2
----
45

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE - ( + - 44 ) NOT IN ( col0, 69 )
----
51
85
91

query I rowsort
SELECT DISTINCT 62 + - + 87 AS col2 FROM tab1
----
-25

query I rowsort
SELECT - 7 * col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT ALL COUNT( * ) + + + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - + 3 / + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL COUNT ( * ) + + + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - + 3 / + col0 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + - COUNT( * ) - 54 AS col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2893
SELECT + - COUNT ( * ) - 54 AS col1 FROM tab0 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NULL AND NULL NOT BETWEEN 86 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - + 85 ) AS col2 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2896
SELECT DISTINCT COUNT( * ) + - MIN( ( + + col1 ) ) DIV - 65 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT COUNT ( * ) + - MIN ( ( + + col1 ) ) / - 65 AS col1 FROM tab2
----
3

query I rowsort
SELECT - + 8 AS col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + col0 + - col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT DISTINCT CAST( - AVG ( DISTINCT + + 82 ) AS SIGNED ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT CAST ( - AVG ( DISTINCT + + 82 ) AS INTEGER ) FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2899
SELECT + ( - - COUNT( * ) ) AS col1, 67 AS col0 FROM tab1 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-2899
SELECT + ( - - COUNT ( * ) ) AS col1, 67 AS col0 FROM tab1 AS cor0
----
3
67

query I rowsort
SELECT ALL - col2 * - 34 AS col2 FROM tab1 AS cor0
----
2006
2312
3264

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 >= - col0 * - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2902
SELECT ALL * FROM tab2 WHERE NOT - 98 * + col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2902
SELECT ALL * FROM tab2 WHERE NOT - 98 * + col2 > CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + - 36 * col0 FROM tab1
----
260100
298116
93636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2905
SELECT + + COUNT( + 60 ) DIV + MIN( ALL col1 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2905
SELECT + + COUNT ( + 60 ) / + MIN ( ALL col1 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 BETWEEN + 69 AND - col2
----

query I rowsort
SELECT ALL + 57 * + + col0 AS col0 FROM tab2 cor0
----
2622
3648
4275

query I rowsort
SELECT - 54 * + + col2 FROM tab2
----
-1242
-2160
-3132

query I rowsort
SELECT DISTINCT - 8 + ( - col2 ) FROM tab2 WHERE col0 < col1
----
-31
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT DISTINCT col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2911
SELECT DISTINCT - - SUM( DISTINCT + col0 ), - SUM( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2911
SELECT DISTINCT - - SUM ( DISTINCT + col0 ), - SUM ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 4 * - col2 IS NULL
----

query I rowsort
SELECT col0 + + 50 AS col1 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT + + col0 * + col2 * - - col2 + + + col1 + + col2 AS col1 FROM tab0 AS cor0
----
33263
8731
950797

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT col1 DIV col1 + + col1 + - 68 FROM tab2 AS cor0
----
-16
0
10

skipif mysql # not compatible
query I rowsort label-2915
SELECT col1 / col1 + + col1 + - 68 FROM tab2 AS cor0
----
-16
0
10

query III rowsort
SELECT * FROM tab2 WHERE ( - 90 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 75 + 8 AS col0 FROM tab1
----
-3817
-6367
-6817

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT col2 DIV + ( + col0 ) + - col0 * - col2 AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-2918
SELECT col2 / + ( + col0 ) + - col0 * - col2 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL 58 + + 42 AS col1 FROM tab2
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT - COUNT( * ) + 68 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-2920
SELECT - COUNT ( * ) + 68 FROM tab1
----
65

query II rowsort
SELECT DISTINCT + col2 * - + col1 * - + col1 - col2 + ( - col0 ) AS col2, + col0 FROM tab0
----
-97
97
308305
15
4313
87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 / + col1 <> NULL AND NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - ( + + MIN( + - 5 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-2923
SELECT - ( + + MIN ( + - 5 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + col0 * + ( - 1 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + + ( - 22 ) FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + col2 * + ( - 44 ) AS col1 FROM tab1 AS cor0
----
-2596
-2992
-4224

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 27 <= NULL
----

query II rowsort
SELECT ALL - col0 * + col1 AS col2, col1 AS col1 FROM tab0
----
-1215
81
-1827
21
-97
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + - 26 = - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab0 WHERE NOT 54 + + + col1 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT ALL + col1 DIV 92 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + col1 / 92 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 97 col2 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - + col1 - + - 69 AS col0 FROM tab1 AS cor0 WHERE NOT 76 IS NULL
----
22
55
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 51 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 + + + col1 * - 44 col0 FROM tab2 AS cor0
----
-2223
-2927
-3367

query I rowsort
SELECT col0 + + + col0 - + 39 FROM tab2
----
111
53
89

query I rowsort
SELECT DISTINCT + col2 * - 41 AS col1 FROM tab1
----
-2419
-2788
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - COUNT( * ) + 3 - + + COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - COUNT ( * ) + 3 - + + COUNT ( * ) FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL - 49 DIV + - col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - 49 / + - col0 AS col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT col2 + + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= col1 - + - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL ( + - MAX( ALL + col2 ) ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL ( + - MAX ( ALL + col2 ) ) FROM tab1 cor0
----
-96

query I rowsort
SELECT + col1 * + 13 FROM tab0 cor0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL 55 + - COUNT( * ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL 55 + - COUNT ( * ) AS col1 FROM tab1
----
52

query I rowsort
SELECT ALL 82 + - col2 FROM tab0
----
-17
35
72

query I rowsort
SELECT + 21 - + - col0 AS col1 FROM tab0
----
108
118
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT 85 - - - MIN( + - col1 ) FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-2949
SELECT 85 - - - MIN ( + - col1 ) FROM tab2
----
162

query I rowsort
SELECT ALL + col2 + - 29 FROM tab2
----
-6
11
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT 23 * - - CAST( + - 41 AS SIGNED ) AS col2 FROM tab2
----
-943
-943
-943

skipif mysql # not compatible
query I rowsort label-2951
SELECT 23 * - - CAST ( + - 41 AS INTEGER ) AS col2 FROM tab2
----
-943
-943
-943

query I rowsort
SELECT 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col2 BETWEEN - - 0 AND col1 / + + col0 - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT col0 DIV - col1 + col0 DIV - - col2 FROM tab0 AS cor0
----
-97
0
4

skipif mysql # not compatible
query I rowsort label-2954
SELECT col0 / - col1 + col0 / - - col2 FROM tab0 AS cor0
----
-97
0
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * - col1 - - - col1 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - 17 ) FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT + + MIN( - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT + + MIN ( - col1 ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT + 94 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT - MAX( CAST( - col0 AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - MAX ( CAST ( - col0 AS INTEGER ) ) FROM tab0
----
15

query II rowsort
SELECT DISTINCT 91 AS col2, col1 FROM tab2
----
91
51
91
67
91
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2961
SELECT + 8 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 8 / + - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 21 AS col1 FROM tab1
----
1239
1428
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col0 col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL ( 56 ) FROM tab0
----
56
56
56

query I rowsort
SELECT DISTINCT + 79 - + - 99 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + + 3
----

query I rowsort
SELECT + - 52 / - col2 FROM tab2 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COUNT( * ) + - 80 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) + - 80 FROM tab1
----
-77

query II rowsort
SELECT ALL - - 0 + + + 77 AS col1, + col0 * 28 + col1 * 46 + - + col1 AS col0 FROM tab1 cor0
----
77
2058
77
2605
77
4663

onlyif mysql # aggregate syntax: 
query II rowsort label-2969
SELECT COUNT( * ) AS col2, - 7 * 52 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
-364

skipif mysql # not compatible
query II rowsort label-2969
SELECT COUNT ( * ) AS col2, - 7 * 52 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT + MIN( 52 ) + - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2970
SELECT + MIN ( 52 ) + - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col1 + - col0 + 23
----

query I rowsort
SELECT - 16 * - 98 + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
1665
1709
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT ALL col2 DIV + col0 + - col0 + col0 FROM tab1 WHERE NOT + 73 <= col2
----
0
0

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL col2 / + col0 + - col0 + col0 FROM tab1 WHERE NOT + 73 <= col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT MIN( DISTINCT - col2 ) + + 0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2974
SELECT MIN ( DISTINCT - col2 ) + + 0 FROM tab2
----
-58

query I rowsort
SELECT ALL - col0 * + col0 * - + 27 + - col2 AS col2 FROM tab1
----
195016
223519
70131

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2976
SELECT DISTINCT * FROM tab1 WHERE - - CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2976
SELECT DISTINCT * FROM tab1 WHERE - - CAST ( + + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2977
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT DISTINCT + + 47, + col0 FROM tab2 AS cor0
----
47
46
47
64
47
75

query I rowsort
SELECT + AVG ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL >= col0
----
NULL

query I rowsort
SELECT ( - 43 ) AS col0 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT ( COUNT( * ) ), COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-2981
SELECT ( COUNT ( * ) ), COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT + ( COUNT( * ) ) * - 98 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-2982
SELECT + ( COUNT ( * ) ) * - 98 FROM tab1
----
-294

query I rowsort
SELECT 42 * + - ( - 77 ) * - - col2 * + col2 * + + col1 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
398428800
728904792
87250086

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + col1 <= NULL
----

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT + MIN( ALL + 50 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + MIN ( ALL + 50 ) FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL col0 * 60 * - col0 FROM tab1 AS cor0
----
-156060
-433500
-496860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT DISTINCT - - col0 col0 FROM tab0 WHERE NOT col2 * - - col0 + - 30 / + + 96 + + - ( 78 ) BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2988
SELECT DISTINCT - - col0 col0 FROM tab0 WHERE NOT col2 * - - col0 + - 30 / + + 96 + + - ( 78 ) BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT 30 DIV - - 86 * 64 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT 30 / - - 86 * 64 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT ALL 84 + - + COUNT( * ) * + COUNT( * ), - MIN( + col0 ) AS col1 FROM tab0
----
75
-15

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL 84 + - + COUNT ( * ) * + COUNT ( * ), - MIN ( + col0 ) AS col1 FROM tab0
----
75
-15

query I rowsort
SELECT - 57 * + col2 AS col2 FROM tab2 AS cor0
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT SUM( col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2992
SELECT SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2993
SELECT + - col1 * + col2 * ( col1 ) + + - 88 AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-187
NULL
-308455
NULL
-4498
NULL

skipif mysql # not compatible
query II rowsort label-2993
SELECT + - col1 * + col2 * ( col1 ) + + - 88 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-187
NULL
-308455
NULL
-4498
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + MAX( DISTINCT - 56 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + MAX ( DISTINCT - 56 ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 11 + - 74 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT COUNT( + + col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2996
SELECT COUNT ( + + col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT MAX( ALL col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2997
SELECT MAX ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT ALL - + 25 * 42 * col0 + + 88 - - CAST( - col2 AS SIGNED ) * 31 AS col0 FROM tab2 AS cor0
----
-48925
-68352
-80460

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - + 25 * 42 * col0 + + 88 - - CAST ( - col2 AS INTEGER ) * 31 AS col0 FROM tab2 AS cor0
----
-48925
-68352
-80460

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 66 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 83 col2, - 29 col0 FROM tab0 AS cor0
----
-83
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - SUM( ALL + ( ( + col0 ) ) ) AS col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3001
SELECT - SUM ( ALL + ( ( + col0 ) ) ) AS col2 FROM tab0 cor0
----
-199

query I rowsort
SELECT ALL - col1 - + col2 + col0 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3003
SELECT * FROM tab2 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3003
SELECT * FROM tab2 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 <> + col0 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 - + col2, 90 AS col0 FROM tab2
----
17
90
23
90
24
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL - COUNT( * ) + - - 14 FROM tab0 WHERE NOT ( col2 IS NULL )
----
11

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - COUNT ( * ) + - - 14 FROM tab0 WHERE NOT ( col2 IS NULL )
----
11

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN NULL AND + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT - col2 * 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-3008
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 20 * 40 AS col1 FROM tab2 cor0
----
800
800
800

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT DISTINCT MIN( DISTINCT + + 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT MIN ( DISTINCT + + 44 ) FROM tab2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3011
SELECT + COUNT( * ) DIV - - 60 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT + COUNT ( * ) / - - 60 FROM tab1
----
0

query II rowsort
SELECT 76 AS col2, col0 AS col2 FROM tab2
----
76
46
76
64
76
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE ( + 5 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 5 ) IS NULL
----
0

query II rowsort
SELECT col2 AS col0, 69 AS col0 FROM tab1 AS cor0
----
59
69
68
69
96
69

query II rowsort
SELECT - 91 AS col1, - 23 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT - + 1 AS col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COUNT( * ) + + SUM( col0 ) AS col0 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-3018
SELECT COUNT ( * ) + + SUM ( col0 ) AS col0 FROM tab1
----
230

query III rowsort
SELECT * FROM tab0 WHERE + col1 + - - col0 IS NULL
----

query II rowsort
SELECT - 13 + - col0, 47 * 0 AS col1 FROM tab2
----
-59
0
-77
0
-88
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT 93 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT + + col1 + + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT - COUNT( * ) + MAX( - col1 ) col0, 8 + 41 AS col1 FROM tab1 AS cor0
----
-8
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3024
SELECT - COUNT ( * ) + MAX ( - col1 ) col0, 8 + 41 AS col1 FROM tab1 AS cor0
----
-8
49

query I rowsort
SELECT + + 64 + + col2 FROM tab1 AS cor0
----
123
132
160

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IS NOT NULL OR + 31 BETWEEN - 46 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - col2 + + + col2 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 31 + - + 97 AS col2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3029
SELECT DISTINCT + 16, COUNT( * ) col2 FROM tab2
----
16
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3029
SELECT DISTINCT + 16, COUNT ( * ) col2 FROM tab2
----
16
3

query I rowsort
SELECT ALL col2 * - ( + col1 ) FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col0 FROM tab0
----
64

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 IS NOT NULL AND col0 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + 50 * - col1 AS col0 FROM tab2 AS cor0
----
-2550
-3350
-3850

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 32 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 27 > - col2
----
87
21
10

query I rowsort
SELECT - + 60 + col0 FROM tab1 AS cor0
----
-9
25
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT - - MIN( ALL + - col1 ) * + MIN( + + 58 ) AS col0 FROM tab2 AS cor0
----
-4466

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT - - MIN ( ALL + - col1 ) * + MIN ( + + 58 ) AS col0 FROM tab2 AS cor0
----
-4466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT ALL - COUNT( * ) DIV - - COUNT( ALL - col0 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL - COUNT ( * ) / - - COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + col2 * - 46 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - 28 * + COUNT( - + col1 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 28 * + COUNT ( - + col1 ) FROM tab2 AS cor0
----
-84

query II rowsort
SELECT col2 + - 92, - 96 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2, - 43 AS col2 FROM tab2
----
23
-43
40
-43
58
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab1 WHERE - col0 * - 49 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT DISTINCT + ( - SUM( - - col0 ) ) DIV COUNT( * ) col2 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3044
SELECT DISTINCT + ( - SUM ( - - col0 ) ) / COUNT ( * ) col2 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT 71 * + col2 AS col1 FROM tab1
----
4189
4828
6816

query I rowsort
SELECT 40 * col1 FROM tab1
----
1880
200
560

query I rowsort
SELECT DISTINCT - 16 * col1 AS col1 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT DISTINCT 34 * - 55 FROM tab1
----
-1870

query I rowsort
SELECT ALL - col0 * - 47 FROM tab0
----
4089
4559
705

query I rowsort
SELECT 1 + + col1 AS col2 FROM tab0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 28 col1 FROM tab1
----
33
42
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT ALL - COUNT( * ) DIV - COUNT( * ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3052
SELECT ALL - COUNT ( * ) / - COUNT ( * ) col2 FROM tab1
----
1

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT col2 * - 35 NOT IN ( - col1 * col1 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( + col0 ) BETWEEN NULL AND - col0 * col0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3055
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN NULL AND - ( + 92 ) * + 46 + - col0
----

skipif mysql # not compatible
query III rowsort label-3055
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - ( + 92 ) * + 46 + - col0
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - 36 + col2 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( col0 )
----

query I rowsort
SELECT ALL + 36 - 27 AS col1 FROM tab2
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT col0 * - col0 + col0 DIV + 36 AS col0 FROM tab0
----
-225
-7567
-9407

skipif mysql # not compatible
query I rowsort label-3060
SELECT col0 * - col0 + col0 / + 36 AS col0 FROM tab0
----
-225
-7567
-9407

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - ( + ( COUNT( * ) ) ) + 76 AS col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3061
SELECT - ( + ( COUNT ( * ) ) ) + 76 AS col0 FROM tab1
----
73

query I rowsort
SELECT ALL 18 AS col1 FROM tab2 WHERE NULL IN ( col0 * 64 + 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT - 84 * CAST( NULL AS SIGNED ) + - CAST( 19 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT - 84 * CAST ( NULL AS INTEGER ) + - CAST ( 19 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 16 + - 40 AS col2 FROM tab1
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE + 42 - 34 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3066
SELECT DISTINCT 3 DIV COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT 3 / COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 14 BETWEEN - 15 AND ( col0 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 93 ) IS NOT NULL
----

query I rowsort
SELECT 34 * ( - 68 * + col1 ) FROM tab1 WHERE + 85 IS NULL
----

query I rowsort
SELECT DISTINCT 12 + - col0 FROM tab2
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - COUNT( ALL col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3071
SELECT - COUNT ( ALL col2 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + COUNT( * ) + MIN( ALL - col0 ) FROM tab0 WHERE - col2 = + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT + COUNT ( * ) + MIN ( ALL - col0 ) FROM tab0 WHERE - col2 = + col2
----
NULL

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 13 + col2 NOT IN ( col2 )
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL IN ( - 84 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( 76 ) NOT BETWEEN ( 75 ) AND + col0 * - col1
----
-3

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( 76 ) NOT BETWEEN ( 75 ) AND + col0 * - col1
----
-3

query I rowsort
SELECT ALL 15 + + col2 FROM tab0 AS cor0 WHERE + col0 * ( - col2 * + col1 ) NOT BETWEEN + 72 + col2 * col0 AND col2
----
114
25
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3078
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) / - 32 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3078
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) / - 32 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - 66 <> + col2 - col1
----

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab0 WHERE NOT ( NULL ) <= ( + 8 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / + COUNT( * ) FROM tab2 WHERE NOT ( col2 ) IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) FROM tab2 WHERE NOT ( col2 ) IN ( col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 73 col1 FROM tab0
----
-26
26
63

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL <= - 94
----

query I rowsort
SELECT 88 * + 45 AS col2 FROM tab0 AS cor0
----
3960
3960
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - 80 AS col1 FROM tab1 AS cor0
----
-1120
-3760
-400

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - 80 AS col1 FROM tab1 AS cor0
----
-1120
-3760
-400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3086
SELECT - COUNT( * ) + 77 DIV - 57 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + 29 >= + col1 * + col1
----
-3

skipif mysql # not compatible
query I rowsort label-3086
SELECT - COUNT ( * ) + 77 / - 57 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + 29 >= + col1 * + col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3087
SELECT + col0 * + CAST( col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-3087
SELECT + col0 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL - - ( COUNT( * ) ) * 73 col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3088
SELECT ALL - - ( COUNT ( * ) ) * 73 col0 FROM tab1 AS cor0
----
219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3089
SELECT - 39 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 39 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 ) + - 52 NOT IN ( col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL 16 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL 16 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 95 + ( 51 ) AS col2 FROM tab1 AS cor0
----
146
146
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 21 col2 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT 14 * col1 + col2 * 37 FROM tab1 AS cor0
----
2253
3174
3748

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + 59 AS col0 FROM tab0 AS cor0
----
-28
-38
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3097
SELECT ALL col2 + - col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL col2 + - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - MAX( ALL + col2 ) + 30 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-3098
SELECT - MAX ( ALL + col2 ) + 30 FROM tab2
----
-28

query I rowsort
SELECT 7 * - col2 + col1 FROM tab1
----
-408
-429
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - COUNT( * ) + + 12 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3100
SELECT - COUNT ( * ) + + 12 FROM tab1
----
9

query I rowsort
SELECT ALL 87 + ( col2 ) - + col1 FROM tab1
----
108
141
169

query I rowsort
SELECT 99 + col1 + col1 AS col1 FROM tab2
----
201
233
253

query I rowsort
SELECT DISTINCT + col1 + - - col1 + 84 FROM tab1
----
112
178
94

query I rowsort
SELECT DISTINCT - 27 * col0 + + col2 * 1 FROM tab1
----
-1281
-2236
-2389

query I rowsort
SELECT - col2 + 70 AS col0 FROM tab1
----
-26
11
2

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL > + col0 * 62
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 10 * + 98 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 15 col2 FROM tab2
----
66
82
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 44 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / col1 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 + + 19 col0 FROM tab2 AS cor0
----
-2582
-4470
-5910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL 39 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL 39 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * col2 + col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT col0 - + - col0 * - - 59 FROM tab2
----
2760
3840
4500

query I rowsort
SELECT - 59 - - - 3 + - col0 AS col2 FROM tab1
----
-113
-147
-153

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * ( 80 ) + 78 * + col1 NOT IN ( + ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3118
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IN ( col2 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3118
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IN ( col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + SUM( ALL + + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + SUM ( ALL + + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 9 / - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3120
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 9 / - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL - - SUM( DISTINCT + 42 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - - SUM ( DISTINCT + 42 ) FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT - + MAX( - 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT - + MAX ( - 32 ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( + col2 ) AND ( 55 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / - - col1 ) >= 37 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NOT + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NOT + col0 >= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3126
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) * - 68 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) * - 68 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * - col2 + + col1 * col2 ) < + col1
----

query I rowsort
SELECT + 59 * - - col2 * + 53 AS col1 FROM tab1
----
184493
212636
300192

query I rowsort
SELECT ALL 58 AS col2 FROM tab1 WHERE NOT ( + - col0 * + ( - ( col2 ) ) + 47 * - col1 ) BETWEEN + col1 / col0 AND - ( - col1 ) / col1
----
58
58
58

query II rowsort
SELECT DISTINCT ( + col2 ) AS col1, - 2 * + col2 AS col1 FROM tab1
----
59
-118
68
-136
96
-192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col0 * + col2 + - col2 AND ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3133
SELECT - 26 * CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-3133
SELECT - 26 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL COUNT( * ) + + 97 AS col0 FROM tab0 WHERE NOT ( + 45 ) = NULL
----
97

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL COUNT ( * ) + + 97 AS col0 FROM tab0 WHERE NOT ( + 45 ) = NULL
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 - - 65 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( 81 ) FROM tab0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL ( COUNT( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL ( COUNT ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + MIN( DISTINCT - 91 ) AS col1 FROM tab0 WHERE NOT col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT + MIN ( DISTINCT - 91 ) AS col1 FROM tab0 WHERE NOT col1 = NULL
----
NULL

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT DISTINCT - col0 + - - col2 + - col1 * 65 AS col2 FROM tab0
----
-1442
-5233
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + + 6 * COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + + 6 * COUNT ( * ) FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + + SUM( DISTINCT - col0 ) + - - MIN( 50 ) AS col1 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3142
SELECT + + SUM ( DISTINCT - col0 ) + - - MIN ( 50 ) AS col1 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT + 18 * col0 FROM tab1 cor0
----
1530
1638
918

query I rowsort
SELECT ALL + ( + 65 ) FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3146
SELECT - MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + ( MIN( + 51 ) ) AS col0 FROM tab1 AS cor0 WHERE 77 <= + 87
----
51

skipif mysql # not compatible
query I rowsort label-3147
SELECT + ( MIN ( + 51 ) ) AS col0 FROM tab1 AS cor0 WHERE 77 <= + 87
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT + COUNT( * ), - 32 + COUNT( * ) + + COUNT( * ) - - 72 AS col2 FROM tab1
----
3
46

skipif mysql # not compatible
query II rowsort label-3148
SELECT + COUNT ( * ), - 32 + COUNT ( * ) + + COUNT ( * ) - - 72 AS col2 FROM tab1
----
3
46

query II rowsort
SELECT ALL 54 AS col2, 3 AS col1 FROM tab2
----
54
3
54
3
54
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + col0 NOT BETWEEN ( + + col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NOT ( NOT col1 NOT BETWEEN NULL AND col1 * col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3152
SELECT * FROM tab2 WHERE + col0 NOT IN ( + CAST( NULL AS SIGNED ), + col2 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3152
SELECT * FROM tab2 WHERE + col0 NOT IN ( + CAST ( NULL AS INTEGER ), + col2 + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - + 16 AS col0 FROM tab0
----
-1
71
81

query I rowsort
SELECT 53 - - + col2 AS col1 FROM tab2
----
111
76
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 / - col1 - - + 7 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT - SUM( DISTINCT - col0 ) - - COUNT( * ) AS col0 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-3157
SELECT - SUM ( DISTINCT - col0 ) - - COUNT ( * ) AS col0 FROM tab1
----
230

query II rowsort
SELECT + col2, - col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + + col1 )
----

query I rowsort
SELECT ALL + col0 / col0 * col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + col1
----

query I rowsort
SELECT DISTINCT + - 70 - col2 AS col0 FROM tab2 AS cor0
----
-110
-128
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL + SUM( 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + SUM ( 33 ) FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL + col0 * + ( CAST( col0 AS SIGNED ) ) FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + col0 * + ( CAST ( col0 AS INTEGER ) ) FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT DISTINCT + 54 DIV + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT + 54 / + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT DISTINCT + 30 DIV + + col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + 30 / + + col0 FROM tab0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col0 FROM tab2 AS cor0
----
-26
-26
-26

query II rowsort
SELECT + ( + + col1 ), col0 * col1 + - 81 + + - col1 * + + col2 AS col0 FROM tab0 AS cor0
----
1
-83
21
1536
81
-2673

query I rowsort
SELECT DISTINCT - col2 * + col0 * - - 38 + - + col0 FROM tab2 AS cor0
----
-165375
-40250
-97344

query II rowsort
SELECT + + 59, col1 + + 99 FROM tab1 AS cor0 WHERE NOT + col2 <> - ( + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL 74 * SUM( ALL col1 ) AS col2 FROM tab2 cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL 74 * SUM ( ALL col1 ) AS col2 FROM tab2 cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT col1 + - col0 FROM tab1 cor0 WHERE NOT - ( - ( + 68 ) ) + 46 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 46 + col0 * - + 53 * - col1 BETWEEN - + 90 * 84 AND + 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * 72 * - + 90 FROM tab1
----
-330480
-550800
-589680

query I rowsort
SELECT - col2 * + col1 + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-200
-3760
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT DISTINCT CAST( - 12 AS SIGNED ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT CAST ( - 12 AS INTEGER ) AS col2 FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT - col2 * col2 * + + CAST( + + 20 AS SIGNED ) FROM tab2
----
-10580
-32000
-67280

skipif mysql # not compatible
query I rowsort label-3175
SELECT - col2 * col2 * + + CAST ( + + 20 AS INTEGER ) FROM tab2
----
-10580
-32000
-67280

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE + 43 NOT BETWEEN + ( col2 ) AND ( + col0 ) + + col1 + - 4 / col0
----
1

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE + 43 NOT BETWEEN + ( col2 ) AND ( + col0 ) + + col1 + - 4 / col0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL COUNT( * ) * 59 AS col0 FROM tab1 WHERE NOT ( - + ( - - 94 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL COUNT ( * ) * 59 AS col0 FROM tab1 WHERE NOT ( - + ( - - 94 ) ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT DISTINCT 89 DIV - col2 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT 89 / - col2 AS col0 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT + 28 DIV - 36 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT + 28 / - 36 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT col1 DIV col2 * col2 FROM tab2
----
40
46
58

skipif mysql # not compatible
query I rowsort label-3181
SELECT col1 / col2 * col2 FROM tab2
----
40
46
58

query I rowsort
SELECT - 77 * col2 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT COUNT( * ) DIV - - ( - MIN( - + col1 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT COUNT ( * ) / - - ( - MIN ( - + col1 ) ) FROM tab1
----
0

query II rowsort
SELECT + 97, col0 * + - col2 AS col0 FROM tab2
----
97
-1058
97
-2560
97
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + COUNT( * ) * COUNT( * ) + - + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COUNT ( * ) * COUNT ( * ) + - + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3186
SELECT DISTINCT - col0 + col2 * + col2 FROM tab1 cor0 WHERE NOT CAST( ( - CAST( - 16 AS DECIMAL ) ) AS SIGNED ) > ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT - col0 + col2 * + col2 FROM tab1 cor0 WHERE NOT CAST ( ( - CAST ( - 16 AS REAL ) ) AS INTEGER ) > ( - + col2 )
----

query I rowsort
SELECT DISTINCT + - col2 / + col0 + 20 * - - ( - ( col1 ) ) * + col2 - col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3188
SELECT - CAST( NULL AS DECIMAL ), col2 FROM tab2 AS cor0 WHERE NOT NULL = col2
----

skipif mysql # not compatible
query II rowsort label-3188
SELECT - CAST ( NULL AS REAL ), col2 FROM tab2 AS cor0 WHERE NOT NULL = col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 44 / - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL ( + 93 ) + + COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL ( + 93 ) + + COUNT ( * ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT + 75 * ( - ( COUNT( * ) ) ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-3191
SELECT + 75 * ( - ( COUNT ( * ) ) ) FROM tab0
----
-225

query I rowsort
SELECT DISTINCT + 8 + 1 AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + ( + - 8 ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT ALL + ( 49 ) + col1 * col2 + + col1 FROM tab0 AS cor0 WHERE NOT 32 IS NULL
----
149
280
3937

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + - 83 ) * col2 ) > - 65 / col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3197
SELECT + - COUNT( * ) * - 94 / + MIN( DISTINCT - - CAST( 86 AS SIGNED ) ) - - 32 FROM tab2 cor0 WHERE NULL NOT BETWEEN + col0 AND + 70 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT + - COUNT ( * ) * - 94 / + MIN ( DISTINCT - - CAST ( 86 AS INTEGER ) ) - - 32 FROM tab2 cor0 WHERE NULL NOT BETWEEN + col0 AND + 70 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3198
SELECT + ( - - CAST( NULL AS DECIMAL ) ) + AVG ( - - 26 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT + ( - - CAST ( NULL AS REAL ) ) + AVG ( - - 26 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE 4 < col0 / 35 + col1
----
51
67
77

query I rowsort
SELECT ALL col0 * - 86 FROM tab2
----
-3956
-5504
-6450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + - col1 * + 31
----

query I rowsort
SELECT + 67 * - - ( ( - col2 ) ) + - col1 FROM tab1
----
-3958
-4603
-6446

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE col1 * + 3 + - 49 IS NOT NULL
----
51
67
77

query I rowsort
SELECT col0 + ( 74 ) + - + col0 * col2 FROM tab0
----
-616
-709
-9432

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 91 + col2 FROM tab0
----
101
138
190

query I rowsort
SELECT DISTINCT + col2 - - ( col2 ) FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3208
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3208
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 < CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 1 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT - col2 - - CAST( + ( - + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3210
SELECT - col2 - - CAST ( + ( - + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3211
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + 47 BETWEEN ( - + col2 / col1 + ( 71 ) / 60 * + + CAST( NULL AS SIGNED ) + 64 ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-3211
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + 47 BETWEEN ( - + col2 / col1 + ( 71 ) / 60 * + + CAST ( NULL AS INTEGER ) + 64 ) AND NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - ( + col1 ) AS col2 FROM tab0 WHERE NOT - col2 + 34 + - + col1 * - + col2 * - - col2 <= ( - 14 )
----
1215
1827
97

query II rowsort
SELECT DISTINCT + - 64 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-64
-1
-64
-21
-64
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT ALL - + COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab1 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3214
SELECT ALL - + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 48 + - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + - 99 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3217
SELECT ALL * FROM tab0 cor0 WHERE - col0 + - col2 NOT BETWEEN 16 AND + - CAST( NULL AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3217
SELECT ALL * FROM tab0 cor0 WHERE - col0 + - col2 NOT BETWEEN 16 AND + - CAST ( NULL AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1, + 22 + + 88 FROM tab0 cor0
----
1
110
21
110
81
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - 61 * + COUNT( * ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3220
SELECT - 61 * + COUNT ( * ) FROM tab0 AS cor0
----
-183

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT 21 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + 7 col2, col2 FROM tab1
----
413
59
476
68
672
96

query I rowsort
SELECT ALL + col1 * 17 FROM tab1
----
238
799
85

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT + 61 IN ( 21 * + - col0, - col1, 8 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT ALL col1 * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL col1 * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3226
SELECT DISTINCT - - MIN( ALL + + CAST( NULL AS SIGNED ) ) col2, 57 FROM tab2 AS cor0
----
NULL
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3226
SELECT DISTINCT - - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) col2, 57 FROM tab2 AS cor0
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL + COUNT( * ) AS col1 FROM tab1 cor0 WHERE + - 16 + + 53 <= NULL OR - 30 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE + - 16 + + 53 <= NULL OR - 30 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT - - ( - + col2 ) DIV - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-3228
SELECT - - ( - + col2 ) / - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-46
-8
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3229
SELECT + col1 + + CAST( - 82 AS SIGNED ) + col1 DIV - col1 + + - CAST( - col1 AS SIGNED ) FROM tab2
----
19
51
71

skipif mysql # not compatible
query I rowsort label-3229
SELECT + col1 + + CAST ( - 82 AS INTEGER ) + col1 / - col1 + + - CAST ( - col1 AS INTEGER ) FROM tab2
----
19
51
71

query I rowsort
SELECT col1 * + col1 + - 37 AS col2 FROM tab2
----
2564
4452
5892

query I rowsort
SELECT - col2 + + 86 FROM tab0
----
-13
39
76

query I rowsort
SELECT ALL - + col1 * + + col0 + + - ( - col2 ) - col1 * + - col1 FROM tab2 AS cor0
----
-478
1041
278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * + + 56 FROM tab0 AS cor0
----
1176
4536
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 74 * - col0 AND - col1 + + + col2 + - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - - col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL 34 * - col1 * - - ( + 55 ) FROM tab1 cor0
----
-26180
-87890
-9350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col0 + + + 61 AS col2, + col1 AS col2 FROM tab2
----
107
51
125
77
136
67

query I rowsort
SELECT ALL + 25 + - + col0 FROM tab1
----
-26
-60
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - col1 col1 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3242
SELECT ALL + ( - + 10 ) DIV COUNT( * ) - + - COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) - - - COUNT( * ) AS col1 FROM tab0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3242
SELECT ALL + ( - + 10 ) / COUNT ( * ) - + - COUNT ( * ) AS col2, CAST ( NULL AS REAL ) - - - COUNT ( * ) AS col1 FROM tab0
----
0
NULL

query I rowsort
SELECT DISTINCT - - col0 - + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT + 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT + 64 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3245
SELECT + 64 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - MIN( 32 ) AS col0 FROM tab1 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3246
SELECT - MIN ( 32 ) AS col0 FROM tab1 cor0
----
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - ( + + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL - MIN( 67 ) AS col2 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL - MIN ( 67 ) AS col2 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT ALL + ( - - ( col2 ) ) AS col0 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT + + col0 FROM tab1 WHERE NULL IS NULL AND NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL 68 + - + 41 FROM tab0
----
27
27
27

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 + + - 10 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3254
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 + + - 10 AND NULL
----
0

query II rowsort
SELECT 14 AS col1, col0 FROM tab1 AS cor0
----
14
51
14
85
14
91

query II rowsort
SELECT ALL - col2 AS col1, col0 FROM tab1 cor0
----
-59
85
-68
91
-96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT - ( + + col2 ) DIV - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3257
SELECT - ( + + col2 ) / - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-11
-6

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query II rowsort
SELECT col0, + 48 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
48
87
48
97
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3260
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 + + + 20 AS col0, + col2 - - 33 * - - 12 + - 81 AS col0 FROM tab2
----
NULL
338
NULL
355
NULL
373

skipif mysql # not compatible
query II rowsort label-3260
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 + + + 20 AS col0, + col2 - - 33 * - - 12 + - 81 AS col0 FROM tab2
----
NULL
338
NULL
355
NULL
373

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3261
SELECT * FROM tab1 WHERE NOT - - CAST( + col1 AS SIGNED ) * + 79 - col2 * col0 * - col2 * - 83 + + 51 = NULL
----

skipif mysql # not compatible
query III rowsort label-3261
SELECT * FROM tab1 WHERE NOT - - CAST ( + col1 AS INTEGER ) * + 79 - col2 * col0 * - col2 * - 83 + + 51 = NULL
----

query II rowsort
SELECT ALL - col0 AS col1, col0 + col1 FROM tab1
----
-51
65
-85
90
-91
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3263
SELECT + + CAST( + - col1 AS SIGNED ) DIV + col1 FROM tab1 WHERE NOT - col2 * + col1 >= 60
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3263
SELECT + + CAST ( + - col1 AS INTEGER ) / + col1 FROM tab1 WHERE NOT - col2 * + col1 >= 60
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - col1 col0 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + col1 * + - 78 + + col0, col1 * col0 + - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3266
SELECT + col1 + - + 74, CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
-27
NULL
-60
NULL
-69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3266
SELECT + col1 + - + 74, CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
-27
NULL
-60
NULL
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT + COUNT( * ) * - SUM( DISTINCT - col2 ) + 79 FROM tab0 AS cor0
----
547

skipif mysql # not compatible
query I rowsort label-3267
SELECT + COUNT ( * ) * - SUM ( DISTINCT - col2 ) + 79 FROM tab0 AS cor0
----
547

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL - - ( SUM( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - - ( SUM ( - col1 ) ) FROM tab0 AS cor0
----
-103

query II rowsort
SELECT ALL + 32 + - col1, + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-15
-47
18
-14
27
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * - + ( - 28 ) AS col1 FROM tab2 AS cor0
----
-1288
-1792
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3272
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-3

query I rowsort
SELECT + 94 FROM tab0 WHERE NOT 15 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 >= ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT + COUNT( * ) + + SUM( ALL - col0 ) AS col1 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + COUNT ( * ) + + SUM ( ALL - col0 ) AS col1 FROM tab0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT 93 * COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1
----
-837

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT 93 * COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1
----
-837

query I rowsort
SELECT DISTINCT + col0 + - 19 + - - 92 AS col2 FROM tab1
----
124
158
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT 20 * - CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab0
----
-1740
-1940
-300

skipif mysql # not compatible
query I rowsort label-3278
SELECT 20 * - CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab0
----
-1740
-1940
-300

query II rowsort
SELECT col0, ( - col2 ) + + col2 AS col0 FROM tab1
----
51
0
85
0
91
0

query I rowsort
SELECT DISTINCT col1 + - col1 + + col1 + - col2 - - - col2 + 94 AS col2 FROM tab0
----
-103
81
95

query I rowsort
SELECT 95 * col0 * + col1 FROM tab0 AS cor0
----
115425
173565
9215

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < ( + + 46 )
----

query I rowsort
SELECT DISTINCT + - 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-61

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 15 < NULL
----

query I rowsort
SELECT DISTINCT + 83 * - + 75 * + 92 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-572700

query I rowsort
SELECT ALL - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT + SUM( ALL ( - col1 ) ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT + SUM ( ALL ( - col1 ) ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-192

query I rowsort
SELECT ALL - col2 * - + 80 + + col2 + - col0 FROM tab0 AS cor0
----
3792
723
7922

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3289
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3289
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT + - 98, COUNT( * ) col2 FROM tab0 AS cor0
----
-98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3290
SELECT + - 98, COUNT ( * ) col2 FROM tab0 AS cor0
----
-98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT 99 * + COUNT( * ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3291
SELECT 99 * + COUNT ( * ) FROM tab1 AS cor0
----
297

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + 94 - + MAX( DISTINCT - - 56 ) col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3293
SELECT + 94 - + MAX ( DISTINCT - - 56 ) col2 FROM tab2 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3294
SELECT * FROM tab0 AS cor0 WHERE + col2 > - ( - CAST( + 45 AS SIGNED ) ) * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3294
SELECT * FROM tab0 AS cor0 WHERE + col2 > - ( - CAST ( + 45 AS INTEGER ) ) * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - 2 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT DISTINCT + - SUM( + col1 ) AS col0, + ( + 84 ) FROM tab0 AS cor0
----
-103
84

skipif mysql # not compatible
query II rowsort label-3296
SELECT DISTINCT + - SUM ( + col1 ) AS col0, + ( + 84 ) FROM tab0 AS cor0
----
-103
84

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL SUM( DISTINCT + ( - - 29 ) ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL SUM ( DISTINCT + ( - - 29 ) ) FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + MIN( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT + MIN ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 79, - col2 col1 FROM tab1
----
79
-59
79
-68
79
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - - col1 ) + - 10 + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + - col1 ) AND 68
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT + col2 DIV + + col1 * - col2 + + + 49 AS col0 FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3303
SELECT + col2 / + + col1 * - col2 + + + 49 AS col0 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3304
SELECT ALL 49 AS col2, SUM( ALL col2 ) FROM tab2 AS cor0
----
49
121

skipif mysql # not compatible
query II rowsort label-3304
SELECT ALL 49 AS col2, SUM ( ALL col2 ) FROM tab2 AS cor0
----
49
121

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 28 > NULL
----

query I rowsort
SELECT DISTINCT - ( + - 21 ) FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT - 58 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-3307
SELECT - 58 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-4

query I rowsort
SELECT col0 + - col2 * - col0 AS col1 FROM tab2
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT CAST( col0 AS SIGNED ) + - col2 AS col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-3309
SELECT CAST ( col0 AS INTEGER ) + - col2 AS col2 FROM tab2
----
17
23
24

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 + 4 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 79 BETWEEN + col2 * - col0 AND - + 4
----

query I rowsort
SELECT DISTINCT 3 + - - 54 - - ( col1 ) FROM tab2
----
108
124
134

query I rowsort
SELECT col1 + col0 - ( + col0 ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-3314
SELECT + col1 + 98 AS col0, + col2 DIV - col2 AS col0 FROM tab1
----
103
-1
112
-1
145
-1

skipif mysql # not compatible
query II rowsort label-3314
SELECT + col1 + 98 AS col0, + col2 / - col2 AS col0 FROM tab1
----
103
-1
112
-1
145
-1

query II rowsort
SELECT - ( + col1 ) + - - ( col2 ), + col2 * - col2 AS col1 FROM tab2
----
-28
-529
-37
-1600
-9
-3364

query I rowsort
SELECT DISTINCT ( - + 6 ) * + - col1 AS col1 FROM tab1 AS cor0
----
282
30
84

query I rowsort
SELECT col1 - - - 30 AS col2 FROM tab2
----
21
37
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL MIN( ALL + 55 ) * + COUNT( * ) + + ( 13 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
508

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL MIN ( ALL + 55 ) * + COUNT ( * ) + + ( 13 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
508

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - 36 IN ( 66 - - - 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - + 61 + + - col0 col1 FROM tab1 AS cor0
----
-126
-151
-199

query I rowsort
SELECT DISTINCT - - col1 - - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + 7 <= NULL
----

query I rowsort
SELECT - col0 * - - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT MAX( ALL + 77 ) * - 85 AS col1 FROM tab1 AS cor0
----
-6545

skipif mysql # not compatible
query I rowsort label-3324
SELECT MAX ( ALL + 77 ) * - 85 AS col1 FROM tab1 AS cor0
----
-6545

query I rowsort
SELECT 23 * - 64 FROM tab2 AS cor0
----
-1472
-1472
-1472

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 > + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL ( + COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL ( + COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3328
SELECT DISTINCT + 19 DIV COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + 19 / COUNT ( * ) FROM tab1
----
6

query II rowsort
SELECT DISTINCT 71 AS col0, + col2 AS col2 FROM tab0
----
71
10
71
47
71
99

query I rowsort
SELECT DISTINCT - + ( 17 ) FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT ( + MIN( DISTINCT - col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT ( + MIN ( DISTINCT - col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT ALL - CAST( - 90 AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL - CAST ( - 90 AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
270

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, - col0 + ( - + 49 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT + 48 DIV + col2 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + 48 / + col2 AS col0 FROM tab2 AS cor0
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 > 75
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + col1
----

query I rowsort
SELECT + col1 + + 8 FROM tab1 WHERE NOT + col2 * - ( col1 ) IS NULL
----
13
22
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT CAST( - COUNT( DISTINCT + + ( - 12 ) ) AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3338
SELECT DISTINCT CAST ( - COUNT ( DISTINCT + + ( - 12 ) ) AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col1 + - col2 col1 FROM tab0 AS cor0 WHERE NOT ( col0 / col0 ) NOT BETWEEN 97 * + + col1 * + - 67 AND - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3339
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col1 + - col2 col1 FROM tab0 AS cor0 WHERE NOT ( col0 / col0 ) NOT BETWEEN 97 * + + col1 * + - 67 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3340
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE NOT col1 + 24 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 cor0 WHERE NOT col1 + 24 IS NOT NULL
----

query I rowsort
SELECT col2 + 19 * col2 + 52 + - 53 FROM tab2 AS cor0
----
1159
459
799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3342
SELECT + CAST( - + col2 AS SIGNED ) + + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3342
SELECT + CAST ( - + col2 AS INTEGER ) + + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT - MAX( DISTINCT col0 ), 73 AS col0 FROM tab1 AS cor0
----
-91
73

skipif mysql # not compatible
query II rowsort label-3343
SELECT - MAX ( DISTINCT col0 ), 73 AS col0 FROM tab1 AS cor0
----
-91
73

query I rowsort
SELECT - + 93 * + col2 + + 65 FROM tab1 AS cor0
----
-5422
-6259
-8863

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT MAX( DISTINCT 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-3345
SELECT MAX ( DISTINCT 52 ) FROM tab1
----
52

query I rowsort
SELECT ALL - col2 + - 89 AS col2 FROM tab0
----
-136
-188
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 31 AS col2 FROM tab2
----
106
77
95

query I rowsort
SELECT ALL 86 + - col1 AS col2 FROM tab1
----
39
72
81

query I rowsort
SELECT ALL + 86 + col2 FROM tab0
----
133
185
96

query I rowsort
SELECT - 40 - - - ( - + col1 ) FROM tab2
----
11
27
37

query I rowsort
SELECT DISTINCT - - col2 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 19 + + col2 FROM tab2 AS cor0
----
42
59
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT + 8 + CAST( NULL AS SIGNED ) + + 47 * CAST( + + 15 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT + 8 + CAST ( NULL AS INTEGER ) + + 47 * CAST ( + + 15 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 6 * col2 AS col2 FROM tab2
----
138
240
348

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT COUNT( + - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3356
SELECT COUNT ( + - col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 34 * - + col2 * - - 53 AS col1 FROM tab1 AS cor0
----
106318
122536
172992

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT + + 71 DIV + 64 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + + 71 / + 64 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col2 * - - col1 + + + col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT ALL col1 * - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL col1 * - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col1, col2 AS col0 FROM tab0 WHERE NOT ( NOT + col0 IS NULL )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT + + ( col1 ) NOT BETWEEN - 76 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - SUM( - 29 ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3365
SELECT - SUM ( - 29 ) AS col0 FROM tab1
----
87

query I rowsort
SELECT ALL 31 AS col1 FROM tab1 WHERE 97 <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT - SUM( ALL - - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3367
SELECT - SUM ( ALL - - col0 ) FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT 65 DIV + + 7 AS col0 FROM tab1
----
9
9
9

skipif mysql # not compatible
query I rowsort label-3368
SELECT 65 / + + 7 AS col0 FROM tab1
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3369
SELECT ALL + - 18 * + + CAST( + 12 AS SIGNED ) AS col0, + 64 - + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-216
61

skipif mysql # not compatible
query II rowsort label-3369
SELECT ALL + - 18 * + + CAST ( + 12 AS INTEGER ) AS col0, + 64 - + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-216
61

query I rowsort
SELECT ALL - col1 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab1 WHERE - 0 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 74 * + - 22 FROM tab0
----
1628

query II rowsort
SELECT + 65 AS col1, 83 AS col1 FROM tab1 AS cor0
----
65
83
65
83
65
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( 4 AS SIGNED ) FROM tab2 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( 4 AS INTEGER ) FROM tab2 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT ( - SUM( col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT ( - SUM ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT ALL + COUNT( * ) AS col2, MIN( ALL - ( + col1 ) ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
3
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3376
SELECT ALL + COUNT ( * ) AS col2, MIN ( ALL - ( + col1 ) ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
3
243

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT ( + + 15 >= 4 * + + col2 * col1 )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3378
SELECT ALL + 52 DIV + 83 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3378
SELECT ALL + 52 / + 83 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT + COUNT( * ) + - 14 AS col1, - COUNT( * ) FROM tab2
----
-11
-3

skipif mysql # not compatible
query II rowsort label-3379
SELECT + COUNT ( * ) + - 14 AS col1, - COUNT ( * ) FROM tab2
----
-11
-3

query I rowsort
SELECT col1 * + col2 + + col1 AS col0 FROM tab2
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT ALL col2 + col2 DIV + col0 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL col2 + col2 / + col0 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3382
SELECT - CAST( + MIN( + 16 ) AS SIGNED ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-3382
SELECT - CAST ( + MIN ( + 16 ) AS INTEGER ) FROM tab0
----
-16

query III rowsort
SELECT * FROM tab2 WHERE - + 37 - 48 + - - 10 BETWEEN + col1 AND - 65 + col0
----

query I rowsort
SELECT ALL + 6 AS col1 FROM tab1 AS cor0 WHERE col1 <> 95
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT + MAX( ALL - - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + MAX ( ALL - - col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col0 + + 31 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT - - ( MIN( + CAST( col2 AS SIGNED ) ) ) col2 FROM tab1 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT DISTINCT - - ( MIN ( + CAST ( col2 AS INTEGER ) ) ) col2 FROM tab1 cor0
----
59

query I rowsort
SELECT ALL - 16 * - col0 AS col0 FROM tab0 AS cor0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query II rowsort label-3390
SELECT ALL - COUNT( * ), 79 AS col1 FROM tab2 AS cor0
----
-3
79

skipif mysql # not compatible
query II rowsort label-3390
SELECT ALL - COUNT ( * ), 79 AS col1 FROM tab2 AS cor0
----
-3
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT DISTINCT + + CAST( + ( + + col2 ) AS SIGNED ) * col2 + + 70 col1 FROM tab0 AS cor0
----
170
2279
9871

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3391
SELECT DISTINCT + + CAST ( + ( + + col2 ) AS INTEGER ) * col2 + + 70 col1 FROM tab0 AS cor0
----
170
2279
9871

query I rowsort
SELECT + 9 * + 16 / + col0 + - + 19 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - ( - + 40 ), + col1 FROM tab0
----
40
1
40
21
40
81

query II rowsort
SELECT - col1 * - col2, col2 + + 1 AS col1 FROM tab2
----
1173
24
3080
41
3886
59

query I rowsort
SELECT ALL + col2 * col1 * - col0 AS col2 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL col0 * ( 30 ) FROM tab0
----
2610
2910
450

query I rowsort
SELECT DISTINCT ( + + col0 ) * + 11 FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT ALL + CAST( NULL AS SIGNED ) + + - AVG ( - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL + CAST ( NULL AS INTEGER ) + + - AVG ( - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - + 24 * col1 AS col2 FROM tab0
----
-1863
-23
-483

query I rowsort
SELECT ALL col2 + - - 36 FROM tab0
----
135
46
83

query I rowsort
SELECT - - 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 43 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + col2 * col1 FROM tab1 AS cor0 WHERE + 21 IS NOT NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT - MIN( + col0 ) col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3404
SELECT DISTINCT - MIN ( + col0 ) col2 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 col1 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
97
97
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 39 <> col0
----

query II rowsort
SELECT ALL col0 AS col0, col0 + 20 FROM tab0 AS cor0
----
15
35
87
107
97
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT - MIN( - - col2 ) * - MAX( col1 ) AS col2 FROM tab1 AS cor0
----
2773

skipif mysql # not compatible
query I rowsort label-3408
SELECT - MIN ( - - col2 ) * - MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
2773

query I rowsort
SELECT DISTINCT 5 + + col2 + ( - col0 ) AS col1 FROM tab2 cor0
----
-12
-18
-19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( - col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3411
SELECT col0 - - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT col0 - - - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + col1 / + - 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT + col1 + 13 - + col0 + + col1 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT + col1 + 13 - + col0 + + col1 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT - - 41 * - COUNT( * ) + + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-341

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - - 41 * - COUNT ( * ) + + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-341

query I rowsort
SELECT - col2 * - 4 * - col1 FROM tab0
----
-15228
-396
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT COUNT( * ) + + + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-3418
SELECT COUNT ( * ) + + + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - SUM( - 75 ) * - + 87 + + SUM( - 85 ) AS col0 FROM tab0 AS cor0
----
-19830

skipif mysql # not compatible
query I rowsort label-3419
SELECT - SUM ( - 75 ) * - + 87 + + SUM ( - 85 ) AS col0 FROM tab0 AS cor0
----
-19830

query I rowsort
SELECT - 68 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT col1 * - 31 + - 20 FROM tab1 AS cor0
----
-1477
-175
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + ( - - MIN( + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + ( - - MIN ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL + MIN( + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + MIN ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL + COUNT( DISTINCT - 28 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + COUNT ( DISTINCT - 28 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL MIN( DISTINCT + + 47 ) AS col0 FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL MIN ( DISTINCT + + 47 ) AS col0 FROM tab2 cor0
----
47

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE - col0 * - - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL - CAST( + 51 AS SIGNED ) FROM tab2
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - CAST ( + 51 AS INTEGER ) FROM tab2
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT - 71 * 65 DIV + col2 + col0 FROM tab0
----
-374
-83
51

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - 71 * 65 / + col2 + col0 FROM tab0
----
-374
-83
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL - col0 * + + col0 + - ( + CAST( NULL AS SIGNED ) ) / - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - col0 * + + col0 + - ( + CAST ( NULL AS INTEGER ) ) / - - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col1 * + + 39 AS col0 FROM tab2
----
-2012
-2671
-3043

query I rowsort
SELECT col2 + + 19 AS col1 FROM tab2
----
42
59
77

query III rowsort
SELECT * FROM tab0 WHERE NOT 80 + - col1 - + + col1 IN ( + - col0 + - - 91 * col0, + col1 * 33, + - col0 - 78, + ( - + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT + SUM( + + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + SUM ( + + col2 ) AS col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ( COUNT( * ) ) + + 94 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3435
SELECT ( COUNT ( * ) ) + + 94 FROM tab0
----
97

query II rowsort
SELECT + 51 + 3 + + 77, + col0 FROM tab1 AS cor0
----
131
51
131
85
131
91

query I rowsort
SELECT - ( col0 ) + col0 + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - - 45 * col2 - - ( col2 ) - 62 FROM tab0 cor0
----
2100
398
4492

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL - MIN( 58 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - MIN ( 58 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 99 AND + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL + - COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + - COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col2 * + 30 + - + col2 AS col2 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3443
SELECT col1 + - col2 + + col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT col1 + - col2 + + col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 95 col2 FROM tab0
----
110
182
192

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 - - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT DISTINCT - SUM( DISTINCT - col2 ) * + ( - CAST( + 66 AS SIGNED ) ) AS col0 FROM tab0
----
-10296

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - SUM ( DISTINCT - col2 ) * + ( - CAST ( + 66 AS INTEGER ) ) AS col0 FROM tab0
----
-10296

query I rowsort
SELECT ALL 56 + - + col1 AS col2 FROM tab1
----
42
51
9

query I rowsort
SELECT col2 * - col2 * + 36 AS col2 FROM tab0
----
-352836
-3600
-79524

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL <> + col0 + + col2 + + - col0 - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col2 IN ( + col0, - col0 + + ( + col1 ) )
----

query I rowsort
SELECT DISTINCT - ( 6 ) FROM tab1 cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col1 + col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 2 col2, - col1 FROM tab0 cor0
----
2
-1
2
-21
2
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - SUM( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3454
SELECT - SUM ( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT 2 * + - col2 AS col0, + 34 * + - col2 FROM tab0
----
-198
-3366
-20
-340
-94
-1598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 + 84 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009

query I rowsort
SELECT - + 17 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab1 cor0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT - - MIN( DISTINCT + 59 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 83 AND NULL AND - col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT - - MIN ( DISTINCT + 59 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 83 AND NULL AND - col2 >= NULL
----
NULL

query I rowsort
SELECT 39 * - 27 AS col0 FROM tab0 AS cor0
----
-1053
-1053
-1053

query II rowsort
SELECT + col0 AS col1, 63 FROM tab0 AS cor0
----
15
63
87
63
97
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + MAX( ALL + 65 ) AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3463
SELECT + MAX ( ALL + 65 ) AS col0 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3464
SELECT ALL + col2, + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
query II rowsort label-3464
SELECT ALL + col2, + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col2 + - 43 FROM tab1 cor0
----
59
16
68
25
96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL MAX( - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL MAX ( - 10 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT - col0 col2 FROM tab1 WHERE NOT + - col2 * + - CAST( - col0 AS SIGNED ) + - - col1 NOT IN ( + col1 + 81 / CAST( - - 38 AS SIGNED ), - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3467
SELECT - col0 col2 FROM tab1 WHERE NOT + - col2 * + - CAST ( - col0 AS INTEGER ) + - - col1 NOT IN ( + col1 + 81 / CAST ( - - 38 AS INTEGER ), - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 6 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * - + col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL - MIN( + + 94 ) col2 FROM tab2
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3471
SELECT ALL - MIN ( + + 94 ) col2 FROM tab2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT + - 62 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3472
SELECT + - 62 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - SUM( DISTINCT + col1 ) + + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-3473
SELECT - SUM ( DISTINCT + col1 ) + + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - 38 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3474
SELECT - 38 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT + col2 + + + 4 + - 63 * - + 56 FROM tab0 AS cor0
----
3542
3579
3631

query I rowsort
SELECT 23 * - 96 FROM tab2
----
-2208
-2208
-2208

query II rowsort
SELECT + + col2 AS col0, - 73 FROM tab2 AS cor0
----
23
-73
40
-73
58
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT + COUNT( * ) + COUNT( * ) col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3478
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + SUM( - - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-3479
SELECT + SUM ( - - col1 ) FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT + + 84 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3480
SELECT + + 84 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
252

query I rowsort
SELECT DISTINCT ( col2 ) * - - col2 + - col1 AS col0 FROM tab2 AS cor0
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT + COUNT( * ) * + - 22 col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT DISTINCT + COUNT ( * ) * + - 22 col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT - col2 - 78 * - col2 - + col2 AS col2 FROM tab1
----
4484
5168
7296

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 24 + - col0 / - col0 + - col0 BETWEEN col1 AND - 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT + COUNT( * ) * - 83 AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + COUNT ( * ) * - 83 AS col2 FROM tab0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col2 FROM tab0 WHERE NOT col2 * + col1 + - 80 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col2 FROM tab0 WHERE NOT col2 * + col1 + - 80 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL 66 * - 74 * COUNT( DISTINCT - 42 ) AS col1 FROM tab2
----
-4884

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 66 * - 74 * COUNT ( DISTINCT - 42 ) AS col1 FROM tab2
----
-4884

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3488
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( - 84 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3488
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( - 84 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col0 / col2 * - 92
----

query I rowsort
SELECT - + col2 + - col1 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3491
SELECT col1, - 4 * - + col2 FROM tab0 WHERE NOT + 70 * - 53 + 52 / - col1 + + + col2 - + + CAST( 2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3491
SELECT col1, - 4 * - + col2 FROM tab0 WHERE NOT + 70 * - 53 + 52 / - col1 + + + col2 - + + CAST ( 2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 3 + + 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( - col2 ) * + col0 col2 FROM tab0 AS cor0
----
10575
75690
931491

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 + + + col1 AND + 37 / - 76 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT + COUNT( * ) * - 23 AS col0 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3495
SELECT + COUNT ( * ) * - 23 AS col0 FROM tab2 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL COUNT( * ) * - - 53 + - - AVG ( col1 ) FROM tab2 AS cor0 WHERE NULL <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL COUNT ( * ) * - - 53 + - - AVG ( col1 ) FROM tab2 AS cor0 WHERE NULL <> col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL - CAST( + 34 AS SIGNED ) FROM tab0 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - CAST ( + 34 AS INTEGER ) FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT 57 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3499
SELECT - MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 31 + + 92 + - + col1 FROM tab0 AS cor0
----
-2626
-2916
-454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT - col2 * + col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3503
SELECT - col2 * + col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3504
SELECT ALL + col2 * + + col2 DIV ( + col2 ) + + ( 60 ) col2, - 88 FROM tab1
----
119
-88
128
-88
156
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3504
SELECT ALL + col2 * + + col2 / ( + col2 ) + + ( 60 ) col2, - 88 FROM tab1
----
119
-88
128
-88
156
-88

query I rowsort
SELECT 16 + - col1 AS col1 FROM tab0
----
-5
-65
15

query I rowsort
SELECT ALL + col0 + - 73 - - 43 + 26 * - + col1 AS col0 FROM tab1
----
-1161
-343
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT COUNT( ALL - + 30 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT COUNT ( ALL - + 30 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 40 + + - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-110
-52
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT - + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3509
SELECT - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT + - 72 DIV + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
8

skipif mysql # not compatible
query I rowsort label-3511
SELECT + - 72 / + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
8

query I rowsort
SELECT ALL col1 + - + 70 AS col0 FROM tab2
----
-19
-3
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3513
SELECT - COUNT( - ( - 57 ) ) DIV - CAST( + 64 AS SIGNED ) col0 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3513
SELECT - COUNT ( - ( - 57 ) ) / - CAST ( + 64 AS INTEGER ) col0 FROM tab2 WHERE NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * + - col0 * + col1 FROM tab1 cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query II rowsort label-3515
SELECT - 19 + - COUNT( * ) AS col0, + COUNT( * ) col2 FROM tab2 AS cor0
----
-22
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3515
SELECT - 19 + - COUNT ( * ) AS col0, + COUNT ( * ) col2 FROM tab2 AS cor0
----
-22
3

query I rowsort
SELECT + - 7 + 97 * - col1 AS col2 FROM tab1 AS cor0
----
-1365
-4566
-492

query I rowsort
SELECT + 29 * - + col0 FROM tab1
----
-1479
-2465
-2639

query I rowsort
SELECT + 75 + - col1 FROM tab2 WHERE NOT - 28 IS NULL
----
-2
24
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL MAX( + 22 ) AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL MAX ( + 22 ) AS col2 FROM tab1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, - col2 * + ( + 63 ) FROM tab2
----
46
-1449
64
-2520
75
-3654

query I rowsort
SELECT ALL - col0 * - col0 * + + 59 FROM tab2
----
124844
241664
331875

onlyif mysql # DIV for integer division: 
query II rowsort label-3522
SELECT + 98 DIV + ( + 85 ), - col0 * ( + col2 ) + 92 AS col0 FROM tab2 AS cor0
----
1
-2468
1
-4258
1
-966

skipif mysql # not compatible
query II rowsort label-3522
SELECT + 98 / + ( + 85 ), - col0 * ( + col2 ) + 92 AS col0 FROM tab2 AS cor0
----
1
-2468
1
-4258
1
-966

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3523
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + col1 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3523
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + col1 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT - 33 + - CAST( + col2 AS SIGNED ) col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3524
SELECT - 33 + - CAST ( + col2 AS INTEGER ) col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN 63 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT 55 - + CAST( - 94 AS SIGNED ) FROM tab2 WHERE NOT ( 64 ) IN ( col1 * - 37 + col0 )
----
149
149
149

skipif mysql # not compatible
query I rowsort label-3526
SELECT 55 - + CAST ( - 94 AS INTEGER ) FROM tab2 WHERE NOT ( 64 ) IN ( col1 * - 37 + col0 )
----
149
149
149

query I rowsort
SELECT col2 * + col1 + + col0 AS col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT - col0 * - col2 + + 66 FROM tab2
----
1124
2626
4416

query I rowsort
SELECT + ( - 78 ) AS col0 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - 91 * + col1 AS col0 FROM tab1
----
-1274
-4277
-455

query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 + - col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 + - col0 col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 36 * ( - col0 * col2 ) col1 FROM tab2
----
-156542
-38065
-92120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT - 68 * CAST( NULL AS SIGNED ) + + 46 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT - 68 * CAST ( NULL AS INTEGER ) + + 46 * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT COUNT( * ) + - MAX( ALL - col2 ) FROM tab0 WHERE NOT NULL BETWEEN - col1 * 12 AND + col0 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT COUNT ( * ) + - MAX ( ALL - col2 ) FROM tab0 WHERE NOT NULL BETWEEN - col1 * 12 AND + col0 * - 64
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= - col0 * + 24 + col2 * col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3537
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col1 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT - SUM( - 20 ) AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3538
SELECT - SUM ( - 20 ) AS col0 FROM tab2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT ALL + ( - 95 ) * + CAST( - COUNT( ALL col0 ) AS SIGNED ) AS col0 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + ( - 95 ) * + CAST ( - COUNT ( ALL col0 ) AS INTEGER ) AS col0 FROM tab1
----
285

query I rowsort
SELECT DISTINCT col1 * 61 AS col1 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT 48 + - 34 * + 15 FROM tab1 WHERE + col2 * - col2 <> ( - col1 * col2 )
----
-462
-462
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + 61 col1 FROM tab0
----
-20
40
60

query I rowsort
SELECT col2 + - 1 AS col0 FROM tab2
----
22
39
57

query I rowsort
SELECT - ( - col2 ) + col0 AS col0 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT SUM( ALL + col1 ) * + ( MIN( DISTINCT + col0 ) ) AS col2 FROM tab2
----
8970

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT SUM ( ALL + col1 ) * + ( MIN ( DISTINCT + col0 ) ) AS col2 FROM tab2
----
8970

query I rowsort
SELECT col2 + ( + 94 ) FROM tab1
----
153
162
190

query I rowsort
SELECT ALL + col2 * col2 - col2 * col1 FROM tab1
----
1428
3186
7872

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( - 93 ) >= ( - 11 )
----

query I rowsort
SELECT col1 + ( 14 ) FROM tab2 AS cor0
----
65
81
91

query I rowsort
SELECT DISTINCT 40 * col2 AS col1 FROM tab0 AS cor0
----
1880
3960
400

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 80 * - col2 ) <> + col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3552
SELECT ALL - MAX( col1 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - MAX ( col1 ) / - COUNT ( * ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT - col1 - - ( col1 + ( 28 ) ) FROM tab2 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT CAST( NULL AS SIGNED ) * ( col0 ) + - 90 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT CAST ( NULL AS INTEGER ) * ( col0 ) + - 90 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 75 + col1 * 86 AS col0 FROM tab1 AS cor0
----
1279
4117
505

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - col2 + 24 * + ( 41 ) AS col0 FROM tab0
----
885
937
974

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT ALL 4 * 18 - 31 DIV - col1 AS col0 FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL 4 * 18 - 31 / - col1 AS col0 FROM tab2
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT MAX( - 62 ) AS col1 FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3559
SELECT MAX ( - 62 ) AS col1 FROM tab1 cor0
----
-62

query I rowsort
SELECT DISTINCT + + 89 - - col2 AS col2 FROM tab1 AS cor0
----
148
157
185

query I rowsort
SELECT - col2 * col2 - 58 * + ( col2 * 1 ) AS col0 FROM tab1 AS cor0
----
-14784
-6903
-8568

query I rowsort
SELECT ALL col2 - - col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 * 85 AND ( col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT - CAST( 67 AS SIGNED ) col2 FROM tab2 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3564
SELECT - CAST ( 67 AS INTEGER ) col2 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + - col2 * - 63 AS col1 FROM tab0 AS cor0
----
2961
6237
630

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( - 95 ) ) * - col1 - 43 * 39 IS NOT NULL
----

query I rowsort
SELECT ALL 74 FROM tab1 AS cor0 WHERE NOT ( col0 ) >= col1
----

query I rowsort
SELECT - 10 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + 26 ) * - col2 AS col2 FROM tab1
----
1534
1768
2496

query I rowsort
SELECT 51 * col1 AS col1 FROM tab0
----
1071
4131
51

query I rowsort
SELECT 69 * + col2 * + col1 FROM tab1
----
20355
220524
92736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 col1 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL - 72 * + - COUNT( * ) AS col0 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - 72 * + - COUNT ( * ) AS col0 FROM tab1
----
216

query I rowsort
SELECT col0 * + col2 * - 38 FROM tab1
----
-186048
-190570
-235144

query I rowsort
SELECT DISTINCT - 39 * - col0 FROM tab0
----
3393
3783
585

query I rowsort
SELECT + 12 * ( col0 ) AS col0 FROM tab0
----
1044
1164
180

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN col0 AND 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT COUNT( * ) * - + 12 AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-3579
SELECT COUNT ( * ) * - + 12 AS col1 FROM tab1
----
-36

query III rowsort
SELECT * FROM tab2 WHERE ( 15 * col0 ) IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3581
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / + col2 + CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3581
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / + col2 + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 45 * - 70 FROM tab2
----
-3150
-3150
-3150

query I rowsort
SELECT ALL + col0 * - ( - + 86 ) + - col2 AS col0 FROM tab2
----
3933
5464
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT 79 * + MIN( col1 ) FROM tab2
----
4029

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT 79 * + MIN ( col1 ) FROM tab2
----
4029

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - COUNT( * ) * MIN( DISTINCT - 60 ) FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3585
SELECT - COUNT ( * ) * MIN ( DISTINCT - 60 ) FROM tab1 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL MAX( ALL - - 32 ) * - COUNT( 6 ) - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL MAX ( ALL - - 32 ) * - COUNT ( 6 ) - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT DISTINCT - ( + col1 ) DIV 99 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - ( + col1 ) / 99 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + COUNT( * ) * COUNT( - 27 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3588
SELECT + COUNT ( * ) * COUNT ( - 27 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT - AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE ( col1 + + col1 / 96 ) NOT IN ( - col0 / col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE ( col1 + + col1 / 96 ) NOT IN ( - col0 / col1 )
----
NULL

query I rowsort
SELECT ALL col0 * + col2 * - + 58 AS col0 FROM tab2 cor0
----
-148480
-252300
-61364

query I rowsort
SELECT ALL col2 + - - 17 AS col0 FROM tab1 AS cor0
----
113
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - SUM( DISTINCT col2 ) + MAX( + + col1 ) AS col1 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3592
SELECT - SUM ( DISTINCT col2 ) + MAX ( + + col1 ) AS col1 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3593
SELECT ALL * FROM tab2 WHERE col0 * 58 + + ( CAST( NULL AS SIGNED ) + col0 ) * 22 IN ( + col2 * - 2 )
----

skipif mysql # not compatible
query III rowsort label-3593
SELECT ALL * FROM tab2 WHERE col0 * 58 + + ( CAST ( NULL AS INTEGER ) + col0 ) * 22 IN ( + col2 * - 2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT col2 DIV - - ( + col1 ) + col1 col0 FROM tab0
----
100
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT col2 / - - ( + col1 ) + col1 col0 FROM tab0
----
100
21
81

query I rowsort
SELECT DISTINCT + 77 + + + col1 FROM tab1
----
124
82
91

query I rowsort
SELECT col1 * + ( - - col1 ) + - + 28 FROM tab1
----
-3
168
2181

query I rowsort
SELECT - ( - 54 ) + + col0 AS col1 FROM tab1
----
105
139
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3598
SELECT DISTINCT 64 + CAST( NULL AS SIGNED ) AS col1, 49 AS col0 FROM tab0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3598
SELECT DISTINCT 64 + CAST ( NULL AS INTEGER ) AS col1, 49 AS col0 FROM tab0
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT COUNT( * ) + + ( + 89 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3599
SELECT COUNT ( * ) + + ( + 89 ) FROM tab2
----
92

query I rowsort
SELECT ALL col2 * + ( - col0 ) - - 56 AS col2 FROM tab2
----
-1002
-2504
-4294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT CAST( NULL AS SIGNED ) / MIN( ALL col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT CAST ( NULL AS INTEGER ) / MIN ( ALL col1 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 13 * + col1 / - 13 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3603
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - 6 - + col1 + - + 28 + col1 AS col0 FROM tab0 AS cor0
----
-19
53
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT + col1 * CAST( col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
2652
4556
6006

skipif mysql # not compatible
query I rowsort label-3605
SELECT + col1 * CAST ( col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT ALL - col0 + - 61 AS col1 FROM tab0
----
-148
-158
-76

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( col1 * - + col1 / + 50 - col0 + + col2 * + col2 ) IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + - col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 48 * + col0 * 45 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 89 col0 FROM tab1 AS cor0
----
89
89
89

query II rowsort
SELECT DISTINCT col2 AS col1, col2 - - + col2 FROM tab2
----
23
46
40
80
58
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + ( - COUNT( - col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3612
SELECT + ( - COUNT ( - col2 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT MIN( DISTINCT col2 ) DIV + - 5 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-3613
SELECT MIN ( DISTINCT col2 ) / + - 5 FROM tab1
----
-11

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-1
-21
-81

query I rowsort
SELECT col2 * - 44 * - - 50 FROM tab2
----
-127600
-50600
-88000

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * 91 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT ( NOT 9 + - + ( col0 ) IS NULL )
----

query II rowsort
SELECT DISTINCT 66 AS col1, - col1 * col0 + - 36 AS col1 FROM tab1
----
66
-4313
66
-461
66
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT MIN( + 51 ) AS col0 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3619
SELECT MIN ( + 51 ) AS col0 FROM tab0 cor0
----
51

query I rowsort
SELECT 35 * - 3 + - col1 FROM tab1 AS cor0
----
-110
-119
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT - ( + - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3621
SELECT - ( + - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT + SUM( ALL - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + SUM ( ALL - col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - SUM( col2 ) / + 55 AS col2 FROM tab0 WHERE NOT 68 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT - SUM ( col2 ) / + 55 AS col2 FROM tab0 WHERE NOT 68 >= NULL
----
NULL

query I rowsort
SELECT - col2 - + col1 AS col2 FROM tab2 WHERE NOT ( NULL ) < col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT + col1 + + - col2 DIV + col0 FROM tab1 cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-3625
SELECT + col1 + + - col2 / + col0 FROM tab1 cor0
----
13
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT DISTINCT 43 * + col1 col1 FROM tab1 AS cor0 WHERE NOT col0 IN ( + + col2, - col0 + + - CAST( + ( - + col0 ) AS SIGNED ) + - 24 * col2 )
----
2021
215
602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3626
SELECT DISTINCT 43 * + col1 col1 FROM tab1 AS cor0 WHERE NOT col0 IN ( + + col2, - col0 + + - CAST ( + ( - + col0 ) AS INTEGER ) + - 24 * col2 )
----
2021
215
602

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT + + 31 * - 18 * - COUNT( * ) + 37 + + MIN( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
1716

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + + 31 * - 18 * - COUNT ( * ) + 37 + + MIN ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT - col2 DIV + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3628
SELECT - col2 / + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col2 ) * - + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT 37 + + 25 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3631
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( + col1 AS DECIMAL ) = + col1
----

skipif mysql # not compatible
query III rowsort label-3631
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( + col1 AS REAL ) = + col1
----

query II rowsort
SELECT ALL 64 + 92 * + 42 AS col1, - col0 FROM tab1 AS cor0
----
3928
-51
3928
-85
3928
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + + MAX( DISTINCT + + 21 ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3633
SELECT + + MAX ( DISTINCT + + 21 ) AS col0 FROM tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 84 * + col0 AS col2 FROM tab0
----
-1260
-7308
-8148

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND col1 * - col1 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 77 - + col2 FROM tab0
----
-124
-176
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT ALL + - 18 * + 23 - + 37 * COUNT( * ), - 68 AS col2 FROM tab2 AS cor0
----
-525
-68

skipif mysql # not compatible
query II rowsort label-3638
SELECT ALL + - 18 * + 23 - + 37 * COUNT ( * ), - 68 AS col2 FROM tab2 AS cor0
----
-525
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT + - 4 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3639
SELECT + - 4 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 * ( + 28 ) AS col1 FROM tab1 AS cor0
----
-1316
-140
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL - COUNT( * ) + 60 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - COUNT ( * ) + 60 FROM tab2 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 55 * 40 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL - MIN( ALL + - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - MIN ( ALL + - col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL + - SUM( ALL - + ( 41 ) ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL + - SUM ( ALL - + ( 41 ) ) FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT SUM( + - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT SUM ( + - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT 36 DIV - col0 + + col1 col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3646
SELECT 36 / - col0 + + col1 col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3647
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ), COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT ALL + col2 * - + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 NOT IN ( - col1 * + - col1, 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab1 WHERE NOT NULL = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT ( + - col0 ) * CAST( + - col0 AS SIGNED ) col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3651
SELECT ( + - col0 ) * CAST ( + - col0 AS INTEGER ) col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + col0 * - 54 AS col2 FROM tab1
----
-2754
-4590
-4914

query I rowsort
SELECT - ( + 97 ) FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL COUNT( + + col1 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT ALL COUNT ( + + col1 ) col1 FROM tab0
----
3

query II rowsort
SELECT ALL - 66 AS col2, 27 AS col2 FROM tab2
----
-66
27
-66
27
-66
27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - - 21 - + + col1 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + COUNT( + + 80 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3657
SELECT + COUNT ( + + 80 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3658
SELECT ALL col0 + - CAST( NULL AS SIGNED ) AS col1, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3658
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) AS col1, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - - COUNT( * ) * + - COUNT( * ) + 88 * MAX( ALL 19 ) FROM tab1 AS cor0
----
1663

skipif mysql # not compatible
query I rowsort label-3659
SELECT - - COUNT ( * ) * + - COUNT ( * ) + 88 * MAX ( ALL 19 ) FROM tab1 AS cor0
----
1663

query I rowsort
SELECT + 53 + ( + col1 ) AS col2 FROM tab1 cor0
----
100
58
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3661
SELECT - ( - COUNT( * ) ) DIV - - COUNT( * ) + COUNT( * ) AS col2, COUNT( + col0 ) + - COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
4
0

skipif mysql # not compatible
query II rowsort label-3661
SELECT - ( - COUNT ( * ) ) / - - COUNT ( * ) + COUNT ( * ) AS col2, COUNT ( + col0 ) + - COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
4
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + - 75 ) * col1 + + 9 <> NULL
----

query I rowsort
SELECT DISTINCT - 18 * - col0 AS col1 FROM tab2 AS cor0
----
1152
1350
828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3664
SELECT ALL col2 * + - col2 AS col0, 34 + + col2 DIV CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-100
34
-2209
34
-9801
133

skipif mysql # not compatible
query II rowsort label-3664
SELECT ALL col2 * + - col2 AS col0, 34 + + col2 / CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-100
34
-2209
34
-9801
133

query I rowsort
SELECT 80 + col0 * + ( - col0 ) + - + col1 * + - 32 FROM tab2
----
-1552
-3401
-404

query I rowsort
SELECT 21 * - 53 AS col2 FROM tab2
----
-1113
-1113
-1113

query I rowsort
SELECT ALL + 82 * col1 FROM tab1
----
1148
3854
410

query I rowsort
SELECT ALL col1 + 78 FROM tab2
----
129
145
155

query I rowsort
SELECT ALL 58 * col1 - col1 AS col2 FROM tab0 AS cor0
----
1197
4617
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + + SUM( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3670
SELECT + + SUM ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT + 80, - 79 * + col2 AS col2 FROM tab2
----
80
-1817
80
-3160
80
-4582

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 + + - 86 - - col0 * + col1 BETWEEN col2 * + col2 + + col2 * col1 AND - ( 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3673
SELECT - 47 - MAX( DISTINCT - ( col1 ) ) FROM tab2 cor0 WHERE NOT 45 * + + ( - col0 ) * - CAST( + col2 AS SIGNED ) / - col1 * + CAST( + + 53 AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 47 - MAX ( DISTINCT - ( col1 ) ) FROM tab2 cor0 WHERE NOT 45 * + + ( - col0 ) * - CAST ( + col2 AS INTEGER ) / - col1 * + CAST ( + + 53 AS INTEGER ) = NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT COUNT( * ) DIV 54 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT COUNT ( * ) / 54 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 13 * + 40 + col1 AS col1 FROM tab0 AS cor0
----
521
541
601

query II rowsort
SELECT 37, + col0 FROM tab1 AS cor0
----
37
51
37
85
37
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT COUNT( DISTINCT - 18 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3677
SELECT COUNT ( DISTINCT - 18 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT col2 DIV + - col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT col2 / + - col0 AS col1 FROM tab0
----
-1
-3
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 38 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + col1 + - - col0 + - 22 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 4 * - col1 AS col2, col0 FROM tab1 AS cor0
----
-188
91
-20
85
-56
51

query I rowsort
SELECT ALL - ( - + ( - ( + 52 ) ) ) + col2 AS col1 FROM tab0 AS cor0
----
-42
-5
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + + 45 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3684
SELECT + + 45 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + MIN( + - 1 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3685
SELECT + MIN ( + - 1 ) AS col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ALL - 4, col2 AS col0 FROM tab2 AS cor0
----
-4
23
-4
40
-4
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 >= + col0 / - + 41 + + + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - - MAX( DISTINCT - + 85 ) AS col0 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - - MAX ( DISTINCT - + 85 ) AS col0 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT ALL - 0 * - - 12 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT DISTINCT - COUNT( * ) + - 24 AS col2, 50 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
-24
50

skipif mysql # not compatible
query II rowsort label-3690
SELECT DISTINCT - COUNT ( * ) + - 24 AS col2, 50 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
-24
50

query I rowsort
SELECT - col2 - 58 FROM tab1 cor0
----
-117
-126
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT DISTINCT col1 * col0 * - col1 * - + col0 + + + CAST( 65 AS SIGNED ) + + - col0 AS col1 FROM tab2
----
24285185
25250615
5503735

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT col1 * col0 * - col1 * - + col0 + + + CAST ( 65 AS INTEGER ) + + - col0 AS col1 FROM tab2
----
24285185
25250615
5503735

query I rowsort
SELECT ALL - col0 * - col1 + - 52 AS col1 FROM tab1
----
373
4225
662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 + - col2 col2 FROM tab1
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT COUNT( * ) + - - 93 col2 FROM tab0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3695
SELECT DISTINCT COUNT ( * ) + - - 93 col2 FROM tab0
----
96

query II rowsort
SELECT col1, - 14 * - ( + col0 ) * - 68 FROM tab1
----
14
-48552
47
-86632
5
-80920

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT - MIN( ALL col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3697
SELECT - MIN ( ALL col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + + 56 * + COUNT( - 76 ) FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + + 56 * + COUNT ( - 76 ) FROM tab2 AS cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) * - ( + + 42 ) - - col1 FROM tab1 cor0
----
-2473
-2809
-4018

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) * - ( + + 42 ) - - col1 FROM tab1 cor0
----
-2473
-2809
-4018

query II rowsort
SELECT ALL + - col0 * + + col1, - 27 + - + col2 AS col0 FROM tab0 AS cor0
----
-1215
-74
-1827
-37
-97
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( + 30 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( + 30 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - ( - + 11 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + col0 + 11 * col1 + 15 FROM tab2
----
622
827
926

query I rowsort
SELECT - col1 + - 83 AS col0 FROM tab0
----
-104
-164
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * - col2 col2 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab1 WHERE ( - 32 NOT IN ( + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 71 * + 90 AS col0 FROM tab0 AS cor0
----
6390
6390
6390

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + 0 + + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT col0 + + 24 + col0 FROM tab0 AS cor0
----
198
218
54

onlyif mysql # DIV for integer division: 
query II rowsort label-3713
SELECT DISTINCT + col0 DIV col2 - + ( col0 ) - + + col2, col0 FROM tab2 AS cor0
----
-103
64
-132
75
-67
46

skipif mysql # not compatible
query II rowsort label-3713
SELECT DISTINCT + col0 / col2 - + ( col0 ) - + + col2, col0 FROM tab2 AS cor0
----
-103
64
-132
75
-67
46

query I rowsort
SELECT - + 64 + + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-101
-73
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT + SUM( 58 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + SUM ( 58 ) FROM tab1 AS cor0
----
174

query II rowsort
SELECT + col2, col0 * col0 FROM tab2
----
23
2116
40
4096
58
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 25 col0 FROM tab2
----
-1000
-1450
-575

query I rowsort
SELECT + 28 AS col1 FROM tab1 WHERE NOT col2 * - + ( 32 ) + + col0 < ( - - col2 * + 65 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3719
SELECT ( + - COUNT( * ) ) DIV - - MAX( col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT ( + - COUNT ( * ) ) / - - MAX ( col0 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT + col1 DIV - 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT + col1 / - 99 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 WHERE - col0 + + + col0 - + + 10 * - 90 * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 WHERE - col0 + + + col0 - + + 10 * - 90 * - col1 IS NULL
----
0

query I rowsort
SELECT 83 FROM tab1 WHERE NOT + ( ( - col0 ) ) + - 32 - + 1 < - 38
----

query I rowsort
SELECT ALL - 37 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT ALL + - 24 * + 99 col0, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2376
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3724
SELECT ALL + - 24 * + 99 col0, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2376
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 61 * + col0 * - + col2 col2 FROM tab1 AS cor0
----
-298656
-305915
-377468

query I rowsort
SELECT DISTINCT col0 * col2 * + col0 * col1 FROM tab0 AS cor0
----
1589490
856575
931491

onlyif mysql # aggregate syntax: 
query II rowsort label-3727
SELECT + COUNT( * ), 52 + - SUM( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
3
208

skipif mysql # not compatible
query II rowsort label-3727
SELECT + COUNT ( * ), 52 + - SUM ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
3
208

query II rowsort
SELECT + col0, 78 * col0 * - col2 AS col1 FROM tab1 cor0
----
51
-381888
85
-391170
91
-482664

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL COUNT( * ) FROM tab2 WHERE + ( - col0 ) BETWEEN col2 AND ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL COUNT ( * ) FROM tab2 WHERE + ( - col0 ) BETWEEN col2 AND ( + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - COUNT( * ) + 26 + COUNT( * ) * + COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - COUNT ( * ) + 26 + COUNT ( * ) * + COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT ALL + 32 + + COUNT( * ) FROM tab2 WHERE ( + 26 - + col1 - - col2 + 44 * - col0 * - - CAST( NULL AS SIGNED ) ) IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + 32 + + COUNT ( * ) FROM tab2 WHERE ( + 26 - + col1 - - col2 + 44 * - col0 * - - CAST ( NULL AS INTEGER ) ) IS NULL
----
35

query I rowsort
SELECT DISTINCT - + col2 * + + ( + - col2 ) FROM tab0 WHERE NOT - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3734
SELECT ALL 49 * col0 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
2254
NULL
3136
NULL
3675
NULL

skipif mysql # not compatible
query II rowsort label-3734
SELECT ALL 49 * col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
2254
NULL
3136
NULL
3675
NULL

query I rowsort
SELECT - 29 * - + col2 + - col1 * + 92 FROM tab2 AS cor0
----
-4025
-4482
-5924

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT SUM( - ( + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT SUM ( - ( + col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - - 95 + + COUNT( * ) col2 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT - - 95 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
98

query I rowsort
SELECT DISTINCT 20 + + 0 AS col2 FROM tab1 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 36 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0, - 51, col1 * col2 )
----

query II rowsort
SELECT 47 AS col2, - col0 - col1 * + col2 AS col1 FROM tab0 AS cor0
----
47
-196
47
-297
47
-3822

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE - ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 90 = - 39
----

query I rowsort
SELECT - col2 * col2 - - - col0 AS col1 FROM tab0 AS cor0
----
-187
-2224
-9898

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT + col2 DIV - col1 - + 67 AS col2 FROM tab1 cor0
----
-68
-73
-78

skipif mysql # not compatible
query I rowsort label-3745
SELECT + col2 / - col1 - + 67 AS col2 FROM tab1 cor0
----
-68
-73
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT - - COUNT( DISTINCT col0 ) - - COUNT( col0 ) + + MAX( ALL col1 ) DIV 95 AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3746
SELECT - - COUNT ( DISTINCT col0 ) - - COUNT ( col0 ) + + MAX ( ALL col1 ) / 95 AS col1 FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - + col0 AS col0, + 47 FROM tab1 cor0
----
-51
47
-85
47
-91
47

query II rowsort
SELECT + + col1, + col0 * col2 FROM tab2 cor0
----
51
1058
67
4350
77
2560

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT COUNT( * ) * + 90 AS col2 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-3750
SELECT COUNT ( * ) * + 90 AS col2 FROM tab1
----
270

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + 32 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT - + COUNT( ALL col1 ) AS col0, + 8 FROM tab0 cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-3752
SELECT - + COUNT ( ALL col1 ) AS col0, + 8 FROM tab0 cor0
----
-3
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 7 col2 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT - - 16 FROM tab1 cor0
----
16

query I rowsort
SELECT - 96 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * 32 <> col2
----

query I rowsort
SELECT - - 84 AS col1 FROM tab2 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL - COUNT( * ) + - 47 + + + COUNT( * ) * - 47 FROM tab2
----
-191

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - COUNT ( * ) + - 47 + + + COUNT ( * ) * - 47 FROM tab2
----
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - CAST( NULL AS SIGNED ) * col1 * - + 26 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT - CAST ( NULL AS INTEGER ) * col1 * - + 26 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 66 NOT IN ( - ( col1 ) )
----

query I rowsort
SELECT DISTINCT - - 82 AS col2 FROM tab1 cor0
----
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 27 <= col2
----

query I rowsort
SELECT DISTINCT + ( 16 ) AS col1 FROM tab0 AS cor0
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE 27 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT ALL - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - col0 = + 70
----

query I rowsort
SELECT ALL col2 + + 34 * + 36 AS col1 FROM tab0
----
1234
1271
1323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT + 34 + + col1 + - + CAST( - col2 AS SIGNED ) FROM tab1
----
144
149
98

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 34 + + col1 + - + CAST ( - col2 AS INTEGER ) FROM tab1
----
144
149
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT - COUNT( * ) * - COUNT( * ) + + MIN( ALL - 69 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3768
SELECT - COUNT ( * ) * - COUNT ( * ) + + MIN ( ALL - 69 ) FROM tab2
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col2 FROM tab2 WHERE + - col0 IS NOT NULL
----
46
23
64
40
75
58

query II rowsort
SELECT - 28 + - + col2, col1 * + col2 AS col0 FROM tab2
----
-51
1173
-68
3080
-86
3886

query II rowsort
SELECT DISTINCT 75, - col2 AS col2 FROM tab0
----
75
-10
75
-47
75
-99

query I rowsort
SELECT 89 * 37 AS col0 FROM tab1
----
3293
3293
3293

query II rowsort
SELECT ALL - col0 AS col2, 9 FROM tab2 AS cor0
----
-46
9
-64
9
-75
9

query I rowsort
SELECT DISTINCT + ( - + 58 ) FROM tab1 AS cor0
----
-58

query I rowsort
SELECT DISTINCT 52 * + 26 FROM tab2
----
1352

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT col0 DIV + + ( + 44 ) - + 56 AS col2 FROM tab2
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-3776
SELECT col0 / + + ( + 44 ) - + 56 AS col2 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT - col0 - - - col1 + + 85 + - col2 FROM tab1
----
-121
-64
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 82 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT 86 - COUNT( * ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-3779
SELECT 86 - COUNT ( * ) FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT COUNT( * ) * + + COUNT( * ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3780
SELECT COUNT ( * ) * + + COUNT ( * ) col1 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-3781
SELECT DISTINCT 63 * - col0 AS col0, 79 DIV - + col2 + - 69 FROM tab1 AS cor0
----
-3213
-69
-5355
-70
-5733
-70

skipif mysql # not compatible
query II rowsort label-3781
SELECT DISTINCT 63 * - col0 AS col0, 79 / - + col2 + - 69 FROM tab1 AS cor0
----
-3213
-69
-5355
-70
-5733
-70

query I rowsort
SELECT - + 96 AS col1 FROM tab1 AS cor0 WHERE NOT - 81 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT + MAX( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3783
SELECT + MAX ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 71 * - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 71 * - col2 FROM tab0
----
3337
7029
710

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN ( NULL ) AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 col1, + col2 FROM tab0
----
43
10
43
47
43
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3789
SELECT 80 DIV - CAST( - + ( - ( + + MIN( col0 ) ) ) AS SIGNED ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3789
SELECT 80 / - CAST ( - + ( - ( + + MIN ( col0 ) ) ) AS INTEGER ) AS col2 FROM tab1
----
-1

query II rowsort
SELECT 61, col0 * + 42 - col2 AS col1 FROM tab2
----
61
1909
61
2648
61
3092

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT SUM( DISTINCT col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = ( col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL BETWEEN NULL AND 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - ( + + ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - ( + + ( COUNT ( * ) ) ) FROM tab1
----
-3

query I rowsort
SELECT - col2 + - 71 + + 38 * + - col0 * col0 AS col1 FROM tab2
----
-155759
-213879
-80502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3796
SELECT - 45 DIV - MIN( ALL + col1 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 45 / - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT DISTINCT SUM( 86 ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT SUM ( 86 ) FROM tab1 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - + COUNT( + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3798
SELECT - + COUNT ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT - ( + 89 ) DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3799
SELECT - ( + 89 ) / - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 * col0 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT + col2 DIV - - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3801
SELECT + col2 / - - col1 AS col1 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - + 1 * + COUNT( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3802
SELECT - + 1 * + COUNT ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 * col0 - - col1 * - 30 + - - 0 AS col2 FROM tab0 cor0
----
-1725
240
9573

query I rowsort
SELECT ALL col1 + + - 81 FROM tab2
----
-14
-30
-4

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col1 * 71 + 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 31 * ( + 75 ) + - - 40 AS col2 FROM tab0
----
2365
2365
2365

query I rowsort
SELECT + - col0 + 20 + + col0 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - 92 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MIN( 4 ) * - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3811
SELECT MIN ( 4 ) * - COUNT ( * ) AS col0 FROM tab0
----
-12

query I rowsort
SELECT ALL 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / + col1 IS NULL
----

query II rowsort
SELECT + col1, + 99 FROM tab1 AS cor0
----
14
99
47
99
5
99

query II rowsort
SELECT + 10, col1 AS col1 FROM tab0 AS cor0
----
10
1
10
21
10
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT DISTINCT col2 * + 79 * + CAST( NULL AS SIGNED ) * + ( + col2 ) * - ( - 87 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT col2 * + 79 * + CAST ( NULL AS INTEGER ) * + ( + col2 ) * - ( - 87 ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col2 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 9 <> NULL
----

query I rowsort
SELECT - 8 FROM tab0 WHERE NOT col0 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT MAX( DISTINCT - col2 ) * COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT MAX ( DISTINCT - col2 ) * COUNT ( * ) FROM tab1
----
-177

query II rowsort
SELECT - col2 * - col1 * + - col2 AS col2, + col0 FROM tab0
----
-178929
15
-2100
87
-9801
97

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE 20 + - - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - 27 * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
243

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - 27 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-3824
SELECT DISTINCT - COUNT( * ) AS col2, - 15 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9
-24

skipif mysql # not compatible
query II rowsort label-3824
SELECT DISTINCT - COUNT ( * ) AS col2, - 15 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL - COUNT( DISTINCT - 0 ) + - 1 + + 16 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - COUNT ( DISTINCT - 0 ) + - 1 + + 16 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT CAST( NULL AS SIGNED ) + + + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT CAST ( NULL AS INTEGER ) + + + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1, 26 * - - col0 * + 99 AS col2 FROM tab1 AS cor0
----
14
131274
47
234234
5
218790

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT ALL - 29 DIV + + 62 col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3828
SELECT ALL - 29 / + + 62 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 86 + - 47 FROM tab0
----
-133
-133
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT 74 + + COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT 74 + + COUNT ( * ) FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL - 99 * - MAX( + col1 ) * + + 95 + - SUM( DISTINCT col2 ) FROM tab1
----
441812

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - 99 * - MAX ( + col1 ) * + + 95 + - SUM ( DISTINCT col2 ) FROM tab1
----
441812

query I rowsort
SELECT DISTINCT - col1 - - 23 * + col0 + + - col0 FROM tab0
----
1893
2133
249

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT MIN( ALL + ( - + col1 ) ) + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT MIN ( ALL + ( - + col1 ) ) + COUNT ( * ) FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT SUM( 29 ) AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN + 27 / + + col0 AND 40 * - 34
----
87

skipif mysql # not compatible
query I rowsort label-3834
SELECT SUM ( 29 ) AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN + 27 / + + col0 AND 40 * - 34
----
87

query I rowsort
SELECT DISTINCT + 94 FROM tab1 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT - - col1 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - - col1 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + - col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + col1 * + - 16 * + col2 * - - col2 FROM tab0 AS cor0
----
-156816
-2862864
-33600

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - col2 * + - col1 * - - col2 * col1 * + - col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NULL <> - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT MAX( 8 ) AS col0 FROM tab0 cor0
----
8

skipif mysql # not compatible
query I rowsort label-3841
SELECT MAX ( 8 ) AS col0 FROM tab0 cor0
----
8

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 85, 25 AS col1 FROM tab1
----
-85
25
-85
25
-85
25

query I rowsort
SELECT ALL col2 / 49 * + 98 AS col1 FROM tab1 WHERE NOT + col0 <> - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3845
SELECT DISTINCT col0, col1 * 53 DIV + - col1 AS col2 FROM tab0
----
15
-53
87
-53
97
-53

skipif mysql # not compatible
query II rowsort label-3845
SELECT DISTINCT col0, col1 * 53 / + - col1 AS col2 FROM tab0
----
15
-53
87
-53
97
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT + MIN( + - 21 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + MIN ( + - 21 ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT ( - MAX( + + ( + - col0 ) ) ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT ( - MAX ( + + ( + - col0 ) ) ) AS col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT + 10 * COUNT( * ) + - 75 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 53 + col0 AND NULL
----
-75

skipif mysql # not compatible
query I rowsort label-3848
SELECT + 10 * COUNT ( * ) + - 75 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 53 + col0 AND NULL
----
-75

query I rowsort
SELECT + ( - 50 ) * - + col0 * - 22 + + - 24 FROM tab1 cor0
----
-100124
-56124
-93524

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT + + col1, 3 FROM tab2 AS cor0
----
51
3
67
3
77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT + + col2 DIV col1 + + + col2 FROM tab1 AS cor0
----
102
69
70

skipif mysql # not compatible
query I rowsort label-3852
SELECT + + col2 / col1 + + + col2 FROM tab1 AS cor0
----
102
69
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( - col1 * - + 44, CAST( NULL AS SIGNED ), + col0, 60, CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - + col2 + col1 + + col1 * + 47 + + + col0 )
----

skipif mysql # not compatible
query III rowsort label-3853
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( - col1 * - + 44, CAST ( NULL AS INTEGER ), + col0, 60, CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + col2 + col1 + + col1 * + 47 + + + col0 )
----

query I rowsort
SELECT ALL ( col1 ) + + 13 FROM tab0 AS cor0
----
14
34
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT ALL 2 * + + COUNT( * ) AS col1, - 37 FROM tab2 AS cor0 WHERE col1 NOT IN ( + col2 )
----
6
-37

skipif mysql # not compatible
query II rowsort label-3855
SELECT ALL 2 * + + COUNT ( * ) AS col1, - 37 FROM tab2 AS cor0 WHERE col1 NOT IN ( + col2 )
----
6
-37

query I rowsort
SELECT - col0 * + + col0 * - 55 * + col0 FROM tab0 cor0
----
185625
36217665
50197015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT + ( - col0 ) / + col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT + ( - col0 ) / + col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT DISTINCT + col2 DIV - - 97 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + col2 / - - 97 AS col1 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 74 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, ( + - ( - + col0 ) ) + + + ( - + 60 ) - - + col0 FROM tab2
----
51
32
67
90
77
68

query I rowsort
SELECT 23 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + MIN( DISTINCT - 35 ) - - 94 + - 47 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3862
SELECT + MIN ( DISTINCT - 35 ) - - 94 + - 47 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
12

query I rowsort
SELECT + col1 * + + 7 AS col1 FROM tab1
----
329
35
98

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 39 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL 30 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > ( + 89 + + col1 )
----

query I rowsort
SELECT col2 * + - col1 + - - col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3867
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) AS col1, - 11 * - - 74 FROM tab0 cor0
----
NULL
-814
NULL
-814
NULL
-814

skipif mysql # not compatible
query II rowsort label-3867
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col1, - 11 * - - 74 FROM tab0 cor0
----
NULL
-814
NULL
-814
NULL
-814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3868
SELECT ALL CAST( col1 AS SIGNED ) AS col2, - 0 * + col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL CAST ( col1 AS INTEGER ) AS col2, - 0 * + col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

query II rowsort
SELECT + ( + 40 ) AS col1, + 68 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
40
68
40
68
40
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL + SUM( - - 99 ) FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL + SUM ( - - 99 ) FROM tab2 AS cor0
----
297

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col0 + + col0 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT DISTINCT - 16 + - - col0 + col1 * + col2 DIV + col2 AS col1 FROM tab2
----
125
126
81

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - 16 + - - col0 + col1 * + col2 / + col2 AS col1 FROM tab2
----
125
126
81

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 * - - col1
----

query I rowsort
SELECT ALL + 92 FROM tab2 WHERE NOT NULL IN ( - 5, 68 / - col1, col0, + - 29 + 22 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT - COUNT( - - col0 ) + + + 73 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3876
SELECT - COUNT ( - - col0 ) + + + 73 FROM tab0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT col2 + - 57 + + ( - - CAST( NULL AS SIGNED ) ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT col2 + - 57 + + ( - - CAST ( NULL AS INTEGER ) ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3878
SELECT ALL - CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3878
SELECT ALL - CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3879
SELECT ALL - + ( - CAST( NULL AS SIGNED ) ) + - 7 * - ( COUNT( * ) ) AS col1, 8 FROM tab1 AS cor0 WHERE NOT ( ( 3 ) IS NULL )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-3879
SELECT ALL - + ( - CAST ( NULL AS INTEGER ) ) + - 7 * - ( COUNT ( * ) ) AS col1, 8 FROM tab1 AS cor0 WHERE NOT ( ( 3 ) IS NULL )
----
NULL
8

query I rowsort
SELECT - 19 FROM tab0 cor0 WHERE ( NOT NULL BETWEEN 67 + - 87 AND + col0 + 47 )
----

query I rowsort
SELECT ALL - col0 * + + 50 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT 45, col1 AS col1, - col1 AS col1 FROM tab0
----
9 values hashing to d6b1ffd1958a12b159478c3b85386550

query III rowsort
SELECT * FROM tab2 WHERE - ( + + col0 ) >= ( - 32 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT - - col1 + - col0 DIV + 67 AS col2 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-3884
SELECT - - col1 + - col0 / + 67 AS col2 FROM tab2 AS cor0
----
51
66
77

query I rowsort
SELECT DISTINCT + + 69 FROM tab0 cor0
----
69

query I rowsort
SELECT ALL + col1 + + + col2 AS col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3887
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, COUNT( + - ( 36 ) ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3887
SELECT ALL - CAST ( NULL AS REAL ) AS col1, COUNT ( + - ( 36 ) ) FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT - col0 + - 85 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-100
-172
-182

query I rowsort
SELECT ALL - 55 * + - col1 - 45 AS col2 FROM tab2 AS cor0
----
2760
3640
4190

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - COUNT( * ) * 63 + + COUNT( * ) AS col0 FROM tab2 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COUNT ( * ) * 63 + + COUNT ( * ) AS col0 FROM tab2 cor0
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( 95 ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1330
4465
475

query I rowsort
SELECT - ( col1 ) + + + 0 + + - col2 * + col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL > ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3894
SELECT DISTINCT - col1 AS col1, 22 * + CAST( + + col0 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
-1
2231
-21
2001
-81
345

skipif mysql # not compatible
query II rowsort label-3894
SELECT DISTINCT - col1 AS col1, 22 * + CAST ( + + col0 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
-1
2231
-21
2001
-81
345

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT ( + - 38 ) + - + 93 * - COUNT( * ) AS col2 FROM tab2
----
241

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT ( + - 38 ) + - + 93 * - COUNT ( * ) AS col2 FROM tab2
----
241

query I rowsort
SELECT ALL + 85 AS col2 FROM tab1 WHERE NOT - - 1 IS NULL
----
85
85
85

query I rowsort
SELECT ALL + col1 + + + col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT DISTINCT - COUNT( * ) * - 10 AS col1, + COUNT( * ) FROM tab1
----
30
3

skipif mysql # not compatible
query II rowsort label-3898
SELECT DISTINCT - COUNT ( * ) * - 10 AS col1, + COUNT ( * ) FROM tab1
----
30
3

query I rowsort
SELECT DISTINCT col0 + - 79 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-28
12
6

query I rowsort
SELECT ALL col2 + - + ( - - 64 ) FROM tab1
----
-5
32
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT COUNT( * ) + - COUNT( + + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT COUNT ( * ) + - COUNT ( + + col0 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT ALL + CAST( ( - ( - 88 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + CAST ( ( - ( - 88 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT + ( + - 22 ) FROM tab1
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + ( + 77 ) AS col0 FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT + ( - - COUNT( * ) ) * + 78 AS col0 FROM tab2 AS cor0 WHERE + col1 * 92 IN ( + + 42, col0 / 16 + 5 + - + col2 + + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + ( - - COUNT ( * ) ) * + 78 AS col0 FROM tab2 AS cor0 WHERE + col1 * 92 IN ( + + 42, col0 / 16 + 5 + - + col2 + + + col0 )
----
0

query I rowsort
SELECT + 6 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT 69 NOT BETWEEN - + col0 AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - MAX( DISTINCT - 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3908
SELECT - MAX ( DISTINCT - 65 ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT + - ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL - ( + SUM( - + col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - ( + SUM ( - + col1 ) ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + 3 / - col0 FROM tab0 AS cor0 WHERE NULL < + col2 + + 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT CAST( 79 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3912
SELECT CAST ( 79 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3913
SELECT ALL + + col1, - 38 + + + col2 * - CAST( NULL AS SIGNED ) / - col2 + 58 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3913
SELECT ALL + + col1, - 38 + + + col2 * - CAST ( NULL AS INTEGER ) / - col2 + 58 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT ALL col2 + + 49 DIV - col0 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL col2 + + 49 / - col0 AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT 95 + col2 FROM tab1 WHERE NULL NOT IN ( 20, - col1, - 40 * col2 )
----

query I rowsort
SELECT ALL + col0 + 57 + + col2 - - col0 + - col2 + + + 25 * - ( 98 ) FROM tab1 cor0
----
-2211
-2223
-2291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( ( - 92 ) ) AS col1, + 95 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-92
95
-92
95
-92
95

query I rowsort
SELECT DISTINCT + + 68 * + col0 + - col2 + 42 FROM tab0 AS cor0
----
1015
5948
6539

query I rowsort
SELECT 41 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 55 FROM tab2 AS cor0 WHERE + col0 - col2 IS NULL
----

query I rowsort
SELECT - 31 - + - col0 AS col1 FROM tab1 AS cor0
----
20
54
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT ALL + + 29 * 87 * + 69 - + 85 DIV 41 AS col1 FROM tab2 AS cor0
----
174085
174085
174085

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + + 29 * 87 * + 69 - + 85 / 41 AS col1 FROM tab2 AS cor0
----
174085
174085
174085

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT SUM( 37 ) - + COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-3925
SELECT SUM ( 37 ) - + COUNT ( * ) FROM tab2 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 - + 7 col0 FROM tab0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - 25 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3928
SELECT + col0 AS col1, 47 DIV - - col1 FROM tab0
----
15
0
87
2
97
47

skipif mysql # not compatible
query II rowsort label-3928
SELECT + col0 AS col1, 47 / - - col1 FROM tab0
----
15
0
87
2
97
47

query II rowsort
SELECT DISTINCT - col2, col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - 24 * 70 AS col2 FROM tab0
----
-1680
-1680
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - SUM( + 76 ) AS col2 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3931
SELECT - SUM ( + 76 ) AS col2 FROM tab1 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT SUM( + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3932
SELECT SUM ( + col1 ) FROM tab2 cor0
----
195

query II rowsort
SELECT ALL - col0 * - col0, + col2 + - + 27 AS col1 FROM tab1 cor0
----
2601
69
7225
32
8281
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3934
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT - + CAST( NULL AS SIGNED ) * + 79 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT - + CAST ( NULL AS INTEGER ) * + 79 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3937
SELECT - COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * ( - 78 ) > - 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT DISTINCT COUNT( * ) * 67 + - + 41 AS col2 FROM tab1 cor0
----
160

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT COUNT ( * ) * 67 + - + 41 AS col2 FROM tab1 cor0
----
160

query II rowsort
SELECT ALL col1 + - + ( + 93 ) AS col2, + col2 AS col2 FROM tab2
----
-16
40
-26
58
-42
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 - + - col0 col0 FROM tab2
----
-46
-5
-64
-13
-75
8

query I rowsort
SELECT ALL - col2 + - col2 + 82 - - + 34 AS col1 FROM tab2
----
0
36
70

query III rowsort
SELECT * FROM tab0 WHERE col0 + + - col0 * - + col0 * - 91 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT 98 DIV 93 * 60 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif mysql # not compatible
query I rowsort label-3944
SELECT 98 / 93 * 60 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + col1 + + col1 + - col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE - - ( + col1 ) * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - COUNT( * ) FROM tab0 WHERE - 46 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3947
SELECT - COUNT ( * ) FROM tab0 WHERE - 46 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL COUNT( DISTINCT - + 77 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL COUNT ( DISTINCT - + 77 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + - col0 + - - col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT + MAX( ALL 46 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT + MAX ( ALL 46 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN + 95 AND - col2 - + col2 * + 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT + col0 DIV 45 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3952
SELECT + col0 / 45 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3953
SELECT ALL + col1 FROM tab2 WHERE - col2 + 21 NOT BETWEEN col0 + CAST( col2 AS DECIMAL ) * 52 AND NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + col1 FROM tab2 WHERE - col2 + 21 NOT BETWEEN col0 + CAST ( col2 AS REAL ) * 52 AND NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 91 )
----

query I rowsort
SELECT ALL col0 * 71 FROM tab0 WHERE + col2 < NULL
----

query I rowsort
SELECT ALL + 84 + - col0 FROM tab0
----
-13
-3
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col0 FROM tab0 WHERE NOT - 43 >= ( - col0 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3958
SELECT * FROM tab1 WHERE NOT ( col2 ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3958
SELECT * FROM tab1 WHERE NOT ( col2 ) < CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT CAST( 69 AS SIGNED ) * + 12 FROM tab2
----
828
828
828

skipif mysql # not compatible
query I rowsort label-3959
SELECT CAST ( 69 AS INTEGER ) * + 12 FROM tab2
----
828
828
828

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT + COUNT( * ) * + 31 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT + COUNT ( * ) * + 31 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
93

query I rowsort
SELECT 85 + 44 * + col1 FROM tab1
----
2153
305
701

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3962
SELECT ALL 21 DIV CAST( - 91 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 21 / CAST ( - 91 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT - CAST( NULL AS SIGNED ) * + AVG ( 37 * ( - col0 * - 34 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( 37 * ( - col0 * - 34 ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( 85 ) AS col2 FROM tab0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT col2 DIV col0 + 56 FROM tab0
----
56
57
59

skipif mysql # not compatible
query I rowsort label-3965
SELECT col2 / col0 + 56 FROM tab0
----
56
57
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + COUNT( 12 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT + COUNT ( 12 ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL <= ( - col2 )
----

query I rowsort
SELECT col2 + col1 * 51 AS col0 FROM tab2
----
2624
3475
3967

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + col1 + 14 / - col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 - 4 FROM tab1
----
47
81
87

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col1 * - 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3972
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col2 + 2 BETWEEN - col0 + - 15 AND + col1 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL + 68 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + 68 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col0 * - col2
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE - 41 * - col0 < col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE col2 = - ( - col2 )
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT DISTINCT + ( - COUNT( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NOT ( + ( - col2 ) * col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT + ( - COUNT ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT ( + ( - col2 ) * col0 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NULL <= col2 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 AS cor0 WHERE + 96 * col0 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + 65 AS col0 FROM tab0 AS cor0
----
1365
5265
65

query I rowsort
SELECT + + 71 * - col2 AS col2 FROM tab1 cor0
----
-4189
-4828
-6816

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT + 94 DIV + 6 AS col2 FROM tab2 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-3986
SELECT + 94 / + 6 AS col2 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT + + 42 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT + + 42 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 1 * 7 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE 2 > col2 - + col2
----
-14
-47
-5

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT MAX( - col2 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT MAX ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT DISTINCT ( - 38 ) DIV col1 col0 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3992
SELECT DISTINCT ( - 38 ) / col1 col0 FROM tab1
----
-2
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 + - + col0 col1 FROM tab0
----
-17
-7
65

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + 63 * + 3 + col2 * + col1
----

query I rowsort
SELECT ALL + 70 * - + 63 + 0 AS col0 FROM tab1
----
-4410
-4410
-4410

query I rowsort
SELECT ALL ( 86 ) AS col0 FROM tab1 WHERE + col0 * col2 IN ( + 51 )
----

query I rowsort
SELECT DISTINCT - col1 * - 16 * col0 FROM tab0 cor0
----
1552
19440
29232

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - 70 / ( col0 ) ) NOT IN ( + col1 - + col0 * col2 ) AND NULL IS NULL
----

query I rowsort
SELECT + - col1 + - 65 + col1 * - col2 FROM tab0 AS cor0
----
-165
-296
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT DISTINCT CAST( - col2 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT CAST ( - col2 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT + col2 + col1 + 40 FROM tab0 AS cor0
----
140
168
71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 17 + col1 ) BETWEEN col0 AND NULL
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT CAST( - col2 AS SIGNED ) + - col0 * col2 FROM tab0 AS cor0
----
-752
-880
-9702

skipif mysql # not compatible
query I rowsort label-4003
SELECT CAST ( - col2 AS INTEGER ) + - col0 * col2 FROM tab0 AS cor0
----
-752
-880
-9702

query I rowsort
SELECT col0 * - 79 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + MIN( col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + MIN ( col0 ) AS col0 FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 WHERE + 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= - 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4008
SELECT - 15 AS col1, - ( col0 ) * + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-15
NULL
-15
NULL
-15
NULL

skipif mysql # not compatible
query II rowsort label-4008
SELECT - 15 AS col1, - ( col0 ) * + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-15
NULL
-15
NULL
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT - + MIN( ALL - + 15 ) * + 30 * + 23 col2 FROM tab1 AS cor0
----
10350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4009
SELECT DISTINCT - + MIN ( ALL - + 15 ) * + 30 * + 23 col2 FROM tab1 AS cor0
----
10350

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + SUM( - - 49 ) AS col2 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4010
SELECT + SUM ( - - 49 ) AS col2 FROM tab0 AS cor0
----
147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 53 - - col1 + - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT 83 * 5 AS col0 FROM tab1 AS cor0 WHERE NOT ( + CAST( - col2 AS SIGNED ) ) IS NULL
----
415
415
415

skipif mysql # not compatible
query I rowsort label-4013
SELECT 83 * 5 AS col0 FROM tab1 AS cor0 WHERE NOT ( + CAST ( - col2 AS INTEGER ) ) IS NULL
----
415
415
415

query I rowsort
SELECT ALL - + col0 * + col1 AS col2 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4015
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - CAST( - - col2 AS SIGNED ) / ( col1 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4015
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - CAST ( - - col2 AS INTEGER ) / ( col1 ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT DISTINCT + ( + - MAX( - col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT + ( + - MAX ( - col1 ) ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT MAX( ALL + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4018
SELECT MAX ( ALL + col1 ) AS col2 FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 58 * 8 BETWEEN NULL AND + 7
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT NULL <= ( - + 63 )
----

query I rowsort
SELECT DISTINCT - 28 * col1 FROM tab2
----
-1428
-1876
-2156

query I rowsort
SELECT - ( + ( + - ( + col0 ) ) ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ALL + ( - col0 ) AS col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE + ( + + 61 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + MAX( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-4025
SELECT + MAX ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23

query I rowsort
SELECT ALL col2 * - - 99 AS col2 FROM tab2
----
2277
3960
5742

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON 45 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 78 ) BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 + + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * 16 + col1 AS col1 FROM tab1 cor0
----
1135
1550
949

query III rowsort
SELECT * FROM tab2 cor0 WHERE 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + - COUNT( ALL - 36 ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT + - COUNT ( ALL - 36 ) + COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 17 + + - col2 NOT BETWEEN ( 26 * col1 ) AND ( - 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - 13 * - COUNT( * ) * + 26 + - SUM( ALL - col1 ) AS col0 FROM tab2
----
1209

skipif mysql # not compatible
query I rowsort label-4034
SELECT - 13 * - COUNT ( * ) * + 26 + - SUM ( ALL - col1 ) AS col0 FROM tab2
----
1209

query I rowsort
SELECT DISTINCT + 4 * 19 + 31 FROM tab1
----
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 19 col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + + 30 AS col0 FROM tab2
----
105
76
94

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + + col1
----

query I rowsort
SELECT ALL - col1 + ( - col0 ) AS col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT ALL - 34 + + col0 + + + ( + - col1 ) * - CAST( - 27 AS SIGNED ) col0 FROM tab0
----
-2206
-514
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4040
SELECT ALL - 34 + + col0 + + + ( + - col1 ) * - CAST ( - 27 AS INTEGER ) col0 FROM tab0
----
-2206
-514
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT DISTINCT col2 DIV + col1 - + + col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT col2 / + col1 - + + col0 AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col1 FROM tab2 WHERE NULL <= NULL
----

query II rowsort
SELECT + col0 + + 95 * + - 97, - 47 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - + col2, 11 AS col0 FROM tab0 AS cor0
----
-10
11
-47
11
-99
11

query I rowsort
SELECT col2 - - - 65 AS col2 FROM tab1
----
-6
3
31

query I rowsort
SELECT - 61 - + 74 + - col1 + - col2 AS col0 FROM tab0
----
-166
-235
-263

query I rowsort
SELECT ALL col1 + + ( + col0 ) AS col1 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4049
SELECT DISTINCT col2 DIV - + CAST( - + 53 AS SIGNED ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT col2 / - + CAST ( - + 53 AS INTEGER ) FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( ( - col1 / - 55 ) IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4051
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 20 + 42 ) AND col0 * - 37
----

skipif mysql # not compatible
query III rowsort label-4051
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 20 + 42 ) AND col0 * - 37
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( + - col2 ) * - 47 - + col2 * + 14 ) IS NOT NULL
----

query II rowsort
SELECT 31 AS col0, 28 FROM tab2
----
31
28
31
28
31
28

query I rowsort
SELECT - 53 FROM tab2 WHERE NOT NULL BETWEEN + 96 - col0 / 39 AND 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT + MAX( - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + MAX ( - col0 ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab1 WHERE NOT + 9 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 3 AS col1, col0 AS col0 FROM tab1
----
-3
51
-3
85
-3
91

query I rowsort
SELECT DISTINCT + 90 * col0 FROM tab0 cor0
----
1350
7830
8730

query I rowsort
SELECT ALL + - 43 * + col1 * 17 * - + 99 AS col0 FROM tab0 AS cor0
----
1519749
5861889
72369

onlyif mysql # aggregate syntax: 
query II rowsort label-4061
SELECT + 24 + - COUNT( ALL - col1 ) AS col2, 6 AS col0 FROM tab2 AS cor0
----
21
6

skipif mysql # not compatible
query II rowsort label-4061
SELECT + 24 + - COUNT ( ALL - col1 ) AS col2, 6 AS col0 FROM tab2 AS cor0
----
21
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT ALL + 73 + - 60 DIV - 55 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + 73 + - 60 / - 55 FROM tab2
----
74
74
74

query I rowsort
SELECT + 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - 79 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 55 IS NULL
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4065
SELECT DISTINCT 63, - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 = col2 * + col1 * + CAST( NULL AS DECIMAL ) + col1
----
63
0

skipif mysql # not compatible
query II rowsort label-4065
SELECT DISTINCT 63, - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 = col2 * + col1 * + CAST ( NULL AS REAL ) + col1
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT + ( + COUNT( ALL + col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + ( + COUNT ( ALL + col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL 70 * - + MAX( ALL - col1 ) * + - 40 AS col2 FROM tab1 AS cor0
----
-14000

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL 70 * - + MAX ( ALL - col1 ) * + - 40 AS col2 FROM tab1 AS cor0
----
-14000

onlyif mysql # DIV for integer division: 
query I rowsort label-4068
SELECT - col2 DIV - 81 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4068
SELECT - col2 / - 81 col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col1 FROM tab0
----
-79
-79
-79

query I rowsort
SELECT - 98 - - col2 + 21 * - + col1 FROM tab1
----
-1017
-144
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT ( - ( + SUM( - + col0 ) ) ) + + + COUNT( * ) - 38 * - COUNT( * ) AS col0 FROM tab2
----
302

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT ( - ( + SUM ( - + col0 ) ) ) + + + COUNT ( * ) - 38 * - COUNT ( * ) AS col0 FROM tab2
----
302

query I rowsort
SELECT - + 50 * - col1 + + col1 FROM tab1 WHERE + col0 * - - col0 NOT BETWEEN NULL AND 33
----
2397
255
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT + col0 + + - CAST( - col1 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4073
SELECT + col0 + + - CAST ( - col1 AS INTEGER ) FROM tab1
----
138
65
90

query I rowsort
SELECT ALL col1 - - - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 23 - - 99 FROM tab0 AS cor0
----
122

query III rowsort
SELECT + 5 AS col1, col2 * + col1 + 38 AS col2, + col0 FROM tab2
----
9 values hashing to 09ee3b8a159dda4987541a2090385a0f

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT 55 * - MAX( - col0 ) - - 42 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT 55 * - MAX ( - col0 ) - - 42 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - ( - 12 ) AS col2 FROM tab1
----
12
12
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4079
SELECT ALL + 45 DIV - COUNT( - 37 ) col0 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4079
SELECT ALL + 45 / - COUNT ( - 37 ) col0 FROM tab1
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, 2 AS col1 FROM tab2 AS cor0
----
23
2
40
2
58
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT + 44 AS col1, - ( - 56 ) + + + MAX( DISTINCT 56 ) FROM tab1 AS cor0
----
44
112

skipif mysql # not compatible
query II rowsort label-4082
SELECT + 44 AS col1, - ( - 56 ) + + + MAX ( DISTINCT 56 ) FROM tab1 AS cor0
----
44
112

query II rowsort
SELECT ALL col2 AS col2, 96 * ( - col1 ) FROM tab2 AS cor0
----
23
-4896
40
-7392
58
-6432

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( + col2 )
----

query II rowsort
SELECT DISTINCT + 65, col1 FROM tab0 AS cor0
----
65
1
65
21
65
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 97 + + col1 = - 68
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 97 + + col1 = - 68
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col1 * + col2 ) = 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4088
SELECT col1 * + col0 * - ( + + 32 ) + + col1 AS col1, + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
-3103
NULL
-38799
NULL
-58443
NULL

skipif mysql # not compatible
query II rowsort label-4088
SELECT col1 * + col0 * - ( + + 32 ) + + col1 AS col1, + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
-3103
NULL
-38799
NULL
-58443
NULL

query I rowsort
SELECT DISTINCT - 1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4091
SELECT - COUNT( + - ( - + col2 ) ) AS col1, - 18 AS col2 FROM tab2 AS cor0
----
-3
-18

skipif mysql # not compatible
query II rowsort label-4091
SELECT - COUNT ( + - ( - + col2 ) ) AS col1, - 18 AS col2 FROM tab2 AS cor0
----
-3
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - - SUM( - 31 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4092
SELECT - - SUM ( - 31 ) FROM tab2 AS cor0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 63 AND NULL
----

query I rowsort
SELECT + col0 * - ( + + col2 ) + + 68 - - + col1 FROM tab0 cor0 WHERE 65 + + col1 * + + 72 <= col2 * + - 42 * - col0
----
-556
-781
-9534

query II rowsort
SELECT col2 AS col0, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL 23 * + COUNT( * ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 23 * + COUNT ( * ) AS col2 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query II rowsort
SELECT DISTINCT + + col2 AS col1, + ( col2 ) FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + 52 FROM tab1 AS cor0
----
59
52
68
52
96
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4100
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + + col0 * CAST( NULL AS SIGNED ) + - col0 <= ( - + 2 )
----

skipif mysql # not compatible
query III rowsort label-4100
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + + col0 * CAST ( NULL AS INTEGER ) + - col0 <= ( - + 2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - + col0 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( + 30, col1 + + + ( + - 70 ) + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT ( - + col1 ) DIV + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4103
SELECT ( - + col1 ) / + col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT - CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4104
SELECT - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) * + + 48 IN ( + 96 )
----

query I rowsort
SELECT ALL - 7 * + col0 * + 81 FROM tab0
----
-49329
-54999
-8505

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT 15 * col2 * col1 DIV - col1 AS col1 FROM tab1
----
-1020
-1440
-885

skipif mysql # not compatible
query I rowsort label-4107
SELECT 15 * col2 * col1 / - col1 AS col1 FROM tab1
----
-1020
-1440
-885

query II rowsort
SELECT ALL col1 + - - col2, - 21 AS col1 FROM tab2
----
117
-21
125
-21
74
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT ( + 17 ) DIV col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4109
SELECT ( + 17 ) / col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - 41 FROM tab0
----
-26
46
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( - 48 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT + 51 * + - COUNT( * ) FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4112
SELECT + 51 * + - COUNT ( * ) FROM tab2 cor0
----
-153

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT 6 IN ( col1 * - 96 + - - col1 * + col1 + - - 98 - - col2 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT col1 DIV + ( - 75 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT col1 / + ( - 75 ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4115
SELECT * FROM tab0 WHERE NOT ( NOT 35 >= CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4115
SELECT * FROM tab0 WHERE NOT ( NOT 35 >= CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT DISTINCT - 45 * - + ( - CAST( NULL AS SIGNED ) ) * - + col1 + + col2 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - 45 * - + ( - CAST ( NULL AS INTEGER ) ) * - + col1 + + col2 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL MAX( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL MAX ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - ( + + 45 ) FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + - SUM( DISTINCT - 75 ) AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4123
SELECT + - SUM ( DISTINCT - 75 ) AS col0 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4124
SELECT 50 * + SUM( DISTINCT + col0 ) + + + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT 50 * + SUM ( DISTINCT + col0 ) + + + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT - - col1 * + col1 * + col0 + + - col2 + - 89 * + col1 DIV + col1 FROM tab1 AS cor0
----
1977
200862
9811

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - - col1 * + col1 * + col0 + + - col2 + - 89 * + col1 / + col1 FROM tab1 AS cor0
----
1977
200862
9811

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT ALL - col2 DIV - - col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - col2 / - - col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT ALL - col0 DIV - + 18 FROM tab0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - col0 / - + 18 FROM tab0
----
0
4
5

query II rowsort
SELECT 48 AS col2, + 55 AS col2 FROM tab1
----
48
55
48
55
48
55

query I rowsort
SELECT 96 * - col1 AS col0 FROM tab1
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL + MAX( - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + MAX ( - - col2 ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4131
SELECT DISTINCT 70, - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4131
SELECT DISTINCT 70, - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT + 47 + - ( + + COUNT( * ) ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT + 47 + - ( + + COUNT ( * ) ) AS col1 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT + SUM( ALL - + col0 ) FROM tab2 WHERE NOT + + col2 IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-4133
SELECT + SUM ( ALL - + col0 ) FROM tab2 WHERE NOT + + col2 IS NULL
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + SUM( DISTINCT - + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4134
SELECT + SUM ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT - 22 AS col1, + 74 + - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + col0 * + 51 * 29 - col2 + col2 ) BETWEEN 14 * - col2 AND NULL )
----
-22
74

skipif mysql # not compatible
query II rowsort label-4135
SELECT - 22 AS col1, + 74 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + col0 * + 51 * 29 - col2 + col2 ) BETWEEN 14 * - col2 AND NULL )
----
-22
74

query I rowsort
SELECT - col0 + - col2 - col1 FROM tab1 cor0
----
-149
-161
-206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - col0 ) col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - - col0 + 83 AS col1 FROM tab1 AS cor0
----
4360
508
797

query I rowsort
SELECT + col0 + + ( + col2 ) FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL = ( - col0 - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT - + 6 * - SUM( DISTINCT + + 1 ) + + COUNT( DISTINCT 52 ) col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4141
SELECT DISTINCT - + 6 * - SUM ( DISTINCT + + 1 ) + + COUNT ( DISTINCT 52 ) col0 FROM tab1 AS cor0
----
7

query I rowsort
SELECT - ( + 0 ) + - col2 FROM tab1 WHERE + 58 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col2 - - - col0 FROM tab1
----
-23
-26
45

query II rowsort
SELECT ALL - 71 + col2, 99 AS col2 FROM tab1 AS cor0
----
-12
99
-3
99
25
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT DISTINCT - - 47 + - - col0 + - - col0 * + ( col0 ) + + col1 * + + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-3520
7493
9454

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - - 47 + - - col0 + - - col0 * + ( col0 ) + + col1 * + + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-3520
7493
9454

query I rowsort
SELECT ALL 10 * + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT COUNT( DISTINCT + 42 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT COUNT ( DISTINCT + 42 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * + col1 + - - 74 col1 FROM tab1 AS cor0
----
1376
4445
539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT - MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * col0 * + - 82 col1 FROM tab2 AS cor0
----
21495808
34593750
7981552

query I rowsort
SELECT DISTINCT - ( + + 59 ) - + - col0 FROM tab1 AS cor0
----
-8
26
32

query I rowsort
SELECT ( col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 - + 41 * - col0 FROM tab1
----
2105
3490
3778

query I rowsort
SELECT ALL col0 + 45 AS col1 FROM tab1
----
130
136
96

query II rowsort
SELECT DISTINCT + col2 + col0 * + 74 AS col2, + 51 AS col2 FROM tab1
----
3870
51
6349
51
6802
51

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + ( - ( col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4157
SELECT - ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT - ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 35 AS col0, - col2 FROM tab2 AS cor0
----
-35
-23
-35
-40
-35
-58

query I rowsort
SELECT DISTINCT 42 * col1 * - + 94 AS col2 FROM tab2 AS cor0
----
-201348
-264516
-303996

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 42 ) - col1 + + + col0 + + - 21 * - ( + col0 ) * + - 29 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 64 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT 38 DIV COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4162
SELECT 38 / COUNT ( * ) FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 95 col0 FROM tab1 AS cor0
----
5605
6460
9120

query I rowsort
SELECT - ( + + AVG ( + + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( 62, 10 )
----
NULL

query I rowsort
SELECT ALL - 14 + + + 71 + + + col1 AS col1 FROM tab2 AS cor0
----
108
124
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT ALL col1 * + - CAST( NULL AS SIGNED ) * - 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) * - 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT ALL + COUNT( * ) DIV + - COUNT( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + COUNT ( * ) / + - COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 AS col2, col0 + + + col2 + 6 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 + + + col2 <> - col0 + - - 77 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 79 + + - col1 FROM tab0
----
-2
58
78

query I rowsort
SELECT + 32 + - + col0 + + + col0 FROM tab2
----
32
32
32

query I rowsort
SELECT DISTINCT - col1 + + ( - 70 ) FROM tab2
----
-121
-137
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT COUNT( * ) FROM tab0 WHERE col1 <> + + 15 + - 54
----
3

skipif mysql # not compatible
query I rowsort label-4174
SELECT COUNT ( * ) FROM tab0 WHERE col1 <> + + 15 + - 54
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT ALL - col2 * + 31 * col0 AS col2, + col2 * - CAST( - 31 AS SIGNED ) FROM tab1
----
-151776
2976
-155465
1829
-191828
2108

skipif mysql # not compatible
query II rowsort label-4175
SELECT ALL - col2 * + 31 * col0 AS col2, + col2 * - CAST ( - 31 AS INTEGER ) FROM tab1
----
-151776
2976
-155465
1829
-191828
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT SUM( + col0 ) + - COUNT( * ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT SUM ( + col0 ) + - COUNT ( * ) FROM tab2
----
182

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 > + + col1
----

query I rowsort
SELECT col0 + + 30 + - - 62 * + col2 AS col2 FROM tab2
----
1502
2574
3701

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT ALL 64 DIV col0 col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4179
SELECT ALL 64 / col0 col0 FROM tab0
----
0
0
4

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - 92 * col2 + + + col2 + + col2 * - ( - col2 )
----

query I rowsort
SELECT - - ( - 32 ) FROM tab2 cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * - + 72 IN ( - col1 * col0 * col0, col1 + + col1 * - 33 * - ( - ( + + col0 ) ) + + col2, - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0 + - col1 AS col1, col0 AS col2 FROM tab2
----
-13
64
-5
46
8
75

query I rowsort
SELECT ALL - 3 FROM tab2, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT col2 + - 64 - - 20 FROM tab1
----
15
24
52

query I rowsort
SELECT ALL 70 + - + 16 * - col1 * col0 AS col2 FROM tab0
----
1622
19510
29302

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT + col2 DIV col1 + - - col2 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4188
SELECT + col2 / col1 + - - col2 AS col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT AVG ( + - ( col1 ) ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT AVG ( + - ( col1 ) ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 - - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL - MAX( 39 ) AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - MAX ( 39 ) AS col2 FROM tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT + col0 * + + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4192
SELECT + col0 * + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 65 = + col2 * - col1 * - - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 72 + - - col1 - - 49 FROM tab0 AS cor0
----
122
142
202

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT - 68 DIV + COUNT( * ) col1 FROM tab2
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4195
SELECT - 68 / + COUNT ( * ) col1 FROM tab2
----
-22

query I rowsort
SELECT col0 * + - 61 AS col2 FROM tab0
----
-5307
-5917
-915

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 14 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT + COUNT( ( + 40 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT + COUNT ( ( + 40 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL + - 6 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + MIN( ALL - col2 ) * + COUNT( DISTINCT + col2 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-4201
SELECT + MIN ( ALL - col2 ) * + COUNT ( DISTINCT + col2 ) FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL MIN( - 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL MIN ( - 89 ) FROM tab2
----
-89

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4204
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT + SUM( ALL + 50 ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
150
3

skipif mysql # not compatible
query II rowsort label-4205
SELECT + SUM ( ALL + 50 ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
150
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - - COUNT( ALL col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4206
SELECT - - COUNT ( ALL col2 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT SUM( - - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT SUM ( - - col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT 66 * - - 86 FROM tab1
----
5676
5676
5676

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT 46 DIV 21 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4209
SELECT 46 / 21 FROM tab2 cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT DISTINCT 34 DIV - 97 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT 34 / - 97 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - - col2
----

query II rowsort
SELECT 33 AS col0, - 32 + + col0 AS col1 FROM tab2 AS cor0
----
33
14
33
32
33
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 86, + 64 - col0 * + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT ALL - - ( + + col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL - - ( + + col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 / 84 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + col1 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-1
-102
-3711

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT + MAX( DISTINCT + + 24 ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4217
SELECT + MAX ( DISTINCT + + 24 ) FROM tab0 cor0
----
24

query I rowsort
SELECT - ( - - 61 ) AS col0 FROM tab0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) + 50 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) + 50 FROM tab1, tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 98 * + col1 * - 28 IS NOT NULL
----

query I rowsort
SELECT ALL - 98 * - - 81 + + 80 FROM tab2 WHERE + ( + 44 ) * + + col1 < - - col2
----

query I rowsort
SELECT DISTINCT + 79 + 91 AS col1 FROM tab2 WHERE NULL IS NULL
----
170

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - col0 * - col2
----

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE + col2 IN ( - - col0 - - 87, + col0 + + col0 * + 15, - ( col2 ), - col1 + col2, + col2 * - 93 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4226
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4226
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND col0
----

query I rowsort
SELECT - + 59 * - col0 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT DISTINCT + + ( ( + + col0 ) ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT col1 + col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT ALL - COUNT( * ) AS col0, 2 + - 83 FROM tab0
----
-3
-81

skipif mysql # not compatible
query II rowsort label-4231
SELECT ALL - COUNT ( * ) AS col0, 2 + - 83 FROM tab0
----
-3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT DISTINCT + MIN( ALL - 86 ) AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + MIN ( ALL - 86 ) AS col1 FROM tab2
----
-86

query II rowsort
SELECT - 73 AS col1, + col2 AS col1 FROM tab1
----
-73
59
-73
68
-73
96

query III rowsort
SELECT * FROM tab2 WHERE NOT - 72 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IN ( + 48, col1, col1 + + col0 + + - col0, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + + MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4236
SELECT + + MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4237
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-4237
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - col1 AS col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 52 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT ALL - MIN( + col2 ) * 65 * + 89 * + + 81, + 4 col0 FROM tab0
----
-4685850
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4239
SELECT ALL - MIN ( + col2 ) * 65 * + 89 * + + 81, + 4 col0 FROM tab0
----
-4685850
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4241
SELECT - + 23 DIV - + COUNT( * ) FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-4241
SELECT - + 23 / - + COUNT ( * ) FROM tab1 cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT ALL + col0 DIV + + 53 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + col0 / + + 53 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * 9 col2 FROM tab2 AS cor0
----
23040
39150
9522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + + col0 / + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + + col0 / + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT col1 DIV - 31 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT col1 / - 31 FROM tab1 cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT SUM( + CAST( + 55 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT SUM ( + CAST ( + 55 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND + - col2 + + - col1 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) * - col1 + - col0 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) * - col1 + - col0 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + 13 ) FROM tab2 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4250
SELECT * FROM tab2 AS cor0 WHERE col1 + col1 + col2 / + col0 = col2 * CAST( - col0 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-4250
SELECT * FROM tab2 AS cor0 WHERE col1 + col1 + col2 / + col0 = col2 * CAST ( - col0 AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - + 6 + + SUM( DISTINCT + col2 ) FROM tab0 cor0
----
150

skipif mysql # not compatible
query I rowsort label-4251
SELECT - + 6 + + SUM ( DISTINCT + col2 ) FROM tab0 cor0
----
150

query I rowsort
SELECT DISTINCT - 62 + - + 2 FROM tab1
----
-64

query I rowsort
SELECT + col0 + col1 + ( col2 ) + - col2 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT - col2 DIV - 49 + - + ( + 9 ) FROM tab0
----
-7
-9
-9

skipif mysql # not compatible
query I rowsort label-4254
SELECT - col2 / - 49 + - + ( + 9 ) FROM tab0
----
-7
-9
-9

query I rowsort
SELECT DISTINCT 71 + - col0 FROM tab2
----
-4
25
7

query II rowsort
SELECT ALL 89 + + 40 + + col0 AS col2, col1 FROM tab2
----
175
51
193
77
204
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - 53 col0 FROM tab1
----
15
43
6

query I rowsort
SELECT ALL 19 + - 32 AS col1 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT + col2 DIV + 1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4259
SELECT + col2 / + 1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4260
SELECT ALL - - COUNT( * ) col1, - ( 26 ) FROM tab0 AS cor0
----
3
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4260
SELECT ALL - - COUNT ( * ) col1, - ( 26 ) FROM tab0 AS cor0
----
3
-26

query I rowsort
SELECT + 57 + - 62 * col1 FROM tab1
----
-253
-2857
-811

query I rowsort
SELECT 71 * + + 90 + - + 85 FROM tab1
----
6305
6305
6305

query I rowsort
SELECT ALL - 15 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT + - 58 FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 26 col1 FROM tab1 AS cor0
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - + col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT COUNT( * ) * - + 88 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-4268
SELECT COUNT ( * ) * - + 88 FROM tab0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT DISTINCT 62 DIV + 16 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT 62 / + 16 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4270
SELECT DISTINCT - col0 * - col1 * + + col1 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
119646
336675
379456

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT - col0 * - col1 * + + col1 FROM tab2 WHERE + CAST ( NULL AS REAL ) IS NULL
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + MAX( DISTINCT - col1 ) * + MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
235

skipif mysql # not compatible
query I rowsort label-4271
SELECT + MAX ( DISTINCT - col1 ) * + MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
235

query I rowsort
SELECT col0 * col2 + + 28 FROM tab1
----
4924
5043
6216

query I rowsort
SELECT DISTINCT - + col1 + - col1 AS col2 FROM tab0 cor0
----
-162
-2
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4276
SELECT + col1 + - - col0 AS col1, + col2 FROM tab0 AS cor0 WHERE col1 / + col2 / - CAST( NULL AS SIGNED ) * - 81 NOT IN ( ( - - col1 ) - - col1, + col1 / + col2, + col2, - - col2, - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query II rowsort label-4276
SELECT + col1 + - - col0 AS col1, + col2 FROM tab0 AS cor0 WHERE col1 / + col2 / - CAST ( NULL AS INTEGER ) * - 81 NOT IN ( ( - - col1 ) - - col1, + col1 / + col2, + col2, - - col2, - ( CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT col2 AS col1, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT CAST( - + 94 AS SIGNED ) AS col2 FROM tab2
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-4278
SELECT CAST ( - + 94 AS INTEGER ) AS col2 FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT + MAX( DISTINCT - - col2 ) * 6 * + 18 AS col0 FROM tab2 WHERE NOT NULL IS NULL OR NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) * 6 * + 18 AS col0 FROM tab2 WHERE NOT NULL IS NULL OR NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab0 WHERE + - col2 IS NOT NULL
----
196
62
97

query I rowsort
SELECT ALL col2 - col1 * + col1 AS col2 FROM tab2
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT 88 - + + COUNT( * ) + + + 84 FROM tab1
----
169

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT 88 - + + COUNT ( * ) + + + 84 FROM tab1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT SUM( ALL 59 ) FROM tab1 AS cor0 WHERE NULL <= 66 + - - 24 + - col2 * + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT SUM ( ALL 59 ) FROM tab1 AS cor0 WHERE NULL <= 66 + - - 24 + - col2 * + - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL 56 * - - 52 * + COUNT( * ) + - - 33 AS col1 FROM tab0 AS cor0
----
8769

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL 56 * - - 52 * + COUNT ( * ) + - - 33 AS col1 FROM tab0 AS cor0
----
8769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 + col2 - + + 45 FROM tab2 AS cor0
----
51
24
67
88
77
59

query II rowsort
SELECT + + col0, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL + SUM( DISTINCT - - 70 ) AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + SUM ( DISTINCT - - 70 ) AS col0 FROM tab1 AS cor0
----
70

query I rowsort
SELECT DISTINCT col2 * - + col1 + + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT + - ( + ( 37 ) ) FROM tab1 cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 19 * 54 * + + 42 AS col1, + col0 col0 FROM tab0 AS cor0
----
-43092
15
-43092
87
-43092
97

query I rowsort
SELECT DISTINCT - col0 * - col0 + + - col2 + - col1 FROM tab2 AS cor0
----
2042
3979
5500

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT 63 NOT BETWEEN NULL AND + - col2 / + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT ALL + col2 DIV - - col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + col2 / - - col2 FROM tab2
----
1
1
1

query II rowsort
SELECT col2 * + 67 AS col0, 78 FROM tab2
----
1541
78
2680
78
3886
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT MIN( ALL - ( 82 ) ) * + - COUNT( col0 ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-4296
SELECT MIN ( ALL - ( 82 ) ) * + - COUNT ( col0 ) FROM tab1
----
246

query II rowsort
SELECT ( + col0 ) AS col1, + 35 * + 95 FROM tab0 AS cor0
----
15
3325
87
3325
97
3325

query I rowsort
SELECT + 8 + + ( + + 50 ) * - 90 FROM tab1 AS cor0
----
-4492
-4492
-4492

query I rowsort
SELECT - + col1 * + col0 + - - col0 AS col1 FROM tab1 AS cor0 WHERE NULL < col1
----

query II rowsort
SELECT - - col1 * + + 11 AS col1, col0 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( - 45 + - + col0 * col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT - COUNT( 2 ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4301
SELECT DISTINCT - COUNT ( 2 ) col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT col2 + - col2 + + col2 + 79 FROM tab2 cor0
----
102
119
137

query II rowsort
SELECT ALL col2 AS col1, - 62 AS col2 FROM tab1
----
59
-62
68
-62
96
-62

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0 * + 11, + col2, - 33 )
----

query I rowsort
SELECT 80 * + 16 AS col1 FROM tab1
----
1280
1280
1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT + 76 DIV - - COUNT( * ) AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 76 / - - COUNT ( * ) AS col2 FROM tab2
----
25

query II rowsort
SELECT + 7 AS col0, 48 - - col2 FROM tab1
----
7
107
7
116
7
144

query I rowsort
SELECT ALL 64 + - col2 FROM tab2
----
24
41
6

query I rowsort
SELECT ALL + 34 + col2 * - 87 AS col1 FROM tab0
----
-4055
-836
-8579

query I rowsort
SELECT ALL col2 * - 45 AS col1 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4311
SELECT * FROM tab0 AS cor0 WHERE - col2 + - CAST( - + col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4311
SELECT * FROM tab0 AS cor0 WHERE - col2 + - CAST ( - + col2 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

query II rowsort
SELECT ALL col1 AS col2, - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4316
SELECT DISTINCT + MAX( - 78 ) * + ( + COUNT( * ) ) + - + ( + 24 ) + - - CAST( NULL AS SIGNED ) + + AVG ( + + col1 ) col1, - 24 FROM tab1 cor0 WHERE - col1 / + - 50 IS NULL
----
NULL
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4316
SELECT DISTINCT + MAX ( - 78 ) * + ( + COUNT ( * ) ) + - + ( + 24 ) + - - CAST ( NULL AS INTEGER ) + + AVG ( + + col1 ) col1, - 24 FROM tab1 cor0 WHERE - col1 / + - 50 IS NULL
----
NULL
-24

query I rowsort
SELECT ALL + col2 * + - 62 * 95 + col1 FROM tab0 AS cor0
----
-276749
-583109
-58879

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4318
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 98 = CAST( ( - col1 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4318
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 98 = CAST ( ( - col1 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4319
SELECT - col2 * - + CAST( + + 18 AS SIGNED ), col1 + + + col1 AS col2 FROM tab2
----
1044
134
414
102
720
154

skipif mysql # not compatible
query II rowsort label-4319
SELECT - col2 * - + CAST ( + + 18 AS INTEGER ), col1 + + + col1 AS col2 FROM tab2
----
1044
134
414
102
720
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL - SUM( DISTINCT - col0 ) col2 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT ALL - SUM ( DISTINCT - col0 ) col2 FROM tab2
----
185

query II rowsort
SELECT ALL col1 AS col2, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4322
SELECT ALL + CAST( + col0 AS SIGNED ) / + 53 + - col0 + - col1 * - CAST( NULL AS DECIMAL ) * + + ( + col2 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL + CAST ( + col0 AS INTEGER ) / + 53 + - col0 + - col1 * - CAST ( NULL AS REAL ) * + + ( + col2 ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT col2 DIV + 11 AS col0 FROM tab2 cor0
----
2
3
5

skipif mysql # not compatible
query I rowsort label-4323
SELECT col2 / + 11 AS col0 FROM tab2 cor0
----
2
3
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT DISTINCT - + col2 * CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - + col1 AND col2 + + - 0 / - col2
----

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - + col2 * CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - + col1 AND col2 + + - 0 / - col2
----

query I rowsort
SELECT - col1 + + col0 * 79 FROM tab1 AS cor0
----
4015
6710
7142

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE + 75 <> - 78
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT + col2 + + col1 AS col1, - 2 FROM tab0
----
100
-2
128
-2
31
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4329
SELECT ALL * FROM tab2 WHERE NOT - 95 * - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4329
SELECT ALL * FROM tab2 WHERE NOT - 95 * - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT 1 + + 53 AS col1 FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * - 70 AS col0, + col0 col1 FROM tab2 AS cor0
----
-1610
46
-2800
64
-4060
75

query II rowsort
SELECT col1 * col0 AS col2, + col0 + + col2 AS col1 FROM tab0 cor0
----
1215
62
1827
97
97
196

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT DISTINCT - col1 DIV + 59 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - col1 / + 59 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - col2 * + 2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT col2 + 81 + - - 17 + + 18 FROM tab0
----
126
163
215

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT ALL + ( + MIN( - + 4 ) ), + 68 * + MAX( + col0 ) col0 FROM tab0
----
-4
6596

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4336
SELECT ALL + ( + MIN ( - + 4 ) ), + 68 * + MAX ( + col0 ) col0 FROM tab0
----
-4
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ( 37 ) + + - ( + 32 ) * COUNT( DISTINCT col1 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4337
SELECT ( 37 ) + + - ( + 32 ) * COUNT ( DISTINCT col1 ) AS col0 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL AND NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - 61 + + COUNT( * ) * COUNT( * ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 61 + + COUNT ( * ) * COUNT ( * ) FROM tab2
----
-52

query I rowsort
SELECT DISTINCT + 83 * + + col0 + + col1 + - col2 * col1 FROM tab1
----
2903
4404
6765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL col1 * - CAST( + 83 AS SIGNED ) - col1 + - ( 52 ) AS col0 FROM tab0
----
-136
-1816
-6856

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL col1 * - CAST ( + 83 AS INTEGER ) - col1 + - ( 52 ) AS col0 FROM tab0
----
-136
-1816
-6856

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT ALL + + 26 DIV - - col0 - + + ( + 82 ) FROM tab0 AS cor0
----
-81
-82
-82

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + + 26 / - - col0 - + + ( + 82 ) FROM tab0 AS cor0
----
-81
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT + col1 + col1 * + + col1 * - CAST( - col1 AS SIGNED ) * - ( + + col0 ) * 11 + + col2 AS col1 FROM tab2 AS cor0
----
-248129350
-321399115
-67121332

skipif mysql # not compatible
query I rowsort label-4343
SELECT + col1 + col1 * + + col1 * - CAST ( - col1 AS INTEGER ) * - ( + + col0 ) * 11 + + col2 AS col1 FROM tab2 AS cor0
----
-248129350
-321399115
-67121332

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 49 * - 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4346
SELECT - col1 DIV + - 61 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4346
SELECT - col1 / + - 61 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT 94 * + col0 FROM tab2
----
4324
6016
7050

query I rowsort
SELECT - - 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + 50 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT CAST( - col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4350
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + + ( + 28 ) AS col1 FROM tab1 AS cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 + + col2 + + - 8 / - 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 82 * + ( - - col2 ) col1 FROM tab0 cor0
----
-57810
-71340
-787446

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4354
SELECT + MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + SUM( + - 20 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * col1 IS NULL
----
-60

skipif mysql # not compatible
query I rowsort label-4355
SELECT + SUM ( + - 20 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * col1 IS NULL
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT + SUM( DISTINCT + 97 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4356
SELECT + SUM ( DISTINCT + 97 ) AS col2 FROM tab2 AS cor0
----
97

query I rowsort
SELECT DISTINCT + ( + 3 ) AS col2 FROM tab1 AS cor0 WHERE col1 = NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col2 - - 3 FROM tab2
----
-25
-34
-6

query I rowsort
SELECT - + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT ALL + col2 + 79 AS col0 FROM tab1 WHERE + 52 - + - 9 IS NULL
----

query I rowsort
SELECT 70 * + 55 + - 7 FROM tab1
----
3843
3843
3843

query I rowsort
SELECT + - 59 * - + ( col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
2765
3853
4492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL + + CAST( + col2 AS SIGNED ) + - - ( - CAST( NULL AS SIGNED ) ) * + col2 + - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4363
SELECT ALL + + CAST ( + col2 AS INTEGER ) + - - ( - CAST ( NULL AS INTEGER ) ) * + col2 + - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + 98 + + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN 84 * + ( - col1 ) AND - col0
----

query I rowsort
SELECT DISTINCT - 20 + + - col1 FROM tab2
----
-71
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + ( + col1 ) <= 67
----

query II rowsort
SELECT DISTINCT + col1, col0 * - + 41 FROM tab0 AS cor0
----
1
-3977
21
-3567
81
-615

query I rowsort
SELECT col0 * - - ( col0 ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL + col2 + + ( 53 ) AS col0 FROM tab1
----
112
121
149

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT col1 DIV 35 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4370
SELECT col1 / 35 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT 86 * - col2 / + - CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT 86 * - col2 / + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT ALL col0 * + 53 * - 25 FROM tab2 WHERE + 1 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL col0 * + 53 * - 25 FROM tab2 WHERE + 1 > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT + col2 - col2 BETWEEN + - 0 / - col2 - - col0 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4374
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col2 - col2 BETWEEN + - 0 / - col2 - - col0 AND NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + 35 * + col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 49 + + col2 AS col0 FROM tab1 AS cor0
----
-4
-72
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - - SUM( 44 ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4377
SELECT - - SUM ( 44 ) FROM tab1 AS cor0
----
132

query I rowsort
SELECT ALL - col2 + 70 FROM tab0
----
-29
23
60

query I rowsort
SELECT ALL 77 + - - col0 AS col2 FROM tab0
----
164
174
92

query III rowsort
SELECT * FROM tab1 WHERE col2 >= col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT COUNT( ALL - 92 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4381
SELECT COUNT ( ALL - 92 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT DISTINCT col2 + - - col2 DIV + ( + + ( + col0 ) ) FROM tab0
----
10
100
50

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT col2 + - - col2 / + ( + + ( + col0 ) ) FROM tab0
----
10
100
50

query I rowsort
SELECT - col0 FROM tab2 WHERE + + col2 * - 30 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT - 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT - CAST( NULL AS SIGNED ) * + col1 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT - CAST ( NULL AS INTEGER ) * + col1 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col0 FROM tab1 AS cor0 WHERE NOT + 48 = NULL
----

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col0 FROM tab1 AS cor0 WHERE NOT + 48 = NULL
----

query II rowsort
SELECT ALL + col2 AS col0, - col1 + - col2 + - - 88 * + col1 FROM tab0 AS cor0
----
10
1817
47
7000
99
-12

query I rowsort
SELECT DISTINCT col2 + - 34 FROM tab1
----
25
34
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + COUNT( DISTINCT + 36 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4390
SELECT + COUNT ( DISTINCT + 36 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 88 * + col2 - + col2 AS col0 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query II rowsort label-4392
SELECT ALL + - 89 - - COUNT( * ) AS col1, 33 AS col0 FROM tab0 AS cor0
----
-86
33

skipif mysql # not compatible
query II rowsort label-4392
SELECT ALL + - 89 - - COUNT ( * ) AS col1, 33 AS col0 FROM tab0 AS cor0
----
-86
33

query I rowsort
SELECT col2 * + col2 * 9 - - ( col1 ) + - - col2 AS col0 FROM tab1 AS cor0
----
31393
41731
83054

query I rowsort
SELECT + - 96 - + col1 + - - 35 AS col1 FROM tab1 cor0
----
-108
-66
-75

query I rowsort
SELECT ALL 68 * - - col1 FROM tab2
----
3468
4556
5236

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 11 / + col1 - col2 + + + 25 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT + CAST( NULL AS SIGNED ) * 41 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT + CAST ( NULL AS INTEGER ) * 41 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 94 ) AS col2 FROM tab2
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4399
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col1 + - CAST( NULL AS SIGNED ) AND col0 + - col2
----

skipif mysql # not compatible
query III rowsort label-4399
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col1 + - CAST ( NULL AS INTEGER ) AND col0 + - col2
----

query I rowsort
SELECT DISTINCT ( 67 ) + col2 * - 58 AS col1 FROM tab1
----
-3355
-3877
-5501

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - SUM( 1 ) AS col2 FROM tab0 WHERE NOT + col2 NOT IN ( - col2 * - col1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT - SUM ( 1 ) AS col2 FROM tab0 WHERE NOT + col2 NOT IN ( - col2 * - col1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL - MAX( - col1 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - MAX ( - col1 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT 14 * COUNT( DISTINCT col0 * + 97 ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT 14 * COUNT ( DISTINCT col0 * + 97 ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 49 + col2 FROM tab0
----
148
59
96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 28 - col2 * 98 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - ( col2 ) ) - - 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + col1 AS col2 FROM tab1 WHERE NOT - 60 + - 42 * col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 * + col1 + + 54 <= ( col2 * col1 )
----

query I rowsort
SELECT DISTINCT - ( col1 ) AS col0 FROM tab0 WHERE NOT 4 < 73 + col0
----

query I rowsort
SELECT ALL - ( ( - 7 ) ) FROM tab0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + col1 * - 88 col0 FROM tab2
----
-4417
-5825
-6705

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 55 NOT IN ( + col1 + - 11 * + col2 )
----

query I rowsort
SELECT 64 * - 64 FROM tab0
----
-4096
-4096
-4096

query I rowsort
SELECT 70 + + col2 FROM tab2
----
110
128
93

query I rowsort
SELECT 39 * + col0 AS col0 FROM tab2
----
1794
2496
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ( COUNT( * ) ) + 44 * COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-4416
SELECT ( COUNT ( * ) ) + 44 * COUNT ( * ) FROM tab1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 58 * + 98 col0 FROM tab0
----
-5603
-5663
-5683

query I rowsort
SELECT 82 + + col2 AS col1 FROM tab2
----
105
122
140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4420
SELECT ALL * FROM tab0 WHERE 54 * + 62 IN ( ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4420
SELECT ALL * FROM tab0 WHERE 54 * + 62 IN ( ( - CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * - col1 col1 FROM tab2
----
-612
-804
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT - ( CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4422
SELECT - ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - col1 * - 74 AS col1 FROM tab2
----
3774
4958
5698

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < - 34
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 80 ) NOT IN ( + col2 )
----

query I rowsort
SELECT col2 - - 99 * + 62 AS col1 FROM tab2
----
6161
6178
6196

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - ( + MIN( DISTINCT col1 ) ) + - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-4427
SELECT - ( + MIN ( DISTINCT col1 ) ) + - COUNT ( * ) FROM tab2
----
-54

query I rowsort
SELECT ALL - 97 AS col0 FROM tab2 AS cor0 WHERE + col2 * - 21 BETWEEN ( - col0 ) AND 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT + col0 DIV col0 + 25 FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-4429
SELECT + col0 / col0 + 25 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= ( col2 )
----
51
14
96

query I rowsort
SELECT DISTINCT - 81 FROM tab0 AS cor0 WHERE ( 74 ) IS NULL
----

query I rowsort
SELECT ALL col2 - - 11 * - col2 AS col2 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4433
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col2 BETWEEN col2 * + col1 AND ( + CAST( NULL AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4433
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col2 BETWEEN col2 * + col1 AND ( + CAST ( NULL AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 55 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 NOT BETWEEN col0 AND 8 + - 48
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 60 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT col1 * + 48 FROM tab0 AS cor0 WHERE NOT + col2 - 48 BETWEEN 58 - - CAST( NULL AS SIGNED ) AND + 86 / col2 + + col0
----

skipif mysql # not compatible
query I rowsort label-4437
SELECT col1 * + 48 FROM tab0 AS cor0 WHERE NOT + col2 - 48 BETWEEN 58 - - CAST ( NULL AS INTEGER ) AND + 86 / col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL COUNT( DISTINCT - col1 ) * - COUNT( + col2 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL COUNT ( DISTINCT - col1 ) * - COUNT ( + col2 ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT - col1 DIV + - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT - col1 / + - col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT SUM( - col0 ) * 6 AS col2 FROM tab0
----
-1194

skipif mysql # not compatible
query I rowsort label-4440
SELECT SUM ( - col0 ) * 6 AS col2 FROM tab0
----
-1194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT - col0 * + col1 FROM tab0 WHERE NOT + ( + CAST( + col0 AS SIGNED ) ) - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4441
SELECT - col0 * + col1 FROM tab0 WHERE NOT + ( + CAST ( + col0 AS INTEGER ) ) - + col2 IS NOT NULL
----

query I rowsort
SELECT col1 * + 73 AS col2 FROM tab1
----
1022
3431
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN col1 AND ( col0 - col0 )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 30
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 66 >= + col0 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + col2 * col0 BETWEEN 40 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL + col1 DIV + - col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4447
SELECT ALL + col1 / + - col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NULL BETWEEN col2 AND ( - 55 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + 95 * SUM( DISTINCT - 87 * col2 ) FROM tab1 WHERE NOT NULL BETWEEN ( - col2 ) AND ( + ( col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 95 * SUM ( DISTINCT - 87 * col2 ) FROM tab1 WHERE NOT NULL BETWEEN ( - col2 ) AND ( + ( col1 ) )
----
NULL

query II rowsort
SELECT col0, 52 AS col0 FROM tab0
----
15
52
87
52
97
52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + col2 BETWEEN ( + col0 ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col2, col0 col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 IN ( + - col0 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT DISTINCT + 34 DIV ( + col0 ) * col0 + col1 * 66 AS col2 FROM tab2 AS cor0
----
3366
4422
5082

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + 34 / ( + col0 ) * col0 + col1 * 66 AS col2 FROM tab2 AS cor0
----
3366
4422
5082

query I rowsort
SELECT DISTINCT col2 + - col2 + + col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 WHERE col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL + 80 * + 32 + - COUNT( * ) AS col0 FROM tab2
----
2557

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + 80 * + 32 + - COUNT ( * ) AS col0 FROM tab2
----
2557

query III rowsort
SELECT * FROM tab1 WHERE col0 = ( - col1 )
----

query I rowsort
SELECT DISTINCT col2 + - - col1 FROM tab1
----
110
115
64

query II rowsort
SELECT + - 28 + - 89, - 0 - col1 AS col2 FROM tab0 AS cor0
----
-117
-1
-117
-21
-117
-81

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL <> col1 / col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( col2 * col0 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 + - 30 * - col1 FROM tab0 AS cor0
----
2511
31
651

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + - 60 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT MAX( col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + - COUNT( * ) + + 57 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4466
SELECT + - COUNT ( * ) + + 57 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT + MAX( - ( ( - - CAST( NULL AS SIGNED ) ) ) ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT + MAX ( - ( ( - - CAST ( NULL AS INTEGER ) ) ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 56 + 92 AS col1 FROM tab2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL + COUNT( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + COUNT ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT COUNT( * ) AS col0, - 90 AS col1 FROM tab1 AS cor0
----
3
-90

skipif mysql # not compatible
query II rowsort label-4471
SELECT COUNT ( * ) AS col0, - 90 AS col1 FROM tab1 AS cor0
----
3
-90

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 98 + - col0 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - - MAX( ALL col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4473
SELECT - - MAX ( ALL col1 ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - 6 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - 85 - col0 <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 12 / - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col1 )
----

query I rowsort
SELECT col1 + - col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT - col2 * - + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NOT - col1 < NULL )
----

skipif mysql # not compatible
query I rowsort label-4478
SELECT - col2 * - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NOT - col1 < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab0 WHERE NOT ( NULL = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 + + - col1 * - 85 * + 23 + - 47 <= + 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col1 ) BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT col2 * CAST( - 39 AS SIGNED ) AS col0 FROM tab2
----
-1560
-2262
-897

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT col2 * CAST ( - 39 AS INTEGER ) AS col0 FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT col0 * - + col2 * + col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4484
SELECT + - 51 DIV - MIN( DISTINCT - 37 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4484
SELECT + - 51 / - MIN ( DISTINCT - 37 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * - - col0 AS col0, 65 AS col0 FROM tab2 AS cor0
----
2116
65
4096
65
5625
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 + + col2 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 + + col2 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - COUNT( * ) + + 85 * - MAX( + + col2 ) FROM tab2 cor0
----
-4933

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - COUNT ( * ) + + 85 * - MAX ( + + col2 ) FROM tab2 cor0
----
-4933

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT 73 + MAX( 78 ) AS col1 FROM tab1
----
151

skipif mysql # not compatible
query I rowsort label-4489
SELECT 73 + MAX ( 78 ) AS col1 FROM tab1
----
151

query III rowsort
SELECT ALL * FROM tab2 WHERE - 91 / + col0 = col1
----

query I rowsort
SELECT - 93 * - 60 AS col1 FROM tab1
----
5580
5580
5580

query I rowsort
SELECT ALL + 65 + 66 + - + col1 * - col0 AS col2 FROM tab2
----
2477
5059
5156

query I rowsort
SELECT ALL + col2 + - + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + col2 ) * + col1 > ( - + col1 * - - col2 + 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4495
SELECT CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4495
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT ( - CAST( 0 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4496
SELECT DISTINCT ( - CAST ( 0 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 / - 72 FROM tab0 cor0 WHERE NOT ( ( + - col2 ) ) NOT IN ( + col0, - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT MAX( DISTINCT col1 ) col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4498
SELECT DISTINCT MAX ( DISTINCT col1 ) col1 FROM tab0 cor0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT col1 * - + col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT col1 * - + col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT 17 FROM tab0 AS cor0 WHERE NOT + col0 - - 95 * col0 / + + col0 * - CAST( NULL AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4501
SELECT 17 FROM tab0 AS cor0 WHERE NOT + col0 - - 95 * col0 / + + col0 * - CAST ( NULL AS INTEGER ) * - col2 IS NULL
----

query I rowsort
SELECT + + col2 * col0 * - + 7 FROM tab2 AS cor0
----
-17920
-30450
-7406

query I rowsort
SELECT ALL ( - col2 ) - - 40 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT col2 * - - CAST( - 51 AS SIGNED ) FROM tab1
----
-3009
-3468
-4896

skipif mysql # not compatible
query I rowsort label-4504
SELECT col2 * - - CAST ( - 51 AS INTEGER ) FROM tab1
----
-3009
-3468
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col1 col0 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL - col2 * - col1 * - - 40 * - + col1 FROM tab1 WHERE NOT - col2 + + 70 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT ALL - 99 * 61 DIV - ( - - col0 ) AS col2 FROM tab0
----
402
62
69

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 99 * 61 / - ( - - col0 ) AS col2 FROM tab0
----
402
62
69

query I rowsort
SELECT 97 AS col1 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN + - col1 * + 2 AND col0
----
97
97
97

query I rowsort
SELECT DISTINCT - ( 23 ) AS col0 FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL - - col2 + + col0 + - - col1 * + col1 AS col0 FROM tab0 AS cor0
----
197
538
6623

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4511
SELECT + CAST( - + col1 AS SIGNED ) DIV + col2 + - col1 FROM tab0 AS cor0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-4511
SELECT + CAST ( - + col1 AS INTEGER ) / + col2 + - col1 FROM tab0 AS cor0
----
-1
-23
-82

query I rowsort
SELECT DISTINCT - 0 + - 61 AS col1 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT - col2 FROM tab2 WHERE + + col2 * - col2 >= ( col2 ) - - 33
----

query I rowsort
SELECT col2 * - ( 99 ) FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT + col0 * + - 50 AS col1 FROM tab1 AS cor0
----
-2550
-4250
-4550

onlyif mysql # DIV for integer division: 
query II rowsort label-4516
SELECT DISTINCT col0 DIV + col1 AS col1, col0 AS col1 FROM tab0 cor0
----
0
15
4
87
97
97

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT col0 / + col1 AS col1, col0 AS col1 FROM tab0 cor0
----
0
15
4
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT - col1 DIV + + 76 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4517
SELECT - col1 / + + 76 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT ALL + + ( + + 68 ) FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT - 75 + col2 FROM tab0 AS cor0
----
-28
-65
24

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 54 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - col2 * col0 + + col1 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL MAX( + col1 ) + COUNT( ALL - - col2 ) + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL MAX ( + col1 ) + COUNT ( ALL - - col2 ) + COUNT ( * ) FROM tab0
----
87

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col2 AND - col1
----

query I rowsort
SELECT - col1 + + col1 - + + ( - col1 ) AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT DISTINCT + col0, col0 AS col1 FROM tab2 WHERE ( - col2 IS NOT NULL )
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4526
SELECT DISTINCT + 74 + + 47 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
121
3

skipif mysql # not compatible
query II rowsort label-4526
SELECT DISTINCT + 74 + + 47 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
121
3

query I rowsort
SELECT - - 85 * col2 FROM tab0 AS cor0
----
3995
8415
850

query I rowsort
SELECT ALL 2 - + 33 AS col0 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + + 16 * + col1 AS col2 FROM tab0 AS cor0
----
1296
16
336

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 4 IN ( - 93, 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT - CAST( - - 89 AS SIGNED ) FROM tab0 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-4531
SELECT - CAST ( - - 89 AS INTEGER ) FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT + + COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4533
SELECT + col0 AS col1, - col0 - + 95 + 68 + - ( ( + ( + - col2 ) ) ) * - - col0 DIV - + col0 FROM tab2 cor0
----
46
-96
64
-131
75
-160

skipif mysql # not compatible
query II rowsort label-4533
SELECT + col0 AS col1, - col0 - + 95 + 68 + - ( ( + ( + - col2 ) ) ) * - - col0 / - + col0 FROM tab2 cor0
----
46
-96
64
-131
75
-160

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - - 65 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4535
SELECT DISTINCT CAST( - 3 AS SIGNED ) AS col1, col1 FROM tab2
----
-3
51
-3
67
-3
77

skipif mysql # not compatible
query II rowsort label-4535
SELECT DISTINCT CAST ( - 3 AS INTEGER ) AS col1, col1 FROM tab2
----
-3
51
-3
67
-3
77

query I rowsort
SELECT 75 FROM tab0 WHERE NOT - 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * + col1 + - 91 col1 FROM tab2
----
2102
2790
3220

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - - col1 <= - - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 39 col1 FROM tab1 AS cor0
----
39
39
39

query II rowsort
SELECT - 9 + - 8 + - col1 AS col2, 58 FROM tab2 AS cor0
----
-68
58
-84
58
-94
58

query I rowsort
SELECT - - 3 + - 66 AS col1 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT + 0 * - col1 + - - col2 - + col2 FROM tab0
----
0

query I rowsort
SELECT ALL + col1 * - col1 * - col1 AS col2 FROM tab1
----
103823
125
2744

query I rowsort
SELECT col2 + + + col2 * col0 FROM tab0 WHERE - 62 + + - 59 NOT BETWEEN NULL AND - 36
----

query I rowsort
SELECT - - col0 + + col2 FROM tab0 WHERE + + 78 * - col1 = + col0 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT - 32 + + SUM( - 59 ) AS col0 FROM tab0
----
-209

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT - 32 + + SUM ( - 59 ) AS col0 FROM tab0
----
-209

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT ALL - col1 + - 69 + - col2 DIV 59 AS col0 FROM tab2
----
-120
-136
-146

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - col1 + - 69 + - col2 / 59 AS col0 FROM tab2
----
-120
-136
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT DISTINCT + + col1 - + - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4548
SELECT DISTINCT + + col1 - + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT DISTINCT + MAX( - + 5 ) AS col1, 3 FROM tab2 cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-4549
SELECT DISTINCT + MAX ( - + 5 ) AS col1, 3 FROM tab2 cor0
----
-5
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT DISTINCT - 75 col0, - COUNT( * ) FROM tab2 AS cor0
----
-75
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4550
SELECT DISTINCT - 75 col0, - COUNT ( * ) FROM tab2 AS cor0
----
-75
-3

query I rowsort
SELECT ALL + 79 * + + col1 FROM tab1 cor0
----
1106
3713
395

query I rowsort
SELECT + 51 * ( col1 ) * + 17 FROM tab1 AS cor0
----
12138
40749
4335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4553
SELECT ALL - 53 DIV + COUNT( * ) AS col2 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - 53 / + COUNT ( * ) AS col2 FROM tab0
----
-17

query I rowsort
SELECT ALL - + 20 FROM tab0 WHERE NOT col1 IS NULL
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - 10 - - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
36
54
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT DISTINCT - 26 / - COUNT( * ) * + + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - 26 / - COUNT ( * ) * + + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4557
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 <> + + 60 * + + ( + CAST( NULL AS SIGNED ) ) * col2 + - 96 + - col1
----

skipif mysql # not compatible
query III rowsort label-4557
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 <> + + 60 * + + ( + CAST ( NULL AS INTEGER ) ) * col2 + - 96 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col1 - + col1 / - col0 + + col0 AND - col0 * - col1 + col2 * - col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + - 60 ) AS col1 FROM tab0 AS cor0
----
-60

query II rowsort
SELECT DISTINCT - col0 * col0 AS col2, + col0 AS col0 FROM tab2 AS cor0
----
-2116
46
-4096
64
-5625
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT - 21 DIV - + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT - 21 / - + col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 / + col1 col2 FROM tab1 AS cor0 WHERE - 13 IN ( - col0, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT DISTINCT + - ( - 57 ) DIV + 93 * - 33 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + - ( - 57 ) / + 93 * - 33 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT - + SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - + SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col2 / + col2 = - col2 * - col1
----

query I rowsort
SELECT col2 / + 88 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + + col2 / col0 * + + col0 ) AND NULL
----

query I rowsort
SELECT - ( - - 17 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4569
SELECT DISTINCT - 98 FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) NOT IN ( + - col0 + CAST( NULL AS DECIMAL ), 37 )
----

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT - 98 FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) NOT IN ( + - col0 + CAST ( NULL AS REAL ), 37 )
----

query I rowsort
SELECT + 22 + - 64 FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT COUNT( 48 ) + + + 56 AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT COUNT ( 48 ) + + + 56 AS col0 FROM tab0
----
59

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 < + + col2
----
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4573
SELECT DISTINCT col2 * col1 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT col2 * col1 - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 87 - col1 AS col2 FROM tab2 AS cor0
----
10
20
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - - ( - + MIN( DISTINCT - col1 ) ) - - + MAX( ( - col0 ) ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4575
SELECT - - ( - + MIN ( DISTINCT - col1 ) ) - - + MAX ( ( - col0 ) ) FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL + MIN( - 62 ) AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + MIN ( - 62 ) AS col2 FROM tab1 AS cor0
----
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL > 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT 43 - - COUNT( - col1 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4578
SELECT 43 - - COUNT ( - col1 ) FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL + 81 * + - MIN( DISTINCT + ( col2 ) ) FROM tab0 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL + 81 * + - MIN ( DISTINCT + ( col2 ) ) FROM tab0 AS cor0
----
-810

query I rowsort
SELECT ALL col2 * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT ( + - col2 ) + + 15 AS col0 FROM tab2
----
-25
-43
-8

query I rowsort
SELECT ALL col1 * + - 56 AS col1 FROM tab2
----
-2856
-3752
-4312

query III rowsort
SELECT * FROM tab2 WHERE + ( - 72 ) IS NULL
----

query I rowsort
SELECT ALL - col0 + + - 28 * - col0 AS col1 FROM tab1
----
1377
2295
2457

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 * + - 62 * + col0 >= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 59 ) AS col2 FROM tab0
----
59

query I rowsort
SELECT ALL 68 * + - col1 * - + 97 AS col2 FROM tab0
----
138516
534276
6596

query II rowsort
SELECT DISTINCT + col1 AS col2, 90 FROM tab0
----
1
90
21
90
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL ( MAX( - col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL ( MAX ( - col0 ) ) AS col2 FROM tab2
----
-46

query II rowsort
SELECT DISTINCT - - col2, - col2 AS col1 FROM tab1 cor0
----
59
-59
68
-68
96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL - + col2 DIV + 36 col0 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4591
SELECT ALL - + col2 / + 36 col0 FROM tab1 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 95 ) NOT BETWEEN - 91 + - - 80 AND NULL
----

query I rowsort
SELECT ALL col1 * - - col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 98 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4596
SELECT + 32, + col2 DIV - col0 + - col0 AS col1 FROM tab1
----
32
-52
32
-85
32
-91

skipif mysql # not compatible
query II rowsort label-4596
SELECT + 32, + col2 / - col0 + - col0 AS col1 FROM tab1
----
32
-52
32
-85
32
-91

query I rowsort
SELECT ALL 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query II rowsort
SELECT ALL - - ( + + ( + col2 ) ) * + - 60 * 74 + + - 97 - + 40, col2 FROM tab2 AS cor0
----
-102257
23
-177737
40
-257657
58

query I rowsort
SELECT - ( + + col1 ) * + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT SUM( - col1 ) * - - 28 * + 97 FROM tab1 AS cor0
----
-179256

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT SUM ( - col1 ) * - - 28 * + 97 FROM tab1 AS cor0
----
-179256

query II rowsort
SELECT + col2 AS col1, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + 77 * COUNT( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
231

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + 77 * COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
231

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col0
----

query I rowsort
SELECT ALL + + col1 * - col1 * - col1 FROM tab0 AS cor0
----
1
531441
9261

onlyif mysql # DIV for integer division: 
query II rowsort label-4605
SELECT DISTINCT - ( ( + 51 ) ) DIV col1 AS col1, col1 FROM tab2 cor0
----
-1
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-4605
SELECT DISTINCT - ( ( + 51 ) ) / col1 AS col1, col1 FROM tab2 cor0
----
-1
51
0
67
0
77

query I rowsort
SELECT DISTINCT + 80 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - col0 - - col2 <= col1 + 48 + - col1
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + col0 ) + + ( + + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * - 19 col2 FROM tab0
----
-1643
-1744
-238

query III rowsort
SELECT ALL * FROM tab1 WHERE 53 + col0 / col0 <> - - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL CAST( NULL AS SIGNED ) * MIN( ALL + 69 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL CAST ( NULL AS INTEGER ) * MIN ( ALL + 69 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT ALL col2 + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL col2 + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT + col0 + + 75 AS col0 FROM tab1
----
126
160
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4614
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( 28 ) FROM tab0 AS cor0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - 27 AS col0, 88 + - col0 + + col2 AS col1 FROM tab1 cor0
----
-27
133
-27
62
-27
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - - SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4618
SELECT - - SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL SUM( 50 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL SUM ( 50 ) FROM tab2
----
150

query I rowsort
SELECT ALL col1 * + + col2 AS col1 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT + MIN( ALL + 99 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + MIN ( ALL + 99 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
99

query I rowsort
SELECT + ( - - 1 ) AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4623
SELECT 26 * - CAST( NULL AS SIGNED ) * col2 * - - 14 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT 26 * - CAST ( NULL AS INTEGER ) * col2 * - - 14 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - + 4 AS col2 FROM tab2 AS cor0
----
-204
-268
-308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT + COUNT( * ) DIV + 49 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4625
SELECT + COUNT ( * ) / + 49 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT ALL col2 DIV col0 + - ( - col1 ) FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL col2 / col0 + - ( - col1 ) FROM tab1 AS cor0
----
15
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT - COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4628
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4629
SELECT ALL - col1 AS col1, + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-4629
SELECT ALL - col1 AS col1, + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT - + 40 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT - + 40 / + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 37 * + col2 FROM tab1 AS cor0
----
2183
2516
3552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 + - col0 * 9 col0 FROM tab2 WHERE col2 IS NOT NULL
----
-455
-617
-716

query II rowsort
SELECT + 24 AS col2, 98 FROM tab0
----
24
98
24
98
24
98

query I rowsort
SELECT DISTINCT col2 + - ( - - col1 ) AS col1 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL + col2 + - ( col1 ) * - col2 FROM tab0
----
198
220
3854

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT DISTINCT - col1 DIV col0 DIV - + col1 * col1 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4636
SELECT DISTINCT - col1 / col0 / - + col1 * col1 col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 83 * - col1 + ( + - 46 ) * - col2 FROM tab2
----
-2893
-3175
-4551

query I rowsort
SELECT + 94 + 9 FROM tab2 AS cor0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL - - SUM( + ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - - SUM ( + ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT - + 12 + col1 * + + 94 + + - col0 AS col0 FROM tab0 AS cor0
----
-15
1875
7587

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT col2 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - - COUNT( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4642
SELECT - - COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 86 FROM tab1 AS cor0 WHERE + 14 >= 40
----

query I rowsort
SELECT - + 81 * + + col0 FROM tab0 cor0
----
-1215
-7047
-7857

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + 7 * - + 83 + + - col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col1 ) BETWEEN + col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 * 81 * - + ( col2 ) FROM tab0 WHERE NOT - - 8 > - col0
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT 20 IS NULL
----
-15
-87
-97

query II rowsort
SELECT 27, + col1 AS col0 FROM tab2
----
27
51
27
67
27
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT CAST( NULL AS SIGNED ) / + AVG ( col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT CAST ( NULL AS INTEGER ) / + AVG ( col0 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 23 * + col2 AS col2 FROM tab1
----
1357
1564
2208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + col1 / + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 0 / col1 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT - 48 + - - MIN( + col0 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4655
SELECT - 48 + - - MIN ( + col0 ) FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT ALL + COUNT( - col1 ) DIV - - 72 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + COUNT ( - col1 ) / - - 72 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( + + 99 ) + + + col1 FROM tab0 cor0
----
100
120
180

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col1 + + - ( + + col2 ) >= - + col2 / + col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT 63 + - + col2 FROM tab0
----
-36
16
53

query I rowsort
SELECT ( - 32 ) AS col2 FROM tab0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT + ( + - col2 ) * - col1 * - - col2 * CAST( NULL AS SIGNED ) + - - ( ( + + col0 ) ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT + ( + - col2 ) * - col1 * - - col2 * CAST ( NULL AS INTEGER ) + - - ( ( + + col0 ) ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 78 - col0 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - 69 - 93 * MAX( 92 ) FROM tab0
----
-8625

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 69 - 93 * MAX ( 92 ) FROM tab0
----
-8625

query II rowsort
SELECT ALL + col1 AS col2, + col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT - ( 70 ) + + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4665
SELECT - ( 70 ) + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + 66 / ( - col0 ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL + SUM( ALL - 27 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + SUM ( ALL - 27 ) FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT CAST( - - col2 AS SIGNED ) * - + col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4668
SELECT CAST ( - - col2 AS INTEGER ) * - + col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT MAX( + 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4669
SELECT MAX ( + 43 ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT + + 12 * ( - col2 ) FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT 78 * - + col1 AS col2 FROM tab1
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT MAX( + + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4672
SELECT MAX ( + + col0 ) FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT - 0 DIV - + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT - 0 / - + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT + 67 DIV + 49 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4674
SELECT + 67 / + 49 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT CAST( MAX( - col1 ) AS SIGNED ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT CAST ( MAX ( - col1 ) AS INTEGER ) FROM tab1
----
-5

query II rowsort
SELECT - 17 + - + col1 + - + 9, col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4677
SELECT DISTINCT 17, - CAST( NULL AS SIGNED ) * + - 2 * + COUNT( * ) * + + 30 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4677
SELECT DISTINCT 17, - CAST ( NULL AS INTEGER ) * + - 2 * + COUNT ( * ) * + + 30 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----
17
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * - 3 col0 FROM tab1 AS cor0
----
1191
2923
40

query I rowsort
SELECT ( - 43 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 66 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4681
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - + 37 AS col2, 25 FROM tab2 AS cor0
----
-37
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT + CAST( - + 30 AS SIGNED ) FROM tab0 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-4683
SELECT + CAST ( - + 30 AS INTEGER ) FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + - MIN( + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4684
SELECT + - MIN ( + col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT + 17 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT + 17 / - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - + SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - + SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4687
SELECT col1 DIV + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4687
SELECT col1 / + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 88 FROM tab2 AS cor0 WHERE + col1 * + col2 + - - col0 >= + col2 + + + 7
----
88
88
88

query II rowsort
SELECT - 93, + col0 AS col2 FROM tab1 AS cor0
----
-93
51
-93
85
-93
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT - SUM( col1 ) DIV + COUNT( + + col2 ) AS col2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4690
SELECT - SUM ( col1 ) / + COUNT ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT COUNT( - - ( + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4691
SELECT COUNT ( - - ( + col1 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + COUNT( ALL - - col0 ) - - + 62 AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4692
SELECT + COUNT ( ALL - - col0 ) - - + 62 AS col1 FROM tab1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL <= + col0 - 77 AND CAST( - + 33 AS SIGNED ) + - 20 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL <= + col0 - 77 AND CAST ( - + 33 AS INTEGER ) + - 20 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 71 - + - MIN( - col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 71 - + - MIN ( - col0 ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4695
SELECT + + col1 + - col0 + - col0 * + col1 FROM tab1 WHERE + col1 * + - 88 * - + col2 + - CAST( + - 85 AS DECIMAL ) IS NOT NULL
----
-4321
-505
-751

skipif mysql # not compatible
query I rowsort label-4695
SELECT + + col1 + - col0 + - col0 * + col1 FROM tab1 WHERE + col1 * + - 88 * - + col2 + - CAST ( + - 85 AS REAL ) IS NOT NULL
----
-4321
-505
-751

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4696
SELECT DISTINCT col1 + col1, + 8 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
10
NULL
28
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-4696
SELECT DISTINCT col1 + col1, + 8 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
10
NULL
28
NULL
94
NULL

query I rowsort
SELECT + - 41 + 98 * 81 AS col0 FROM tab1 AS cor0
----
7897
7897
7897

query I rowsort
SELECT 76 * col1 * 98 + + - col0 AS col2 FROM tab1 AS cor0
----
104221
349965
37155

query I rowsort
SELECT + - col2 * - - col1 * - + col2 - 75 * + col0 * + col2 FROM tab2 AS cor0
----
-100862
-52371
-68800

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + 85 AS col0, col0 col1 FROM tab1 AS cor0
----
-5015
85
-5780
91
-8160
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT NULL < + col1 * - col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 31 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT - MIN( ALL + - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT - MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL COUNT( * ) * - MIN( - 27 ) FROM tab1 AS cor0 WHERE - 13 NOT BETWEEN - - col2 AND - col0 + - + 25
----
81

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL COUNT ( * ) * - MIN ( - 27 ) FROM tab1 AS cor0 WHERE - 13 NOT BETWEEN - - col2 AND - col0 + - + 25
----
81

query I rowsort
SELECT DISTINCT + + col0 * + 92 AS col1 FROM tab2 AS cor0
----
4232
5888
6900

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL + CAST( NULL AS SIGNED ) * col0 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-4709
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2, - col1 + col2 * col1 AS col2 FROM tab1
----
59
290
68
3149
96
1330

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 BETWEEN col2 / + col2 AND - col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT DISTINCT + col1 DIV ( - col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + col1 / ( - col2 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - col2 ) FROM tab0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT - col2 DIV - 57 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4714
SELECT - col2 / - 57 AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND - ( - col0 )
----

query II rowsort
SELECT ALL 45, col2 AS col0 FROM tab0
----
45
10
45
47
45
99

query II rowsort
SELECT - - col1 AS col0, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - - SUM( ALL - - col0 ) * + MAX( + ( - col0 ) ) FROM tab1 AS cor0
----
-11577

skipif mysql # not compatible
query I rowsort label-4718
SELECT - - SUM ( ALL - - col0 ) * + MAX ( + ( - col0 ) ) FROM tab1 AS cor0
----
-11577

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - - ( - 35 ) ) * + - col2 - - col0 + 44, 53 col1 FROM tab1 cor0
----
2194
53
2515
53
3455
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4720
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
3

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON + + 56 IS NOT NULL, tab0 AS cor2
----
243 values hashing to 87075c0bb162caefd715b0b7c1c42f41

query I rowsort
SELECT - col0 + - col2 + - 99 AS col0 FROM tab2
----
-168
-203
-232

query I rowsort
SELECT - col2 + + + 35 AS col0 FROM tab0
----
-12
-64
25

query I rowsort
SELECT DISTINCT - col2 + - col1 - - col0 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT col2 * - + 51 + + - col0 FROM tab1 AS cor0
----
-3094
-3559
-4947

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
0

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col2 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4729
SELECT DISTINCT + 54 AS col0, CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
54
-3

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT + 54 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
54
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT + COUNT( * ) - - 58 col2 FROM tab0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4730
SELECT DISTINCT + COUNT ( * ) - - 58 col2 FROM tab0
----
61

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) + + + 87 - col2 FROM tab1
----
-105
-31
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT ALL col0 + - + col1 + - CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-113
-3
56

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL col0 + - + col1 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-113
-3
56

query III rowsort
SELECT * FROM tab1 WHERE - - 58 + - col0 * + - ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * + 58 - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - - + col2 * - col1 + + + col2 AS col0 FROM tab1
----
-1197
-151
-3037

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4736
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND ( + - CAST( NULL AS SIGNED ) NOT BETWEEN + ( - col1 ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-4736
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND ( + - CAST ( NULL AS INTEGER ) NOT BETWEEN + ( - col1 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT MIN( - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4737
SELECT MIN ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT - SUM( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 52 > + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT - SUM ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT 52 > + - 26
----
NULL

query I rowsort
SELECT + - ( - - 41 ) * - col1 AS col0 FROM tab0 AS cor0
----
3321
41
861

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE col2 = - - 8 * - 9
----

query I rowsort
SELECT + col2 + + col2 FROM tab2 AS cor0 WHERE NOT + col2 <= - - col1 * + - 31
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL + COUNT( * ) * 91 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + COUNT ( * ) * 91 FROM tab1 AS cor0
----
273

query I rowsort
SELECT DISTINCT + - col1 * + - 2 * 99 FROM tab1 AS cor0
----
2772
9306
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL + + CAST( - - COUNT( - - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + + CAST ( - - COUNT ( - - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 23, - col0 AS col2 FROM tab2
----
23
-46
23
-64
23
-75

query I rowsort
SELECT ALL ( 31 ) * - col0 * col0 FROM tab2
----
-126976
-174375
-65596

query I rowsort
SELECT ALL ( + 73 ) / 87 AS col0 FROM tab2 WHERE NULL < + + col0
----

query I rowsort
SELECT DISTINCT - ( + + ( - + 31 ) ) * 3 + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL - col1 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - col1 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT col1 * - - 26 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT 71 + - SUM( + col2 ) FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4752
SELECT 71 + - SUM ( + col2 ) FROM tab0 cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL 3 * + CAST( NULL AS SIGNED ) - col0 / col1 + col1 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL 3 * + CAST ( NULL AS INTEGER ) - col0 / col1 + col1 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT MIN( ALL + + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4754
SELECT MIN ( ALL + + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col0 - - + 93 + + col2 AS col0 FROM tab1 AS cor0
----
237
240
252

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT COUNT( * ) * + 18 AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4756
SELECT COUNT ( * ) * + 18 AS col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT + + 31 * + 90 * + - col1 - + + col1 * - 22 + - col2 FROM tab2 AS cor0
----
-141191
-185514
-213176

query I rowsort
SELECT - col1 - - - 60 + - + col0 FROM tab1 AS cor0
----
-125
-150
-198

query I rowsort
SELECT - - col1 - 98 * col2 AS col0 FROM tab2 AS cor0
----
-2203
-3843
-5617

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - ( 54 ) / MIN( ALL col2 ) AS col2 FROM tab0 cor0 WHERE + col1 IS NULL AND - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT - ( 54 ) / MIN ( ALL col2 ) AS col2 FROM tab0 cor0 WHERE + col1 IS NULL AND - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 + + - col1 + + 88 AS col2 FROM tab0 WHERE - ( col1 ) IS NULL
----

query I rowsort
SELECT ALL ( col2 ) - - col0 FROM tab1
----
144
147
159

query II rowsort
SELECT DISTINCT - col2 + - col1, + col1 AS col1 FROM tab1
----
-110
14
-115
47
-64
5

query I rowsort
SELECT + + col0 * 50 AS col2 FROM tab2 AS cor0
----
2300
3200
3750

query II rowsort
SELECT ALL - ( - col1 ) AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL MIN( DISTINCT 66 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL MIN ( DISTINCT 66 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + 76 col0 FROM tab1 cor0
----
-3876
-6460
-6916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 9 ) col2 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT + col1, + col0 + - 10 FROM tab0 AS cor0
----
1
87
21
77
81
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT - 86 * ( COUNT( * ) ) FROM tab1 cor0 WHERE - col1 * - + col0 * - 80 IS NOT NULL
----
-258

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - 86 * ( COUNT ( * ) ) FROM tab1 cor0 WHERE - col1 * - + col0 * - 80 IS NOT NULL
----
-258

query I rowsort
SELECT + col0 + - 74 AS col1 FROM tab0
----
-59
13
23

query I rowsort
SELECT DISTINCT col0 + - col2 - col2 FROM tab2
----
-16
-41
0

query I rowsort
SELECT 39 + col0 AS col2 FROM tab1
----
124
130
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT CAST( + 37 AS SIGNED ) * COUNT( * ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT CAST ( + 37 AS INTEGER ) * COUNT ( * ) FROM tab0
----
111

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + col1 OR ( NOT col2 * - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - ( - + col1 ) FROM tab0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT ALL 77 DIV - - 11 col2 FROM tab2
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4778
SELECT ALL 77 / - - 11 col2 FROM tab2
----
7
7
7

query I rowsort
SELECT ( + 19 ) * col0 + - 82 AS col1 FROM tab0
----
1571
1761
203

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4780
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT DISTINCT - MIN( DISTINCT 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT - MIN ( DISTINCT 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

query I rowsort
SELECT DISTINCT - 10 + + 48 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT COUNT( * ) + + 12 AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4783
SELECT COUNT ( * ) + + 12 AS col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - + 26 col1 FROM tab0 AS cor0
----
-113
-123
-41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 43 < - col0 + - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - - col1 AS col1, - ( 27 ) FROM tab0 cor0
----
1
-27
21
-27
81
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab0 AS cor0 WHERE NOT + col2 + + col0 + + col2 + col2 * - + col2 * - col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 64 + col1 FROM tab2 cor0
----
38
70
90

query I rowsort
SELECT col2 * - 81 * - col2 FROM tab2
----
129600
272484
42849

query I rowsort
SELECT 30 * + col2 AS col0 FROM tab1
----
1770
2040
2880

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 AS col1, col2 * - col1 AS col0 FROM tab2
----
51
-1173
67
-3886
77
-3080

query II rowsort
SELECT 90 AS col2, + 25 AS col2 FROM tab1
----
90
25
90
25
90
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + + ( - MAX( DISTINCT - - col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4794
SELECT + + ( - MAX ( DISTINCT - - col1 ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - COUNT( * ) * - 22 AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4795
SELECT - COUNT ( * ) * - 22 AS col1 FROM tab2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4796
SELECT DISTINCT + col1 + - ( 98 ) + + col0 DIV + + 35 FROM tab2 WHERE NOT + + ( 68 ) IS NULL
----
-20
-29
-46

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + col1 + - ( 98 ) + + col0 / + + 35 FROM tab2 WHERE NOT + + ( 68 ) IS NULL
----
-20
-29
-46

query I rowsort
SELECT col2 * - + col2 FROM tab2 AS cor0 WHERE NOT + 19 * + 77 * - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 * col1 / + 71 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT - - SUM( 64 ) * 93 + 87 AS col0 FROM tab1 AS cor0
----
17943

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - - SUM ( 64 ) * 93 + 87 AS col0 FROM tab1 AS cor0
----
17943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT + ( CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4800
SELECT + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - MIN( + - col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4801
SELECT - MIN ( + - col0 ) col2 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ALL 15, col0 AS col2 FROM tab0
----
15
15
15
87
15
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4804
SELECT ALL - 13, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-13
3

skipif mysql # not compatible
query II rowsort label-4804
SELECT ALL - 13, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-13
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 + - col0 col2 FROM tab2 AS cor0
----
-16
-27
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT + + col2 * + - CAST( NULL AS SIGNED ) + 24 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT + + col2 * + - CAST ( NULL AS INTEGER ) + 24 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4807
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 25 * - col0 >= 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 42 + col0 AS col2 FROM tab0
----
129
139
57

query I rowsort
SELECT ALL + col0 * 40 AS col1 FROM tab0
----
3480
3880
600

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL - 44 DIV 83 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 44 / 83 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 46 * + 0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col0 FROM tab2 WHERE NOT ( NULL ) IN ( 48 )
----

query I rowsort
SELECT ( col2 ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT + ( + col0 ) DIV col1 AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4817
SELECT + ( + col0 ) / col1 AS col1 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL MAX( ALL col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL MAX ( ALL col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT + col0 + + 87 AS col0 FROM tab0
----
102
174
184

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL COUNT( ALL col2 ) * 44 + 32 AS col1 FROM tab1
----
164

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL COUNT ( ALL col2 ) * 44 + 32 AS col1 FROM tab1
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT + MAX( col2 ) DIV + MIN( ALL col0 * col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT + MAX ( col2 ) / + MIN ( ALL col0 * col1 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 33 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL CAST( + SUM( col2 ) AS SIGNED ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL CAST ( + SUM ( col2 ) AS INTEGER ) AS col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT DISTINCT - COUNT( * ) * - 50 - + MAX( + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT - COUNT ( * ) * - 50 - + MAX ( + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4826
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * CAST( col0 AS DECIMAL ) ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4826
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * CAST ( col0 AS REAL ) ) <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 + + 84 AS col0 FROM tab2
----
107
124
142

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) < 88
----
51
14
96

query I rowsort
SELECT + col1 - + ( + col0 ) AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT + 69 + - 69 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) <> + col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 60 - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4833
SELECT + CAST( NULL AS DECIMAL ) * - 58 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT + CAST ( NULL AS REAL ) * - 58 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT - col1 DIV + ( col0 * 18 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT - col1 / + ( col0 * 18 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL - ( COUNT( * ) ) * + 90 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - ( COUNT ( * ) ) * + 90 FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT 11 + - 83 * 74 FROM tab2 AS cor0
----
-6131
-6131
-6131

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 82 + - 39 ) AND col0
----

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab0 AS cor0 WHERE + col2 + - 70 * col2 NOT IN ( 7 + col1 )
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( - col1 ) AND + 71 - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( 17 / col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= ( col2 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT ALL - col1 + + + CAST( NULL AS SIGNED ) - + ( ( - col1 ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - col1 + + + CAST ( NULL AS INTEGER ) - + ( ( - col1 ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT + 70 * - CAST( NULL AS SIGNED ) * + col0 + 35 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT + 70 * - CAST ( NULL AS INTEGER ) * + col0 + 35 * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - + col2 * - 84 AS col2 FROM tab2
----
1886
3296
4797

query III rowsort
SELECT * FROM tab0 WHERE - ( - col2 ) / - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4848
SELECT DISTINCT - col2 + + + col2 + - col0 DIV + ( col0 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - col2 + + + col2 + - col0 / + ( col0 ) AS col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 98 * - col2 >= ( - col1 + + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 98 * - col2 >= ( - col1 + + col0 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT - MIN( ALL + col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - MIN ( ALL + col1 ) FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < ( 10 + 80 )
----

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < ( 10 + 80 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( col0 + 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 / + col2 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT ALL 24 DIV - 61 * 31 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL 24 / - 61 * 31 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + - ( - 16 ) FROM tab1 AS cor0
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( - - ( + 49 ) ) IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE NOT ( - 89 ) <= NULL
----

query I rowsort
SELECT + 26 * 98 FROM tab2 AS cor0 WHERE NOT ( col2 ) < + 53 * col1
----

query I rowsort
SELECT DISTINCT + col2 * 34 FROM tab0 AS cor0
----
1598
3366
340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT + 0 * MAX( DISTINCT CAST( NULL AS SIGNED ) ) * 37 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + 0 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * 37 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - MIN( - 65 ) * 94 FROM tab0 AS cor0
----
6110

skipif mysql # not compatible
query I rowsort label-4863
SELECT - MIN ( - 65 ) * 94 FROM tab0 AS cor0
----
6110

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + 72 * MIN( + + col2 ) AS col0 FROM tab0 AS cor0
----
720

skipif mysql # not compatible
query I rowsort label-4864
SELECT + 72 * MIN ( + + col2 ) AS col0 FROM tab0 AS cor0
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT ALL COUNT( * ) DIV - 24 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL COUNT ( * ) / - 24 AS col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT col1 DIV - col1 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4866
SELECT col1 / - col1 col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col2 * - + 49 FROM tab0
----
-2303
-4851
-490

query I rowsort
SELECT DISTINCT col2 * + 88 * 89 AS col0 FROM tab1
----
462088
532576
751872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT + ( col0 ) * CAST( + col0 AS SIGNED ) - col2 col2 FROM tab1
----
2505
7166
8213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4869
SELECT + ( col0 ) * CAST ( + col0 AS INTEGER ) - col2 col2 FROM tab1
----
2505
7166
8213

query I rowsort
SELECT DISTINCT 88 * - col2 * - col2 * ( + 11 ) AS col1 FROM tab0
----
2138312
9487368
96800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4871
SELECT * FROM tab0 WHERE col1 IS NOT NULL AND - 15 * CAST( + col2 AS SIGNED ) BETWEEN + 89 AND ( col1 / - ( + 52 ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-4871
SELECT * FROM tab0 WHERE col1 IS NOT NULL AND - 15 * CAST ( + col2 AS INTEGER ) BETWEEN + 89 AND ( col1 / - ( + 52 ) + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - + 50 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - + 50 < NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 / col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN - 90 / + 30 AND - col2 / + 42
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT ALL SUM( ALL CAST( + col2 AS SIGNED ) ) FROM tab1 WHERE NOT ( + 72 ) IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL SUM ( ALL CAST ( + col2 AS INTEGER ) ) FROM tab1 WHERE NOT ( + 72 ) IS NULL
----
223

query I rowsort
SELECT + 87 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
87
87
87

query I rowsort
SELECT DISTINCT - - col2 * col0 * col0 AS col2 FROM tab1 cor0
----
249696
426275
563108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 30 NOT IN ( - col1 * col0 / + col2 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT + CAST( - + 78 AS SIGNED ) + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4878
SELECT + CAST ( - + 78 AS INTEGER ) + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ( col0 ) FROM tab2 AS cor0 WHERE NOT 25 * + CAST( NULL AS SIGNED ) + col2 NOT BETWEEN 68 AND col0
----

skipif mysql # not compatible
query I rowsort label-4879
SELECT ( col0 ) FROM tab2 AS cor0 WHERE NOT 25 * + CAST ( NULL AS INTEGER ) + col2 NOT BETWEEN 68 AND col0
----

query I rowsort
SELECT ALL - 87 * - 78 + col0 * ( + 4 ) AS col1 FROM tab0 AS cor0
----
6846
7134
7174

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT ALL + 55 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + 55 / + col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + ( 75 ) FROM tab1 WHERE - + col2 IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL COUNT( - col0 ) + + COUNT( * ) FROM tab1 WHERE NULL NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL COUNT ( - col0 ) + + COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( - col2 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 / - 11 * + col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - - col1 IS NOT NULL
----

query I rowsort
SELECT 64 * + - 61 FROM tab2 AS cor0
----
-3904
-3904
-3904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 48 * - AVG ( DISTINCT + + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT DISTINCT + col0 DIV + 12 AS col2 FROM tab1
----
4
7

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + col0 / + 12 AS col2 FROM tab1
----
4
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL 64 + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL 64 + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * col0 / col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT + COUNT( * ) col0 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4892
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0, tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4893
SELECT ALL 29 * - CAST( col1 AS SIGNED ) + + col2 + col1 * + + 30 + - col1 DIV 10 DIV col0 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL 29 * - CAST ( col1 AS INTEGER ) + + col2 + col1 * + + 30 + - col1 / 10 / col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT - - col2 FROM tab2 cor0 WHERE + 17 <= NULL
----

query I rowsort
SELECT DISTINCT - - ( + 47 ) + - col1 + 16 FROM tab1 AS cor0
----
16
49
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT ALL - col0 + + col1 DIV + 43 FROM tab0 WHERE NOT - - 9 IS NULL
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - col0 + + col1 / + 43 FROM tab0 WHERE NOT - - 9 IS NULL
----
-14
-87
-97

query I rowsort
SELECT ALL + 70 * + 27 + col0 AS col1 FROM tab2
----
1936
1954
1965

query II rowsort
SELECT col1 AS col0, + 90 FROM tab2 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE col0 BETWEEN - col1 * + 7 + + col1 AND ( NULL )
----

query I rowsort
SELECT ALL + + col1 * - col1 - col2 AS col2 FROM tab2 AS cor0
----
-2624
-4547
-5969

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL - ( COUNT( ALL - - col2 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL - ( COUNT ( ALL - - col2 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + + col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( - col2 ) AND 86
----

query I rowsort
SELECT DISTINCT + col1 * - + col2 * col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab2 cor0
----
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 NOT IN ( + + col1, + 35 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT CAST( + - 23 AS SIGNED ) AS col0 FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4908
SELECT CAST ( + - 23 AS INTEGER ) AS col0 FROM tab0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT 0 * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT 0 * + COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT col1, col0 + col1 FROM tab2 AS cor0
----
51
97
67
142
77
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + MIN( DISTINCT 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4911
SELECT + MIN ( DISTINCT 3 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT ALL - SUM( ALL - CAST( + 4 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - SUM ( ALL - CAST ( + 4 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4913
SELECT DISTINCT - MAX( - + col1 ) DIV 84, COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-4913
SELECT DISTINCT - MAX ( - + col1 ) / 84, COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 + - col2 col2 FROM tab0 WHERE - col1 * 22 + - + 87 IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT 36 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
36

query I rowsort
SELECT ALL + 96 + 79 + col0 AS col0 FROM tab0
----
190
262
272

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL IN ( - col0, + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4918
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 - - col1 * + CAST( - 10 AS SIGNED ) + 91 + - - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4918
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 - - col1 * + CAST ( - 10 AS INTEGER ) + 91 + - - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT COUNT( * ) + + - MAX( col1 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT COUNT ( * ) + + - MAX ( col1 ) FROM tab2 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col0 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT - MIN( ALL - col2 ) DIV + - MIN( ALL - col2 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4922
SELECT - MIN ( ALL - col2 ) / + - MIN ( ALL - col2 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + ( + SUM( DISTINCT - 13 ) ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-4923
SELECT + ( + SUM ( DISTINCT - 13 ) ) AS col2 FROM tab2
----
-13

query I rowsort
SELECT + ( - 36 ) AS col0 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT ALL - - ( + col2 ) DIV + - col0 * - - col0 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - - ( + col2 ) / + - col0 * - - col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL col1 - CAST( NULL AS SIGNED ) / col2 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-4927
SELECT ALL col1 - CAST ( NULL AS INTEGER ) / col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 6 - - col2 FROM tab1 AS cor0
----
102
65
74

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( + 52 * + 44 ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4931
SELECT DISTINCT + col0 DIV - col0 + + 43 + col1 AS col1, col1 * + col1 + - + 91 AS col2 FROM tab2
----
109
4398
119
5838
93
2510

skipif mysql # not compatible
query II rowsort label-4931
SELECT DISTINCT + col0 / - col0 + + 43 + col1 AS col1, col1 * + col1 + - + 91 AS col2 FROM tab2
----
109
4398
119
5838
93
2510

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT + col1 DIV + - col0 AS col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4932
SELECT + col1 / + - col0 AS col0 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL MIN( 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL MIN ( 19 ) FROM tab0
----
19

query II rowsort
SELECT col2, 11 * + col2 - - 10 AS col1 FROM tab1 AS cor0
----
59
659
68
758
96
1066

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4935
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( + col2 AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4935
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( + col2 AS INTEGER ) AND col1
----

query I rowsort
SELECT ALL - col0 - col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 34, ( - 58 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4937
SELECT + - COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT + - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL + ( - COUNT( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + ( - COUNT ( DISTINCT + col0 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4939
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col0 * - CAST( + col0 AS SIGNED ) + 1 AND col0
----

skipif mysql # not compatible
query III rowsort label-4939
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col0 * - CAST ( + col0 AS INTEGER ) + 1 AND col0
----

query I rowsort
SELECT + ( 33 ) FROM tab1 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4941
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 FROM tab0 WHERE NOT + ( 23 ) + - + col2 + - 51 * - col1 * - 64 / + col0 + 55 - + ( col1 ) * ( ( col1 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 FROM tab0 WHERE NOT + ( 23 ) + - + col2 + - 51 * - col1 * - 64 / + col0 + 55 - + ( col1 ) * ( ( col1 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 28 IN ( + col2, col2, col1 * - - col0 - 15 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4943
SELECT - 63 DIV - COUNT( * ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4943
SELECT - 63 / - COUNT ( * ) AS col1 FROM tab2
----
21

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND - col2 * - + ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN - col0 AND ( + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT + CAST( 91 AS SIGNED ) * + + 49 + - + COUNT( * ) FROM tab1 AS cor0
----
4456

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + CAST ( 91 AS INTEGER ) * + + 49 + - + COUNT ( * ) FROM tab1 AS cor0
----
4456

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * 85 NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT - + CAST( + + 10 AS SIGNED ) + - + ( col2 ) + + col0 FROM tab2 AS cor0
----
13
14
7

skipif mysql # not compatible
query I rowsort label-4948
SELECT - + CAST ( + + 10 AS INTEGER ) + - + ( col2 ) + + col0 FROM tab2 AS cor0
----
13
14
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT ALL + MAX( 70 ) + - COUNT( * ), 59 AS col1 FROM tab1 AS cor0
----
67
59

skipif mysql # not compatible
query II rowsort label-4949
SELECT ALL + MAX ( 70 ) + - COUNT ( * ), 59 AS col1 FROM tab1 AS cor0
----
67
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT - - COUNT( * ) DIV + - SUM( 47 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - - COUNT ( * ) / + - SUM ( 47 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT - COUNT( - 79 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - COUNT ( - 79 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * col1 / 27 IS NOT NULL
----

query I rowsort
SELECT - + col0 * 55 * + 38 FROM tab1 AS cor0
----
-106590
-177650
-190190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) - - 23 - - col1 + + 57 col1 FROM tab1 AS cor0
----
108
174
90

query I rowsort
SELECT ALL + col2 + - 57 FROM tab2
----
-17
-34
1

query I rowsort
SELECT col0 + col1 * + + 26 AS col0 FROM tab2
----
1372
1817
2066

query I rowsort
SELECT DISTINCT ( - 20 ) + - ( + 20 ) * + 74 FROM tab0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL COUNT( ALL - col0 ) + + 87 AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL COUNT ( ALL - col0 ) + + 87 AS col2 FROM tab1
----
90

query I rowsort
SELECT DISTINCT - col1 + + col2 - - - col1 + - col0 AS col1 FROM tab0
----
-119
-130
0

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4961
SELECT CAST( NULL AS DECIMAL ) * - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT CAST ( NULL AS REAL ) * - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 - 41 AS col0 FROM tab0 AS cor0
----
-128
-138
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 * - 90 FROM tab2 AS cor0
----
-2070
-3600
-5220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 54 * - 51 col0 FROM tab0
----
223074
2754
57834

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + + COUNT( ALL 21 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + + COUNT ( ALL 21 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT DISTINCT 58 + + + 90 + - - COUNT( - + 8 ) AS col2, + 48 - + 58 FROM tab1
----
151
-10

skipif mysql # not compatible
query II rowsort label-4969
SELECT DISTINCT 58 + + + 90 + - - COUNT ( - + 8 ) AS col2, + 48 - + 58 FROM tab1
----
151
-10

query I rowsort
SELECT ( col2 ) + - 65 * + - 72 FROM tab2
----
4703
4720
4738

query I rowsort
SELECT ALL - col0 + - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT - COUNT( * ) AS col0, 35 + 60 + + 40 * 69 FROM tab1
----
-3
2855

skipif mysql # not compatible
query II rowsort label-4972
SELECT - COUNT ( * ) AS col0, 35 + 60 + + 40 * 69 FROM tab1
----
-3
2855

query I rowsort
SELECT + col0 * + col1 * + + col2 AS col0 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT - col0 AS col1, 42 AS col0 FROM tab0
----
-15
42
-87
42
-97
42

query II rowsort
SELECT DISTINCT ( + - col0 ) AS col0, - 41 AS col2 FROM tab0
----
-15
-41
-87
-41
-97
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT COUNT( * ), 80 AS col1 FROM tab1 AS cor0 WHERE ( NOT + 73 >= + + 19 )
----
0
80

skipif mysql # not compatible
query II rowsort label-4976
SELECT COUNT ( * ), 80 AS col1 FROM tab1 AS cor0 WHERE ( NOT + 73 >= + + 19 )
----
0
80

query II rowsort
SELECT DISTINCT + 61 AS col0, - 71 AS col1 FROM tab2 AS cor0
----
61
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - 97 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 + - 71 col2 FROM tab2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4980
SELECT SUM( ALL - + 57 ) AS col2, - CAST( NULL AS SIGNED ) FROM tab0
----
-171
NULL

skipif mysql # not compatible
query II rowsort label-4980
SELECT SUM ( ALL - + 57 ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0
----
-171
NULL

query I rowsort
SELECT 68 + - 47 AS col1 FROM tab0
----
21
21
21

query I rowsort
SELECT - col1 * + - col2 + col1 + - 62 AS col0 FROM tab2
----
1162
3095
3891

query I rowsort
SELECT col1 + + ( - col1 ) + 54 AS col2 FROM tab0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT + col0 DIV - 75 + - col1 DIV 68 - - - 65 FROM tab1 AS cor0
----
-65
-66

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + col0 / - 75 + - col1 / 68 - - - 65 FROM tab1 AS cor0
----
-65
-66

query I rowsort
SELECT + 81 + + 20 AS col2 FROM tab1 AS cor0
----
101
101
101

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4986
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 + 18, col2 / CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4986
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 + 18, col2 / CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST( - col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST ( - col2 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4988
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) + - col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4988
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) + - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col2 * - + col2 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL - 90 * - COUNT( * ) AS col1 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL - 90 * - COUNT ( * ) AS col1 FROM tab0
----
270

query I rowsort
SELECT ALL + col0 * + col1 + col1 * + 75 FROM tab2
----
10050
10703
6171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT MIN( col0 ) / - MIN( CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT MIN ( col0 ) / - MIN ( CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 22 + col0 * + - 82 * - col0 * col2 AS col1 FROM tab2
----
13434858
26752478
3990754

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT + 16 - - MAX( ALL 16 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + 16 - - MAX ( ALL 16 ) FROM tab1
----
32

query III rowsort
SELECT * FROM tab2 WHERE - + col2 - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT COUNT( * ) - - + SUM( DISTINCT - col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-4996
SELECT COUNT ( * ) - - + SUM ( DISTINCT - col0 ) FROM tab0
----
-196

query I rowsort
SELECT ALL 44 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + col0 * - col2 * + 80 FROM tab0
----
-56400
-69600
-768240

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NOT + col2 >= - col1 * col0
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + col2 / + - col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + 91 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < - 2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 12 + - + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - - col1 + col2 AS col0 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT ALL col0 * + - col2 + col2 / - col1 * + col0 FROM tab1 AS cor0 WHERE ( + col0 = + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL col0 * + - col2 + col2 / - col1 * + col0 FROM tab1 AS cor0 WHERE ( + col0 = + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT - col0 * - 91 * col1 AS col2 FROM tab1 AS cor0
----
38675
389207
64974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT - - ( + ( col2 ) ) + CAST( NULL AS SIGNED ) / - - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT - - ( + ( col2 ) ) + CAST ( NULL AS INTEGER ) / - - col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col0 + ( + col1 ) AS col1, col0 FROM tab2
----
141
64
142
75
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT 43 * + + 11 * + + COUNT( * ) FROM tab0
----
1419

skipif mysql # not compatible
query I rowsort label-5009
SELECT 43 * + + 11 * + + COUNT ( * ) FROM tab0
----
1419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT ALL - ( + COUNT( * ) ) DIV - 18 + - + 52 AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - ( + COUNT ( * ) ) / - 18 + - + 52 AS col2 FROM tab1
----
-52

query I rowsort
SELECT 50 * + col1 AS col1 FROM tab1
----
2350
250
700

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT COUNT( * ) * 60 * 47 col2, + COUNT( * ) FROM tab2
----
8460
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5013
SELECT COUNT ( * ) * 60 * 47 col2, + COUNT ( * ) FROM tab2
----
8460
3

query I rowsort
SELECT ALL - ( + 78 ) FROM tab2
----
-78
-78
-78

query II rowsort
SELECT DISTINCT + col0, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT + col1 DIV - col2 + + + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5016
SELECT + col1 / - col2 + + + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - 19 + col1 AS col2 FROM tab0 AS cor0
----
-18
2
62

query I rowsort
SELECT ALL 97 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT + CAST( 46 AS SIGNED ) FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5019
SELECT + CAST ( 46 AS INTEGER ) FROM tab2
----
46
46
46

query I rowsort
SELECT + - 87 * col0 AS col1 FROM tab2 WHERE + col1 BETWEEN col0 AND + col2
----

query I rowsort
SELECT DISTINCT col0 + + ( + col1 ) FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL + + col1 - 23 FROM tab2 AS cor0
----
28
44
54

query III rowsort
SELECT ALL + col2 AS col0, - 11 + + col2 + - 54 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to 0790e598a517dc8ac24c5b1e908c24ea

query I rowsort
SELECT DISTINCT + - 82 AS col0 FROM tab1 cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col1 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT - col1 - - ( - + col2 ) FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL + 83 * - 36 AS col0 FROM tab0 AS cor0
----
-2988
-2988
-2988

query I rowsort
SELECT + col2 - + 75 FROM tab2 AS cor0
----
-17
-35
-52

query I rowsort
SELECT 87 - + col0 AS col2 FROM tab2 AS cor0
----
12
23
41

query I rowsort
SELECT - ( + 97 ) + + col1 * - 45 + - 60 AS col1 FROM tab0 AS cor0
----
-1102
-202
-3802

query I rowsort
SELECT + - AVG ( - 6 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT DISTINCT + ( + COUNT( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT + ( + COUNT ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT 60 * col1 AS col2, col1 AS col0 FROM tab1
----
2820
47
300
5
840
14

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT 94 < - - col2
----
59
68

query I rowsort
SELECT ALL 14 * 84 FROM tab0 AS cor0
----
1176
1176
1176

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 + + col2 AND col2 + - col0 - + col0
----

query I rowsort
SELECT - + col0 / - 27 + + col2 - - + col0 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT DISTINCT col2 DIV - col0 * - 91 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT col2 / - col0 * - 91 AS col2 FROM tab2
----
0

query I rowsort
SELECT - col0 * + col0 * col2 * col2 AS col1 FROM tab0
----
-497025
-756900
-92217609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT ALL col0 * - col0 * + col0 AS col2 FROM tab1 WHERE col0 + - col2 + + col1 + + - 85 NOT BETWEEN CAST( NULL AS SIGNED ) * col0 AND - col0 * col1
----
-132651
-614125
-753571

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL col0 * - col0 * + col0 AS col2 FROM tab1 WHERE col0 + - col2 + + col1 + + - 85 NOT BETWEEN CAST ( NULL AS INTEGER ) * col0 AND - col0 * col1
----
-132651
-614125
-753571

query II rowsort
SELECT DISTINCT - - 71, + 2 AS col0 FROM tab2 AS cor0
----
71
2

query I rowsort
SELECT + - col1 * - col1 * - col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL + - col2 * - col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL + - ( + - ( + + col2 ) ) * + col1 * - - col0 * 34 * col0 + 38 + col0 FROM tab0 AS cor0
----
29123603
31670829
54042785

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT 96 DIV - 20 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5045
SELECT 96 / - 20 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - MAX( DISTINCT + + 48 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5046
SELECT - MAX ( DISTINCT + + 48 ) FROM tab0 AS cor0
----
-48

query II rowsort
SELECT DISTINCT - col2, - col0 FROM tab0 AS cor0 WHERE NOT 61 * + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * 2 - - + 16 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT 13 + + COUNT( * ) col2 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5049
SELECT 13 + + COUNT ( * ) col2 FROM tab1 AS cor0
----
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) - - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + col0 + - - 62 * col0 * - 87 + 20 FROM tab1 cor0
----
-275009
-458380
-490696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 72 + - col1, - col2 col0 FROM tab0
----
-153
-47
-73
-99
-93
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT COUNT( DISTINCT - - col1 ) + - + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT COUNT ( DISTINCT - - col1 ) + - + COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 + + col0 * - 21 FROM tab2
----
-1384
-1633
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + ( + SUM( DISTINCT col2 ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + ( + SUM ( DISTINCT col2 ) ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT - + col1 * ( + - col1 ) * - CAST( NULL AS SIGNED ) - - col0 * - - col0 / - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT - + col1 * ( + - col1 ) * - CAST ( NULL AS INTEGER ) - - col0 * - - col0 / - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * 37 + + + 10 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * 37 + + + 10 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT + col0 * col2 DIV - 70 + - - col2 AS col1 FROM tab0
----
-2
-38
37

skipif mysql # not compatible
query I rowsort label-5058
SELECT + col0 * col2 / - 70 + - - col2 AS col1 FROM tab0
----
-2
-38
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 + - col2 col1 FROM tab2
----
-1
-18
-36

query I rowsort
SELECT ALL 30 - + col2 - - col1 AS col0 FROM tab1
----
-24
-52
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + COUNT( * ) * - MIN( - col2 ) + + - COUNT( * ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5061
SELECT + COUNT ( * ) * - MIN ( - col2 ) + + - COUNT ( * ) FROM tab0
----
294

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT 41 + - + MIN( + - 91 ) col1, + 52 FROM tab2 AS cor0
----
132
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5062
SELECT 41 + - + MIN ( + - 91 ) col1, + 52 FROM tab2 AS cor0
----
132
52

query I rowsort
SELECT DISTINCT col2 - + 61 * col1 FROM tab2 cor0
----
-3088
-4029
-4657

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT - MIN( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT - MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT 59 AS col1, ( - COUNT( * ) ) + + SUM( ALL + 24 ) AS col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
59
NULL

skipif mysql # not compatible
query II rowsort label-5065
SELECT 59 AS col1, ( - COUNT ( * ) ) + + SUM ( ALL + 24 ) AS col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
59
NULL

query II rowsort
SELECT + col2, - col0 + + col2 AS col0 FROM tab0
----
10
-77
47
32
99
2

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 * col2 AS col1 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT + MIN( + - 44 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT + MIN ( + - 44 ) FROM tab0
----
-44

query I rowsort
SELECT ( + - 81 ) FROM tab0
----
-81
-81
-81

query II rowsort
SELECT ALL + col1 AS col0, 53 FROM tab0 cor0
----
1
53
21
53
81
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT + col1 * + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + col1 * + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT + col2 DIV + + col1 + + col0 + col1 FROM tab2 WHERE NOT + col1 * - + col0 IS NULL
----
141
142
97

skipif mysql # not compatible
query I rowsort label-5072
SELECT + col2 / + + col1 + + col0 + col1 FROM tab2 WHERE NOT + col1 * - + col0 IS NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT ALL + - COUNT( * ) + - 2 - - COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2
9

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL + - COUNT ( * ) + - 2 - - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2
9

query I rowsort
SELECT DISTINCT col2 * + + col2 + + ( - col1 ) AS col1 FROM tab2
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL - COUNT( * ) * - - MIN( ALL col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - COUNT ( * ) * - - MIN ( ALL col2 ) FROM tab0
----
-30

query I rowsort
SELECT ALL - col0 * - col2 + + + 9 AS col2 FROM tab2 cor0
----
1067
2569
4359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT - col1 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5077
SELECT - col1 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT - col0 DIV - 17 - - - col0 * - + col1 AS col2 FROM tab0 AS cor0
----
102
1215
1832

skipif mysql # not compatible
query I rowsort label-5078
SELECT - col0 / - 17 - - - col0 * - + col1 AS col2 FROM tab0 AS cor0
----
102
1215
1832

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( + + col0 ) * - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5080
SELECT + CAST( NULL AS SIGNED ) AS col0, - 15 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5080
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 15 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 36 * col1 + + - col1 + col0 - - 0 * - 72 FROM tab1
----
-100
-1648
-467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT + CAST( + col1 AS SIGNED ) + + - 82 FROM tab0
----
-1
-61
-81

skipif mysql # not compatible
query I rowsort label-5082
SELECT + CAST ( + col1 AS INTEGER ) + + - 82 FROM tab0
----
-1
-61
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT ALL - col0 + - col1 - + + ( col2 ) DIV col1 AS col0 FROM tab0
----
-108
-197
-96

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - col0 + - col1 - + + ( col2 ) / col1 AS col0 FROM tab0
----
-108
-197
-96

query I rowsort
SELECT - col0 + col2 * - 45 - - 59 AS col2 FROM tab1
----
-2681
-3092
-4312

query I rowsort
SELECT ALL col2 * - + 17 AS col2 FROM tab1
----
-1003
-1156
-1632

query I rowsort
SELECT - col1 + - 52 AS col0 FROM tab0
----
-133
-53
-73

query I rowsort
SELECT ALL - - col2 - col0 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
2646
7199
8258

query I rowsort
SELECT + 94 + - col0 - + col2 * - 27 * + col1 - + col1 + - col1 FROM tab1 cor0
----
36303
7964
86201

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5090
SELECT MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT + CAST( + + 20 AS SIGNED ) FROM tab2 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-5091
SELECT + CAST ( + + 20 AS INTEGER ) FROM tab2 AS cor0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5092
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * col1 * - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5092
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * col1 * - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 86 * + col0 - + col2 FROM tab2 AS cor0
----
-3979
-5544
-6508

query I rowsort
SELECT col2 * 94 AS col2 FROM tab1 AS cor0
----
5546
6392
9024

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN + col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT SUM( ALL + - 41 ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT SUM ( ALL + - 41 ) FROM tab2
----
-123

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 11 ) = - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 + col2 - + ( + + ( - 39 ) ) - - - col2 + col0 + col1 AS col2 FROM tab0 WHERE NOT - col2 >= + - col1
----
236

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ( - - 42 ) FROM tab1
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT - + CAST( - 18 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-5101
SELECT - + CAST ( - 18 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT + 82 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + ( 70 ) FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT DISTINCT 55 + MAX( - 64 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT 55 + MAX ( - 64 ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab2 WHERE NOT + - col0 + - col0 IS NULL
----
-43

query I rowsort
SELECT + 66 * - col1 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL - col2 * + 2 * - CAST( + ( - col1 ) AS SIGNED ) FROM tab1
----
-2688
-590
-6392

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - col2 * + 2 * - CAST ( + ( - col1 ) AS INTEGER ) FROM tab1
----
-2688
-590
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - 36 * - COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 36 * - COUNT ( * ) FROM tab2 AS cor0
----
108

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( 34 + - col0 * - col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 48 * col2 <= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, col0 + col2 FROM tab2 AS cor0
----
46
69
64
104
75
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT - col2 + + - col2 * col1 FROM tab2 AS cor0 WHERE NOT col0 - - 46 IN ( + + 75, + col1 * - col2, col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT - col2 + + - col2 * col1 FROM tab2 AS cor0 WHERE NOT col0 - - 46 IN ( + + 75, + col1 * - col2, col0 + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN - - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT - - SUM( + CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5114
SELECT DISTINCT - - SUM ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT DISTINCT - 46 * - COUNT( DISTINCT - col2 ) + - SUM( col2 ) - - CAST( NULL AS SIGNED ) / - COUNT( + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - 46 * - COUNT ( DISTINCT - col2 ) + - SUM ( col2 ) - - CAST ( NULL AS INTEGER ) / - COUNT ( + col0 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL 18 + + col2 + col1 AS col0, - col1 AS col2 FROM tab1
----
128
-14
133
-47
82
-5

query I rowsort
SELECT ALL col2 + col1 * + col0 + - + col2 FROM tab1
----
425
4277
714

query II rowsort
SELECT ALL - 44 * + 4 * col2 AS col2, col1 AS col0 FROM tab0
----
-17424
1
-1760
21
-8272
81

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE ( NOT col0 - - - col0 * col0 + + 48 IS NULL )
----
14
47
5

query I rowsort
SELECT ALL + col2 - 98 FROM tab1
----
-2
-30
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT + 34 * - MAX( ALL col0 ) + + COUNT( * ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT + 34 * - MAX ( ALL col0 ) + + COUNT ( * ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

query II rowsort
SELECT + col1, + col0 + + col1 + col1 AS col0 FROM tab2 AS cor0
----
51
148
67
209
77
218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col2 IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col2 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT ALL - col2 DIV + col2 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - col2 / + col2 AS col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT + MIN( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col0 * - + 19 * + col0 + + + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col0 * - + 19 * + col0 + + + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL COUNT( DISTINCT + + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5128
SELECT 95 DIV - 90 AS col1, + col1 AS col2 FROM tab0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
query II rowsort label-5128
SELECT 95 / - 90 AS col1, + col1 AS col2 FROM tab0
----
-1
1
-1
21
-1
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - - col1, col0, + col0 + - + 30 + 53 * - col2, - - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT COUNT( * ) * + 12 AS col0, - SUM( ALL + + col0 ) AS col0 FROM tab1
----
36
-227

skipif mysql # not compatible
query II rowsort label-5130
SELECT COUNT ( * ) * + 12 AS col0, - SUM ( ALL + + col0 ) AS col0 FROM tab1
----
36
-227

query I rowsort
SELECT ALL + col1 + + 74 + - col2 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
102
111
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL COUNT( + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL COUNT ( + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT 44 DIV - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT 44 / - col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT + col2 + - col1 DIV col0 * - + col1 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5134
SELECT + col2 + - col1 / col0 * - + col1 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL + CAST( - col1 AS SIGNED ) * col2 FROM tab2 AS cor0 WHERE NOT col0 - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + CAST ( - col1 AS INTEGER ) * col2 FROM tab2 AS cor0 WHERE NOT col0 - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT + 75 DIV + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5136
SELECT + 75 / + col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE col2 + - col0 IS NOT NULL
----
69
69
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5138
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + 80 - + - col2 >= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5138
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + 80 - + - col2 >= + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT MAX( DISTINCT + 87 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT MAX ( DISTINCT + 87 ) FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5140
SELECT - col2 AS col1, col0 / col0 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5140
SELECT - col2 AS col1, col0 / col0 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query II rowsort
SELECT ALL + col2 AS col1, - col0 * + col0 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT COUNT( * ) AS col0, 31 col0 FROM tab0 AS cor0
----
3
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5142
SELECT COUNT ( * ) AS col0, 31 col0 FROM tab0 AS cor0
----
3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 - + 6 + - col1 + col1 * 23 + - + 51 col1 FROM tab0 cor0
----
-112
1648
328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 46 + - col1 FROM tab0 WHERE - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT MIN( DISTINCT - col2 ) - - COUNT( * ) + - 32 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-5146
SELECT MIN ( DISTINCT - col2 ) - - COUNT ( * ) + - 32 FROM tab2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + + ( - 46 ) * - col1 * - col2 + + col1 FROM tab2
----
10367915
1241085
5667277

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + + ( - 46 ) * - col1 * - col2 + + col1 FROM tab2
----
10367915
1241085
5667277

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT col2 * col0 AS col0 FROM tab1 WHERE col1 IN ( + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL - col0 * - + col1 - + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - col0 * - + col1 - + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 30 * + + col1 AS col1 FROM tab2 AS cor0
----
1530
2010
2310

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 68 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - - 38 * - + col0
----

query I rowsort
SELECT ALL col2 * - 54 * + + 67 * + - 35 FROM tab1
----
12156480
7471170
8610840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - 39
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 9 * - + 69 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = NULL AND + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5158
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) - col2 IN ( - - CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-5158
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) - col2 IN ( - - CAST ( NULL AS INTEGER ), - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5159
SELECT + - CAST( col0 AS SIGNED ) AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

skipif mysql # not compatible
query II rowsort label-5159
SELECT + - CAST ( col0 AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT ALL COUNT( ALL + + col1 ) AS col2, + COUNT( ALL - - 96 ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5160
SELECT ALL COUNT ( ALL + + col1 ) AS col2, + COUNT ( ALL - - 96 ) AS col1 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT - - MAX( + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - - MAX ( + + col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT DISTINCT - 83 * - - 66 + col1 - - 22 + col0 * + col0 + - col0 AS col2, ( + col2 ) FROM tab0 AS cor0 WHERE 68 < - 57
----

query I rowsort
SELECT DISTINCT + col0 * + - 81 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # DIV for integer division: 
query II rowsort label-5164
SELECT ALL - col2 DIV - ( + col0 ), col0 AS col2 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-5164
SELECT ALL - col2 / - ( + col0 ), col0 AS col2 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT DISTINCT + col2 DIV - 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + col2 / - 78 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT DISTINCT 74 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT 74 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT 64 DIV + + col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5167
SELECT 64 / + + col0 FROM tab0
----
0
0
4

query II rowsort
SELECT - col1 AS col2, + col1 + + - col2 FROM tab0 AS cor0
----
-1
-98
-21
11
-81
34

query I rowsort
SELECT + 5 * - - col0 + - + 30 AS col2 FROM tab0 AS cor0
----
405
45
455

query II rowsort
SELECT col0 AS col0, 71 FROM tab1 AS cor0
----
51
71
85
71
91
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL - - MAX( ALL + + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - - MAX ( ALL + + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5172
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-5172
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT ALL - 58 * col2 * 19 DIV - + 74 + + - col1 AS col2 FROM tab1
----
1415
873
965

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - 58 * col2 * 19 / - + 74 + + - col1 AS col2 FROM tab1
----
1415
873
965

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL COUNT( - - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL COUNT ( - - col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - + SUM( DISTINCT + col1 ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - + SUM ( DISTINCT + col1 ) AS col0 FROM tab2 cor0
----
-195

query I rowsort
SELECT 84 + - col2 FROM tab2 AS cor0
----
26
44
61

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) + + 56 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5178
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT col0 * - 95 * - col1 DIV col1 AS col2 FROM tab2
----
4370
6080
7125

skipif mysql # not compatible
query I rowsort label-5179
SELECT col0 * - 95 * - col1 / col1 AS col2 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT ALL 93 + + 90 AS col1 FROM tab1
----
183
183
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 - - + col0 col0 FROM tab2
----
39
57
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT DISTINCT + col2 - - col0 DIV + col0 AS col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT + col2 - - col0 / + col0 AS col2 FROM tab2
----
24
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5183
SELECT ALL + col1 - + + col0 * ( + + ( - CAST( - ( - + 96 ) AS SIGNED ) ) ) + + + col1 * + + ( + 63 ), col2 FROM tab1 AS cor0
----
11744
68
5792
96
8480
59

skipif mysql # not compatible
query II rowsort label-5183
SELECT ALL + col1 - + + col0 * ( + + ( - CAST ( - ( - + 96 ) AS INTEGER ) ) ) + + + col1 * + + ( + 63 ), col2 FROM tab1 AS cor0
----
11744
68
5792
96
8480
59

query I rowsort
SELECT DISTINCT 30 - + 76 + 12 AS col2 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL - col1 * - 36 * - + 98 + - col1 - + 22 AS col1 FROM tab0 AS cor0
----
-285871
-3551
-74131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5186
SELECT ALL - 73 * CAST( + SUM( ALL col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-7519

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - 73 * CAST ( + SUM ( ALL col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-7519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5187
SELECT + COUNT( * ) DIV + 23 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT + COUNT ( * ) / + 23 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT + MIN( - + ( col2 ) ) * - 4 AS col1 FROM tab2
----
232

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT + MIN ( - + ( col2 ) ) * - 4 AS col1 FROM tab2
----
232

query I rowsort
SELECT DISTINCT + 78 FROM tab1 WHERE NOT NULL NOT IN ( 24 * - col1, 10 )
----

query I rowsort
SELECT ALL 71 * 26 AS col0 FROM tab2 AS cor0
----
1846
1846
1846

query II rowsort
SELECT + 70, 53 + + 18 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
70
111
70
129
70
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * - 40 * col0 * col0 col0 FROM tab1 AS cor0
----
16762000
19211920
6034320

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT - col2 * + col0 DIV - col0 + + 32 FROM tab1 cor0 WHERE NOT 21 <= + - col2
----
100
128
91

skipif mysql # not compatible
query I rowsort label-5193
SELECT - col2 * + col0 / - col0 + + 32 FROM tab1 cor0 WHERE NOT 21 <= + - col2
----
100
128
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + SUM( - + 1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5194
SELECT + SUM ( - + 1 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 + + 11 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col0 * + - col0 + + 10 + + col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + 6 + + 84 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-750

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + 6 + + 84 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5199
SELECT DISTINCT col2 col2, CAST( - 39 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
-39
47
-39
99
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5199
SELECT DISTINCT col2 col2, CAST ( - 39 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
-39
47
-39
99
-39

query II rowsort
SELECT ALL 54, + col2 AS col1 FROM tab2 AS cor0
----
54
23
54
40
54
58

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT - CAST( - col2 AS SIGNED ) - + 34 FROM tab0 AS cor0
----
-24
13
65

skipif mysql # not compatible
query I rowsort label-5202
SELECT - CAST ( - col2 AS INTEGER ) - + 34 FROM tab0 AS cor0
----
-24
13
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT 25 * - CAST( ( MAX( ALL + col1 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-2025

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 25 * - CAST ( ( MAX ( ALL + col1 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT ALL + - 36 DIV + col2 + col2 FROM tab2 AS cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + - 36 / + col2 + col2 FROM tab2 AS cor0
----
22
40
58

query I rowsort
SELECT col2 + - - 20 FROM tab1 AS cor0
----
116
79
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5206
SELECT 85 * + col1 + + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT 85 * + col1 + + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL - MIN( - 56 ) AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - MIN ( - 56 ) AS col0 FROM tab0
----
56

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 87 + col2 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + - col2 IS NULL
----

query II rowsort
SELECT - + ( + col2 ) AS col2, - 74 FROM tab0 AS cor0
----
-10
-74
-47
-74
-99
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-5213
SELECT ALL - 32 AS col2, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-32
-9

skipif mysql # not compatible
query II rowsort label-5213
SELECT ALL - 32 AS col2, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-32
-9

query I rowsort
SELECT DISTINCT 40 * - col2 + - + col2 AS col2 FROM tab0 AS cor0
----
-1927
-4059
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT COUNT( * ) * 97 AS col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5215
SELECT COUNT ( * ) * 97 AS col2 FROM tab1 AS cor0
----
291

query I rowsort
SELECT ALL - + col1 * - + col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT - 85 * + col0 FROM tab0 AS cor0
----
-1275
-7395
-8245

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 85 * 98 ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 46 - + - ( - col1 ) + - 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 67 * col0 FROM tab2
----
3105
4328
5083

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - col0 * 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 69 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 9 + - 4 col2 FROM tab1
----
-535
-616
-868

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5224
SELECT ALL * FROM tab1 WHERE + CAST( + + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5224
SELECT ALL * FROM tab1 WHERE + CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 67 + + + 2 + - + col1 + + - col1 * + 40 + - col2 AS col0, - col1 FROM tab2
----
-2179
-51
-2870
-67
-3262
-77

query II rowsort
SELECT col0 AS col2, ( + col0 ) * + 0 + 78 FROM tab2
----
46
78
64
78
75
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT SUM( + ( + ( - + 96 ) ) ) * ( + 47 ) FROM tab2
----
-13536

skipif mysql # not compatible
query I rowsort label-5227
SELECT SUM ( + ( + ( - + 96 ) ) ) * ( + 47 ) FROM tab2
----
-13536

query I rowsort
SELECT - + 34 FROM tab1 AS cor0 WHERE ( NOT + ( + col2 ) * - 38 + + - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + + col1 * + + 86 + - 98 AS col2 FROM tab1 AS cor0
----
16758
189876
2052

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col2 + + + 47 + - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL 93 * - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + + + 94 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL 93 * - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + + 94 AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + ( - col0 ) ) + + + col0 col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT 66 - - + MAX( + col1 ) FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT 66 - - + MAX ( + col1 ) FROM tab0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - COUNT( + - col1 ) + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5234
SELECT - COUNT ( + - col1 ) + + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT 40 + 65 * + - 55 AS col1 FROM tab2
----
-3535
-3535
-3535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col2 col0 FROM tab1
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32 * + - 90 col0, col1 * + col1 * + 92 AS col0 FROM tab1 AS cor0
----
2880
18032
2880
203228
2880
2300

query II rowsort
SELECT DISTINCT col1, col0 * - col1 FROM tab1
----
14
-714
47
-4277
5
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT COUNT( ALL + 74 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5239
SELECT COUNT ( ALL + 74 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - ( + col0 ) * - 49 AS col1 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT 87 AS col0, COUNT( * ) * + 56 AS col2 FROM tab0
----
87
168

skipif mysql # not compatible
query II rowsort label-5241
SELECT 87 AS col0, COUNT ( * ) * + 56 AS col2 FROM tab0
----
87
168

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT COUNT( * ) FROM tab0 WHERE NOT 67 / + + col0 BETWEEN + col0 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-5243
SELECT COUNT ( * ) FROM tab0 WHERE NOT 67 / + + col0 BETWEEN + col0 AND NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5244
SELECT * FROM tab2 WHERE NOT + + 43 + - - 1 < - col1 * + + col1 * - CAST( + 96 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5244
SELECT * FROM tab2 WHERE NOT + + 43 + - - 1 < - col1 * + + col1 * - CAST ( + 96 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT 27 DIV 22 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5245
SELECT 27 / 22 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT MAX( 71 ) FROM tab2, tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5246
SELECT MAX ( 71 ) FROM tab2, tab1 AS cor0
----
71

query II rowsort
SELECT - - col2, 70 AS col2 FROM tab0 cor0
----
10
70
47
70
99
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL MIN( 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL MIN ( 35 ) FROM tab1
----
35

query I rowsort
SELECT DISTINCT - 39 - - 76 FROM tab0
----
37

query I rowsort
SELECT ALL col0 * - ( - col0 * - col0 ) + + col2 FROM tab2
----
-262104
-421817
-97313

query I rowsort
SELECT + 11 * - 29 + col0 FROM tab0
----
-222
-232
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL 47 + + COUNT( * ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL 47 + + COUNT ( * ) FROM tab1
----
50

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 59 * col0 ) > ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col1 FROM tab2 WHERE NULL > 73
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 * + col1 ) BETWEEN col1 - - col0 AND ( col1 )
----

query I rowsort
SELECT ALL + 54 + + col1 FROM tab2
----
105
121
131

query I rowsort
SELECT DISTINCT 99 * + col0 AS col2 FROM tab2
----
4554
6336
7425

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col2 > col0 * + col2
----
14
47
5

query I rowsort
SELECT + col2 FROM tab0 WHERE - 40 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5264
SELECT ALL * FROM tab1 WHERE NOT col2 / + col1 IN ( col1 + + CAST( NULL AS SIGNED ) * 4 )
----

skipif mysql # not compatible
query III rowsort label-5264
SELECT ALL * FROM tab1 WHERE NOT col2 / + col1 IN ( col1 + + CAST ( NULL AS INTEGER ) * 4 )
----

query I rowsort
SELECT col2 * - col0 + 37 FROM tab0
----
-668
-833
-9566

query I rowsort
SELECT - 45 / + col0 FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - SUM( - col1 ) * + COUNT( * ) col0 FROM tab0
----
309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5267
SELECT - SUM ( - col1 ) * + COUNT ( * ) col0 FROM tab0
----
309

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( + col1 ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT ALL 90 DIV - COUNT( * ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL 90 / - COUNT ( * ) FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT 64 * 69 + ( + MIN( + col0 ) ) FROM tab0 cor0
----
4431

skipif mysql # not compatible
query I rowsort label-5272
SELECT 64 * 69 + ( + MIN ( + col0 ) ) FROM tab0 cor0
----
4431

query I rowsort
SELECT ALL 78 FROM tab0 AS cor0 WHERE NOT 34 IN ( ( + col2 ) )
----
78
78
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5274
SELECT + CAST( MIN( col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE ( - 95 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT + CAST ( MIN ( col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( - 95 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * col2 < ( 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 16 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE + 36 IS NOT NULL
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) BETWEEN col2 AND + 55 * - col0
----

query I rowsort
SELECT + 77 FROM tab0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT - col1 - + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT - col1 - + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN ( + col1 * - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL + + MAX( DISTINCT 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + + MAX ( DISTINCT 8 ) FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + - COUNT( * ) * - 68 - + 12 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5283
SELECT + - COUNT ( * ) * - 68 - + 12 FROM tab0 AS cor0
----
192

query I rowsort
SELECT DISTINCT col0 - - col1 * - 75 AS col1 FROM tab0 AS cor0
----
-1488
-6060
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + MAX( 27 ) - 23 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5285
SELECT + MAX ( 27 ) - 23 FROM tab1 AS cor0
----
4

query I rowsort
SELECT 15 * 11 - - col1 * 91 FROM tab1 AS cor0
----
1439
4442
620

query I rowsort
SELECT - 93 + - col2 * - col1 FROM tab1 AS cor0
----
1251
202
3103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT - - CAST( - col0 AS SIGNED ) * + col0 FROM tab1 cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5288
SELECT - - CAST ( - col0 AS INTEGER ) * + col0 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - 41 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-18
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT DISTINCT + CAST( - col0 AS SIGNED ) col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5290
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col0 + + col0 * - 12 FROM tab2 WHERE NOT + col0 - col0 NOT BETWEEN - 41 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col2 * - col1 + col1 ) AND + col0 * col2 + + 52 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT ALL ( 49 ) DIV - col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL ( 49 ) / - col2 FROM tab0
----
-1
-4
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN 95 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 88 * col2 AS col2 FROM tab2
----
2024
3520
5104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
81

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( ( 46 ) ) <= col1
----
14
5

query I rowsort
SELECT 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT 54 * + 78 AS col1 FROM tab1
----
4212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT ( col0 + - col1 ) BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT ALL + col2 AS col2, ( col1 ) FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + COUNT( * ) * + + ( - 31 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5303
SELECT + COUNT ( * ) * + + ( - 31 ) FROM tab2 AS cor0
----
-93

query II rowsort
SELECT DISTINCT + col1 AS col0, ( + col2 ) + col1 AS col1 FROM tab1 AS cor0
----
14
110
47
115
5
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - - ( SUM( + + 3 ) ) + + MIN( col1 + + col0 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5306
SELECT - - ( SUM ( + + 3 ) ) + + MIN ( col1 + + col0 ) AS col2 FROM tab1 AS cor0
----
74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 14 * - col2 ) <= 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + - - 4 * - col1 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT DISTINCT + COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) - COUNT( * ) * CAST( NULL AS SIGNED ) * + 18 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5309
SELECT DISTINCT + COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 18 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN ( + - ( col1 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - col0 * + col1 - + - col1 + col1 * - col1 * 54 AS col0 FROM tab2
----
-138011
-237239
-315097

query I rowsort
SELECT DISTINCT + - 12 + col2 * ( col2 ) FROM tab2 AS cor0
----
1588
3352
517

query I rowsort
SELECT DISTINCT - 14 + 61 * + - 96 * + 40 FROM tab1
----
-234254

query I rowsort
SELECT + ( - col0 ) * - col0 + + col0 AS col1 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT ALL col1 * - + 98 * - + col2 + + - col1 AS col1 FROM tab1
----
131698
28905
313161

query I rowsort
SELECT - + 77 AS col0 FROM tab2 WHERE + - 5 IS NOT NULL
----
-77
-77
-77

query I rowsort
SELECT + col1 + - col0 + + ( col0 ) * - col1 + 56 * col0 AS col1 FROM tab0
----
-309
2979
5239

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL IN ( - + col1 * col2 )
----

query I rowsort
SELECT ALL + 72 * + 90 AS col1 FROM tab0 AS cor0
----
6480
6480
6480

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN ( col2 ) AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT MIN( + ( col1 ) ) * - COUNT( ALL col2 * col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 91 + + col0 + + + 16 * col2 NOT IN ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT MIN ( + ( col1 ) ) * - COUNT ( ALL col2 * col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 91 + + col0 + + + 16 * col2 NOT IN ( 4 )
----
NULL

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab0 cor0
----
23

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 - + - col1 - - col1 * - - col2 * 75 / col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / + col0 + + col1 * - col1 - + col0 * col2 NOT IN ( col1 )
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + ( 29 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5326
SELECT + + 23 DIV 29 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5326
SELECT + + 23 / 29 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * - 76 NOT BETWEEN + - col0 AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL 80 * + - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL 80 * + - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * + + col2 col1 FROM tab0
----
3666
7722
780

query I rowsort
SELECT - 46 * + + col2 FROM tab1
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT MIN( + + 31 ) * 71 FROM tab0
----
2201

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT MIN ( + + 31 ) * 71 FROM tab0
----
2201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT + COUNT( * ) * + - ( - - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + COUNT ( * ) * + - ( - - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col1 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT ALL 85 DIV col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL 85 / col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - + COUNT( * ) + - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-5337
SELECT - + COUNT ( * ) + - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-5338
SELECT + COUNT( * ) + - + COUNT( * ) + 10, - COUNT( - col1 ) AS col0 FROM tab1
----
10
-3

skipif mysql # not compatible
query II rowsort label-5338
SELECT + COUNT ( * ) + - + COUNT ( * ) + 10, - COUNT ( - col1 ) AS col0 FROM tab1
----
10
-3

query I rowsort
SELECT DISTINCT + col2 - - - col2 + + + 90 AS col1 FROM tab0 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + + col1 IS NOT NULL
----

query I rowsort
SELECT col1 + + + col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL = 94 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT AVG ( + - 61 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE + 70 / + - col2 - + 42 BETWEEN ( col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT AVG ( + - 61 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE + 70 / + - col2 - + 42 BETWEEN ( col0 ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT DISTINCT + 20 DIV + - col1 + - - 82 FROM tab2 AS cor0 WHERE NOT - 98 IN ( + - col1 )
----
82

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT + 20 / + - col1 + - - 82 FROM tab2 AS cor0 WHERE NOT - 98 IN ( + - col1 )
----
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 20 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col0 * - col2 + + + ( col2 ) FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 24 + - col1 + + col0 - + - col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + MAX( + 87 ) AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5347
SELECT + MAX ( + 87 ) AS col2 FROM tab2 AS cor0
----
87

query I rowsort
SELECT - 26 AS col2 FROM tab2 cor0 WHERE NULL < + ( + 23 ) + - 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT DISTINCT CAST( 40 AS SIGNED ) + COUNT( * ) AS col0 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT CAST ( 40 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2
----
43

query I rowsort
SELECT ( 61 ) + col1 + - col1 * + + col2 * - + col2 AS col0 FROM tab2
----
123338
225516
27091

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL 98 + + SUM( ALL - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL 98 + + SUM ( ALL - col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT ALL + 8 + ( + CAST( col1 AS SIGNED ) ) AS col1 FROM tab1
----
13
22
55

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + 8 + ( + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab1
----
13
22
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * col2 * col1 - col0, col2 * col0 col2 FROM tab0
----
-178944
705
-2187
870
-9898
9603

query I rowsort
SELECT 18 + + ( + - col2 ) AS col2 FROM tab1
----
-41
-50
-78

query I rowsort
SELECT DISTINCT col2 * - col1 - - col1 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5356
SELECT DISTINCT COUNT( * ) AS col0, - MAX( - 87 ) * COUNT( * ) + - COUNT( * ) * COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
3
261

skipif mysql # not compatible
query II rowsort label-5356
SELECT DISTINCT COUNT ( * ) AS col0, - MAX ( - 87 ) * COUNT ( * ) + - COUNT ( * ) * COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
3
261

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT col2 DIV - col0 * - col0 + ( + 88 ) AS col2 FROM tab2
----
88
88
88

skipif mysql # not compatible
query I rowsort label-5357
SELECT col2 / - col0 * - col0 + ( + 88 ) AS col2 FROM tab2
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT + - ( + + CAST( NULL AS SIGNED ) ) + + col2 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5358
SELECT + - ( + + CAST ( NULL AS INTEGER ) ) + + col2 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5360
SELECT - + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT - col2 * + 24 AS col1 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - + 38 + + + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-29

skipif mysql # not compatible
query I rowsort label-5362
SELECT - + 38 + + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-29

query I rowsort
SELECT DISTINCT + col0 + - + col2 + + 83 FROM tab2
----
100
106
107

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 7 col1 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT ALL + 95 * 16 FROM tab0 AS cor0
----
1520
1520
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - SUM( ALL ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5367
SELECT - SUM ( ALL ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 82 + - 35 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * - 24 AS col2 FROM tab0 AS cor0
----
1128
2376
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 WHERE col0 NOT BETWEEN - - ( - col1 ) * + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5371
SELECT DISTINCT - 65 + - col1, + 32 AS col0, - col0 + + - col2 AS col1 FROM tab1 WHERE NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5371
SELECT DISTINCT - 65 + - col1, + 32 AS col0, - col0 + + - col2 AS col1 FROM tab1 WHERE NULL <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - col2 ) IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT DISTINCT CAST( SUM( col2 ) AS SIGNED ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT CAST ( SUM ( col2 ) AS INTEGER ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + MIN( DISTINCT + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + MIN ( DISTINCT + - col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL + + COUNT( * ) + 79 - + MAX( DISTINCT + col1 ) FROM tab1 WHERE col2 * col1 + col2 + + col0 IS NOT NULL
----
35

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + + COUNT ( * ) + 79 - + MAX ( DISTINCT + col1 ) FROM tab1 WHERE col2 * col1 + col2 + + col0 IS NOT NULL
----
35

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col0 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT CAST( 77 AS SIGNED ) * - + 36 FROM tab1
----
-2772
-2772
-2772

skipif mysql # not compatible
query I rowsort label-5378
SELECT CAST ( 77 AS INTEGER ) * - + 36 FROM tab1
----
-2772
-2772
-2772

query I rowsort
SELECT ALL - - ( - - col1 ) + + col2 FROM tab1 AS cor0 WHERE ( + col1 * - 1 NOT BETWEEN ( NULL ) AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT - CAST( NULL AS SIGNED ) / - ( - col0 ) / + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5380
SELECT - CAST ( NULL AS INTEGER ) / - ( - col0 ) / + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT DISTINCT + 79 + + + 22 DIV - 18 AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + 79 + + + 22 / - 18 AS col0 FROM tab2
----
78

query I rowsort
SELECT DISTINCT - 3 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5383
SELECT DISTINCT - 52 + + ( + COUNT( * ) ) DIV - ( - COUNT( * ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT - 52 + + ( + COUNT ( * ) ) / - ( - COUNT ( * ) ) FROM tab1
----
-51

query I rowsort
SELECT ALL - 69 * - col1 FROM tab2
----
3519
4623
5313

query I rowsort
SELECT ALL - - col2 + 35 + - - col2 + 26 * + - col2 * + col1 * + 84 + + col2 AS col0 FROM tab2 AS cor0
----
-2561728
-6726565
-8486815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 33 col1, col1 FROM tab1 AS cor0
----
-33
14
-33
47
-33
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - MIN( DISTINCT + col1 ) + - - MIN( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - MIN ( DISTINCT + col1 ) + - - MIN ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL - 63 * + 15 + COUNT( 35 ) FROM tab0 cor0
----
-942

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - 63 * + 15 + COUNT ( 35 ) FROM tab0 cor0
----
-942

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 BETWEEN ( col1 ) AND + + col0
----

query I rowsort
SELECT - col0 - + col0 + + col2 - + col0 FROM tab1
----
-196
-205
-57

query I rowsort
SELECT DISTINCT + 80 + - 57 + - 9 + - col0 - - - col0 AS col1 FROM tab0
----
-16
-160
-180

query II rowsort
SELECT ALL + - 38 - - 43, col1 FROM tab0 AS cor0
----
5
1
5
21
5
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 91 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + 62 col0 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT 33 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT - - COUNT( ALL + 95 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5398
SELECT DISTINCT - - COUNT ( ALL + 95 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 14 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + ( + 0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + col0 * + - 79 AS col2 FROM tab1 cor0
----
-386784
-396185
-488852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - 42 col0, + col0 AS col2 FROM tab0
----
3654
87
4074
97
630
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT + SUM( DISTINCT 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5403
SELECT + SUM ( DISTINCT 7 ) FROM tab1
----
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 <= - + col1 * + ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5405
SELECT - CAST( NULL AS DECIMAL ) * + + 35 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT - CAST ( NULL AS REAL ) * + + 35 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT - - col1 * + col0 NOT BETWEEN NULL AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT DISTINCT COUNT( * ) DIV - - 71 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT COUNT ( * ) / - - 71 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 24 + + - col0 FROM tab2 AS cor0
----
-70
-88
-99

query I rowsort
SELECT 40 * + + 11 + - 97 AS col0 FROM tab1 AS cor0
----
343
343
343

onlyif mysql # DIV for integer division: 
query II rowsort label-5411
SELECT - col0 AS col1, - col2 * - + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif mysql # not compatible
query II rowsort label-5411
SELECT - col0 AS col1, - col2 * - + col2 / col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + + 89 col2 FROM tab2 AS cor0
----
-12
-22
-38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - - col1 + - col2 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT + 23 DIV 70 - + col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5414
SELECT + 23 / 70 - + col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - COUNT( DISTINCT - col0 ) + - 18 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5415
SELECT - COUNT ( DISTINCT - col0 ) + - 18 FROM tab2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT + 86 DIV + 19 + col2 FROM tab0
----
103
14
51

skipif mysql # not compatible
query I rowsort label-5416
SELECT + 86 / + 19 + col2 FROM tab0
----
103
14
51

query I rowsort
SELECT + col1 + - + col2 * + - col0 + ( + col1 ) FROM tab0
----
867
912
9605

query I rowsort
SELECT - ( col1 ) + 34 FROM tab1
----
-13
20
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT + 13 + - COUNT( * ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 13 + - COUNT ( * ) AS col2 FROM tab1
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 93 NOT BETWEEN NULL AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5421
SELECT * FROM tab0 WHERE - CAST( col1 AS SIGNED ) / + + 46 BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-5421
SELECT * FROM tab0 WHERE - CAST ( col1 AS INTEGER ) / + + 46 BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5422
SELECT DISTINCT + 70 DIV - + 54 + + - 78 AS col1 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + 70 / - + 54 + + - 78 AS col1 FROM tab2
----
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 56 - + col1 * 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT CAST( - + ( 36 ) AS SIGNED ) FROM tab1
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-5424
SELECT CAST ( - + ( 36 ) AS INTEGER ) FROM tab1
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + - ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - - 11 AS col1 FROM tab1 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col1 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5429
SELECT ALL - + COUNT( - 22 ) AS col1, - MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
-3
-81

skipif mysql # not compatible
query II rowsort label-5429
SELECT ALL - + COUNT ( - 22 ) AS col1, - MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
-3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL - COUNT( * ) FROM tab0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + col1 IS NOT NULL
----
-3

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT - col0 * col1 + + 37 * - - col2 * - col1 + - - ( 67 ) - - + 4 * col0 * + - col2 * col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - col1 * - - 73 AS col1 FROM tab1
----
-1022
-3431
-365

query I rowsort
SELECT ALL 18 * col1 FROM tab0 WHERE NOT ( NOT - 57 IN ( - 54 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + - MAX( ALL - col1 ) * - 15 col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5434
SELECT + - MAX ( ALL - col1 ) * - 15 col1 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + - 88 + + - col2 AS col0 FROM tab0 AS cor0
----
-135
-187
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL - - MAX( - 64 ) + - + MAX( + CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - - MAX ( - 64 ) + - + MAX ( + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT + + COUNT( * ) + 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-5438
SELECT + + COUNT ( * ) + 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 93 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT 23 + - COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-5440
SELECT 23 + - COUNT ( * ) FROM tab0
----
20

query I rowsort
SELECT - 81 + - col1 + - col0 FROM tab0 AS cor0
----
-177
-179
-189

query I rowsort
SELECT ALL - + 85 - + col2 FROM tab1 AS cor0
----
-144
-153
-181

query I rowsort
SELECT DISTINCT + ( - 87 ) AS col1 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT ALL + - 4 + - col0 AS col0 FROM tab0 cor0
----
-101
-19
-91

query I rowsort
SELECT ( 31 ) AS col1 FROM tab0
----
31
31
31

query I rowsort
SELECT DISTINCT - 80 * - col1 FROM tab2
----
4080
5360
6160

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col0, + 45 + + + ( - - 74 ) + - col0 * + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT SUM( ALL - - 71 ) AS col2 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-5448
SELECT SUM ( ALL - - 71 ) AS col2 FROM tab1
----
213

query I rowsort
SELECT - 88 - + - 9 + - 49 AS col0 FROM tab1
----
-128
-128
-128

query I rowsort
SELECT 20 - col0 - + col0 - col0 + - - col2 AS col2 FROM tab0
----
-172
-231
22

query I rowsort
SELECT ALL + - col2 * - 69 FROM tab1 WHERE NOT - col1 >= - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5452
SELECT DISTINCT + COUNT( * ) DIV + 94 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT + COUNT ( * ) / + 94 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT + 20 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5453
SELECT + 20 / - - col0 FROM tab2
----
0
0
0

query II rowsort
SELECT col0, - col1 / col1 / - 26 AS col1 FROM tab0 WHERE NOT + + col0 - - 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 82 AS col2 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT 79 * - col2 FROM tab1
----
-4661
-5372
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL - MAX( ALL col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - MAX ( ALL col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT 25 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5458
SELECT 25 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT 87 FROM tab2 AS cor0 WHERE NOT ( - col2 + - CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) ) IS NULL
----
87
87
87

skipif mysql # not compatible
query I rowsort label-5459
SELECT 87 FROM tab2 AS cor0 WHERE NOT ( - col2 + - CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) ) IS NULL
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5460
SELECT DISTINCT CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5460
SELECT DISTINCT CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT ALL 90 AS col1, - col0 * + col2 AS col0 FROM tab0 cor0
----
90
-705
90
-870
90
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT DISTINCT + COUNT( * ), - 14 * 7 AS col2 FROM tab2 AS cor0
----
3
-98

skipif mysql # not compatible
query II rowsort label-5462
SELECT DISTINCT + COUNT ( * ), - 14 * 7 AS col2 FROM tab2 AS cor0
----
3
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----
0

query I rowsort
SELECT DISTINCT 73 * + col0 FROM tab0 AS cor0
----
1095
6351
7081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 79 + - col1 FROM tab1
----
32
65
74

query II rowsort
SELECT ALL ( + col2 ) AS col1, 33 + - + col1 - 60 FROM tab0
----
10
-48
47
-108
99
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL + SUM( ALL + col1 ) + MAX( ALL - col2 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + SUM ( ALL + col1 ) + MAX ( ALL - col2 ) FROM tab1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col1 FROM tab1 WHERE ( - col0 ) > - col0 - 7
----
21
21
21

query I rowsort
SELECT + 41 * + col1 * col1 AS col1 FROM tab0
----
18081
269001
41

query I rowsort
SELECT - + 98 FROM tab0 AS cor0 WHERE ( col0 + + + col1 <> + + col2 )
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT DISTINCT - MIN( + ( col1 ) ) AS col0, - COUNT( * ) * - 34 FROM tab1 AS cor0
----
-5
102

skipif mysql # not compatible
query II rowsort label-5472
SELECT DISTINCT - MIN ( + ( col1 ) ) AS col0, - COUNT ( * ) * - 34 FROM tab1 AS cor0
----
-5
102

query I rowsort
SELECT - 89 + col1 FROM tab1 cor0
----
-42
-75
-84

query I rowsort
SELECT DISTINCT + + 49 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL - + CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL - + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + + col2 - col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - + col2 + - col0 * ( + col2 ) col1 FROM tab0 cor0
----
-577
-839
-9503

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - - COUNT( * ) - + 90 AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5478
SELECT - - COUNT ( * ) - + 90 AS col1 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT + - col0 + + 23 FROM tab2 AS cor0
----
-23
-41
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL 47 + - + ( + + COUNT( * ) ) AS col1 FROM tab0, tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL 47 + - + ( + + COUNT ( * ) ) AS col1 FROM tab0, tab2 AS cor0
----
38

query I rowsort
SELECT ALL + - 43 FROM tab1 WHERE NULL IS NULL
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + + COUNT( 69 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5482
SELECT + + COUNT ( 69 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col1 col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT - - COUNT( * ) + + - MAX( ALL - col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5484
SELECT - - COUNT ( * ) + + - MAX ( ALL - col1 ) FROM tab2 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT - 30 DIV + ( + col1 ) + col1 + - - 84 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
147
206
246

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - 30 / + ( + col1 ) + col1 + - - 84 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
147
206
246

query I rowsort
SELECT DISTINCT - - col1 * + + col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + - col2 col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL + 11 FROM tab2 WHERE - + 68 + + - 94 * + col2 IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT + COUNT( * ) AS col0, - 97 + MAX( + 38 ) FROM tab2
----
3
-59

skipif mysql # not compatible
query II rowsort label-5489
SELECT + COUNT ( * ) AS col0, - 97 + MAX ( + 38 ) FROM tab2
----
3
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + SUM( + + ( - ( + col2 ) ) ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5490
SELECT + SUM ( + + ( - ( + col2 ) ) ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT + ( col0 ) * 67 + col1 + - ( - col1 ) FROM tab0
----
1167
5871
6501

query I rowsort
SELECT ALL + + 23 + - col2 FROM tab2 AS cor0
----
-17
-35
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col2 * - col2 - - col0
----

query I rowsort
SELECT DISTINCT + - ( 69 ) AS col1 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT ALL 66 AS col1, - col2 + - 23 + - - col1 FROM tab2 AS cor0
----
66
-14
66
14
66
5

query I rowsort
SELECT DISTINCT - col1 * - 47 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT ALL + COUNT( * ) AS col0, 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
59

skipif mysql # not compatible
query II rowsort label-5497
SELECT ALL + COUNT ( * ) AS col0, 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5498
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( + 89 ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( + 89 ) FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col1 + - + col0 FROM tab2
----
2300
4864
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5500
SELECT COUNT( col2 ) AS col0, + 40 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 + - 99, CAST( NULL AS SIGNED ) + + col1 )
----
0
40

skipif mysql # not compatible
query II rowsort label-5500
SELECT COUNT ( col2 ) AS col0, + 40 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 + - 99, CAST ( NULL AS INTEGER ) + + col1 )
----
0
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT DISTINCT - ( CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - ( CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1
----
59
68
96

query II rowsort
SELECT ALL col1, + ( col0 ) FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT - ( + col2 ) * - - 43 FROM tab0
----
-2021
-4257
-430

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 6 * + 73 * + col1 + - col0 <> - 97 * 87
----

query I rowsort
SELECT - ( + col0 ) * col0 * + + 43 + + col0 + + 65 * col2 AS col0 FROM tab1 WHERE NOT NULL >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5507
SELECT DISTINCT - ( - - CAST( + col2 AS SIGNED ) ), - col1 * - + col1 + + 68 AS col2 FROM tab2
----
-23
2669
-40
5997
-58
4557

skipif mysql # not compatible
query II rowsort label-5507
SELECT DISTINCT - ( - - CAST ( + col2 AS INTEGER ) ), - col1 * - + col1 + + 68 AS col2 FROM tab2
----
-23
2669
-40
5997
-58
4557

query I rowsort
SELECT DISTINCT - 98 - - - 41 * + ( + 51 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 0, col1 * + col1 )
----

query I rowsort
SELECT ALL - + col2 * 24 FROM tab2 AS cor0
----
-1392
-552
-960

query I rowsort
SELECT DISTINCT 74 * + - col2 FROM tab0 cor0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT DISTINCT - - COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - - COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT - + col2 * - col2 + + col1, 50 * - - col1 - + - col2 AS col2 FROM tab1 cor0
----
3486
309
4671
2418
9230
796

query II rowsort
SELECT + col0 * + - 41 AS col1, col2 AS col0 FROM tab2
----
-1886
23
-2624
40
-3075
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL - + COUNT( ALL + - col2 ) col0 FROM tab1 AS cor0 WHERE + col0 - + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5514
SELECT ALL - + COUNT ( ALL + - col2 ) col0 FROM tab1 AS cor0 WHERE + col0 - + col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + - 85 IS NULL
----

query I rowsort
SELECT ALL ( col1 ) * + col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + col1 * - + 12 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5518
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + col1 * - + 12 * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT DISTINCT - 11 DIV - - ( + + col1 ) FROM tab0 AS cor0
----
-11
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - 11 / - - ( + + col1 ) FROM tab0 AS cor0
----
-11
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT COUNT( * ) DIV - 92 * - - 25 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT COUNT ( * ) / - 92 * - - 25 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT DISTINCT + - col1 DIV - 26 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT + - col1 / - 26 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL MAX( + col0 ) + - + 84 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL MAX ( + col0 ) + - + 84 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - MIN( + - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5523
SELECT - MIN ( + - col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT COUNT( 35 ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT COUNT ( 35 ) FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT col2 + + - 19 AS col2 FROM tab2
----
21
39
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 11 col2 FROM tab1
----
1056
649
748

query I rowsort
SELECT DISTINCT 86 * 57 AS col1 FROM tab1
----
4902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT - + CAST( + - AVG ( - col0 ) AS SIGNED ) * - COUNT( * ) FROM tab0 cor0
----
198

skipif mysql # not compatible
query I rowsort label-5528
SELECT - + CAST ( + - AVG ( - col0 ) AS INTEGER ) * - COUNT ( * ) FROM tab0 cor0
----
198

query I rowsort
SELECT - 99 * - + col0 * - - col1 AS col0 FROM tab1
----
42075
423423
70686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NULL <= + + col2 / - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - 65
----

query II rowsort
SELECT - + col1 AS col2, - col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 AS col0, 17 AS col0 FROM tab1 AS cor0
----
51
17
85
17
91
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - MAX( DISTINCT + 9 ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5535
SELECT - MAX ( DISTINCT + 9 ) col1 FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT col2 * + + CAST( - col1 AS SIGNED ) < - ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT col2 * + + CAST ( - col1 AS INTEGER ) < - ( + col2 )
----

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT + col0 DIV + + col1 AS col2 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5539
SELECT + col0 / + + col1 AS col2 FROM tab0
----
0
4
97

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT - col1 / col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + + col0 - + ( + 2 ) AS col1 FROM tab2 AS cor0
----
126
148
90

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT 34 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + 66 = NULL
----

query I rowsort
SELECT ALL - 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT 92 + col1 FROM tab2
----
143
159
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - 19 AS col2 FROM tab1
----
59
-19
68
-19
96
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5547
SELECT - - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - 6 + - col1 FROM tab0 AS cor0
----
-27
-7
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT COUNT( * ) + 60 col1 FROM tab1 cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5549
SELECT COUNT ( * ) + 60 col1 FROM tab1 cor0
----
63

query I rowsort
SELECT ALL col1 + - 29 + + + col2 FROM tab2 AS cor0
----
45
88
96

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 + + 10 < - - 59 + - + col2 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + col0 ) + - 26 FROM tab0
----
-11
61
71

query I rowsort
SELECT ALL col1 + - + 1 FROM tab0
----
0
20
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col1 col1 FROM tab2 WHERE 18 BETWEEN - - col1 AND - ( - + ( - col2 ) )
----

query I rowsort
SELECT ALL + 80 AS col1 FROM tab0 WHERE NULL NOT BETWEEN - col0 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT ALL CAST( - + 41 AS SIGNED ) AS col1 FROM tab1
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL CAST ( - + 41 AS INTEGER ) AS col1 FROM tab1
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + COUNT( * ) * + COUNT( - 74 ) * + - COUNT( * ) * 69 AS col0 FROM tab1
----
-1863

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COUNT ( * ) * + COUNT ( - 74 ) * + - COUNT ( * ) * 69 AS col0 FROM tab1
----
-1863

query I rowsort
SELECT DISTINCT col2 + - 58 * + + ( - col0 ) + - 20 * - 86 * col2 FROM tab2
----
104168
42251
72552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT DISTINCT CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab2 WHERE + - col1 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE + - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT MAX( DISTINCT ( col0 ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5560
SELECT MAX ( DISTINCT ( col0 ) ) AS col0 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + - 37 - + COUNT( * ) FROM tab2 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5562
SELECT + - 37 - + COUNT ( * ) FROM tab2 cor0
----
-40

query I rowsort
SELECT col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL + SUM( ALL + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + SUM ( ALL + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL SUM( + 10 ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL SUM ( + 10 ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT ( + ( col0 ) ) FROM tab1
----
51
85
91

query I rowsort
SELECT col0 * + col2 + - - col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT col0 * + + col0 * - - col2 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT + 36 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col0 ) / ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * - 2 col2 FROM tab0
----
-162

query I rowsort
SELECT 78 * - col1 AS col1 FROM tab1 AS cor0
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT + MIN( + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT + MIN ( + + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - 94
----

query I rowsort
SELECT DISTINCT + + 83 AS col0 FROM tab2 cor0
----
83

query I rowsort
SELECT ALL - - 98 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT DISTINCT + MAX( ALL ( + + 96 ) ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + MAX ( ALL ( + + 96 ) ) FROM tab0 AS cor0
----
96

query II rowsort
SELECT + 1, - 60 / - col0 * + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 44 AS col1 FROM tab1
----
-2244
-3740
-4004

query II rowsort
SELECT DISTINCT col0, - ( + col2 ) FROM tab0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT DISTINCT - 2, col1 FROM tab0
----
-2
1
-2
21
-2
81

query II rowsort
SELECT ALL + col2, - 33 AS col0 FROM tab1
----
59
-33
68
-33
96
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 29 AS col0, + col0 col1 FROM tab2 cor0
----
29
46
29
64
29
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - - 76 + - col0 AS col1 FROM tab2 cor0
----
1
12
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT - col2 DIV - - ( - 65 ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5586
SELECT - col2 / - - ( - 65 ) FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT CAST( 12 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5587
SELECT CAST ( 12 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT - 6 DIV - col2 - + col0 * - + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5588
SELECT - 6 / - col2 - + col0 * - + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5589
SELECT - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT col0 + 23 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT col0 + 23 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL + SUM( - - col0 ) + - + 39 + - 33 AS col0 FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + SUM ( - - col0 ) + - + 39 + - 33 AS col0 FROM tab2
----
113

query I rowsort
SELECT DISTINCT + col2 + + col1 * + + col2 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT ALL col2 * - col0 + + 37 AS col1 FROM tab1
----
-4859
-4978
-6151

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 * + col0 + + - col0 * 8 + col1 + col2, col2 FROM tab2 AS cor0
----
2052
23
4533
40
4550
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL BETWEEN ( - 69 ) AND NULL )
----

query I rowsort
SELECT ALL 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT - ( - MIN( - + 19 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT - ( - MIN ( - + 19 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

query I rowsort
SELECT 40 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - 76 * - col0 FROM tab1 cor0
----
3876
6460
6916

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab0 AS cor0 WHERE NULL = + col1
----

query I rowsort
SELECT DISTINCT 66 * - col1 AS col0 FROM tab0
----
-1386
-5346
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT DISTINCT 93 DIV + COUNT( * ) col2 FROM tab2
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5603
SELECT DISTINCT 93 / + COUNT ( * ) col2 FROM tab2
----
31

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - col0 ) + - col2 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT + 89 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT + SUM( DISTINCT + + col0 ) * - 93, 22 AS col2 FROM tab2 AS cor0
----
-17205
22

skipif mysql # not compatible
query II rowsort label-5608
SELECT + SUM ( DISTINCT + + col0 ) * - 93, 22 AS col2 FROM tab2 AS cor0
----
-17205
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT 70 * - ( - COUNT( * ) ) * + COUNT( * ) col2 FROM tab2 cor0
----
630

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5609
SELECT 70 * - ( - COUNT ( * ) ) * + COUNT ( * ) col2 FROM tab2 cor0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT DISTINCT - COUNT( + - ( + 91 ) ) col2 FROM tab2 AS cor0 WHERE NOT + 83 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5610
SELECT DISTINCT - COUNT ( + - ( + 91 ) ) col2 FROM tab2 AS cor0 WHERE NOT + 83 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE 66 < - col2
----

query I rowsort
SELECT ALL + col0 + 90 FROM tab0 AS cor0
----
105
177
187

query I rowsort
SELECT + + 43 + + col2 - + - col1 FROM tab0 AS cor0
----
143
171
74

query I rowsort
SELECT + col1 + + + ( + 65 ) + ( + 87 ) + + - col0 AS col1 FROM tab0 cor0
----
218
56
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT - SUM( DISTINCT +