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 + 70 ) AS col2 FROM tab0 cor0
----
-70

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

query I rowsort
SELECT DISTINCT - col2 * + col1 / col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - + COUNT( * ) * - - COUNT( * ) * 6 AS col2 FROM tab0 WHERE NULL IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-5617
SELECT - + COUNT ( * ) * - - COUNT ( * ) * 6 AS col2 FROM tab0 WHERE NULL IS NULL
----
-54

query I rowsort
SELECT ALL - 32 - + col1 AS col1 FROM tab2
----
-109
-83
-99

query I rowsort
SELECT col1 * - col0 * + col2 - - 17 * - - col2 * - col2 + - col0 AS col2 FROM tab2
----
-224384
-348713
-62997

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5620
SELECT * FROM tab1 WHERE - col2 + + + CAST( NULL AS SIGNED ) + 61 / - col0 = CAST( NULL AS SIGNED ) * + - col2 + + col2
----

skipif mysql # not compatible
query III rowsort label-5620
SELECT * FROM tab1 WHERE - col2 + + + CAST ( NULL AS INTEGER ) + 61 / - col0 = CAST ( NULL AS INTEGER ) * + - col2 + + col2
----

query I rowsort
SELECT DISTINCT + col1 - + ( - col2 ) FROM tab1
----
110
115
64

query I rowsort
SELECT + col0 * - + 5 * - 22 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT - 51 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5624
SELECT 8 DIV - COUNT( * ) AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5624
SELECT 8 / - COUNT ( * ) AS col2 FROM tab0
----
-2

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - col2 IN ( - - col2, + col1 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 59 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL 40 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
40
40
40

query I rowsort
SELECT ALL - 35 FROM tab0 AS cor0 WHERE ( NOT 43 IS NULL )
----
-35
-35
-35

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL 33 * MAX( ALL + + col2 ) AS col1 FROM tab2 cor0
----
1914

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL 33 * MAX ( ALL + + col2 ) AS col1 FROM tab2 cor0
----
1914

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT ALL + 71 DIV + 47 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + 71 / + 47 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ( - - 98 ) FROM tab1
----
98
98
98

query I rowsort
SELECT 2 * - + col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT ALL + 38 + + col0 + col1 + + col1 * col0 + + - col1 FROM tab0
----
1268
1952
232

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT MIN( ALL + + 73 ) AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-5637
SELECT MIN ( ALL + + 73 ) AS col0 FROM tab0
----
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT DISTINCT + CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT - col2 + - col0 AS col1, 71 * - + 92 FROM tab1 AS cor0
----
-144
-6532
-147
-6532
-159
-6532

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

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

query I rowsort
SELECT + ( + 16 ) AS col2 FROM tab2
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 98 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT MAX( DISTINCT 7 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT MAX ( DISTINCT 7 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5646
SELECT DISTINCT 34 * + - 96 + - 22 * - ( - ( + + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT 34 * + - 96 + - 22 * - ( - ( + + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + + col2 / 23 * + 46 FROM tab1 WHERE - + 29 * + - 8 >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 35 >= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 - + - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - col0 / - - 25 NOT BETWEEN NULL AND + col1
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + + - col1 IS NOT NULL AND NOT NULL = NULL
----

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

query I rowsort
SELECT ALL + 5 + + col1 AS col2 FROM tab2
----
56
72
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT DISTINCT CAST( - + 89 AS SIGNED ) AS col2 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT CAST ( - + 89 AS INTEGER ) AS col2 FROM tab1
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5657
SELECT ALL ( + AVG ( + 29 ) ) * - 0 - CAST( 34 AS DECIMAL ) FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL ( + AVG ( + 29 ) ) * - 0 - CAST ( 34 AS REAL ) FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
NULL

query I rowsort
SELECT DISTINCT - - ( - + 97 ) * + col1 FROM tab1 AS cor0 WHERE + col1 <= - 37 + + + 95
----
-1358
-4559
-485

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5659
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + - col0 - 7 * - - 97 + - col1 NOT BETWEEN + col0 AND CAST( NULL AS SIGNED ) + + 34
----

skipif mysql # not compatible
query III rowsort label-5659
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + - col0 - 7 * - - 97 + - col1 NOT BETWEEN + col0 AND CAST ( NULL AS INTEGER ) + + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + MAX( - ( + col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5660
SELECT + MAX ( - ( + col2 ) ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT - col1, + 83 * - col0 * + col0 * + 71 AS col1 FROM tab2 AS cor0
----
-51
-12469588
-67
-33148125
-77
-24137728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5662
SELECT + CAST( NULL AS SIGNED ) * - col0, + 40 AS col1 FROM tab0
----
NULL
40
NULL
40
NULL
40

skipif mysql # not compatible
query II rowsort label-5662
SELECT + CAST ( NULL AS INTEGER ) * - col0, + 40 AS col1 FROM tab0
----
NULL
40
NULL
40
NULL
40

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

query I rowsort
SELECT DISTINCT + col1 * + + ( - col1 ) * - + 95 AS col2 FROM tab2 AS cor0
----
247095
426455
563255

query I rowsort
SELECT + + col2 * - + col0 + + col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL ( + + MAX( DISTINCT + - col2 ) ) * - COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL ( + + MAX ( DISTINCT + - col2 ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT - 22 * + col1 * - col0 FROM tab1 AS cor0
----
15708
9350
94094

query I rowsort
SELECT ( + 21 ) FROM tab0 cor0
----
21
21
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5671
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) - - 41 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5671
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) - - 41 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 10 ) * - 51 + col1 + col1 FROM tab1
----
-416
-482
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT DISTINCT - MIN( DISTINCT 23 ) AS col1 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT - MIN ( DISTINCT 23 ) AS col1 FROM tab0
----
-23

query I rowsort
SELECT ALL - 59 * + + 4 + + - col1 FROM tab0
----
-237
-257
-317

query II rowsort
SELECT ALL 58 * col2 * + 19 AS col1, + col2 FROM tab1
----
105792
96
65018
59
74936
68

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

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

query II rowsort
SELECT col1 AS col1, - col2 * + col2 FROM tab1
----
14
-9216
47
-4624
5
-3481

query III rowsort
SELECT * FROM tab0 WHERE - ( 93 ) * - col2 NOT BETWEEN - col1 AND 46 * + col0
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT col0 DIV - 88 + - ( 66 ) - + col2 FROM tab2 AS cor0
----
-106
-124
-89

skipif mysql # not compatible
query I rowsort label-5679
SELECT col0 / - 88 + - ( 66 ) - + col2 FROM tab2 AS cor0
----
-106
-124
-89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 76 - 30 * col1 FROM tab0
----
-2354
-554
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5683
SELECT ALL * FROM tab2 WHERE ( col1 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5683
SELECT ALL * FROM tab2 WHERE ( col1 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 82 * col1 FROM tab1
----
-1148
-3854
-410

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT + COUNT( * ) + - 76 AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT + COUNT ( * ) + - 76 AS col1 FROM tab1
----
-73

query I rowsort
SELECT DISTINCT - 99 FROM tab1 WHERE ( + 34 * col0 ) IS NOT NULL
----
-99

query I rowsort
SELECT ALL 27 * col1 AS col1 FROM tab0
----
2187
27
567

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 * 50 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col1 * - 3 IN ( col0 )
----

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

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

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 26 NOT BETWEEN col2 AND ( - ( 11 ) + col1 )
----

query I rowsort
SELECT DISTINCT ( - col2 ) * 36 + col1 FROM tab2
----
-1363
-2021
-777

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT DISTINCT col0 DIV 83 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT col0 / 83 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + COUNT( * ) col1 FROM tab2 WHERE ( - 17 / + col2 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5696
SELECT + COUNT ( * ) col1 FROM tab2 WHERE ( - 17 / + col2 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col0 FROM tab0
----
-68

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5701
SELECT 14 * - col0 + + ( - col0 ) DIV - CAST( 32 AS SIGNED ) FROM tab1
----
-1188
-1272
-713

skipif mysql # not compatible
query I rowsort label-5701
SELECT 14 * - col0 + + ( - col0 ) / - CAST ( 32 AS INTEGER ) FROM tab1
----
-1188
-1272
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - SUM( DISTINCT 86 ) AS col0 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-5702
SELECT - SUM ( DISTINCT 86 ) AS col0 FROM tab1
----
-86

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT + col2 - col0 BETWEEN ( - 33 + col2 ) AND NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5704
SELECT ALL * FROM tab2 WHERE NOT col0 * - col0 NOT BETWEEN - 84 AND col2 + + 16 * - CAST( ( 88 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5704
SELECT ALL * FROM tab2 WHERE NOT col0 * - col0 NOT BETWEEN - 84 AND col2 + + 16 * - CAST ( ( 88 ) AS INTEGER )
----

query I rowsort
SELECT - 20 + - col1 AS col1 FROM tab0
----
-101
-21
-41

query I rowsort
SELECT ( 65 ) + col1 FROM tab0
----
146
66
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL + MAX( 47 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + MAX ( 47 ) FROM tab1
----
47

query I rowsort
SELECT ALL ( + 56 ) * + 70 + col2 AS col2 FROM tab1 WHERE col0 / - 93 IS NULL
----

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

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

query I rowsort
SELECT 79 FROM tab0 cor0 WHERE NOT ( ( - 93 ) ) IS NULL
----
79
79
79

query I rowsort
SELECT - col2 * - 4 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
236
272
384

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT col0 / - ( - col0 ) FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) * ( ( 90 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5714
SELECT col0 / - ( - col0 ) FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) * ( ( 90 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT COUNT( * ) * MIN( DISTINCT - 31 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-5715
SELECT COUNT ( * ) * MIN ( DISTINCT - 31 ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT + COUNT( * ) DIV + 38 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5716
SELECT + COUNT ( * ) / + 38 FROM tab0
----
0

query I rowsort
SELECT 0 * col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 * col1 + col2 FROM tab1 WHERE + col1 * + 33 + + col1 BETWEEN ( col1 ) AND 16 * col2
----
292
84

query I rowsort
SELECT DISTINCT - col1 * 14 FROM tab0
----
-1134
-14
-294

query I rowsort
SELECT 79 * - col0 AS col1 FROM tab0
----
-1185
-6873
-7663

query I rowsort
SELECT DISTINCT 82 * col1 AS col2 FROM tab0
----
1722
6642
82

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( 68 ) >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT DISTINCT - MAX( DISTINCT 21 ) AS col1 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT - MAX ( DISTINCT 21 ) AS col1 FROM tab2 AS cor0
----
-21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT DISTINCT + COUNT( * ) * 60 + CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT + COUNT ( * ) * 60 + CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col0 FROM tab1 AS cor0 WHERE + col1 <> + col1 + col0
----
27

query I rowsort
SELECT DISTINCT + 17 + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-193
-3790
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT + - SUM( DISTINCT + 6 ) + 71 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + - SUM ( DISTINCT + 6 ) + 71 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT - ( CAST( + col1 AS SIGNED ) ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5731
SELECT - ( CAST ( + col1 AS INTEGER ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT DISTINCT ( + col0 ) DIV + col2 + col0 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT ( + col0 ) / + col2 + col0 FROM tab2
----
48
65
76

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

query I rowsort
SELECT ALL + 87 * - 5 AS col0 FROM tab0
----
-435
-435
-435

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT - 15 - + COUNT( + col2 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - 15 - + COUNT ( + col2 ) AS col2 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - 40 * + col0 + - col2 FROM tab2 AS cor0
----
-1863
-2600
-3058

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

query I rowsort
SELECT + 90 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT DISTINCT + 38 + - MIN( ALL + - 53 ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT + 38 + - MIN ( ALL + - 53 ) AS col0 FROM tab0
----
91

query I rowsort
SELECT DISTINCT 55 + - col2 FROM tab2
----
-3
15
32

query I rowsort
SELECT ( 92 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

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

query I rowsort
SELECT ALL col2 - - 4 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT - col1 - - 87 FROM tab2 AS cor0
----
10
20
36

query II rowsort
SELECT - col2, 60 * - + 71 AS col2 FROM tab2 AS cor0
----
-23
-4260
-40
-4260
-58
-4260

query II rowsort
SELECT DISTINCT + col0, 48 + + col2 AS col1 FROM tab2 AS cor0
----
46
71
64
88
75
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL - MAX( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT 10 * - + MIN( col0 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5749
SELECT 10 * - + MIN ( col0 ) FROM tab0 AS cor0
----
-150

query I rowsort
SELECT ALL + - col0 * col0 * - + 8 AS col1 FROM tab2 cor0
----
16928
32768
45000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 52 ) * + 16 * + 92 col2 FROM tab2
----
-76544
-76544
-76544

query I rowsort
SELECT ALL + col1 * + ( - + 81 ) FROM tab2
----
-4131
-5427
-6237

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 33 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT ALL MAX( + col1 ) DIV + 38 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL MAX ( + col1 ) / + 38 FROM tab0
----
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - col2 ) <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT DISTINCT COUNT( col1 ) col0, 70 AS col2 FROM tab2
----
3
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5756
SELECT DISTINCT COUNT ( col1 ) col0, 70 AS col2 FROM tab2
----
3
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT ALL + col0 * 73 DIV + 68 FROM tab2 AS cor0
----
49
68
80

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + col0 * 73 / + 68 FROM tab2 AS cor0
----
49
68
80

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 51 < ( + 0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT ALL - 59 AS col0, - COUNT( * ) AS col1 FROM tab0
----
-59
-3

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL - 59 AS col0, - COUNT ( * ) AS col1 FROM tab0
----
-59
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL col2 col1 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + - 9 + + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5762
SELECT ALL col2 col1 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + - 9 + + CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT COUNT( * ) + + + ( - COUNT( DISTINCT 83 ) ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5763
SELECT COUNT ( * ) + + + ( - COUNT ( DISTINCT 83 ) ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - MIN( - 77 ) FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN ( 12 ) AND NULL AND NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT - MIN ( - 77 ) FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN ( 12 ) AND NULL AND NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 84 + 46 + + ( + col2 ) - + - ( + 25 ) * 90 FROM tab2 AS cor0
----
2403
2420
2438

query I rowsort
SELECT col1 * + ( - col0 ) + + + 47 FROM tab1 AS cor0
----
-378
-4230
-667

query I rowsort
SELECT DISTINCT + 96 + + 2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 58 + col2 AND - ( - 70 ) * - col1
----

query I rowsort
SELECT col2 + - + ( col0 ) * - col0 AS col2 FROM tab2 cor0
----
2139
4136
5683

query I rowsort
SELECT DISTINCT - col1 + - 92 AS col0 FROM tab1 AS cor0
----
-106
-139
-97

query I rowsort
SELECT col2 * 65 FROM tab2 AS cor0 WHERE ( ( + - 70 ) ) > col2 / col1
----

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

query I rowsort
SELECT ALL - 16 FROM tab0 WHERE + 51 * - - col1 + col0 * - 25 BETWEEN NULL AND - col0
----

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

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

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

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

query I rowsort
SELECT col0 * - ( + - 52 ) FROM tab1
----
2652
4420
4732

query I rowsort
SELECT DISTINCT - col2 * + 20 - col2 FROM tab1
----
-1239
-1428
-2016

query I rowsort
SELECT - ( + + col0 ) * - + 63 FROM tab0
----
5481
6111
945

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 29 = ( - 9 )
----

query I rowsort
SELECT 46 FROM tab0 WHERE col2 NOT BETWEEN ( - 57 ) AND + col2
----

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

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

query I rowsort
SELECT - + 98 AS col1 FROM tab1 cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5782
SELECT - - SUM( ALL 55 ) AS col0, 8 FROM tab2 cor0
----
165
8

skipif mysql # not compatible
query II rowsort label-5782
SELECT - - SUM ( ALL 55 ) AS col0, 8 FROM tab2 cor0
----
165
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL - - MAX( ALL col2 ) * + 15 col2 FROM tab0 AS cor0
----
1485

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5783
SELECT ALL - - MAX ( ALL col2 ) * + 15 col2 FROM tab0 AS cor0
----
1485

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 63 * - 90 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + ( - + 85 ), col0 - - - col2 AS col2 FROM tab2 AS cor0
----
-85
17
-85
23
-85
24

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5787
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + col0 * + ( - CAST( NULL AS DECIMAL ) ) * + - col1 + 10 ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-5787
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + col0 * + ( - CAST ( NULL AS REAL ) ) * + - col1 + 10 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT ALL 17 DIV 8 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL 17 / 8 FROM tab2
----
2
2
2

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

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

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

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

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

query I rowsort
SELECT - 84 * + col1 AS col0 FROM tab2
----
-4284
-5628
-6468

onlyif mysql # aggregate syntax: 
query II rowsort label-5794
SELECT + COUNT( * ), COUNT( * ) * + 62 AS col2 FROM tab2
----
3
186

skipif mysql # not compatible
query II rowsort label-5794
SELECT + COUNT ( * ), COUNT ( * ) * + 62 AS col2 FROM tab2
----
3
186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT MAX( DISTINCT + col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5796
SELECT DISTINCT MAX ( DISTINCT + col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT - ( 84 ) FROM tab0
----
-84
-84
-84

query I rowsort
SELECT - col1 * + + 88 + + + 22 FROM tab2 cor0
----
-4466
-5874
-6754

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> 94
----

query I rowsort
SELECT ALL ( + col2 ) + + 82 FROM tab0
----
129
181
92

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

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0 * col2 + - + col1 + col0 + + + col0 / + col2 * 44
----
0

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE - col0 * + 77 <> - 84
----
23
40
58

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

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

skipif mysql # not compatible
query I rowsort label-5804
SELECT + + ( - + 40 ) / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-13

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

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

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

query I rowsort
SELECT DISTINCT + + 96 + + col2 * + col0 FROM tab0 AS cor0
----
801
966
9699

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL - SUM( ALL - col1 ) + - + 31 AS col2 FROM tab2
----
164

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - SUM ( ALL - col1 ) + - + 31 AS col2 FROM tab2
----
164

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

query I rowsort
SELECT ALL + col0 * - - ( - col2 ) * - col0 * col1 + col2 AS col1 FROM tab0
----
1589500
856622
931590

query I rowsort
SELECT + col2 + col1 * col2 AS col1 FROM tab0
----
198
220
3854

query I rowsort
SELECT ALL - 84 + 75 * + col2 * - - 57 * + + col0 FROM tab2 WHERE ( + 25 + col1 ) IS NULL
----

query II rowsort
SELECT + col1 + 65, col2 FROM tab0 WHERE col2 + - col2 + 26 * + 1 IS NULL
----

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

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

query I rowsort
SELECT col1 * + ( - 38 ) AS col2 FROM tab2 AS cor0
----
-1938
-2546
-2926

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN - col0 + + 63 + col1 + - col2 * - + ( col2 ) * - 16 AND + 3
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT + 97, + ( + + col2 ) FROM tab1 cor0 WHERE NOT - col2 <> col1 + - col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col0, - col2 - - 47 * + ( col1 ) FROM tab0 AS cor0
----
-15
3760
-87
977
-97
-52

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5824
SELECT + col1 * col0 AS col0, - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-5824
SELECT + col1 * col0 AS col0, - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 77 - + - 65 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5828
SELECT - - col1 + - col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5828
SELECT - - col1 + - col2 + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT ALL 99 * - col1 AS col1 FROM tab0
----
-2079
-8019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - ( - COUNT( * ) ) * - 68 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-5831
SELECT - ( - COUNT ( * ) ) * - 68 FROM tab2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT - 32 * + + COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT - 32 * + + COUNT ( * ) FROM tab0
----
-96

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

query I rowsort
SELECT DISTINCT - + col1 * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT ALL ( col2 ) DIV 39 col1 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5835
SELECT ALL ( col2 ) / 39 col1 FROM tab1 AS cor0
----
1
1
2

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

query I rowsort
SELECT 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5838
SELECT col0 + - + col0 * + 7 - + 53 AS col0, col2 + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
-359
NULL
-563
NULL
-599
NULL

skipif mysql # not compatible
query II rowsort label-5838
SELECT col0 + - + col0 * + 7 - + 53 AS col0, col2 + + - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
-359
NULL
-563
NULL
-599
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT + ( + COUNT( * ) ) + ( - + COUNT( * ) ) DIV ( - + 46 ) + 96 AS col0 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5840
SELECT + ( + COUNT ( * ) ) + ( - + COUNT ( * ) ) / ( - + 46 ) + 96 AS col0 FROM tab2 cor0
----
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE NOT 50 + + col2 / - - 75 * col2 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 * 19 FROM tab1 AS cor0
----
-14
1824
-47
1292
-5
1121

query I rowsort
SELECT DISTINCT - 51 + - + 97 FROM tab0 AS cor0
----
-148

query I rowsort
SELECT DISTINCT + col1 + + col0 - - - 43 FROM tab0
----
53
55
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5847
SELECT col1 DIV + + col0 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
0
NULL
0
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5847
SELECT col1 / + + col0 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
0
NULL
0
NULL
5
NULL

query I rowsort
SELECT ALL + 31 + col1 + - col2 + + + col2 AS col1 FROM tab2
----
108
82
98

query I rowsort
SELECT col2 * - col2 * col2 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5850
SELECT DISTINCT + col1 + - CAST( + col1 AS SIGNED ) + - col1 * - - ( - col0 ) * + col0 AS col0, - 94 AS col1 FROM tab1
----
36125
-94
36414
-94
389207
-94

skipif mysql # not compatible
query II rowsort label-5850
SELECT DISTINCT + col1 + - CAST ( + col1 AS INTEGER ) + - col1 * - - ( - col0 ) * + col0 AS col0, - 94 AS col1 FROM tab1
----
36125
-94
36414
-94
389207
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - 5 + + COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - 5 + + COUNT ( * ) FROM tab0
----
-2

query I rowsort
SELECT DISTINCT 62 - + col0 FROM tab1 AS cor0
----
-23
-29
11

query I rowsort
SELECT ALL - col0 - + + col1 + - 75 AS col2 FROM tab1 AS cor0
----
-140
-165
-213

query II rowsort
SELECT col1 + - - col1 AS col0, 86 AS col0 FROM tab0 AS cor0
----
162
86
2
86
42
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT - MAX( DISTINCT + + col0 ) col1 FROM tab0 AS cor0 WHERE NULL <= col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5856
SELECT DISTINCT - MAX ( DISTINCT + + col0 ) col1 FROM tab0 AS cor0 WHERE NULL <= col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT COUNT( * ) * - CAST( - 61 AS SIGNED ) AS col1 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-5860
SELECT COUNT ( * ) * - CAST ( - 61 AS INTEGER ) AS col1 FROM tab0
----
183

query III rowsort
SELECT * FROM tab0 WHERE NOT 80 IS NOT NULL
----

query II rowsort
SELECT + col2, - col0 * - col1 FROM tab1
----
59
425
68
4277
96
714

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT + col1 * + col0 DIV - col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5863
SELECT + col1 * + col0 / - col0 FROM tab0
----
-1
-21
-81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL - 71 * - 68 * + COUNT( * ) FROM tab2
----
14484

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - 71 * - 68 * + COUNT ( * ) FROM tab2
----
14484

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 43 + + + 57 col2, col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT DISTINCT + col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT + col1 / - col2 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 < + + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT - col0 DIV 80 + + - col0 * + 3 * - 35 AS col1 FROM tab1 AS cor0
----
5355
8924
9554

skipif mysql # not compatible
query I rowsort label-5871
SELECT - col0 / 80 + + - col0 * + 3 * - 35 AS col1 FROM tab1 AS cor0
----
5355
8924
9554

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col1 FROM tab1 AS cor0
----
102
170
182

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

skipif mysql # not compatible
query I rowsort label-5873
SELECT SUM ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT + 38 * 18 + - - col2 DIV + + 11 col0 FROM tab2 AS cor0
----
686
687
689

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5874
SELECT + 38 * 18 + - - col2 / + + 11 col0 FROM tab2 AS cor0
----
686
687
689

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

query I rowsort
SELECT DISTINCT + 93 * 52 AS col2 FROM tab2
----
4836

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - ( - + 41 ) * + col1
----

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

query I rowsort
SELECT + - col2 * 27 + + - ( + col1 ) + - + ( - 33 ) AS col1 FROM tab1 AS cor0
----
-1565
-1850
-2573

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

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

query I rowsort
SELECT - - col2 + + + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5882
SELECT DISTINCT col2 AS col1, 86 * + + CAST( + col0 AS SIGNED ) col2 FROM tab2
----
23
3956
40
5504
58
6450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5882
SELECT DISTINCT col2 AS col1, 86 * + + CAST ( + col0 AS INTEGER ) col2 FROM tab2
----
23
3956
40
5504
58
6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT DISTINCT 30 * CAST( NULL AS SIGNED ) - - - 62 FROM tab0, tab0 AS cor0 WHERE ( - 14 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT 30 * CAST ( NULL AS INTEGER ) - - - 62 FROM tab0, tab0 AS cor0 WHERE ( - 14 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 36 - 96 FROM tab2
----
-60
-60
-60

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5886
SELECT DISTINCT + + MAX( col1 ) DIV - MAX( ALL - col1 ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5886
SELECT DISTINCT + + MAX ( col1 ) / - MAX ( ALL - col1 ) col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 74 * 32 AS col2 FROM tab2 AS cor0
----
2368
2368
2368

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

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

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

query I rowsort
SELECT + col0 * - - col1 + - + col1 + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
415
4183
686

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

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

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

query I rowsort
SELECT ALL - col1 + + + 40 * + - 71 * - col2 FROM tab2
----
113523
164653
65269

query I rowsort
SELECT DISTINCT col1 + col0 + - 80 + - - col1 FROM tab2
----
129
138
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT - MAX( + col0 ) * + + 12 * + 40 * + MAX( DISTINCT - col0 ) FROM tab0
----
698400

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT - MAX ( + col0 ) * + + 12 * + 40 * + MAX ( DISTINCT - col0 ) FROM tab0
----
698400

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT ALL 87 * col1 DIV + - col2 FROM tab0
----
-149
-182
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL 87 * col1 / + - col2 FROM tab0
----
-149
-182
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT MIN( + 16 ) * - 3 AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-5899
SELECT MIN ( + 16 ) * - 3 AS col0 FROM tab0
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT COUNT( * ) * + 88 FROM tab1 WHERE ( + + 26 ) NOT BETWEEN + + col2 AND NULL
----
264

skipif mysql # not compatible
query I rowsort label-5902
SELECT COUNT ( * ) * + 88 FROM tab1 WHERE ( + + 26 ) NOT BETWEEN + + col2 AND NULL
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT - - col2 * - + CAST( NULL AS SIGNED ) + - 16 + - + 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-5903
SELECT - - col2 * - + CAST ( NULL AS INTEGER ) + - 16 + - + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 87 * col1 AS col0 FROM tab1 AS cor0
----
1218
4089
435

query I rowsort
SELECT ALL + col1 * + + ( - 8 ) FROM tab1 AS cor0
----
-112
-376
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 73 AS col0, + ( + 37 ) col0 FROM tab1 cor0
----
-73
37

query II rowsort
SELECT DISTINCT + 11 + + - 81 - + ( 69 ), + col1 AS col0 FROM tab2 AS cor0
----
-139
51
-139
67
-139
77

query I rowsort
SELECT 96 - - - col1 * - 9 + + ( + 53 ) * + + col1 AS col1 FROM tab2
----
3258
4250
4870

query I rowsort
SELECT 67 FROM tab2 WHERE - col0 IS NOT NULL AND NULL IS NULL
----
67
67
67

query I rowsort
SELECT + col0 * + - 57 FROM tab2
----
-2622
-3648
-4275

query I rowsort
SELECT DISTINCT - 9 * + + col0 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 90 NOT BETWEEN + 82 * - + col0 AND col0
----

query I rowsort
SELECT ALL - col0 + - 74 FROM tab0 AS cor0 WHERE - col0 <> 87 * + col2 + - col0 - + ( - 4 )
----
-161
-171
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL + ( - MAX( DISTINCT col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + ( - MAX ( DISTINCT col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - 98 * + + col2 FROM tab1
----
-5782
-6664
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5917
SELECT - 24 * + + col1 + - 26 - + ( - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT - + col1 BETWEEN - - col0 AND col0 * col0 + + - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 24 * + + col1 + - 26 - + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT - + col1 BETWEEN - - col0 AND col0 * col0 + + - col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT + COUNT( * ) * + - 42 AS col1 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-5918
SELECT + COUNT ( * ) * + - 42 AS col1 FROM tab0
----
-126

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * col2 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 / + 11 FROM tab0 AS cor0 WHERE - ( + - 82 ) > ( NULL )
----

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

query I rowsort
SELECT DISTINCT 44 + + col1 FROM tab2 AS cor0
----
111
121
95

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 1 AS col1, 29 col2 FROM tab2, tab0 AS cor0
----
18 values hashing to c12ecd296f96660b296976fd68571152

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

query I rowsort
SELECT - col2 / col2 FROM tab0 WHERE + col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + SUM( ALL + + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5927
SELECT + SUM ( ALL + + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT ALL - col2 + + 95 DIV + + col0 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - col2 + + 95 / + + col0 FROM tab1
----
-58
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL - 62 * COUNT( * ) - - - COUNT( DISTINCT - - col0 ) FROM tab1 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - 62 * COUNT ( * ) - - - COUNT ( DISTINCT - - col0 ) FROM tab1 cor0
----
-189

query II rowsort
SELECT ALL + 87 + - - 47 + - col0 * ( + 65 ), + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2856
2601
-4026
5929
-4741
4489

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT + col2 DIV - + 6 - - 52 FROM tab1 AS cor0
----
36
41
43

skipif mysql # not compatible
query I rowsort label-5931
SELECT + col2 / - + 6 - - 52 FROM tab1 AS cor0
----
36
41
43

query I rowsort
SELECT ALL 51 * + - col1 FROM tab0 AS cor0
----
-1071
-4131
-51

query I rowsort
SELECT - col0 + 10 FROM tab0 cor0
----
-5
-77
-87

query I rowsort
SELECT ALL + col1 - 63 + col2 * + - 49 AS col1 FROM tab0 AS cor0
----
-2285
-4913
-532

query I rowsort
SELECT col2 + 98 AS col2 FROM tab1 AS cor0
----
157
166
194

query I rowsort
SELECT DISTINCT + - 43 - + col0 AS col2 FROM tab2 AS cor0
----
-107
-118
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL COUNT( * ) + - 44 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL COUNT ( * ) + - 44 FROM tab1 AS cor0
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL - MIN( - 22 ) * + 25 FROM tab1
----
550

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - MIN ( - 22 ) * + 25 FROM tab1
----
550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT DISTINCT 89 * - - col0 * + CAST( + col1 AS SIGNED ) * 21 FROM tab0
----
181293
2270835
3414663

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT 89 * - - col0 * + CAST ( + col1 AS INTEGER ) * 21 FROM tab0
----
181293
2270835
3414663

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

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

query I rowsort
SELECT DISTINCT + 69 * - col1 / - + col0 AS col2 FROM tab2 WHERE NOT col1 * - - col2 <> ( - col0 )
----

query I rowsort
SELECT - col2 * 48 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-2832
-3264
-4608

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5945
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab0 WHERE col1 + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab0 WHERE col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5946
SELECT DISTINCT 20, + COUNT( * ) AS col2 FROM tab1
----
20
3

skipif mysql # not compatible
query II rowsort label-5946
SELECT DISTINCT 20, + COUNT ( * ) AS col2 FROM tab1
----
20
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5948
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 75 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5948
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 75 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 * col0 * col1 + 57 AS col0, + col1 FROM tab2 cor0
----
-197063
77
-291393
67
-53901
51

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5951
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col1, col2 + col2 DIV + col1 AS col2, col0 AS col2 FROM tab1
----
9 values hashing to 419df0c710dc585928958a051dc15f63

skipif mysql # not compatible
query III rowsort label-5951
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1, col2 + col2 / + col1 AS col2, col0 AS col2 FROM tab1
----
9 values hashing to 419df0c710dc585928958a051dc15f63

query I rowsort
SELECT + col2 * + - col1 + + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - ( - 91 ) - - 14 + - 86
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5954
SELECT ALL + col1 DIV - 1 col0, ( + 4 ) FROM tab1 AS cor0
----
-14
4
-47
4
-5
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5954
SELECT ALL + col1 / - 1 col0, ( + 4 ) FROM tab1 AS cor0
----
-14
4
-47
4
-5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL - + MAX( + col0 ) FROM tab0 AS cor0 WHERE NULL >= + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - + MAX ( + col0 ) FROM tab0 AS cor0 WHERE NULL >= + 46
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 = + col1 * + col2 + - col0 + - - col1
----

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

query I rowsort
SELECT - col1 * 55 AS col1 FROM tab2
----
-2805
-3685
-4235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col1 - - 92 * 28 AS col2 FROM tab1
----
59
2571
68
2529
96
2562

query II rowsort
SELECT - col2 AS col2, col0 + + + ( + - col0 ) FROM tab2
----
-23
0
-40
0
-58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT 80 - + COUNT( * ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT 80 - + COUNT ( * ) AS col0 FROM tab2
----
77

query I rowsort
SELECT ALL 69 - - col2 + + col0 AS col0 FROM tab1 AS cor0
----
213
216
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col0 FROM tab0 WHERE NOT - col0 + - col2 <= - 69
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT col1 DIV + col0 + + + col1 - + CAST( - + 68 AS SIGNED ) + - - col2 * col0 col1 FROM tab2 AS cor0
----
1178
2706
4485

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT DISTINCT col1 / + col0 + + + col1 - + CAST ( - + 68 AS INTEGER ) + - - col2 * col0 col1 FROM tab2 AS cor0
----
1178
2706
4485

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + col2 * 54 + 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5968
SELECT ALL * FROM tab2 cor0 WHERE - 39 * - ( CAST( + col2 AS SIGNED ) ) - + - 34 BETWEEN - 25 * - - 7 AND col0
----

skipif mysql # not compatible
query III rowsort label-5968
SELECT ALL * FROM tab2 cor0 WHERE - 39 * - ( CAST ( + col2 AS INTEGER ) ) - + - 34 BETWEEN - 25 * - - 7 AND col0
----

query I rowsort
SELECT - 3 + - + 45 FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT - MAX( col1 ) col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-81

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5973
SELECT DISTINCT + SUM ( - col2 ) col2 FROM tab2 AS cor0
----
-121

query II rowsort
SELECT ALL 82, col0 * - + col2 AS col2 FROM tab1
----
82
-4896
82
-5015
82
-6188

query I rowsort
SELECT DISTINCT - col2 * - + 75 FROM tab2
----
1725
3000
4350

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - MAX ( 88 ) * SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
19976

query I rowsort
SELECT DISTINCT col0 + - - col2 * col2 FROM tab1
----
3566
4715
9267

query I rowsort
SELECT + 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5984
SELECT + col1 DIV + 90 AS col1, col0 DIV - - 79 - + 93 FROM tab0 AS cor0
----
0
-92
0
-92
0
-93

skipif mysql # not compatible
query II rowsort label-5984
SELECT + col1 / + 90 AS col1, col0 / - - 79 - + 93 FROM tab0 AS cor0
----
0
-92
0
-92
0
-93

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 IS NULL )
----
1
21
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT - 92 DIV - 1 FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5987
SELECT - 92 / - 1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - + col0 * - 15 * col1 AS col2 FROM tab2 AS cor0
----
35190
73920
75375

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 col2 FROM tab2 WHERE NULL IN ( ( col2 ) + 98 / 18, col1 + col1, + 89 )
----

query I rowsort
SELECT col2 + + col0 * - 70 AS col2 FROM tab1
----
-3474
-5891
-6302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col1 col0, - col1 FROM tab1
----
-1344
-14
-295
-5
-3196
-47

query II rowsort
SELECT + 57 + - col1, col1 FROM tab1
----
10
47
43
14
52
5

query I rowsort
SELECT ALL - col1 + 96 - - ( - col0 ) FROM tab1
----
-42
31
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL - SUM( DISTINCT + + col0 ) - + - COUNT( * ) FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - SUM ( DISTINCT + + col0 ) - + - COUNT ( * ) FROM tab2 AS cor0
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5999
SELECT ALL - - 81 DIV - 19 AS col2, COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-4
3

skipif mysql # not compatible
query II rowsort label-5999
SELECT ALL - - 81 / - 19 AS col2, COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-4
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT - SUM( - col2 ) * - 43 AS col0 FROM tab2 AS cor0
----
-5203

skipif mysql # not compatible
query I rowsort label-6000
SELECT - SUM ( - col2 ) * - 43 AS col0 FROM tab2 AS cor0
----
-5203

query I rowsort
SELECT ALL - col1 - - + 19 FROM tab2
----
-32
-48
-58

query II rowsort
SELECT ALL col1 AS col1, - col2 * + ( - col0 ) AS col2 FROM tab2
----
51
1058
67
4350
77
2560

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6004
SELECT COUNT ( DISTINCT - - 16 ) col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, 88 * + col2 FROM tab2 cor0
----
51
2024
67
5104
77
3520

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col2, col1 col0 FROM tab2
----
-1173
51
-3080
77
-3886
67

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

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL + + COUNT ( * ) * - 62 * 5 FROM tab0 WHERE NOT + + col2 + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL + + COUNT( ALL + - col0 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + + COUNT ( ALL + - col0 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2 * 94 col2, ( + + 43 ) + - 3 AS col2, - col2 FROM tab2 AS cor0
----
9 values hashing to 780b5dd6a751efa86d0f189e6ffbae17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT DISTINCT - 24 * 68 * - ( COUNT( * ) ) DIV + COUNT( * ) + + COUNT( DISTINCT + 70 ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
1624

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - 24 * 68 * - ( COUNT ( * ) ) / + COUNT ( * ) + + COUNT ( DISTINCT + 70 ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
1624

query I rowsort
SELECT + 34 + ( col0 ) FROM tab1
----
119
125
85

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

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

query I rowsort
SELECT ALL 1 + col2 + + + 45 FROM tab2 cor0 WHERE NOT 21 >= NULL
----

query I rowsort
SELECT - col0 + - 26 * - col1 + + col0 AS col0 FROM tab0 AS cor0
----
2106
26
546

query I rowsort
SELECT DISTINCT + 5 * 40 FROM tab2 AS cor0
----
200

query I rowsort
SELECT + col1 * 89 * + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-231512
-399579
-527721

query I rowsort
SELECT + 58 + 39 AS col2 FROM tab0 AS cor0
----
97
97
97

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 21 col1 FROM tab0
----
1827
2037
315

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

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE + + col2 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6028
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT + CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL 2 - - 38 AS col2 FROM tab2
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 - col1 * col2 * + + col1 col2, col0 * col2 AS col1 FROM tab0 AS cor0
----
-308367
705
-4410
870
-99
9603

query I rowsort
SELECT col1 * 26 + + col2 - - - 52 AS col1 FROM tab2 AS cor0
----
1297
1748
1990

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT - 71 - - COUNT( * ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT - 71 - - COUNT ( * ) FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 36
----
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 36
----
0

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT MAX( ALL - col1 ), + MAX( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-51
-46

skipif mysql # not compatible
query II rowsort label-6044
SELECT MAX ( ALL - col1 ), + MAX ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-51
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col2 - + 74 * col0 AS col0 FROM tab2
----
46
-3381
64
-4696
75
-5492

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

query I rowsort
SELECT DISTINCT - 96 * - col0 AS col2 FROM tab1
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT DISTINCT - SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT - SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6049
SELECT + CAST ( NULL AS INTEGER ) + - 25 + + COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col2 * + 57 AS col0 FROM tab2
----
1311
2280
3306

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT NULL = NULL OR NOT NULL BETWEEN col1 AND - 55 * - 59 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 * + - col2 col0 FROM tab2 AS cor0
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, col1, col1, - + col1 * - 36 - col2 + + 34, - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, col1, col1, - + col1 * - 36 - col2 + + 34, - 19 )
----
0

query I rowsort
SELECT 79 * - + 72 - 69 * col1 AS col0 FROM tab0 AS cor0
----
-11277
-5757
-7137

query I rowsort
SELECT ALL - ( + 71 ) + + col2 * - 60 AS col1 FROM tab2
----
-1451
-2471
-3551

query I rowsort
SELECT + col1 + - ( + col1 ) + 47 FROM tab1
----
47
47
47

query I rowsort
SELECT DISTINCT col0 + - 13 FROM tab0
----
2
74
84

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( NOT + - 31 NOT BETWEEN 74 * + col0 AND NULL )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 7 <= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab2 cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 93 - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 93 - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + col0, - col2 * 3 AS col1 FROM tab2 AS cor0
----
46
-69
64
-120
75
-174

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6068
SELECT - MIN( - + 28 ) col1, 1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6068
SELECT - MIN ( - + 28 ) col1, 1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
1

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

query I rowsort
SELECT + 61 * 42 - 25 * + + col1 AS col1 FROM tab0 AS cor0
----
2037
2537
537

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT - COUNT( * ) * - + 90 col0 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6071
SELECT DISTINCT - COUNT ( * ) * - + 90 col0 FROM tab0 AS cor0
----
270

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

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

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

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

query I rowsort
SELECT ALL col2 * + ( - + 47 ) * - 68 AS col0 FROM tab0 AS cor0
----
150212
316404
31960

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6075
SELECT ALL + 85 col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT col0 DIV - ( + + 51 ) FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT col0 / - ( + + 51 ) FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6078
SELECT 37 DIV CAST( + col1 AS SIGNED ) FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-6078
SELECT 37 / CAST ( + col1 AS INTEGER ) FROM tab1
----
0
2
7

query I rowsort
SELECT - col2 * + + 29 + - + col2 + + - col2 FROM tab2 AS cor0
----
-1240
-1798
-713

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT MIN( - col1 ) + - + MIN( ALL + 4 ) col1 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6081
SELECT MIN ( - col1 ) + - + MIN ( ALL + 4 ) col1 FROM tab0 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT COUNT( * ) + 18 AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6082
SELECT COUNT ( * ) + 18 AS col2 FROM tab1 AS cor0
----
21

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

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

query I rowsort
SELECT ALL + col2 - - + 88 * + col0 - - col2 FROM tab1 AS cor0
----
4680
7598
8144

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IN ( + col1, 71 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6087
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) * - col2 + + col1 + - - 40 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) * - col2 + + col1 + - - 40 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT DISTINCT - 29 * - MIN( col0 ) AS col0 FROM tab1
----
1479

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT - 29 * - MIN ( col0 ) AS col0 FROM tab1
----
1479

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT COUNT( * ) - + - ( - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT COUNT ( * ) - + - ( - COUNT ( * ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT - 62 - - 44 * - COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
-191

skipif mysql # not compatible
query I rowsort label-6091
SELECT - 62 - - 44 * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT 28 - + - MAX( 11 ) * - 64 FROM tab1
----
-676

skipif mysql # not compatible
query I rowsort label-6092
SELECT 28 - + - MAX ( 11 ) * - 64 FROM tab1
----
-676

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

skipif mysql # not compatible
query I rowsort label-6093
SELECT + 70 FROM tab2 WHERE - col2 * 14 * - - CAST ( NULL AS INTEGER ) / - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - 26 AS col0 FROM tab2
----
-20
-38
-49

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

query I rowsort
SELECT ALL - col2 - - - 84 FROM tab0
----
-131
-183
-94

query I rowsort
SELECT ALL 66 * - 49 FROM tab2 cor0
----
-3234
-3234
-3234

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + + col0 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT MAX( ALL + col0 ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT MAX ( ALL + col0 ) AS col1 FROM tab0 cor0
----
97

query I rowsort
SELECT 45 * + + ( col1 ) AS col0 FROM tab1
----
2115
225
630

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 11 * - col1 + - col0 = NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE + col0 <= + 75
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 57
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6105
SELECT ALL - col2 DIV ( 21 ), - 16 AS col1 FROM tab1 AS cor0
----
-2
-16
-3
-16
-4
-16

skipif mysql # not compatible
query II rowsort label-6105
SELECT ALL - col2 / ( 21 ), - 16 AS col1 FROM tab1 AS cor0
----
-2
-16
-3
-16
-4
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT ALL + 63 + + + ( - COUNT( * ) ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL + 63 + + + ( - COUNT ( * ) ) AS col2 FROM tab0
----
60

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

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

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

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 * - col0 AS col2 FROM tab2
----
-23
-2346
-40
-4928
-58
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT - COUNT( * ) * + 79 + - + 8 FROM tab0
----
-245

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - COUNT ( * ) * + 79 + - + 8 FROM tab0
----
-245

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

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) + col1 + col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT + col0 + + 86 + + - col0 * col1 AS col2 FROM tab2
----
-2214
-4778
-4864

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

query I rowsort
SELECT ALL ( 19 ) + + 3 + 27 FROM tab2 AS cor0
----
49
49
49

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

query I rowsort
SELECT ALL ( - + 93 ) - + 58 + col1 FROM tab1
----
-104
-137
-146

query I rowsort
SELECT + + col1 * + ( + col0 ) - - col0 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT DISTINCT + 23 DIV - 65 - COUNT( - col0 ) * MIN( DISTINCT col0 ) FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + 23 / - 65 - COUNT ( - col0 ) * MIN ( DISTINCT col0 ) FROM tab2 cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT + + MIN( DISTINCT - + ( - - 41 ) ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + + MIN ( DISTINCT - + ( - - 41 ) ) FROM tab1 AS cor0
----
-41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 72 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL 96 - - col1 FROM tab1 AS cor0
----
101
110
143

query I rowsort
SELECT + - 20 + - 7 FROM tab1 AS cor0
----
-27
-27
-27

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

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

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

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

query I rowsort
SELECT ALL + 67 FROM tab0, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

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

query I rowsort
SELECT ALL + 69 * + + col0 AS col0 FROM tab0 AS cor0
----
1035
6003
6693

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6129
SELECT DISTINCT MAX ( + col2 ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL 28 * - - col0 AS col1 FROM tab1 AS cor0
----
1428
2380
2548

query I rowsort
SELECT - col0 FROM tab2 WHERE col2 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT 7 + - col2 * 74 AS col0 FROM tab2
----
-1695
-2953
-4285

query I rowsort
SELECT - col2 FROM tab0 WHERE - ( - 49 ) + + 75 NOT IN ( col0 )
----
-10
-47
-99

query I rowsort
SELECT + col0 + - col0 * + col1 FROM tab2
----
-2300
-4864
-4950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL - MAX( - 5 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL - MAX ( - 5 ) FROM tab0
----
5

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

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

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

query I rowsort
SELECT 42 + col2 * 22 FROM tab0
----
1076
2220
262

query I rowsort
SELECT ALL - 73 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6143
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) <= - CAST( NULL AS SIGNED ) + + ( - col2 ) * - 30
----

skipif mysql # not compatible
query III rowsort label-6143
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) <= - CAST ( NULL AS INTEGER ) + + ( - col2 ) * - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL COUNT( * ) * 73 AS col0 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL COUNT ( * ) * 73 AS col0 FROM tab0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT - 1 * - COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6145
SELECT - 1 * - COUNT ( * ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 22 * col2 + - col2 FROM tab2
----
1218
483
840

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT - col1 + col0 DIV col0 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-6148
SELECT - col1 + col0 / col0 FROM tab1
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT - 91 + - COUNT( * ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-6149
SELECT - 91 + - COUNT ( * ) FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL SUM( - 59 ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL SUM ( - 59 ) FROM tab2
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col0 + + 55 AS col0 FROM tab0 WHERE ( + ( col2 ) ) IS NOT NULL
----
-170
-7514
-9354

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col0 + + 55 AS col0 FROM tab0 WHERE ( + ( col2 ) ) IS NOT NULL
----
-170
-7514
-9354

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * col1 FROM tab2 WHERE NOT + 63 BETWEEN ( + 72 * + col0 ) AND NULL
----
2346
4928
5025

query I rowsort
SELECT - 15 + col1 FROM tab1
----
-1
-10
32

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

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

query I rowsort
SELECT DISTINCT 59 * col1 AS col0 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT - 5 + col2 AS col0 FROM tab1
----
54
63
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 56 )
----

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - 71 AS col1 FROM tab0 AS cor0
----
1065
6177
6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT ALL CAST( + col2 AS SIGNED ) * + 75 FROM tab2 AS cor0
----
1725
3000
4350

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL CAST ( + col2 AS INTEGER ) * + 75 FROM tab2 AS cor0
----
1725
3000
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT DISTINCT SUM( DISTINCT + col0 ) DIV SUM( col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6165
SELECT DISTINCT SUM ( DISTINCT + col0 ) / SUM ( col1 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 95 + 2 AS col1 FROM tab0 AS cor0
----
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * + 77 + 72 col1 FROM tab1 WHERE NULL <= + 32
----

query I rowsort
SELECT DISTINCT - 96 FROM tab2 AS cor0 CROSS JOIN tab2
----
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 80 col2 FROM tab1
----
-29
11
5

query I rowsort
SELECT ALL col2 * + 26 + - col1 AS col1 FROM tab2 AS cor0
----
1441
547
963

query I rowsort
SELECT DISTINCT + + col2 - - 62 FROM tab1 AS cor0
----
121
130
158

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT ALL - col1 - - col1 DIV + col2 col2 FROM tab0 AS cor0
----
-1
-19
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6174
SELECT ALL - col1 - - col1 / + col2 col2 FROM tab0 AS cor0
----
-1
-19
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6175
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6175
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 59 AS col2 FROM tab1 AS cor0 WHERE 98 NOT IN ( col2 )
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT - - MAX( ALL + 5 ) - - COUNT( * ) AS col1 FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - - MAX ( ALL + 5 ) - - COUNT ( * ) AS col1 FROM tab2 cor0
----
8

query I rowsort
SELECT - col0 - col0 * + 5 FROM tab1 AS cor0
----
-306
-510
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 55 * col1 col0 FROM tab0 cor0
----
1155
4455
55

query I rowsort
SELECT + 46 * ( col1 ) FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT - col2 * - - ( col0 ) * ( - CAST( 0 AS SIGNED ) ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6181
SELECT - col2 * - - ( col0 ) * ( - CAST ( 0 AS INTEGER ) ) AS col1 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6182
SELECT + COUNT ( * ) / + 93 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - 54 * + ( - COUNT( * ) ) AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-6183
SELECT - 54 * + ( - COUNT ( * ) ) AS col2 FROM tab0
----
162

query I rowsort
SELECT - col2 * - 50 AS col2 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT ALL + 19 * + 50 FROM tab2
----
950
950
950

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 99 / col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 66 col0 FROM tab1 AS cor0
----
-3366
-5610
-6006

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT COUNT( * ) * + 77 * + COUNT( * ) FROM tab2
----
693

skipif mysql # not compatible
query I rowsort label-6191
SELECT COUNT ( * ) * + 77 * + COUNT ( * ) FROM tab2
----
693

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

query I rowsort
SELECT DISTINCT col2 * + 84 AS col2 FROM tab1
----
4956
5712
8064

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 98
----

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

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - - col1 / col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + col0 * - 94 AS col1 FROM tab1 cor0
----
-4794
-7990
-8554

query I rowsort
SELECT ALL 10 + - 90 FROM tab2 cor0 WHERE ( col0 ) BETWEEN ( ( + 86 ) ) AND ( col0 )
----

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

query I rowsort
SELECT DISTINCT 47 + - - 44 FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - 75 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6204
SELECT - CAST( 32 AS SIGNED ) + - 66 col2 FROM tab1
----
-98
-98
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6204
SELECT - CAST ( 32 AS INTEGER ) + - 66 col2 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT - 93 + - 73 AS col0 FROM tab0
----
-166
-166
-166

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

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

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

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( + + 71 )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 39 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + - 42 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT DISTINCT + col0 * - col0 + + 69 + + + col1 DIV - col0 + 37 AS col1 FROM tab0 AS cor0
----
-124
-7463
-9303

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT + col0 * - col0 + + 69 + + + col1 / - col0 + 37 AS col1 FROM tab0 AS cor0
----
-124
-7463
-9303

query I rowsort
SELECT DISTINCT - - 9 - - col2 * col2 * - + col2 FROM tab2 AS cor0
----
-12158
-195103
-63991

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6217
SELECT ALL + COUNT ( ALL 30 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - SUM( 59 ) FROM tab2 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6218
SELECT - SUM ( 59 ) FROM tab2 cor0
----
-177

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + + 89 * col0 FROM tab2 AS cor0
----
-188324
-364544
-500625

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

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

query I rowsort
SELECT ALL - - 84 * - + 76 * + - col0 FROM tab2 AS cor0
----
293664
408576
478800

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT SUM( DISTINCT - col2 ) * - 90 AS col2 FROM tab2
----
10890

skipif mysql # not compatible
query I rowsort label-6224
SELECT SUM ( DISTINCT - col2 ) * - 90 AS col2 FROM tab2
----
10890

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 > 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 26 AS col1, + col0 + + ( - 9 ) - col1 AS col1 FROM tab2
----
26
-1
26
-14
26
-22

query II rowsort
SELECT DISTINCT 69 AS col1, + col2 - - 91 * + col0 AS col1 FROM tab1 AS cor0
----
69
4737
69
7794
69
8349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col2 * + 74 col0 FROM tab0 AS cor0
----
-10
740
-47
3478
-99
7326

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= col1 * - 78 + - + col0
----

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

skipif mysql # not compatible
query II rowsort label-6231
SELECT col1 AS col0, CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

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

query I rowsort
SELECT - 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT DISTINCT CAST( + + 49 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT CAST ( + + 49 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query I rowsort
SELECT + 72 * - col0 + col2 + col2 FROM tab2 AS cor0
----
-3266
-4528
-5284

query I rowsort
SELECT + col2 + + - 3 AS col0 FROM tab1 AS cor0
----
56
65
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT ALL + - CAST( + MIN( DISTINCT ( + col0 ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + - CAST ( + MIN ( DISTINCT ( + col0 ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
NULL

query I rowsort
SELECT - - 71 * 87 * + col1 + - col0 + - + col2 FROM tab2 AS cor0
----
314958
413726
475525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col2 FROM tab2 AS cor0 WHERE + col2 NOT IN ( + - col1 / + ( + col0 ) )
----
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT col0 FROM tab1 WHERE - col0 NOT IN ( - col1, + CAST( + - col2 AS SIGNED ) - + - col1 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6241
SELECT col0 FROM tab1 WHERE - col0 NOT IN ( - col1, + CAST ( + - col2 AS INTEGER ) - + - col1 )
----
51
85
91

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

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

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

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

query I rowsort
SELECT DISTINCT + 72 + - col2 AS col0 FROM tab1
----
-24
13
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( 83 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT COUNT( * ) * - + ( + 50 ) AS col2 FROM tab2 AS cor0 WHERE + 69 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6249
SELECT COUNT ( * ) * - + ( + 50 ) AS col2 FROM tab2 AS cor0 WHERE + 69 IN ( col0 )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6250
SELECT ALL - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT DISTINCT + 0, + 66 AS col0 FROM tab1 cor0
----
0
66

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

query I rowsort
SELECT DISTINCT col1 - - - 46 * col0 FROM tab2
----
-2065
-2867
-3383

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT SUM( ( 46 ) ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-6254
SELECT SUM ( ( 46 ) ) FROM tab2
----
138

query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab1, tab2 AS cor0
----
39

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + - ( 17 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT + SUM( ALL ( 51 ) ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6262
SELECT + SUM ( ALL ( 51 ) ) FROM tab0 AS cor0
----
153

query I rowsort
SELECT ALL - 53 * - col1 FROM tab1 AS cor0
----
2491
265
742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab1 AS cor0 WHERE NOT - col1 * col2 > 93 / + col1 * + 94 / 19 + 93
----
-425
-4277
-714

query I rowsort
SELECT + 45 * col0 FROM tab0 AS cor0 WHERE NOT - col1 - - col0 < ( ( ( + ( + 31 ) ) ) )
----
3915
4365

query I rowsort
SELECT ALL - - col0 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT DISTINCT - col1 DIV 81 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - col1 / 81 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT MAX( + col1 ) * - MAX( - - 17 ) AS col2 FROM tab2
----
-1309

skipif mysql # not compatible
query I rowsort label-6269
SELECT MAX ( + col1 ) * - MAX ( - - 17 ) AS col2 FROM tab2
----
-1309

query II rowsort
SELECT col0, - col0 * + col0 FROM tab1
----
51
-2601
85
-7225
91
-8281

query I rowsort
SELECT col0 * + + 93 AS col2 FROM tab0
----
1395
8091
9021

query II rowsort
SELECT ALL ( + 1 ) * + - 79 AS col1, - col0 AS col2 FROM tab1
----
-79
-51
-79
-85
-79
-91

query II rowsort
SELECT DISTINCT 28 AS col0, 49 + + col2 * + 98 + - col2 FROM tab0
----
28
1019
28
4608
28
9652

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + MIN( 29 ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-6274
SELECT + MIN ( 29 ) FROM tab1
----
29

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT ALL + ( + + SUM( col0 ) ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + ( + + SUM ( col0 ) ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col2, + col0 + - - ( + 71 ) + + 71 AS col1 FROM tab0
----
10
229
47
157
99
239

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

query I rowsort
SELECT + ( + + 42 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

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

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

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

query I rowsort
SELECT + col0 + - - ( col2 ) + 59 FROM tab2 AS cor0
----
128
163
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - COUNT( DISTINCT + col0 ) + + 15 AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6284
SELECT - COUNT ( DISTINCT + col0 ) + + 15 AS col1 FROM tab1
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6285
SELECT DISTINCT * FROM tab1 WHERE + col2 + + col1 NOT IN ( 85 + + + 80, CAST( + col1 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6285
SELECT DISTINCT * FROM tab1 WHERE + col2 + + col1 NOT IN ( 85 + + + 80, CAST ( + col1 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL - COUNT ( * ) + + 73 FROM tab2
----
70

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * - ( + col0 ), + col1 col1 FROM tab0 AS cor0
----
-225
81
-7569
21
-9409
1

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

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

query I rowsort
SELECT - - 71 - col2 FROM tab1 AS cor0
----
-25
12
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT + COUNT( * ) - + 11 AS col0 FROM tab2 WHERE NOT + 21 * + + CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
-8

skipif mysql # not compatible
query I rowsort label-6292
SELECT + COUNT ( * ) - + 11 AS col0 FROM tab2 WHERE NOT + 21 * + + CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT ALL COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
3
3

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 80 col0 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT DISTINCT - 26 * 0 * - - ( 30 ) * + 60 DIV 99 + + - col2 col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6300
SELECT DISTINCT - 26 * 0 * - - ( 30 ) * + 60 / 99 + + - col2 col2 FROM tab2 AS cor0
----
-23
-40
-58

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

query I rowsort
SELECT - 73 * - + col0 FROM tab0 cor0
----
1095
6351
7081

onlyif mysql # DIV for integer division: 
query II rowsort label-6303
SELECT ALL - + col0 DIV - col2 + - col0 AS col1, + col2 * + - 31 AS col1 FROM tab1 AS cor0
----
-51
-2976
-84
-1829
-90
-2108

skipif mysql # not compatible
query II rowsort label-6303
SELECT ALL - + col0 / - col2 + - col0 AS col1, + col2 * + - 31 AS col1 FROM tab1 AS cor0
----
-51
-2976
-84
-1829
-90
-2108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6305
SELECT DISTINCT - col0 col1 FROM tab2 WHERE NOT ( - CAST( NULL AS DECIMAL ) / col2 ) BETWEEN NULL AND + 90 - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6305
SELECT DISTINCT - col0 col1 FROM tab2 WHERE NOT ( - CAST ( NULL AS REAL ) / col2 ) BETWEEN NULL AND + 90 - col1
----

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

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) AS col1 FROM tab1
----
14
47
5

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

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

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

query I rowsort
SELECT col2 + 23 + + 72 FROM tab2
----
118
135
153

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + 96 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 92
----
NULL

query I rowsort
SELECT ALL - col1 * - 64 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) = ( - 88 )
----
1344
5184
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT COUNT( * ) + + 56 AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6313
SELECT COUNT ( * ) + + 56 AS col1 FROM tab0 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab2 AS cor0 WHERE 29 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + - 42 ) FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 81 IN ( 3 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6317
SELECT DISTINCT COUNT( * ) DIV - + 7 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT COUNT ( * ) / - + 7 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL + 62 FROM tab1 WHERE - col2 NOT IN ( + 81 )
----
62
62
62

query I rowsort
SELECT 1 - 83 + + - col2 AS col1 FROM tab1
----
-141
-150
-178

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

query I rowsort
SELECT col2 - + ( - col1 ) AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL - 62 * + 85 AS col0 FROM tab0 AS cor0
----
-5270
-5270
-5270

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( - col0, - col0, + 0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT DISTINCT CAST( 47 AS SIGNED ) * - 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-188

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT CAST ( 47 AS INTEGER ) * - 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT MAX( DISTINCT 52 ) AS col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6327
SELECT MAX ( DISTINCT 52 ) AS col2 FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT + 59 * - col0 FROM tab1 AS cor0
----
-3009
-5015
-5369

query I rowsort
SELECT ALL - + col1 * + 43 * + 95 AS col2 FROM tab1 AS cor0
----
-191995
-20425
-57190

query I rowsort
SELECT 36 * 93 * + col0 AS col1 FROM tab1 AS cor0
----
170748
284580
304668

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - 65 = NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT + 33 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT + col1 * + - ( + 3 ) / 61 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT + col1 * + - ( + 3 ) / 61 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT MAX( 61 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-6334
SELECT MAX ( 61 ) FROM tab1
----
61

query I rowsort
SELECT 98 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT 88 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6336
SELECT 88 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT + 56 + col2 * col2 FROM tab1
----
3537
4680
9272

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6339
SELECT DISTINCT - + col2 DIV + - col2, - col1 AS col1 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

skipif mysql # not compatible
query II rowsort label-6339
SELECT DISTINCT - + col2 / + - col2, - col1 AS col1 FROM tab1 AS cor0
----
1
-14
1
-47
1
-5

query I rowsort
SELECT DISTINCT - + col0 * 78 - + 7 FROM tab1 AS cor0
----
-3985
-6637
-7105

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - 7 * + COUNT( + + 91 ) + 22 * ( + + 96 ) FROM tab1 AS cor0
----
2091

skipif mysql # not compatible
query I rowsort label-6343
SELECT - 7 * + COUNT ( + + 91 ) + 22 * ( + + 96 ) FROM tab1 AS cor0
----
2091

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT + col0 DIV col2 + + 14 AS col0 FROM tab1 AS cor0
----
14
15
15

skipif mysql # not compatible
query I rowsort label-6344
SELECT + col0 / col2 + + 14 AS col0 FROM tab1 AS cor0
----
14
15
15

query I rowsort
SELECT - col1 * - 53 + - col0 + ( - 43 ) FROM tab1 AS cor0
----
137
2357
648

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT + - col2 * - col1 + + + col1 DIV + ( 55 ) FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-6346
SELECT + - col2 * - col1 + + + col1 / + ( 55 ) FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT col1 + + 66 AS col2 FROM tab2
----
117
133
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL SUM( + 40 ) + COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL SUM ( + 40 ) + COUNT ( * ) FROM tab0
----
123

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

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

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

skipif mysql # not compatible
query I rowsort label-6350
SELECT 32 * - - 73 * - + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT 54 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6351
SELECT 54 / col2 AS col2 FROM tab0 AS cor0
----
0
1
5

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT 35 + COUNT( * ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT 35 + COUNT ( * ) FROM tab1 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 18 NOT IN ( + 71 * - 49, 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT + 44 + - - 30 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT + ( - - 5 ) * + - col2 DIV + col2 + - 5 * - ( col1 ) FROM tab0
----
0
100
400

skipif mysql # not compatible
query I rowsort label-6360
SELECT + ( - - 5 ) * + - col2 / + col2 + - 5 * - ( col1 ) FROM tab0
----
0
100
400

query I rowsort
SELECT DISTINCT 79 * - - 99 AS col2 FROM tab0
----
7821

query I rowsort
SELECT ALL - col0 * - col0 + + col2 AS col1 FROM tab1
----
2697
7284
8349

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL IN ( + 55 )
----

query I rowsort
SELECT DISTINCT - col2 + + - ( - ( + 41 ) ) AS col1 FROM tab1
----
-18
-27
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + col0 * + - 60 * - col0 AS col1 FROM tab2 AS cor0
----
126960
245760
337500

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 * 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6368
SELECT + - 50 AS col1, - col0 DIV 66 FROM tab0 AS cor0
----
-50
-1
-50
-1
-50
0

skipif mysql # not compatible
query II rowsort label-6368
SELECT + - 50 AS col1, - col0 / 66 FROM tab0 AS cor0
----
-50
-1
-50
-1
-50
0

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 * + col0 * + + 85 * + col2 AS col1, col2 * col0 * col0 FROM tab0
----
-6433650
75690
-79176735
931491
-898875
10575

query I rowsort
SELECT ALL - 67 * + 88 FROM tab0
----
-5896
-5896
-5896

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT ALL + col1 DIV + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + col1 / + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6375
SELECT ALL + CAST( + 3 AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL OR - ( + - 40 ) + col2 IS NULL
----
3
0

skipif mysql # not compatible
query II rowsort label-6375
SELECT ALL + CAST ( + 3 AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL OR - ( + - 40 ) + col2 IS NULL
----
3
0

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE + 59 <= - col1 - - col1
----

query II rowsort
SELECT ALL + - 40 AS col0, + ( col1 ) * - - 27 + - 37 AS col0 FROM tab2 AS cor0
----
-40
1340
-40
1772
-40
2042

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT ALL + 9 DIV - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL + 9 / - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * 49 AS col2 FROM tab1 AS cor0 WHERE NULL >= col0
----

query II rowsort
SELECT DISTINCT - col2 - 62, + col2 FROM tab1 AS cor0 WHERE col1 + - col2 IS NOT NULL
----
-121
59
-130
68
-158
96

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

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

query II rowsort
SELECT ALL 58 * - 82 + 21 AS col1, AVG ( 58 ) FROM tab2 cor0 WHERE NULL <= - col2
----
-4735
NULL

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

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL 89 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 + + - col0 <> NULL OR NOT NULL > NULL
----

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

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT 7 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT + col1 * + 51 * col2 AS col2 FROM tab2
----
157080
198186
59823

query I rowsort
SELECT ( - col0 ) + col1 + - + col1 - + col0 + + + col1 * - 80 * - - col0 AS col0 FROM tab0
----
-146334
-7954
-97230

query I rowsort
SELECT 25 + + col1 AS col2 FROM tab0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT DISTINCT + - SUM( - 7 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT + - SUM ( - 7 ) FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + - SUM( - col2 ) * + 22 AS col1 FROM tab0 AS cor0
----
3432

skipif mysql # not compatible
query I rowsort label-6392
SELECT + - SUM ( - col2 ) * + 22 AS col1 FROM tab0 AS cor0
----
3432

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

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

skipif mysql # not compatible
query I rowsort label-6394
SELECT + - SUM ( - 65 ) * - ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
5265

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT DISTINCT COUNT( col2 ), MIN( + col0 ) col1 FROM tab2
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6395
SELECT DISTINCT COUNT ( col2 ), MIN ( + col0 ) col1 FROM tab2
----
3
46

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT + 95 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - 76 * col0 * - col1 FROM tab1 AS cor0
----
32300
325052
54264

query I rowsort
SELECT - + col0 + col2 - - col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + - col1 * 41 AS col2 FROM tab0 AS cor0
----
-3321
-41
-861

query I rowsort
SELECT DISTINCT - col2 * - col2 * - + col1 AS col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT - 92 * col2 AS col0 FROM tab1
----
-5428
-6256
-8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 * - 77 * - col1 col1 FROM tab2
----
306306
402402
462462

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT ALL 81 DIV + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL 81 / + col0 AS col2 FROM tab0
----
0
0
5

query I rowsort
SELECT DISTINCT + + ( - 20 ) * - 49 * 88 AS col0 FROM tab2 WHERE + + ( - - col2 ) + - + 46 / + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 98 AS col0 FROM tab1 AS cor0
----
4998
8330
8918

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + 71 * + col1 IS NOT NULL
----

query I rowsort
SELECT + ( - col0 ) * + col0 * + col0 * col0 + - - col0 FROM tab2
----
-16777152
-31640550
-4477410

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - + MIN( col1 ) + + - COUNT( * ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6413
SELECT - + MIN ( col1 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT + 59 DIV - COUNT( * ) + + - 34 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6414
SELECT + 59 / - COUNT ( * ) + + - 34 FROM tab0 AS cor0
----
-53

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

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

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

query I rowsort
SELECT DISTINCT + 1 * + 61 + + col0 AS col0 FROM tab0
----
148
158
76

query I rowsort
SELECT DISTINCT - ( - 18 ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL ( - 38 ) * - - MIN( ALL - col2 ) + 20 + + + 35 col2 FROM tab2
----
2259

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6420
SELECT ALL ( - 38 ) * - - MIN ( ALL - col2 ) + 20 + + + 35 col2 FROM tab2
----
2259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT - ( + CAST( ( + col0 ) AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6421
SELECT - ( + CAST ( ( + col0 ) AS INTEGER ) ) FROM tab2
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col0, - col0 * + col2 + + - col2 FROM tab2
----
46
-1081
64
-2600
75
-4408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL COUNT( * ) - 27 AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL COUNT ( * ) - 27 AS col2 FROM tab1 AS cor0
----
-24

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 94
----

query I rowsort
SELECT - 31 + - col0 FROM tab0 WHERE - + 40 IS NOT NULL
----
-118
-128
-46

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
90

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

query I rowsort
SELECT - - 63 * + col2 AS col2 FROM tab1 AS cor0
----
3717
4284
6048

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6434
SELECT ALL - SUM( ALL - col1 ) AS col0, - CAST( NULL AS SIGNED ) FROM tab0
----
103
NULL

skipif mysql # not compatible
query II rowsort label-6434
SELECT ALL - SUM ( ALL - col1 ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0
----
103
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT COUNT( * ) * + 71 AS col1 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT COUNT ( * ) * + 71 AS col1 FROM tab1
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-6436
SELECT - COUNT( + - 5 ) * - 69 AS col2, - COUNT( * ) * - 49 FROM tab2
----
207
147

skipif mysql # not compatible
query II rowsort label-6436
SELECT - COUNT ( + - 5 ) * - 69 AS col2, - COUNT ( * ) * - 49 FROM tab2
----
207
147

query I rowsort
SELECT + 42 * col1 AS col2 FROM tab0
----
3402
42
882

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL 90 * - MIN( + + 88 ) col1 FROM tab1
----
-7920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6438
SELECT ALL 90 * - MIN ( + + 88 ) col1 FROM tab1
----
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT SUM( - CAST( NULL AS SIGNED ) ) / + 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-6439
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) / + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL + - col0 * + + 87, col0 AS col1 FROM tab2 AS cor0
----
-4002
46
-5568
64
-6525
75

query II rowsort
SELECT DISTINCT - + ( - col1 ) * col1 AS col0, col2 + - col1 FROM tab0 AS cor0
----
1
98
441
-11
6561
-34

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + 87 * col1 * + col1 = 90 + - col1 * + col1
----
15
87
97

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

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

query I rowsort
SELECT ALL ( + 2 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 - - 62 - ( + col0 ) - - col2 - + - col0 * - 1 + - 73 + - + col2 * + + col1 * - col2 + + ( + 0 ) + - col1 + - col0 / - col2 / + col2 / - - 15 >= ( - 15 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * - - ( + 68 ), + col2 * - + col0 + - 98 / - ( col1 ) * col2 / - 95 * + col0 - col0 + - col1 FROM tab2 cor0 WHERE + col1 * col2 > NULL
----

query I rowsort
SELECT DISTINCT - - 87 * col2 AS col0 FROM tab1 AS cor0
----
5133
5916
8352

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - + 56 NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT DISTINCT + 72, + 53 AS col2 FROM tab2 AS cor0
----
72
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT + ( COUNT( * ) ) + ( - + 62 ) * - - 27 + - 31 - + - COUNT( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-1699

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT + ( COUNT ( * ) ) + ( - + 62 ) * - - 27 + - 31 - + - COUNT ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-1699

query I rowsort
SELECT + col1 * + 73 * col2 + + col0 + + 20 + - - 34 FROM tab2 cor0
----
224958
283807
85729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT DISTINCT ( + - ( + 27 ) ) + + - col2 DIV + + col1 - - col2 + + - col0 FROM tab2
----
-44
-50
-51

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT ( + - ( + 27 ) ) + + - col2 / + + col1 - - col2 + + - col0 FROM tab2
----
-44
-50
-51

query I rowsort
SELECT col0 * - 93 + col2 AS col2 FROM tab2
----
-4255
-5912
-6917

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT - 21 * SUM( 10 ) - + COUNT( * ) FROM tab1 AS cor0
----
-633

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - 21 * SUM ( 10 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-633

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

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

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

query II rowsort
SELECT + col2 AS col1, col1 + + - col2 * - col0 * + col0 FROM tab1 AS cor0
----
59
426280
68
563155
96
249710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT DISTINCT CAST( + - ( - col0 ) AS SIGNED ) * 5 AS col0 FROM tab2 AS cor0
----
230
320
375

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT CAST ( + - ( - col0 ) AS INTEGER ) * 5 AS col0 FROM tab2 AS cor0
----
230
320
375

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 * - col2 AND + 12 + + 19 + + + col0 / + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT 3 * - col1 * + 6 IS NULL
----
10
47
99

query I rowsort
SELECT + + 13 AS col2 FROM tab2 AS cor0
----
13
13
13

query II rowsort
SELECT ALL + col0 AS col0, - col2 * - col2 AS col2 FROM tab2
----
46
529
64
1600
75
3364

query II rowsort
SELECT + 79 AS col2, + col0 AS col1 FROM tab2
----
79
46
79
64
79
75

query I rowsort
SELECT + col1 * 8 AS col0 FROM tab0
----
168
648
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + col0 col1, col2 AS col0 FROM tab0
----
196
99
62
47
97
10

query I rowsort
SELECT + - col1 + + 45 FROM tab2 AS cor0
----
-22
-32
-6

query I rowsort
SELECT + + col2 * + col1 + + + ( - + 13 ) FROM tab0 AS cor0
----
197
3794
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT + COUNT( * ) * + 47 AS col2 FROM tab2 cor0
----
141

skipif mysql # not compatible
query I rowsort label-6472
SELECT + COUNT ( * ) * + 47 AS col2 FROM tab2 cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6473
SELECT ALL + col1 + + col1 * col0 col1, - CAST( + col2 AS SIGNED ) * 75 + - col2 AS col1 FROM tab2 AS cor0
----
2397
-1748
5005
-3040
5092
-4408

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6473
SELECT ALL + col1 + + col1 * col0 col1, - CAST ( + col2 AS INTEGER ) * 75 + - col2 AS col1 FROM tab2 AS cor0
----
2397
-1748
5005
-3040
5092
-4408

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

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

query I rowsort
SELECT DISTINCT + 81 + col0 AS col1 FROM tab0
----
168
178
96

query I rowsort
SELECT ALL + 87 + 8 * + - col2 + col0 - - ( + 14 ) FROM tab2
----
-155
-288
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 63 - + col2 + - + col0 col0 FROM tab1
----
171
2802
735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT ALL col2 - + col2 * - CAST( - - 6 AS SIGNED ) col2 FROM tab1
----
413
476
672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6478
SELECT ALL col2 - + col2 * - CAST ( - - 6 AS INTEGER ) col2 FROM tab1
----
413
476
672

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT 45 + col0 DIV - ( + + 97 ) FROM tab0 cor0
----
44
45
45

skipif mysql # not compatible
query I rowsort label-6479
SELECT 45 + col0 / - ( + + 97 ) FROM tab0 cor0
----
44
45
45

query I rowsort
SELECT ALL + 4 - + col2 * 26 * - col1 FROM tab0 AS cor0
----
2578
5464
98986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + - col2 col1 FROM tab0 AS cor0
----
-36
16
53

query I rowsort
SELECT 80 * + + 92 AS col0 FROM tab2
----
7360
7360
7360

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6484
SELECT + COUNT( * ) * ( - 7 ) DIV + - 76 * - COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6484
SELECT + COUNT ( * ) * ( - 7 ) / + - 76 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query II rowsort
SELECT ALL + col2 * - + col0, - 78 AS col0 FROM tab1 AS cor0
----
-4896
-78
-5015
-78
-6188
-78

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

query II rowsort
SELECT ALL + ( - col1 ) AS col0, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - - 27 AS col1 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT ( 44 ) FROM tab1
----
44
44
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT MIN( ALL + 29 ) * + + 94 AS col1 FROM tab0
----
2726

skipif mysql # not compatible
query I rowsort label-6493
SELECT MIN ( ALL + 29 ) * + + 94 AS col1 FROM tab0
----
2726

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 47 ) <= 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL col2 + - 62 * 66 AS col0 FROM tab1
----
-3996
-4024
-4033

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + + COUNT( * ) + - 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-6497
SELECT + + COUNT ( * ) + - 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-58

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
37

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

skipif mysql # not compatible
query I rowsort label-6499
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( - 59 ) * 90 FROM tab2
----
-5310

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6501
SELECT * FROM tab0 AS cor0 WHERE NOT - 0 / + col0 * + + col1 + - col0 + - - 18 + - col1 <= + + CAST( NULL AS SIGNED ) + - ( + col2 ) / 0 AND NOT ( NULL ) BETWEEN + col0 AND + + 21
----

skipif mysql # not compatible
query III rowsort label-6501
SELECT * FROM tab0 AS cor0 WHERE NOT - 0 / + col0 * + + col1 + - col0 + - - 18 + - col1 <= + + CAST ( NULL AS INTEGER ) + - ( + col2 ) / 0 AND NOT ( NULL ) BETWEEN + col0 AND + + 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - 19 * - + col0 col2 FROM tab2 AS cor0
----
1293
1492
925

query I rowsort
SELECT 0 + + 49 AS col2 FROM tab1 AS cor0
----
49
49
49

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

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

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

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

query I rowsort
SELECT - 14 + + 46 AS col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT 0 * + col2 + - - col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT 88 * + 15 AS col1 FROM tab2
----
1320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 48 col1 FROM tab1
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - - MIN( 33 ) AS col0 FROM tab2 WHERE - 65 * - - ( + + col2 ) IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-6510
SELECT - - MIN ( 33 ) AS col0 FROM tab2 WHERE - 65 * - - ( + + col2 ) IS NOT NULL
----
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6511
SELECT DISTINCT + CAST( - - ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) * + 5 - - + 37 AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6511
SELECT DISTINCT + CAST ( - - ( CAST ( NULL AS INTEGER ) ) AS REAL ) * + 5 - - + 37 AS col0, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab0 WHERE + 76 * col0 * + 84 / col2 IN ( + - col2 )
----

query I rowsort
SELECT ALL + + 21 + - + col2 FROM tab1 WHERE NOT - col0 * + - ( col2 ) + + col1 < col2 * + col1 + col0
----
-38
-47
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT DISTINCT 46 DIV + + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT 46 / + + col2 FROM tab2
----
0
1
2

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

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

query II rowsort
SELECT - + col1 AS col1, - col0 + - 53 + + 70 * - - col1 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-14
699616
-47
14071186
-5
148612

query I rowsort
SELECT ALL 79 + + - col0 + - + 59 + + 46 + - 82 * col1 * + + col0 * col1 AS col2 FROM tab1
----
-16483583
-174269
-819657

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6518
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - - CAST( - 43 AS DECIMAL ) = + + col0 * + ( - 98 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - - CAST ( - 43 AS REAL ) = + + col0 * + ( - 98 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL MIN( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT - col2 <> - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL MIN ( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT - col2 <> - 22
----
NULL

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

query I rowsort
SELECT DISTINCT col2 + - 91 + + col1 + + - col0 FROM tab2
----
-38
-41
-63

query I rowsort
SELECT + 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL 13 + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL 13 + COUNT ( * ) FROM tab1
----
16

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

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

query I rowsort
SELECT + + 8 - + 15 AS col1 FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NULL = 99 OR ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 43 col1 FROM tab0
----
-4
-56
33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - - 62, col2 + - - 30 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT + MAX( + - 88 ) FROM tab2 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6528
SELECT + MAX ( + - 88 ) FROM tab2 cor0
----
-88

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 * + - col2 > - + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + 5 - col0 - + + col0 AS col0 FROM tab1
----
-165
-177
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT + MAX( - ( + 88 ) ) AS col2 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT + MAX ( - ( + 88 ) ) AS col2 FROM tab0
----
-88

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

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT col0 + + ( + + 94 ) + - + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT - 71 - + - COUNT( * ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-6535
SELECT - 71 - + - COUNT ( * ) FROM tab2
----
-68

query I rowsort
SELECT DISTINCT + col1 - - col1 * + 14 FROM tab1
----
210
705
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT COUNT( * ) - - - 71 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-6537
SELECT COUNT ( * ) - - - 71 FROM tab0
----
-68

query III rowsort
SELECT * FROM tab2 WHERE 13 + + - 81 * + col0 IN ( + col0 + col0 + 19, col1, + 14 / - - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NOT NULL = col2 )
----

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

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

skipif mysql # not compatible
query II rowsort label-6541
SELECT ALL + - 61 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-61
3

query I rowsort
SELECT ALL + col1 * + - col1 + - col2 FROM tab0 cor0
----
-100
-451
-6608

query I rowsort
SELECT ALL - 31 * + - ( + + col1 ) AS col0 FROM tab1
----
1457
155
434

onlyif mysql # DIV for integer division: 
query II rowsort label-6544
SELECT col1 DIV + + col2 AS col1, col0 AS col1 FROM tab0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-6544
SELECT col1 / + + col2 AS col1, col0 AS col1 FROM tab0
----
0
97
1
15
2
87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6545
SELECT DISTINCT - ( + + col2 ) AS col2, - col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-6545
SELECT DISTINCT - ( + + col2 ) AS col2, - col1 + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col1 - - col1 * + col0 + + + 5
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 96 + + col1 + - 28 * - - 32 + + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * 39 + + col0 + col0 FROM tab2 cor0
----
1688
2412
989

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL - 99 + - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL - 99 + - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----
-99

query I rowsort
SELECT ALL - 85 + + + col1 AS col0 FROM tab2
----
-18
-34
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT + CAST( + col0 AS SIGNED ) * - + col0 * 82 FROM tab2
----
-173512
-335872
-461250

skipif mysql # not compatible
query I rowsort label-6551
SELECT + CAST ( + col0 AS INTEGER ) * - + col0 * 82 FROM tab2
----
-173512
-335872
-461250

query I rowsort
SELECT DISTINCT + 52 + col0 + col1 - - + col2 * + col2 FROM tab2
----
1793
3558
678

query I rowsort
SELECT ALL + 59 + col1 AS col1 FROM tab1
----
106
64
73

query II rowsort
SELECT - - col1 - 34 - - ( + + col0 ) + - 97 * + col0, 47 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - 90 + + + col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT 91 < NULL
----

query I rowsort
SELECT - 99 FROM tab2 AS cor0 WHERE - col1 = col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT + MIN( ALL - 71 ) FROM tab2 WHERE + col2 > 64 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT + MIN ( ALL - 71 ) FROM tab2 WHERE + col2 > 64 * 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT SUM( ALL CAST( 96 AS SIGNED ) ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-6560
SELECT SUM ( ALL CAST ( 96 AS INTEGER ) ) AS col1 FROM tab1
----
288

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT DISTINCT 84 DIV ( - col0 ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT 84 / ( - col0 ) FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT col1 - 71 AS col0 FROM tab1
----
-24
-57
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT 90 * + COUNT( * ) AS col0 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT 90 * + COUNT ( * ) AS col0 FROM tab1
----
270

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

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

query I rowsort
SELECT ALL col2 + - col2 * + col2 FROM tab0
----
-2162
-90
-9702

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT ( - 71 ) DIV 87 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT ( - 71 ) / 87 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT DISTINCT - 10 + col0 DIV col2 AS col0 FROM tab2
----
-8
-9

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT - 10 + col0 / col2 AS col0 FROM tab2
----
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL 80 - - COUNT( * ) AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL 80 - - COUNT ( * ) AS col2 FROM tab0
----
83

query I rowsort
SELECT col0 * - col2 + - col2 AS col1 FROM tab2
----
-1081
-2600
-4408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6574
SELECT ALL MIN( DISTINCT - 97 ) + CAST( - CAST( MAX( ALL + 80 ) AS SIGNED ) AS SIGNED ) FROM tab1 WHERE ( NULL ) NOT IN ( col2 / 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL MIN ( DISTINCT - 97 ) + CAST ( - CAST ( MAX ( ALL + 80 ) AS INTEGER ) AS INTEGER ) FROM tab1 WHERE ( NULL ) NOT IN ( col2 / 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT 77 * + SUM( ALL - 22 ) col1 FROM tab2
----
-5082

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6575
SELECT 77 * + SUM ( ALL - 22 ) col1 FROM tab2
----
-5082

query I rowsort
SELECT - 88 + col0 * - col2 FROM tab0
----
-793
-958
-9691

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL COUNT( * ) * - MAX( ALL + col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL COUNT ( * ) * - MAX ( ALL + col0 ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT COUNT( 55 ) * + 71 col2 FROM tab2
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6578
SELECT DISTINCT COUNT ( 55 ) * + 71 col2 FROM tab2
----
213

query I rowsort
SELECT - 78 * 13 AS col1 FROM tab0
----
-1014
-1014
-1014

query I rowsort
SELECT - col1 + - 51 FROM tab0
----
-132
-52
-72

query I rowsort
SELECT ALL + col0 + - col1 FROM tab1 WHERE + col0 + - ( col2 ) > 67
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT DISTINCT 56 * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT 56 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( 86 )
----
0

query I rowsort
SELECT DISTINCT col2 * 98 AS col2 FROM tab1 AS cor0
----
5782
6664
9408

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT + col1 DIV 13 FROM tab2
----
3
5
5

skipif mysql # not compatible
query I rowsort label-6586
SELECT + col1 / 13 FROM tab2
----
3
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL + 47 * + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + 47 * + COUNT ( * ) FROM tab1 AS cor0
----
141

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

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - COUNT ( * ) / + 10 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 + 99 * 53 AS col1 FROM tab0 AS cor0
----
5248
5268
5328

query I rowsort
SELECT - 99 * + col2 + + 10 AS col1 FROM tab2 cor0
----
-2267
-3950
-5732

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col0 + + col2 ) > + 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT + - COUNT( * ) + COUNT( + ( 66 ) ) col2 FROM tab2 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT DISTINCT + 38 DIV col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT + 38 / col2 FROM tab0 AS cor0
----
0
3

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

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

query I rowsort
SELECT DISTINCT 60 + + 79 AS col2 FROM tab2 AS cor0 WHERE ( + col2 * col1 ) BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > - col0 * 74
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT COUNT( * ) AS col1 FROM tab0 WHERE 83 / col0 NOT IN ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6599
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE 83 / col0 NOT IN ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL - COUNT( * ) * + - COUNT( * ) + SUM( + col1 ) FROM tab0
----
112

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) + SUM ( + col1 ) FROM tab0
----
112

query III rowsort
SELECT * FROM tab1 WHERE + 94 > ( + col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT + col1 * - 81 AS col2 FROM tab1
----
-1134
-3807
-405

query I rowsort
SELECT ALL - col0 + col1 + + 44 * + col1 AS col1 FROM tab1
----
140
2024
579

query I rowsort
SELECT ALL col2 * - col2 * - 34 AS col1 FROM tab0
----
333234
3400
75106

query III rowsort
SELECT * FROM tab2 WHERE ( - 14 ) < NULL
----

query I rowsort
SELECT + 30 * 94 FROM tab0 AS cor0
----
2820
2820
2820

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT + col2 * + + col0 * + ( col1 DIV col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6607
SELECT + col2 * + + col0 * + ( col1 / col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 47 - col1 * + 23 col0 FROM tab1 AS cor0
----
-1081
-289
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT + 27 + - COUNT( ALL col0 ) col2 FROM tab2
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6610
SELECT + 27 + - COUNT ( ALL col0 ) col2 FROM tab2
----
24

query I rowsort
SELECT ALL + col0 + 78 AS col1 FROM tab2 WHERE - 35 - + col2 * + col2 <> col0 + 14
----
124
142
153

query I rowsort
SELECT col0 * col2 FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( - col2 * + col1 )
----
705
870
9603

query I rowsort
SELECT DISTINCT + - col1 * 74 AS col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

query I rowsort
SELECT DISTINCT + 65 - + ( col0 ) FROM tab0 AS cor0
----
-22
-32
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT - col2 DIV - 33 - + 72 + 80 * col0 FROM tab2 AS cor0
----
3608
5049
5929

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - col2 / - 33 - + 72 + 80 * col0 FROM tab2 AS cor0
----
3608
5049
5929

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

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

query I rowsort
SELECT + 64 - ( + col2 ) FROM tab1 AS cor0
----
-32
-4
5

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

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

query I rowsort
SELECT 93 * - 98 FROM tab1 AS cor0
----
-9114
-9114
-9114

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT - 85 = ( - col1 )
----
-10
-47
-99

query I rowsort
SELECT 50 * - + col2 FROM tab0
----
-2350
-4950
-500

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN 43 AND ( col0 )
----
91
47
68

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( + col0 ) >= ( 79 )
----
47

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6627
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0 WHERE col1 - + - 77 * + 44 + col1 * - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT - 47 * - MAX( + 38 ) AS col0 FROM tab1
----
1786

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT - 47 * - MAX ( + 38 ) AS col0 FROM tab1
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 57 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 57 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 * - - col2 + 73 AS col2 FROM tab1 AS cor0
----
4969
5088
6261

query I rowsort
SELECT - 42 * col2 AS col1 FROM tab2 WHERE 28 / - - ( - col2 ) * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT col2 + 88 DIV + 91 + col0 - - col2 AS col1 FROM tab1
----
203
227
243

skipif mysql # not compatible
query I rowsort label-6632
SELECT col2 + 88 / + 91 + col0 - - col2 AS col1 FROM tab1
----
203
227
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL + 76 + - 5 * - COUNT( * ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL + 76 + - 5 * - COUNT ( * ) AS col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT CAST( NULL AS SIGNED ) + ( + 44 ) * - col1 + + - CAST( NULL AS SIGNED ) / - col1 / 15 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT CAST ( NULL AS INTEGER ) + ( + 44 ) * - col1 + + - CAST ( NULL AS INTEGER ) / - col1 / 15 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 37 * 67 + col0 + + 5 * + 70 FROM tab2
----
2875
2893
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT DISTINCT + MIN( + col1 ) + - - COUNT( * ) * - COUNT( * ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT + MIN ( + col1 ) + - - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT 2 DIV + 78 * - col2 + - 59 FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-6638
SELECT 2 / + 78 * - col2 + - 59 FROM tab1
----
-59
-59
-59

query I rowsort
SELECT ALL 70 + - 11 AS col0 FROM tab0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT DISTINCT 97 * MIN( DISTINCT col2 ) AS col1 FROM tab2
----
2231

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT 97 * MIN ( DISTINCT col2 ) AS col1 FROM tab2
----
2231

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

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

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

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

query II rowsort
SELECT - col2 AS col1, + col2 * + col0 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

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

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

query I rowsort
SELECT - col0 * 53 AS col2 FROM tab1 cor0 WHERE - col0 * + - col2 - + - ( + + col1 ) / - - col0 IS NOT NULL
----
-2703
-4505
-4823

query III rowsort
SELECT * FROM tab1 WHERE ( - 53 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 26 + - col2 - + col1 * - col1 FROM tab0
----
-72
457
6540

onlyif mysql # aggregate syntax: 
query II rowsort label-6649
SELECT - ( + 97 ), COUNT( * ) * - 33 AS col0 FROM tab2 cor0
----
-97
-99

skipif mysql # not compatible
query II rowsort label-6649
SELECT - ( + 97 ), COUNT ( * ) * - 33 AS col0 FROM tab2 cor0
----
-97
-99

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

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

query I rowsort
SELECT DISTINCT - 74 * - - 64 AS col1 FROM tab2
----
-4736

query I rowsort
SELECT + + 71 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab2 WHERE NOT ( - - col2 * col1 * - col0 / + col0 ) NOT BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - 8 ) + + col1 / + 78 > + col0 * + + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT MIN( - - 60 ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6656
SELECT MIN ( - - 60 ) AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT DISTINCT 21 AS col1, ( + SUM( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
21
-103

skipif mysql # not compatible
query II rowsort label-6657
SELECT DISTINCT 21 AS col1, ( + SUM ( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
21
-103

query II rowsort
SELECT + + 90 AS col1, + col0 + - 5 FROM tab1 AS cor0
----
90
46
90
80
90
86

query I rowsort
SELECT ALL - col2 * 84 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT - 8 + + - 69 FROM tab1
----
-77
-77
-77

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

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

query I rowsort
SELECT + col1 + + ( - 27 ) FROM tab1 AS cor0
----
-13
-22
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT - SUM( ( - 67 ) ) AS col2 FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-6663
SELECT - SUM ( ( - 67 ) ) AS col2 FROM tab2 cor0
----
201

query I rowsort
SELECT DISTINCT + 87 FROM tab1 AS cor0 WHERE NULL IS NULL
----
87

query I rowsort
SELECT ALL col2 + col0 * col0 - - 56 FROM tab0
----
328
7635
9564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6666
SELECT CAST( - + COUNT( col2 ) AS SIGNED ), - 24 AS col1 FROM tab1
----
-3
-24

skipif mysql # not compatible
query II rowsort label-6666
SELECT CAST ( - + COUNT ( col2 ) AS INTEGER ), - 24 AS col1 FROM tab1
----
-3
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - COUNT( * ) * ( + + 28 ) - - + SUM( col1 ) * + - 73 + 56 AS col0 FROM tab2
----
-14263

skipif mysql # not compatible
query I rowsort label-6668
SELECT - COUNT ( * ) * ( + + 28 ) - - + SUM ( col1 ) * + - 73 + 56 AS col0 FROM tab2
----
-14263

query I rowsort
SELECT 64 / - 90 FROM tab2 WHERE col1 * - 24 + + - col2 IS NULL AND ( 68 / - + col2 * col2 * - 41 ) NOT IN ( - col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 < - + 69 + + col2
----
85
5
59
91
47
68

query I rowsort
SELECT col1 * - 8 FROM tab2
----
-408
-536
-616

query II rowsort
SELECT + col1 AS col2, - 37 FROM tab2
----
51
-37
67
-37
77
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL - CAST( + 9 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - CAST ( + 9 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6675
SELECT - - MIN ( + 63 ) col0 FROM tab0 AS cor0
----
63

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

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

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

query I rowsort
SELECT + 16 * col0 AS col0 FROM tab0 AS cor0
----
1392
1552
240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT + 63 * - + COUNT( * ) AS col1 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + 63 * - + COUNT ( * ) AS col1 FROM tab2
----
-189

query I rowsort
SELECT DISTINCT 99 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT - 86 * - ( - 51 ) AS col1 FROM tab1
----
-4386
-4386
-4386

query I rowsort
SELECT DISTINCT + ( + ( + 85 ) ) AS col0 FROM tab0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6684
SELECT DISTINCT COUNT( - - 3 ) DIV - - COUNT( * ) + - 37 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT COUNT ( - - 3 ) / - - COUNT ( * ) + - 37 FROM tab1
----
-36

query I rowsort
SELECT + 52 * - 40 AS col0 FROM tab1
----
-2080
-2080
-2080

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( col1 = + 99 + - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT ALL col0 DIV 88 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL col0 / 88 FROM tab0
----
0
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL SUM( ALL 64 ) + + COUNT( + col2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL SUM ( ALL 64 ) + + COUNT ( + col2 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 66 <= ( - col0 + + col2 + - 39 * + col2 )
----
23
40
58

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

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

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

query II rowsort
SELECT + col2, - col2 + + - col0 * col2 + - 23 - col1 + + col1 AS col2 FROM tab0 WHERE NULL IN ( + ( 99 ) + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE ( NOT + - col2 IS NULL )
----
14
47
5

query I rowsort
SELECT - + 62 + - - 4 AS col0 FROM tab2 AS cor0
----
-58
-58
-58

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

query I rowsort
SELECT 70 AS col2 FROM tab0 AS cor0 WHERE ( + 63 * + + 95 ) <> NULL
----

query II rowsort
SELECT DISTINCT 98, - col2 AS col1 FROM tab2 AS cor0
----
98
-23
98
-40
98
-58

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

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

query I rowsort
SELECT - col0 + - + col0 FROM tab0 AS cor0
----
-174
-194
-30

query II rowsort
SELECT - col1 + + - col2, + 91 AS col0 FROM tab0
----
-100
91
-128
91
-31
91

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab0
----
100
128
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6706
SELECT + col1 + - + ( - col2 ) + - col1 * - CAST( 9 AS SIGNED ) + + col2 + + + col1 FROM tab2
----
607
853
927

skipif mysql # not compatible
query I rowsort label-6706
SELECT + col1 + - + ( - col2 ) + - col1 * - CAST ( 9 AS INTEGER ) + + col2 + + + col1 FROM tab2
----
607
853
927

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT COUNT( * ) * - 59 + + 29 * + 61 col1 FROM tab2
----
1592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6708
SELECT DISTINCT COUNT ( * ) * - 59 + + 29 * + 61 col1 FROM tab2
----
1592

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT - 48 - COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - 48 - COUNT ( * ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT ( - - col0 ) + + col0 FROM tab0 AS cor0
----
174
194
30

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

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

query I rowsort
SELECT col2 * - 25 AS col2 FROM tab1 AS cor0
----
-1475
-1700
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 * 70 AS col0, ( - 52 ) col1 FROM tab0 AS cor0
----
1400
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT ALL - MAX( DISTINCT + col1 ) AS col0, 8 AS col0 FROM tab2 AS cor0
----
-77
8

skipif mysql # not compatible
query II rowsort label-6714
SELECT ALL - MAX ( DISTINCT + col1 ) AS col0, 8 AS col0 FROM tab2 AS cor0
----
-77
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, - 50 - - + 79 col0 FROM tab0 AS cor0
----
-1
29
-21
29
-81
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, + 44 FROM tab1 cor0
----
51
44
85
44
91
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL + - MAX( + 60 ) * + MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-2760

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + - MAX ( + 60 ) * + MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-2760

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6720
SELECT ALL CAST( NULL AS DECIMAL ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL CAST ( NULL AS REAL ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT DISTINCT col1 * ( col1 ) DIV col0 col2 FROM tab1 AS cor0
----
0
24
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6721
SELECT DISTINCT col1 * ( col1 ) / col0 col2 FROM tab1 AS cor0
----
0
24
3

query I rowsort
SELECT ALL - 81 * + col2 FROM tab0
----
-3807
-8019
-810

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT - - COUNT( DISTINCT - + col2 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6724
SELECT - - COUNT ( DISTINCT - + col2 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL - MAX( DISTINCT - ( - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - MAX ( DISTINCT - ( - col0 ) ) FROM tab2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6726
SELECT + 9 AS col2, CAST( ( + ( MIN( DISTINCT + - col1 ) ) ) AS SIGNED ) + + 81 FROM tab2
----
9
4

skipif mysql # not compatible
query II rowsort label-6726
SELECT + 9 AS col2, CAST ( ( + ( MIN ( DISTINCT + - col1 ) ) ) AS INTEGER ) + + 81 FROM tab2
----
9
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT - col0 + - 78 DIV + col2 FROM tab0
----
-16
-94
-97

skipif mysql # not compatible
query I rowsort label-6728
SELECT - col0 + - 78 / + col2 FROM tab0
----
-16
-94
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT + - CAST( + - col1 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-6730
SELECT + - CAST ( + - col1 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + col0 * - 43 * - 47 FROM tab1 AS cor0
----
103071
171785
183911

query I rowsort
SELECT + ( - col2 ) + col1 FROM tab2 AS cor0 WHERE NULL > col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 21 <> + 31
----

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

query I rowsort
SELECT DISTINCT col1 + 82 * + col0 * + col2 AS col1 FROM tab1
----
401486
411235
507463

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT 93 DIV col0 - - 44 * - col2 FROM tab1
----
-2595
-2991
-4223

skipif mysql # not compatible
query I rowsort label-6736
SELECT 93 / col0 - - 44 * - col2 FROM tab1
----
-2595
-2991
-4223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6737
SELECT ALL - 15 DIV + MAX( - 67 ) + + SUM( col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - 15 / + MAX ( - 67 ) + + SUM ( col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT DISTINCT + col2 - - col2 * + + col0 FROM tab0
----
752
880
9702

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

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

query I rowsort
SELECT DISTINCT 85 - + col1 - + + col0 FROM tab1
----
-5
-53
20

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

skipif mysql # not compatible
query I rowsort label-6741
SELECT COUNT ( - - col2 ) / - COUNT ( * ) - + COUNT ( * ) FROM tab1
----
-4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT COUNT( - 93 ) / + CAST( NULL AS SIGNED ) * + COUNT( * ) + - 2 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6743
SELECT COUNT ( - 93 ) / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 2 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT - col1 + col2 DIV - + ( col2 ) + - - col2 AS col1 FROM tab2 AS cor0
----
-10
-29
-38

skipif mysql # not compatible
query I rowsort label-6744
SELECT - col1 + col2 / - + ( col2 ) + - - col2 AS col1 FROM tab2 AS cor0
----
-10
-29
-38

query I rowsort
SELECT - - 75 + + - 98 FROM tab1 AS cor0
----
-23
-23
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 4 * + col0 IS NULL
----

query I rowsort
SELECT ALL + + 7 * + 53 FROM tab2 AS cor0
----
371
371
371

query I rowsort
SELECT + - 72 * 37 FROM tab1 AS cor0
----
-2664
-2664
-2664

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

query II rowsort
SELECT DISTINCT - ( + col1 ), 58 AS col1 FROM tab0
----
-1
58
-21
58
-81
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6751
SELECT + CAST( NULL AS DECIMAL ) / + 61 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT + CAST ( NULL AS REAL ) / + 61 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 61 FROM tab2 cor0
----
1403
2440
3538

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

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

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

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE + 23 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 * - - 7 FROM tab0 cor0
----
329
693
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 < - + 6
----

query I rowsort
SELECT ALL + ( + col0 ) + + 98 FROM tab1
----
149
183
189

query II rowsort
SELECT - 32, col2 * col1 + - col1 AS col1 FROM tab2
----
-32
1122
-32
3003
-32
3819

query I rowsort
SELECT 83 * + 80 FROM tab0
----
6640
6640
6640

query I rowsort
SELECT DISTINCT + col1 * - 7 FROM tab2
----
-357
-469
-539

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

query I rowsort
SELECT + 72 + + col1 + col1 FROM tab1
----
100
166
82

query I rowsort
SELECT ( - + col1 ) + 57 FROM tab2
----
-10
-20
6

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

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

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

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - 57 / - + col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT - - col2 DIV - - 64 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6769
SELECT - - col2 / - - 64 FROM tab1 AS cor0
----
0
1
1

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - + col0 * 3 AS col1, - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-261
1827
-291
97
-45
1215

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

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

query I rowsort
SELECT DISTINCT - 93 - + - col0 AS col0 FROM tab0 AS cor0
----
-6
-78
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT ALL + - COUNT( * ) DIV + 91 + 67 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL + - COUNT ( * ) / + 91 + 67 FROM tab2 AS cor0
----
67

query I rowsort
SELECT 84 * + col0 + + 48 AS col2 FROM tab0 AS cor0
----
1308
7356
8196

query II rowsort
SELECT ALL + col1 * - - col1 + + col1 + - 91, col2 AS col0 FROM tab0 AS cor0
----
-89
99
371
10
6551
47

query I rowsort
SELECT ALL col1 * + 16 + + ( col1 ) AS col2 FROM tab0
----
1377
17
357

query I rowsort
SELECT DISTINCT col2 + + col2 - + col0 FROM tab2
----
0
16
41

query I rowsort
SELECT col1 + + - col2 * col1 + - 3 + 81 AS col2 FROM tab1
----
-1252
-212
-3071

query I rowsort
SELECT + 47 * 6 - - 42 AS col2 FROM tab2 WHERE + col1 * + + col1 >= - + col1 * 8
----
324
324
324

query I rowsort
SELECT DISTINCT 11 * - col2 AS col1 FROM tab0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL 51 * - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL 51 * - COUNT ( * ) FROM tab1
----
-153

query I rowsort
SELECT - + 75 * col0 + + 78 FROM tab2 AS cor0
----
-3372
-4722
-5547

query I rowsort
SELECT ALL - 44 FROM tab2 cor0 WHERE + col2 / + col1 IS NULL
----

query I rowsort
SELECT + 49 * + col0 FROM tab0
----
4263
4753
735

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

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

query II rowsort
SELECT + 43 * - - col2 * + 58 AS col1, - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6793
SELECT + COUNT( * ) AS col0, - MAX( DISTINCT - 88 ) FROM tab2 AS cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-6793
SELECT + COUNT ( * ) AS col0, - MAX ( DISTINCT - 88 ) FROM tab2 AS cor0
----
3
88

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 40 >= + col1
----

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

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

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + + MAX ( + col1 ) AS col1 FROM tab0 cor0
----
81

query I rowsort
SELECT ALL - col1 + 86 FROM tab1 WHERE NOT NULL IS NOT NULL
----
39
72
81

query I rowsort
SELECT DISTINCT + 58 + + ( + ( - col0 ) ) * - col0 AS col0 FROM tab1
----
2659
7283
8339

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 / - - ( - 73 ) * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT DISTINCT - COUNT( ALL - + col1 ) * 70 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT - COUNT ( ALL - + col1 ) * 70 FROM tab1 AS cor0
----
-210

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

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT + + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT - + 99 + - 54 FROM tab2 cor0
----
-153

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1 WHERE - col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + 27 - - col2 < NULL
----

query I rowsort
SELECT - + 77 AS col1 FROM tab1 WHERE col2 BETWEEN + - col1 + + - ( - col2 ) * + 92 AND - 15
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6808
SELECT DISTINCT 43 DIV - + col0 * - col1 + + - col2 - - col2 AS col2, col0 - - col0 AS col0 FROM tab2 AS cor0
----
0
128
0
150
0
92

skipif mysql # not compatible
query II rowsort label-6808
SELECT DISTINCT 43 / - + col0 * - col1 + + - col2 - - col2 AS col2, col0 - - col0 AS col0 FROM tab2 AS cor0
----
0
128
0
150
0
92

query I rowsort
SELECT col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

query I rowsort
SELECT - 21 * - - col2 * col2 + + - col2 FROM tab0 cor0
----
-205920
-2110
-46436

query I rowsort
SELECT - ( 91 ) FROM tab1 AS cor0
----
-91
-91
-91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 49 FROM tab1
----
14
-49
47
-49
5
-49

query I rowsort
SELECT - ( + - 89 ) AS col1 FROM tab0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT + col0 * - 65 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT ALL col0 * 74 FROM tab0
----
1110
6438
7178

query I rowsort
SELECT - col2 * ( + ( + 71 ) ) * - 46 AS col2 FROM tab1
----
192694
222088
313536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6818
SELECT + SUM( + + col0 ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2, + col2, - col0 / CAST( + 22 AS SIGNED ) + - col0 * + col1 )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - 19 * - col1 FROM tab2
----
46
969
64
1463
75
1273

query II rowsort
SELECT + col0, 47 FROM tab0
----
15
47
87
47
97
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT COUNT( * ) DIV - 92 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6821
SELECT COUNT ( * ) / - 92 AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NOT NULL OR ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL ( - ( - col1 ) ) FROM tab1
----
14
47
5

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

query I rowsort
SELECT ALL - - 12 * - + col0 FROM tab0 AS cor0
----
-1044
-1164
-180

query II rowsort
SELECT - col1 * - col2 * + - 95, col2 AS col2 FROM tab0
----
-19950
10
-361665
47
-9405
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT DISTINCT MIN( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

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

query I rowsort
SELECT ALL + 41 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT DISTINCT col0 DIV - + col0 + - + col2 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT col0 / - + col0 + - + col2 FROM tab1 AS cor0
----
-60
-69
-97

query I rowsort
SELECT DISTINCT + 42 + col2 FROM tab0
----
141
52
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT SUM( + - 46 ) col1 FROM tab2
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6834
SELECT DISTINCT SUM ( + - 46 ) col1 FROM tab2
----
-138

query I rowsort
SELECT - 67 + - 78 FROM tab0
----
-145
-145
-145

query I rowsort
SELECT + col1 + - + 6 AS col1 FROM tab1
----
-1
41
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6837
SELECT ALL - - 7 AS col1, COUNT( * ) DIV - 1 * - 9 FROM tab2 WHERE - ( - ( col2 ) ) IS NULL
----
7
0

skipif mysql # not compatible
query II rowsort label-6837
SELECT ALL - - 7 AS col1, COUNT ( * ) / - 1 * - 9 FROM tab2 WHERE - ( - ( col2 ) ) IS NULL
----
7
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT COUNT( * ) AS col0 FROM tab1 WHERE - col0 * 37 * - col0 * - col0 - + - 41 * + 56 NOT IN ( + col0, + col0 * - + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6839
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE - col0 * 37 * - col0 * - col0 - + - 41 * + 56 NOT IN ( + col0, + col0 * - + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL 68 - - - COUNT( * ) AS col0 FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL 68 - - - COUNT ( * ) AS col0 FROM tab2 cor0
----
65

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

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

query I rowsort
SELECT + 75 * + col2 + col0 FROM tab2 AS cor0
----
1771
3064
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT MAX( 96 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6844
SELECT MAX ( 96 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-6845
SELECT - 3 DIV + + 17 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6845
SELECT - 3 / + + 17 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + ( + 54 ), - col0 * - col2 AS col1 FROM tab1 AS cor0
----
54
4896
54
5015
54
6188

query I rowsort
SELECT - AVG ( - col2 ) FROM tab0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ALL col2 * - 36 AS col1 FROM tab2
----
-1440
-2088
-828

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT ALL col2 DIV + ( ( - col1 ) ) AS col2 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL col2 / + ( ( - col1 ) ) AS col2 FROM tab0
----
-99
0
0

query I rowsort
SELECT ALL + col1 * - + col2 + + col0 / + 52 * + col1 FROM tab2 WHERE - - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT - MAX( ALL + col1 ) * - 25 FROM tab2 AS cor0
----
1925

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - MAX ( ALL + col1 ) * - 25 FROM tab2 AS cor0
----
1925

query II rowsort
SELECT ALL - col2 AS col2, col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + 32 - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-6854
SELECT + 32 - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT ALL 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT 14 DIV ( + 46 ) * col2 + + col0 + + - col1 + - + 94 col0 FROM tab1 AS cor0
----
-14
-50
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6856
SELECT 14 / ( + 46 ) * col2 + + col0 + + - col1 + - + 94 col0 FROM tab1 AS cor0
----
-14
-50
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT + SUM( ALL + - col0 ) + + - 54 FROM tab2 AS cor0
----
-239

skipif mysql # not compatible
query I rowsort label-6857
SELECT + SUM ( ALL + - col0 ) + + - 54 FROM tab2 AS cor0
----
-239

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6858
SELECT 63 AS col2, - COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
63
-1

skipif mysql # not compatible
query II rowsort label-6858
SELECT 63 AS col2, - COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
63
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT DISTINCT + col1 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE + col1 <= + - 71
----

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT + col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE + col1 <= + - 71
----

query II rowsort
SELECT ALL + col0 + - 62 AS col1, col2 FROM tab1
----
-11
96
23
59
29
68

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - - 51 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 58 * + col2 * col2 - 77 + + 63 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT - 3 DIV + 26 - - 73 AS col2 FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-6864
SELECT - 3 / + 26 - - 73 AS col2 FROM tab0
----
73
73
73

query I rowsort
SELECT ALL col0 * - 58 FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT 98 + col2 AS col0 FROM tab0
----
108
145
197

query II rowsort
SELECT col0 AS col1, 8 + + col0 AS col0 FROM tab1 AS cor0
----
51
59
85
93
91
99

query II rowsort
SELECT ALL col1, - col0 * - + col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query I rowsort
SELECT DISTINCT + - ( - - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL - MIN( col2 ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6873
SELECT ALL - MIN ( col2 ) col2 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6874
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col2, 36 * - col2 AS col2 FROM tab1
----
NULL
-2124
NULL
-2448
NULL
-3456

skipif mysql # not compatible
query II rowsort label-6874
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col2, 36 * - col2 AS col2 FROM tab1
----
NULL
-2124
NULL
-2448
NULL
-3456

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT COUNT( + 35 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6877
SELECT COUNT ( + 35 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 77 / - col1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6880
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE + CAST( NULL AS SIGNED ) / - 51 IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6880
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE + CAST ( NULL AS INTEGER ) / - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT - MIN( ALL + 66 ) DIV + COUNT( + 46 ) AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-6881
SELECT - MIN ( ALL + 66 ) / + COUNT ( + 46 ) AS col1 FROM tab0
----
-22

query I rowsort
SELECT ALL 90 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

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

query I rowsort
SELECT DISTINCT ( - - col2 ) * col2 + col1 + col1 AS col0 FROM tab2 cor0
----
1754
3498
631

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + + 19 col1 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL - col2 * + 70 * 38 AS col0 FROM tab2 cor0
----
-106400
-154280
-61180

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT ALL 44 DIV 92 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL 44 / 92 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + - 73 FROM tab0 AS cor0
----
-26
-63
26

query I rowsort
SELECT DISTINCT col0 * - 56 + - + col0 FROM tab0 AS cor0
----
-4959
-5529
-855

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT - 58 + - + col1 + - + col0 DIV col2 AS col1 FROM tab2
----
-111
-126
-136

skipif mysql # not compatible
query I rowsort label-6891
SELECT - 58 + - + col1 + - + col0 / col2 AS col1 FROM tab2
----
-111
-126
-136

query I rowsort
SELECT ALL + 99 + + - col1 FROM tab1
----
52
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT COUNT( + col2 ) + + - MIN( ALL - col0 ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT COUNT ( + col2 ) + + - MIN ( ALL - col0 ) AS col1 FROM tab2
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + 70 * 14 + COUNT( * ) AS col1 FROM tab0
----
983

skipif mysql # not compatible
query I rowsort label-6895
SELECT + 70 * 14 + COUNT ( * ) AS col1 FROM tab0
----
983

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT DISTINCT - 51 AS col2, COUNT( * ) FROM tab1 WHERE col1 <= NULL
----
-51
0

skipif mysql # not compatible
query II rowsort label-6896
SELECT DISTINCT - 51 AS col2, COUNT ( * ) FROM tab1 WHERE col1 <= NULL
----
-51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE + - 88 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6897
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE + - 88 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 BETWEEN + 94 AND ( col0 ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT COUNT( DISTINCT - 25 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6899
SELECT COUNT ( DISTINCT - 25 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT DISTINCT + 85 + + COUNT( * ) + COUNT( * ) DIV 44 * - + COUNT( * ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT + 85 + + COUNT ( * ) + COUNT ( * ) / 44 * - + COUNT ( * ) FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT DISTINCT + CAST( + 85 AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
85

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT + CAST ( + 85 AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
85

query I rowsort
SELECT DISTINCT + 14 * col0 FROM tab2 AS cor0
----
1050
644
896

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

query I rowsort
SELECT - 98 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 / col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 * - 35 col2, 98 + + 52 AS col2 FROM tab2 AS cor0
----
-455
150
-455
150
-455
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL - ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6908
SELECT DISTINCT - 56 AS col0, 36 DIV + + COUNT( * ) AS col1 FROM tab0
----
-56
12

skipif mysql # not compatible
query II rowsort label-6908
SELECT DISTINCT - 56 AS col0, 36 / + + COUNT ( * ) AS col1 FROM tab0
----
-56
12

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

skipif mysql # not compatible
query I rowsort label-6909
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 < + - col1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 44 * - col0 col1 FROM tab2
----
23
-2024
40
-2816
58
-3300

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

skipif mysql # not compatible
query III rowsort label-6911
SELECT DISTINCT * FROM tab1 WHERE - 95 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6912
SELECT COUNT ( * ) * - MAX ( - + ( - + 17 ) ) FROM tab0
----
-51

query II rowsort
SELECT ( - col0 ) + + + col2 AS col0, + col1 - 58 FROM tab2 cor0 WHERE NOT 22 <> - col0 * - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT COUNT( * ) AS col0, - 28 AS col1 FROM tab2 AS cor0
----
3
-28

skipif mysql # not compatible
query II rowsort label-6914
SELECT COUNT ( * ) AS col0, - 28 AS col1 FROM tab2 AS cor0
----
3
-28

query I rowsort
SELECT ALL 90 + - col1 * + - ( col0 ) FROM tab1 AS cor0
----
4367
515
804

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

query I rowsort
SELECT ALL col2 * + + 32 AS col2 FROM tab0
----
1504
3168
320

query I rowsort
SELECT - 45 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT - CAST( - col1 AS SIGNED ) + col0 * + - col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-6919
SELECT - CAST ( - col1 AS INTEGER ) + col0 * + - col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT 19 + + MAX( - + col2 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6920
SELECT 19 + + MAX ( - + col2 ) FROM tab0 AS cor0
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6921
SELECT + + COUNT ( + - 86 ) col1, - COUNT ( * ) FROM tab2 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6922
SELECT ALL - + CAST( 99 AS SIGNED ), + ( + CAST( NULL AS SIGNED ) ) / + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-99
NULL
-99
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-6922
SELECT ALL - + CAST ( 99 AS INTEGER ), + ( + CAST ( NULL AS INTEGER ) ) / + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-99
NULL
-99
NULL
-99
NULL

query I rowsort
SELECT - 35 * - - col2 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT 67 IS NULL
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL 56 + - 37 * + - COUNT( * ) * + - MAX( - col0 ) AS col0 FROM tab2
----
5162

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL 56 + - 37 * + - COUNT ( * ) * + - MAX ( - col0 ) AS col0 FROM tab2
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + 35 - SUM( DISTINCT + ( + - 62 ) ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6927
SELECT + 35 - SUM ( DISTINCT + ( + - 62 ) ) FROM tab1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT CAST( COUNT( * ) AS SIGNED ) - + + 20 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-6928
SELECT CAST ( COUNT ( * ) AS INTEGER ) - + + 20 FROM tab2
----
-17

query I rowsort
SELECT ALL + col1 * + - ( - - col2 ) - + - col2 AS col2 FROM tab1
----
-1248
-236
-3128

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

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

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

query I rowsort
SELECT - 5 + - + col2 FROM tab1 AS cor0
----
-101
-64
-73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6934
SELECT DISTINCT COUNT( DISTINCT col0 ), MAX( DISTINCT - ( - ( - - 3 ) ) ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-6934
SELECT DISTINCT COUNT ( DISTINCT col0 ), MAX ( DISTINCT - ( - ( - - 3 ) ) ) AS col1 FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT + col1 DIV - + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT + col1 / - + col0 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6936
SELECT col1 AS col1, + 30 DIV - col0 FROM tab0 cor0
----
1
0
21
0
81
-2

skipif mysql # not compatible
query II rowsort label-6936
SELECT col1 AS col1, + 30 / - col0 FROM tab0 cor0
----
1
0
21
0
81
-2

query I rowsort
SELECT ALL + + 4 FROM tab2 AS cor0 WHERE col2 >= - col0
----
4
4
4

query I rowsort
SELECT DISTINCT + ( + - 32 ) AS col0 FROM tab2 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col0 FROM tab2 AS cor0 WHERE NOT - col2 + 44 IS NULL
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 61 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * + col1 * + - 42 col0 FROM tab0
----
156492
1932
40572

query I rowsort
SELECT + 73 * + + 2 * - col0 * 5 AS col0 FROM tab1
----
-37230
-62050
-66430

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT - col2 + - col1 + - 41 + + 1 - + col2 DIV + col1 AS col0 FROM tab2
----
-114
-157
-165

skipif mysql # not compatible
query I rowsort label-6943
SELECT - col2 + - col1 + - 41 + + 1 - + col2 / + col1 AS col0 FROM tab2
----
-114
-157
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT SUM( + col2 ) FROM tab2 AS cor0 WHERE NOT + 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT SUM ( + col2 ) FROM tab2 AS cor0 WHERE NOT + 26 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6945
SELECT ALL + 63 DIV COUNT( + ( - col2 ) ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + 63 / COUNT ( + ( - col2 ) ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT + ( col0 ) * - 10 + - col1 FROM tab1 AS cor0
----
-524
-855
-957

query I rowsort
SELECT DISTINCT - 89 + col0 * col0 FROM tab2
----
2027
4007
5536

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 - + col0 col0 FROM tab0 cor0
----
-19
-29
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6950
SELECT ALL - + COUNT( * ) * - COUNT( * ) + - 27 + 73 DIV - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) + - 27 + 73 / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query II rowsort
SELECT + - 59 + - 54 * - col0, + col1 + - col0 AS col1 FROM tab0 AS cor0
----
4639
-66
5179
-96
751
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT DISTINCT ( - MAX( ALL col2 ) ) + COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT ( - MAX ( ALL col2 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + - col1 * + col2 + - 71 AS col0 FROM tab1 AS cor0
----
-1415
-3267
-366

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

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

query I rowsort
SELECT ALL - col1 + + - col2 * col2 - + + col0 FROM tab2 AS cor0
----
-1741
-3506
-626

query I rowsort
SELECT ALL - 18 - + ( ( - col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT col1 + + + ( col0 ) AS col2 FROM tab2
----
141
142
97

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

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

query I rowsort
SELECT ALL + col2 + - - col2 AS col0 FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + 38 col2 FROM tab0
----
125
135
53

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

skipif mysql # not compatible
query I rowsort label-6961
SELECT + - SUM ( + 31 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT DISTINCT - col2 * + col0 + + - CAST( + col2 AS SIGNED ) + col0 * - 94 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 6 IS NULL
----
-11391
-5354
-8539

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT - col2 * + col0 + + - CAST ( + col2 AS INTEGER ) + col0 * - 94 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 6 IS NULL
----
-11391
-5354
-8539

query I rowsort
SELECT + 54 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-15930
-172584
-72576

query I rowsort
SELECT ALL 64 * - - 63 AS col2 FROM tab1 AS cor0
----
4032
4032
4032

query I rowsort
SELECT 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6968
SELECT - - SUM ( DISTINCT 25 ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT 84 + + 79 FROM tab1
----
163

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL COUNT( ALL - col2 ) * - + 28 AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL COUNT ( ALL - col2 ) * - + 28 AS col1 FROM tab1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT + ( - 27 ) DIV - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT + ( - 27 ) / - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + col0, - col2 * 43 FROM tab2 cor0 WHERE - 18 * - col0 IS NOT NULL
----
46
-989
64
-1720
75
-2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT + CAST( + - col0 AS SIGNED ) * - + col1 + 15 AS col2 FROM tab2 cor0
----
2361
4943
5040

skipif mysql # not compatible
query I rowsort label-6975
SELECT + CAST ( + - col0 AS INTEGER ) * - + col1 + 15 AS col2 FROM tab2 cor0
----
2361
4943
5040

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT + - col0 DIV + col1 FROM tab1 WHERE col0 IS NOT NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6976
SELECT + - col0 / + col1 FROM tab1 WHERE col0 IS NOT NULL
----
-1
-17
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + col1 ) col0, col1 * col2 FROM tab2 cor0
----
51
1173
67
3886
77
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - - COUNT( * ) AS col1 FROM tab2 cor0 WHERE 78 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6979
SELECT - - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE 78 IS NULL
----
0

query I rowsort
SELECT + + 21 * - - col2 FROM tab0 AS cor0
----
2079
210
987

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + 75 - + 3 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6982
SELECT + 75 - + 3 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
84

query II rowsort
SELECT ALL - 77 * - + col2 + - + ( - col2 ), + col2 AS col0 FROM tab2
----
1794
23
3120
40
4524
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT col0 DIV - + col1 + + ( - - col1 ) + + col0 AS col2 FROM tab2
----
141
97

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT col0 / - + col1 + + ( - - col1 ) + + col0 AS col2 FROM tab2
----
141
97

query I rowsort
SELECT + 30 - col0 FROM tab0
----
-57
-67
15

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE + 31 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col0 - col0 * col2 * + 44 FROM tab0
----
-31005
-38193
-422435

query I rowsort
SELECT + col0 * + col2 - + + col0 AS col0 FROM tab2
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL - 17 * - + ( - SUM( ALL + + col1 ) ) AS col2 FROM tab1
----
-1122

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - 17 * - + ( - SUM ( ALL + + col1 ) ) AS col2 FROM tab1
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL - MIN( DISTINCT - ( - col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - MIN ( DISTINCT - ( - col1 ) ) FROM tab2
----
-51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * 20 col1 FROM tab0 AS cor0
----
1940
1940
1940

query I rowsort
SELECT ALL + 28 * + col0 FROM tab0 cor0
----
2436
2716
420

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT ALL 35 DIV + col1 - 6 FROM tab1
----
-4
-6
1

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL 35 / + col1 - 6 FROM tab1
----
-4
-6
1

query I rowsort
SELECT 23 * 28 FROM tab1 WHERE NOT col0 IS NULL
----
644
644
644

query I rowsort
SELECT ALL 53 + 72 FROM tab0
----
125
125
125

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

query I rowsort
SELECT ALL ( 65 ) + col0 AS col0 FROM tab2
----
111
129
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL - ( + 50 ) + ( SUM( DISTINCT + col1 ) - 65 ) * - 0 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL - ( + 50 ) + ( SUM ( DISTINCT + col1 ) - 65 ) * - 0 FROM tab0
----
-50

query I rowsort
SELECT ALL 25 AS col1 FROM tab0 WHERE NULL IN ( - col2 / - ( col2 * 15 ) )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - col1 + col2 / - col2 ) AND 4 * col0
----

query I rowsort
SELECT col1 + - col2 AS col1 FROM tab1 WHERE NOT + 55 / 33 = ( - col2 )
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ( SUM( ALL + 10 ) ) + - 31 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7005
SELECT ( SUM ( ALL + 10 ) ) + - 31 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT - MAX( 17 ) AS col0 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-7006
SELECT - MAX ( 17 ) AS col0 FROM tab2
----
-17

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE ( + 69 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 61 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT MAX( - 14 ) - + 6 AS col0 FROM tab1 WHERE NULL IN ( - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT MAX ( - 14 ) - + 6 AS col0 FROM tab1 WHERE NULL IN ( - 27 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT CAST( 68 AS SIGNED ) * - 6 - col2 FROM tab2
----
-431
-448
-466

skipif mysql # not compatible
query I rowsort label-7010
SELECT CAST ( 68 AS INTEGER ) * - 6 - col2 FROM tab2
----
-431
-448
-466

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7013
SELECT DISTINCT - 63 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - 63 + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL - 31 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

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

query I rowsort
SELECT DISTINCT + col1 * + col0 - col2 FROM tab2
----
2323
4888
4967

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

query I rowsort
SELECT + 7 FROM tab2 AS cor0 WHERE + col2 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 - - col1 FROM tab2 cor0
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab2 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + ( 91 ) + - MIN( DISTINCT ( - 85 ) ) FROM tab0 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-7024
SELECT + ( 91 ) + - MIN ( DISTINCT ( - 85 ) ) FROM tab0 AS cor0
----
176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + col2 * + col2 + + col1 )
----

query I rowsort
SELECT - + col0 + 86 AS col1 FROM tab2 AS cor0
----
11
22
40

query I rowsort
SELECT + col0 * 18 + - 18 FROM tab0 AS cor0
----
1548
1728
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7028
SELECT + CAST( - SUM( DISTINCT - 54 ) AS SIGNED ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7028
SELECT + CAST ( - SUM ( DISTINCT - 54 ) AS INTEGER ) FROM tab0 AS cor0
----
54

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

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

query I rowsort
SELECT ALL col2 * - + 73 AS col0 FROM tab2
----
-1679
-2920
-4234

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

query I rowsort
SELECT ALL 95 + col2 * 67 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT - CAST( + ( col1 ) AS SIGNED ) * - col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7034
SELECT - CAST ( + ( col1 ) AS INTEGER ) * - col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 WHERE 22 < ( 40 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE + ( - 44 ) - ( + col2 ) IS NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT col1 / col1 < + ( col0 )
----

query I rowsort
SELECT DISTINCT + col1 * + 0 FROM tab1 WHERE NULL NOT BETWEEN 26 AND NULL
----

query I rowsort
SELECT DISTINCT + ( + 58 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT 79 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - col1 ) AND - 4 - 39 OR ( col1 ) NOT BETWEEN - 82 AND col0
----

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

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

query I rowsort
SELECT - 56 + 30 AS col2 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + + 21 + + 79 FROM tab2 AS cor0
----
100

query I rowsort
SELECT 15 FROM tab1 AS cor0 WHERE NOT col0 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT DISTINCT + 47 * MAX( + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-2397

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT + 47 * MAX ( + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-2397

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

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

query I rowsort
SELECT - ( col2 ) FROM tab1 AS cor0 WHERE - 48 + - + col0 NOT IN ( + col1 * - col1 )
----
-59
-68
-96

query I rowsort
SELECT ALL ( col0 ) + - ( col2 ) FROM tab1 AS cor0
----
-45
23
26

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + - ( - col0 ) - col2 * col2 + col1 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT ALL col1 + + col2 * col2 * + ( CAST( - 1 AS SIGNED ) ) FROM tab2
----
-1523
-3297
-478

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL col1 + + col2 * col2 * + ( CAST ( - 1 AS INTEGER ) ) FROM tab2
----
-1523
-3297
-478

query I rowsort
SELECT DISTINCT col2 + + 20 AS col1 FROM tab1
----
116
79
88

query II rowsort
SELECT col0 * 63 AS col2, col2 + + - 99 + col1 FROM tab2
----
2898
-25
4032
18
4725
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT - - ( - col1 ) DIV + 80 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT - - ( - col1 ) / + 80 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - + 81 - 39 FROM tab1 AS cor0
----
-120
-120
-120

query I rowsort
SELECT + - 56 + + col0 FROM tab1 AS cor0
----
-5
29
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - MAX( col0 ) FROM tab2 AS cor0 WHERE col0 - col2 * + ( col1 ) IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-7063
SELECT - MAX ( col0 ) FROM tab2 AS cor0 WHERE col0 - col2 * + ( col1 ) IS NOT NULL
----
-75

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

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

query I rowsort
SELECT ALL col2 + - - 57 FROM tab1 AS cor0 WHERE NULL IS NULL
----
116
125
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + - col0 + - + 91 col0 FROM tab0
----
-81
-9
-91

query I rowsort
SELECT col0 * 2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 96 + + 23 FROM tab1 AS cor0
----
119

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 66 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT ALL - + CAST( + 0 AS SIGNED ) * + col0 * + col2 - - col1 FROM tab0 AS cor0
----
1
21
81

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

query I rowsort
SELECT ALL - 20 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + 12 * - col0 <= - + col0
----
-20
-20
-20

query I rowsort
SELECT ( ( 77 ) ) AS col0 FROM tab2 cor0 WHERE NOT col2 * + col2 + + col0 NOT IN ( col2 )
----

query I rowsort
SELECT ALL 83 + 61 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( + 70 ) AND - col2
----
144
144
144

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

query I rowsort
SELECT 18 * + - col0 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT ALL + 29 * - col1 + + - 82 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT ALL - COUNT( * ), - MAX( DISTINCT - 66 ) AS col0 FROM tab1
----
-3
66

skipif mysql # not compatible
query II rowsort label-7077
SELECT ALL - COUNT ( * ), - MAX ( DISTINCT - 66 ) AS col0 FROM tab1
----
-3
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7078
SELECT ALL ( - COUNT( * ) ), - COUNT( * ) AS col0 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7078
SELECT ALL ( - COUNT ( * ) ), - COUNT ( * ) AS col0 FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT MAX( 16 ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7079
SELECT MAX ( 16 ) FROM tab0
----
16

query II rowsort
SELECT col2 AS col1, col2 * 71 FROM tab2
----
23
1633
40
2840
58
4118

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 * col0 - 5 / - col1 IS NULL )
----

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

query I rowsort
SELECT DISTINCT - 33 * + col0 FROM tab1
----
-1683
-2805
-3003

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE - ( - 47 ) NOT IN ( - + col2 )
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 * + 33 * - + 79 FROM tab0 cor0
----
-211167
-2607
-54747

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = ( + + col1 * + + col2 * - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7088
SELECT + MAX( ALL + ( - - col1 ) ) * + SUM( + CAST( - 75 AS SIGNED ) ) FROM tab0
----
-18225

skipif mysql # not compatible
query I rowsort label-7088
SELECT + MAX ( ALL + ( - - col1 ) ) * + SUM ( + CAST ( - 75 AS INTEGER ) ) FROM tab0
----
-18225

query I rowsort
SELECT - col0 * + + 57 AS col0 FROM tab0
----
-4959
-5529
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - + 30 * + col1 + + 46 ) < col1 + 95
----
0

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - + 30 * + col1 + + 46 ) < col1 + 95
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7092
SELECT DISTINCT COUNT( * ) * - 35 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) IN ( - - col0 * - + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT COUNT ( * ) * - 35 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) IN ( - - col0 * - + col2 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7093
SELECT * FROM tab2 AS cor0 WHERE + col2 + - CAST( + - 68 AS SIGNED ) * - 95 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7093
SELECT * FROM tab2 AS cor0 WHERE + col2 + - CAST ( + - 68 AS INTEGER ) * - 95 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 80 * - + col1 + + - col0, col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1767
10
-177
99
-6495
47

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT + col2 + - + 22 + + col1 FROM tab1 AS cor0
----
42
88
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + 57 * + MIN( ( + + col0 ) ) + + + 38 FROM tab2 AS cor0
----
2660

skipif mysql # not compatible
query I rowsort label-7099
SELECT + 57 * + MIN ( ( + + col0 ) ) + + + 38 FROM tab2 AS cor0
----
2660

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7101
SELECT ALL + 20 DIV - col1 AS col2, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-7101
SELECT ALL + 20 / - col1 AS col2, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT + COUNT( * ) * SUM( + col2 ) + 66 FROM tab1 WHERE - col0 + 1 NOT BETWEEN NULL AND 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + COUNT ( * ) * SUM ( + col2 ) + 66 FROM tab1 WHERE - col0 + 1 NOT BETWEEN NULL AND 60
----
NULL

query I rowsort
SELECT ALL 21 + - 78 FROM tab1
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT - COUNT( * ) * - - 21 * + 73 + - 15 AS col1 FROM tab2
----
-4614

skipif mysql # not compatible
query I rowsort label-7104
SELECT - COUNT ( * ) * - - 21 * + 73 + - 15 AS col1 FROM tab2
----
-4614

query I rowsort
SELECT ALL col1 + 97 FROM tab1
----
102
111
144

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 80 * col1 + - col0 + 28 + + 64 ) <> ( + 75 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 73 - + col1 FROM tab1
----
26
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7109
SELECT * FROM tab0 cor0 WHERE NULL = col0 + - - CAST( + 75 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7109
SELECT * FROM tab0 cor0 WHERE NULL = col0 + - - CAST ( + 75 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 / - col2 col0 FROM tab0 AS cor0 WHERE - col0 * - 85 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + 45 * + col0 + - 65 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - + col0 FROM tab0 WHERE 58 + - + 6 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7113
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - + col0 FROM tab0 WHERE 58 + - + 6 >= NULL
----

query I rowsort
SELECT DISTINCT col1 + - 17 AS col2 FROM tab0
----
-16
4
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT ALL - ( - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0 WHERE 94 > + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0 WHERE 94 > + col0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT DISTINCT + CAST( - - MAX( ALL 6 ) AS SIGNED ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + CAST ( - - MAX ( ALL 6 ) AS INTEGER ) FROM tab0 AS cor0
----
6

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 55 + + + col1 )
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT + 47 DIV + + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7123
SELECT + 47 / + + COUNT ( * ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT col1 * + + CAST( 82 AS SIGNED ) * + col2 + ( - - col0 ) FROM tab1
----
110259
24275
262163

skipif mysql # not compatible
query I rowsort label-7124
SELECT col1 * + + CAST ( 82 AS INTEGER ) * + col2 + ( - - col0 ) FROM tab1
----
110259
24275
262163

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

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

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

query I rowsort
SELECT + col1 + - 18 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col1 - + 43
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 * - - col1 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - 87 + + + COUNT( * ) AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 87 + + + COUNT ( * ) AS col0 FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 6 + + COUNT( + 73 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7132
SELECT 6 + + COUNT ( + 73 ) FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT ALL + 92 + ( COUNT( ( - + ( col1 ) ) ) ) col1, 27 + 16 AS col1 FROM tab1 AS cor0
----
95
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7133
SELECT ALL + 92 + ( COUNT ( ( - + ( col1 ) ) ) ) col1, 27 + 16 AS col1 FROM tab1 AS cor0
----
95
43

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT - 54 * + col1 * + col0 - col0 IN ( - 97 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL MIN( - col1 ) / - 99 FROM tab0 AS cor0 WHERE NULL IN ( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL MIN ( - col1 ) / - 99 FROM tab0 AS cor0 WHERE NULL IN ( + 24 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, + ( + + 20 ), ( ( - + col2 ) ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT DISTINCT 81 + - COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT 81 + - COUNT ( * ) FROM tab0 AS cor0
----
78

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

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

query I rowsort
SELECT 27 - - col2 FROM tab2
----
50
67
85

query I rowsort
SELECT ALL 4 + + col2 AS col1 FROM tab0
----
103
14
51

query I rowsort
SELECT ALL - + 10 * - 35 * 71 + - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT - + ( MAX( col1 ) ) + + - 70 FROM tab0 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-7144
SELECT - + ( MAX ( col1 ) ) + + - 70 FROM tab0 AS cor0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL 58 * COUNT( * ) FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL 58 * COUNT ( * ) FROM tab1
----
174

query I rowsort
SELECT DISTINCT + 43 * 57 FROM tab1
----
2451

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

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL + col1 / - + 51 FROM tab0
----
-1
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN - + 88 AND + + 73
----

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

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

query II rowsort
SELECT + 74 * - col2 - + col2, col2 FROM tab1 AS cor0
----
-4425
59
-5100
68
-7200
96

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

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

query I rowsort
SELECT + ( + col0 ) * col1 * col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL - MAX( ALL - - col0 ) * + 78 AS col2 FROM tab2
----
-5850

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL - MAX ( ALL - - col0 ) * + 78 AS col2 FROM tab2
----
-5850

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

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL + 66 / ( + COUNT ( * ) ) AS col1 FROM tab1
----
22

query I rowsort
SELECT ( 73 ) * - col2 FROM tab0
----
-3431
-7227
-730

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

skipif mysql # not compatible
query II rowsort label-7157
SELECT + 0 AS col0, 87 * + COUNT ( * ) FROM tab1 WHERE NOT - col2 IS NULL
----
0
261

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7159
SELECT ( + - 53 ) * - - 19 / + col2 + - col1 / ( - + CAST( NULL AS DECIMAL ) ) - - 3 * - 33 + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT ( + - 53 ) * - - 19 / + col2 + - col1 / ( - + CAST ( NULL AS REAL ) ) - - 3 * - 33 + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 * - + col2 AS col2 FROM tab1
----
-295
-340
-480

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + + col2 BETWEEN 74 AND + 40 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 61 * - + col0 + col2 - + + 30 AS col0, - 64 + + col2 FROM tab2
----
2799
-41
3914
-24
4603
-6

query I rowsort
SELECT DISTINCT col2 * + + 88 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT 54 * - COUNT( * ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-7164
SELECT 54 * - COUNT ( * ) FROM tab0
----
-162

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT - 37, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-37
9

skipif mysql # not compatible
query II rowsort label-7166
SELECT - 37, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-37
9

query I rowsort
SELECT DISTINCT + + 88 AS col1 FROM tab1 AS cor0
----
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + col0 - - + col0 AND + 90
----
15
81
47

query I rowsort
SELECT DISTINCT + col1 + - col0 + + col2 AS col2 FROM tab2 cor0
----
28
50
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7170
SELECT ( - col1 ) + + col0 DIV + - 11 + + 77 * + - col0 - + col0 FROM tab2 AS cor0
----
-3643
-5074
-5923

skipif mysql # not compatible
query I rowsort label-7170
SELECT ( - col1 ) + + col0 / + - 11 + + 77 * + - col0 - + col0 FROM tab2 AS cor0
----
-3643
-5074
-5923

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT + CAST( 3 AS SIGNED ) + + 98 * 98 * + - col0 FROM tab0 cor0
----
-144057
-835545
-931585

skipif mysql # not compatible
query I rowsort label-7172
SELECT + CAST ( 3 AS INTEGER ) + + 98 * 98 * + - col0 FROM tab0 cor0
----
-144057
-835545
-931585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT - CAST( SUM( DISTINCT - col0 ) AS SIGNED ) + CAST( + MIN( DISTINCT - - col0 ) AS SIGNED ) - - COUNT( * ) col0 FROM tab1
----
281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7173
SELECT - CAST ( SUM ( DISTINCT - col0 ) AS INTEGER ) + CAST ( + MIN ( DISTINCT - - col0 ) AS INTEGER ) - - COUNT ( * ) col0 FROM tab1
----
281

query I rowsort
SELECT DISTINCT col1 + - col2 + + 2 FROM tab0
----
-96
13
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE - + 86 <> + - col2
----
3

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE - + 86 <> + - col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT 95 - - COUNT( * ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT 95 - - COUNT ( * ) AS col0 FROM tab1
----
98

query I rowsort
SELECT DISTINCT - 43 + + col2 FROM tab1
----
16
25
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL CAST( MAX( ALL - - 17 ) AS SIGNED ) - - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL CAST ( MAX ( ALL - - 17 ) AS INTEGER ) - - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + 42 * - col1 + + 10 col1 FROM tab2 AS cor0
----
2106
2749
3180

query I rowsort
SELECT ALL + 42 * + col1 + col2 + - 47 * + 52 FROM tab2 AS cor0
----
-279
428
830

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT - MAX( DISTINCT + + col1 ) * 16 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT - MAX ( DISTINCT + + col1 ) * 16 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT ALL - - 3 * - + 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8535c9e1e6711663c59b0ada3541f0f7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7185
SELECT + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT DISTINCT + - col0 * - col0 AS col2, 55 AS col1 FROM tab2 AS cor0
----
2116
55
4096
55
5625
55

query I rowsort
SELECT ALL - - ( + col2 ) * + + ( - col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT + MIN( DISTINCT - - ( + + col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + MIN ( DISTINCT - - ( + + col1 ) ) FROM tab1
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT - ( - CAST( 20 AS SIGNED ) ) FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-7193
SELECT - ( - CAST ( 20 AS INTEGER ) ) FROM tab2
----
20
20
20

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

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

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

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

query II rowsort
SELECT - col2 + col1 AS col0, - col1 AS col0 FROM tab0
----
-98
-1
11
-21
34
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT - COUNT( * ) * 1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7199
SELECT - COUNT ( * ) * 1 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 col2, + 98 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT ALL ( - COUNT( * ) ) DIV - - 45 + - COUNT( * ) * - - COUNT( * ) + + - 71 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL ( - COUNT ( * ) ) / - - 45 + - COUNT ( * ) * - - COUNT ( * ) + + - 71 FROM tab0 AS cor0
----
-80

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

skipif mysql # not compatible
query I rowsort label-7202
SELECT CAST ( - 93 AS INTEGER ) FROM tab1 AS cor0
----
-93
-93
-93

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

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

query I rowsort
SELECT DISTINCT col2 / + col1 + 9 FROM tab2 WHERE NOT NULL IN ( - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-7205
SELECT + col0 - 63 + - col1 / - - col1 AS col1 FROM tab2
----
-18
0
11

query I rowsort
SELECT col1 + - + col1 * - - 55 AS col1 FROM tab1
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT + 94 - + COUNT( * ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT + 94 - + COUNT ( * ) AS col0 FROM tab0
----
91

query III rowsort
SELECT ALL + 29 AS col1, 4 AS col0, + 83 FROM tab2
----
9 values hashing to e3ace57cc9129e073e70f10f0970ede0

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT + + COUNT( * ) - - SUM( DISTINCT + 21 ) AS col1 FROM tab1 WHERE NOT - 86 > - col1 * + col1 + 64
----
22

skipif mysql # not compatible
query I rowsort label-7209
SELECT + + COUNT ( * ) - - SUM ( DISTINCT + 21 ) AS col1 FROM tab1 WHERE NOT - 86 > - col1 * + col1 + 64
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT ALL + CAST( + - 89 AS SIGNED ) * - 69 + + col0 AS col2 FROM tab2 cor0
----
6187
6205
6216

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + CAST ( + - 89 AS INTEGER ) * - 69 + + col0 AS col2 FROM tab2 cor0
----
6187
6205
6216

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

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

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

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

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

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

query I rowsort
SELECT - - col0 * ( 66 ) - col2 FROM tab1 WHERE - - col2 >= col1 + col2
----

query I rowsort
SELECT ALL - col1 * - + col1 * + col0 AS col1 FROM tab0 AS cor0
----
38367
97
98415

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

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

query I rowsort
SELECT DISTINCT + col2 + - 49 AS col2 FROM tab0
----
-2
-39
50

query I rowsort
SELECT DISTINCT + 74 * + - 72 FROM tab1 cor0
----
-5328

onlyif mysql # DIV for integer division: 
query I rowsort label-7221
SELECT DISTINCT + col2 DIV col2 - col0 AS col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + col2 / col2 - col0 AS col0 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7222
SELECT DISTINCT + col2, CAST( - col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

skipif mysql # not compatible
query II rowsort label-7222
SELECT DISTINCT + col2, CAST ( - col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT - col0 + + 4 AS col2 FROM tab1 AS cor0
----
-47
-81
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT ( col1 ) DIV + + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT ( col1 ) / + + col1 FROM tab1
----
1
1
1

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 57 >= - 78
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL - ( SUM( - 41 ) ) AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - ( SUM ( - 41 ) ) AS col2 FROM tab0 AS cor0
----
123

query I rowsort
SELECT - + col0 + col0 + 43 * - 37 FROM tab2 AS cor0
----
-1591
-1591
-1591

query I rowsort
SELECT - + col1 * + 18 + + + col0 FROM tab0 AS cor0
----
-1443
-291
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT + col1 DIV - 25 AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT + col1 / - 25 AS col2 FROM tab0 AS cor0
----
-3
0
0

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

query I rowsort
SELECT ALL - 52 * + 10 FROM tab1 AS cor0
----
-520
-520
-520

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7238
SELECT ALL - col0 + + - 45 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT col1 * ( 99 ) FROM tab2
----
5049
6633
7623

query I rowsort
SELECT DISTINCT - col0 + + 8 FROM tab1
----
-43
-77
-83

query I rowsort
SELECT + 0 * 39 AS col2 FROM tab1
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL 79 * COUNT ( * ) FROM tab2
----
237

query II rowsort
SELECT col1 AS col2, 62 AS col1 FROM tab2
----
51
62
67
62
77
62

onlyif mysql # DIV for integer division: 
query II rowsort label-7247
SELECT col0 + + col1, ( + - col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
108
0
96
-5
98
0

skipif mysql # not compatible
query II rowsort label-7247
SELECT col0 + + col1, ( + - col1 ) / col0 AS col1 FROM tab0 AS cor0
----
108
0
96
-5
98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT MIN( col2 ) + 49 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7248
SELECT MIN ( col2 ) + 49 FROM tab2 AS cor0
----
72

query I rowsort
SELECT - col1 + + + 95 AS col2 FROM tab1 AS cor0
----
48
81
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT + + CAST( - + 96 AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif mysql # not compatible
query I rowsort label-7250
SELECT + + CAST ( - + 96 AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

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

query I rowsort
SELECT ALL - 17 - - col0 AS col0 FROM tab2 AS cor0
----
29
47
58

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

query I rowsort
SELECT - + col0 * col1 + + + col1 - + - col2 * + col0 FROM tab2 AS cor0
----
-1237
-2291
-608

query II rowsort
SELECT ALL - 48 - col0, + col0 AS col1 FROM tab1 AS cor0
----
-133
85
-139
91
-99
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT 91 DIV - 48 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7257
SELECT 91 / - 48 FROM tab1
----
-1
-1
-1

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

query II rowsort
SELECT DISTINCT - 50 AS col1, col2 + - + col1 * - 84 AS col0 FROM tab1
----
-50
1272
-50
4016
-50
479

query II rowsort
SELECT ALL 26 AS col0, 83 AS col1 FROM tab2
----
26
83
26
83
26
83

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

query II rowsort
SELECT + col1, col1 + col0 * + + 70 FROM tab0
----
1
6791
21
6111
81
1131

query I rowsort
SELECT DISTINCT + + 29 AS col1 FROM tab0 cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL COUNT( ALL 18 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL COUNT ( ALL 18 ) FROM tab2 cor0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT SUM( + col0 ) AS col2, + 31 AS col2 FROM tab0
----
199
31

skipif mysql # not compatible
query II rowsort label-7267
SELECT SUM ( + col0 ) AS col2, + 31 AS col2 FROM tab0
----
199
31

query I rowsort
SELECT ALL 54 FROM tab2 WHERE NOT col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL ( + MIN ( ALL - - 93 ) ) FROM tab1 AS cor0
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT - + MIN( ALL + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7271
SELECT - + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - col0 + - col0 + - col0 * - col2 FROM tab2
----
2432
4200
966

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT ALL SUM( - 3 ) + - - 31 DIV - COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL SUM ( - 3 ) + - - 31 / - COUNT ( * ) FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT ALL - col0 + - CAST( - 7 AS SIGNED ) FROM tab1
----
-44
-78
-84

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL - col0 + - CAST ( - 7 AS INTEGER ) FROM tab1
----
-44
-78
-84

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

skipif mysql # not compatible
query I rowsort label-7276
SELECT + COUNT ( * ) FROM tab0 WHERE - 38 NOT BETWEEN NULL AND NULL
----
0

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

query I rowsort
SELECT DISTINCT col2 + + 19 AS col0 FROM tab0
----
118
29
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7279
SELECT 28 + - CAST( NULL AS DECIMAL ) + + - CAST( - COUNT( * ) AS SIGNED ) * - MIN( + + col0 ) / - SUM( col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT 28 + - CAST ( NULL AS REAL ) + + - CAST ( - COUNT ( * ) AS INTEGER ) * - MIN ( + + col0 ) / - SUM ( col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT + + ( col2 ) * - 90 AS col1 FROM tab1 AS cor0
----
-5310
-6120
-8640

query I rowsort
SELECT ALL 18 * + 16 + - col0 AS col0 FROM tab0
----
191
201
273

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT ALL - ( + + 95 ) DIV 39 + col0 DIV + - 14 FROM tab2
----
-5
-6
-7

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - ( + + 95 ) / 39 + col0 / + - 14 FROM tab2
----
-5
-6
-7

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 75 <> - col1 AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 - - + 38 AS col2 FROM tab0 cor0
----
125
135
53

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

query II rowsort
SELECT DISTINCT col2, col2 - col2 * + col1 AS col1 FROM tab1 AS cor0
----
59
-236
68
-3128
96
-1248

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

query I rowsort
SELECT DISTINCT col1 * - - 76 AS col2 FROM tab0 AS cor0
----
1596
6156
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT - SUM( ALL + ( + + 41 ) ) AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT - SUM ( ALL + ( + + 41 ) ) AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----
NULL

query I rowsort
SELECT + col1 * + 36 * col1 + col2 FROM tab0 AS cor0
----
135
15886
236243

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

query I rowsort
SELECT DISTINCT + 50 FROM tab1 WHERE - col0 * + - col2 = NULL
----

query II rowsort
SELECT col0 AS col0, 1 FROM tab2 WHERE - - 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT ( + + ( 84 ) ) + - COUNT( * ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT ( + + ( 84 ) ) + - COUNT ( * ) AS col2 FROM tab0
----
81

query I rowsort
SELECT ALL 73 + 32 * + col1 AS col0 FROM tab0
----
105
2665
745

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

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT col2 + + col2 * + 40 + + + CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) * - - col1 / + col0 FROM tab2 WHERE NOT ( col2 + + col1 ) IS NOT NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + - ( - col0 ) * + col0 * + - col0 * + - col2 + + - 18 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
10485702
2238687
24468674

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7305
SELECT - CAST ( NULL AS INTEGER ), + COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT DISTINCT col2 DIV - 83 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT col2 / - 83 FROM tab0
----
-1
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7310
SELECT 99 DIV + - SUM( col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7310
SELECT 99 / + - SUM ( col1 ) FROM tab1
----
-1

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - col1 + 22 FROM tab0 cor0
----
-188
-3785
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col0 ) col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 4 - + ( - col2 ) + - + col1 NOT BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 4 - + ( - col2 ) + - + col1 NOT BETWEEN col1 AND NULL
----
0

query II rowsort
SELECT DISTINCT - ( col1 ), col1 FROM tab2
----
-51
51
-67
67
-77
77

query II rowsort
SELECT - ( - - col1 ), - col2 AS col1 FROM tab0
----
-1
-99
-21
-10
-81
-47

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

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

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER ) * - 55 AS col1 FROM tab2 AS cor0
----
165

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7321
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 77 + + CAST( NULL AS DECIMAL ) - - - col2 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7321
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 77 + + CAST ( NULL AS REAL ) - - - col2 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - ( col1 ) + - col2 * + col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7323
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - - CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7323
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - - CAST ( + + col0 AS INTEGER )
----

query I rowsort
SELECT - 40 + + - col2 + - 64 * - col0 FROM tab2 cor0
----
2881
4016
4702

query I rowsort
SELECT ALL - col0 + + 24 FROM tab0 AS cor0
----
-63
-73
9

query I rowsort
SELECT - ( + 64 ) + - + col0 AS col2 FROM tab2 AS cor0
----
-110
-128
-139

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - 75 ) <= col2 / col2 * - col2
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - 24 + - 53 FROM tab1
----
-77

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

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

query II rowsort
SELECT ALL col2 + + 75 * + col0 AS col0, 50 FROM tab1
----
3921
50
6434
50
6893
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7332
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <= + 14 AND NULL IN ( CAST( NULL AS SIGNED ) - 84, - 4, col0, - - col2 )
----

skipif mysql # not compatible
query III rowsort label-7332
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <= + 14 AND NULL IN ( CAST ( NULL AS INTEGER ) - 84, - 4, col0, - - col2 )
----

query I rowsort
SELECT col1 - - - 95 - - - col1 AS col0 FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT - 61 - - col2 FROM tab2 AS cor0
----
-21
-3
-38

query I rowsort
SELECT - ( - col0 ) * + col0 - col2 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT DISTINCT + ( SUM( 4 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT + ( SUM ( 4 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT SUM( DISTINCT + + 77 ) col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7338
SELECT SUM ( DISTINCT + + 77 ) col2 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL - COUNT( * ) * + 63 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - COUNT ( * ) * + 63 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT DISTINCT 12 * + col2 AS col1 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT + ( + 32 ) FROM tab0
----
32
32
32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + 68
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT - 1 DIV + - 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT - 1 / + - 98 FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7345
SELECT + - col0 * col0 + col1, CAST( col0 AS SIGNED ) FROM tab0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query II rowsort label-7345
SELECT + - col0 * col0 + col1, CAST ( col0 AS INTEGER ) FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 92 + + 70 BETWEEN ( + col2 - - col1 + 61 ) AND 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + col1 + + 7 + col0 + 45 FROM tab1 AS cor0
----
117
142
190

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT COUNT( * ) + 19 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-7350
SELECT COUNT ( * ) + 19 FROM tab2
----
22

query I rowsort
SELECT + col1 * + 89 AS col2 FROM tab1 cor0
----
1246
4183
445

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7354
SELECT ALL - - 2 DIV + col0 * + + ( 30 ) AS col2, 2 * 58 * + ( 99 ) * + + 60 + - 5 * 51 AS col1 FROM tab0 AS cor0
----
0
688785
0
688785
0
688785

skipif mysql # not compatible
query II rowsort label-7354
SELECT ALL - - 2 / + col0 * + + ( 30 ) AS col2, 2 * 58 * + ( 99 ) * + + 60 + - 5 * 51 AS col1 FROM tab0 AS cor0
----
0
688785
0
688785
0
688785

query II rowsort
SELECT + col2, - ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
-85
68
-91
96
-51

query II rowsort
SELECT - - col2 * + col0 AS col1, 76 FROM tab1 cor0
----
4896
76
5015
76
6188
76

query I rowsort
SELECT DISTINCT 7 * - - col1 + + col2 + - col0 FROM tab2 AS cor0
----
334
452
515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7358
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT MIN ( DISTINCT - - 14 ) FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT - 29 + + COUNT( * ) FROM tab0, tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - 29 + + COUNT ( * ) FROM tab0, tab1 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT + 13 * + COUNT( * ) - 63 AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7361
SELECT + 13 * + COUNT ( * ) - 63 AS col2 FROM tab1
----
-24

query I rowsort
SELECT - 81 + - col1 * + + col0 AS col2 FROM tab0
----
-1296
-178
-1908

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + 63 + + SUM( ALL - 69 ) AS col1 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-7364
SELECT + 63 + + SUM ( ALL - 69 ) AS col1 FROM tab2 AS cor0
----
-144

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

query I rowsort
SELECT ALL + 84 - 65 + + 79 + + 14 AS col1 FROM tab1 AS cor0
----
112
112
112

query I rowsort
SELECT + ( ( + 18 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT - 99 * COUNT( * ) col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7368
SELECT - 99 * COUNT ( * ) col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7371
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0, - 83 + col0 FROM tab0 AS cor0
----
NULL
-68
NULL
14
NULL
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7371
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, - 83 + col0 FROM tab0 AS cor0
----
NULL
-68
NULL
14
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT - COUNT( * ) * + + COUNT( * ) * + 55 FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT - COUNT ( * ) * + + COUNT ( * ) * + 55 FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7373
SELECT ALL 73, - col0 + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NULL <> + 5
----

skipif mysql # not compatible
query II rowsort label-7373
SELECT ALL 73, - col0 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NULL <> + 5
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 6 * col1 IS NOT NULL
----

query II rowsort
SELECT - ( col1 ) + - - col0 AS col2, - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-13
-77
-5
-51
8
-67

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7376
SELECT col0 * - + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT MIN( + 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-7377
SELECT MIN ( + 60 ) FROM tab2
----
60

query I rowsort
SELECT DISTINCT col0 + 53 FROM tab1
----
104
138
144

query I rowsort
SELECT + 91 * col1 + + - col1 AS col2 FROM tab2
----
4590
6030
6930

query I rowsort
SELECT col1 + + - 89 FROM tab2
----
-12
-22
-38

query I rowsort
SELECT ALL + - col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT DISTINCT + + 33 + ( - COUNT( * ) ) DIV + 42 + + MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + + 33 + ( - COUNT ( * ) ) / + 42 + + MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-14

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

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

query I rowsort
SELECT ALL 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT - 8 + + + col1 + + col2 FROM tab0
----
120
23
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7386
SELECT DISTINCT - 25 DIV - SUM( col2 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7386
SELECT DISTINCT - 25 / - SUM ( col2 ) col2 FROM tab1
----
0

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

query I rowsort
SELECT 91 * col0 + 34 + - + col0 FROM tab1 cor0
----
4624
7684
8224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + col2 * + 88 * col1 + - + col2 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT + + col2 + - - 31 FROM tab2 cor0
----
54
71
89

query I rowsort
SELECT - 79 + + col2 AS col0 FROM tab2 AS cor0
----
-21
-39
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT col0 DIV 99 + 42 FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-7392
SELECT col0 / 99 + 42 FROM tab2
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7393
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) * ( + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7393
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT col2, col0 AS col2, col2 + + col2 * + + col1 * - - col2 FROM tab0
----
9 values hashing to a758d848b5d14e7b865b79eccdab3d48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col0 + + 8 * col0 AS col2, + 21 + col1 col2 FROM tab0
----
1335
102
2523
42
873
22

query I rowsort
SELECT DISTINCT 90 + - + 48 + - + col1 AS col0 FROM tab2
----
-25
-35
-9

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

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

query II rowsort
SELECT + + ( - col2 ) AS col0, 12 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
-10
1200
-47
26508
-99
117612

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT NULL <> 83
----

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

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

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

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

query I rowsort
SELECT + + col0 - 82 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-31
3
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7403
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - + col0 * + + col1 >= + + 36 + 74 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7403
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - + col0 * + + col1 >= + + 36 + 74 + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + ( 63 ), - col1 AS col1 FROM tab2 AS cor0
----
63
-51
63
-67
63
-77

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + 98 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT 81 + - col0 AS col2 FROM tab1
----
-10
-4
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7411
SELECT 60 * + CAST( - + col2 AS SIGNED ), col2 * + + col2 * - - 76 * + - col1 * - + 8 + + + 85 + - - col1 * + col0 - 36 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-3540
NULL
-4080
NULL
-5760
NULL

skipif mysql # not compatible
query II rowsort label-7411
SELECT 60 * + CAST ( - + col2 AS INTEGER ), col2 * + + col2 * - - 76 * + - col1 * - + 8 + + + 85 + - - col1 * + col0 - 36 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-3540
NULL
-4080
NULL
-5760
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7412
SELECT DISTINCT - 20, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-20
-3

skipif mysql # not compatible
query II rowsort label-7412
SELECT DISTINCT - 20, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-20
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7413
SELECT ALL - 35 AS col2, col0 DIV col1 * - col1 * - 40 FROM tab2 AS cor0
----
-35
0
-35
0
-35
2680

skipif mysql # not compatible
query II rowsort label-7413
SELECT ALL - 35 AS col2, col0 / col1 * - col1 * - 40 FROM tab2 AS cor0
----
-35
0
-35
0
-35
2680

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

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

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

query I rowsort
SELECT ALL - 16 * - 55 FROM tab2
----
880
880
880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT COUNT( col0 ) * - MAX( - 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-7418
SELECT COUNT ( col0 ) * - MAX ( - 80 ) FROM tab0
----
240

query I rowsort
SELECT - col0 + + col2 FROM tab0 WHERE NOT NULL BETWEEN + 47 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * - 71 AS col0 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT DISTINCT - col0 DIV 39 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT - col0 / 39 FROM tab1
----
-1
-2

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
1
21
81

query I rowsort
SELECT - col1 * + col2 + col2 AS col1 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL ( - 8 ) + + MIN( ALL col2 ) * COUNT( * ) AS col2 FROM tab1
----
169

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL ( - 8 ) + + MIN ( ALL col2 ) * COUNT ( * ) AS col2 FROM tab1
----
169

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7426
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT SUM( DISTINCT ( - 69 ) ) + - 30 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-7428
SELECT SUM ( DISTINCT ( - 69 ) ) + - 30 FROM tab1
----
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT + col0 DIV - 65 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7430
SELECT + col0 / - 65 FROM tab0
----
-1
-1
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7432
SELECT 86 + - CAST( - COUNT( DISTINCT 6 ) AS SIGNED ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-7432
SELECT 86 + - CAST ( - COUNT ( DISTINCT 6 ) AS INTEGER ) AS col0 FROM tab1
----
87

query I rowsort
SELECT ALL - ( 35 ) AS col2 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT DISTINCT 70 * + col1 AS col1 FROM tab1 WHERE - 82 IN ( 84 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ( ( 41 ) ) FROM tab0
----
41
41
41

query I rowsort
SELECT DISTINCT col1 / col2 AS col0 FROM tab2 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL - COUNT( * ) * - 4 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - COUNT ( * ) * - 4 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT + SUM( DISTINCT 55 ) * COUNT( * ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT + SUM ( DISTINCT 55 ) * COUNT ( * ) FROM tab2 AS cor0
----
165

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

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

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

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL 86 / - col0 AS col1 FROM tab2
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + MIN( 83 ) AS col0 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-7444
SELECT + MIN ( 83 ) AS col0 FROM tab2
----
83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - 50 * + 50 AND 69 * col0
----

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

query I rowsort
SELECT - 68 * 61 FROM tab0 AS cor0 WHERE NOT ( + 38 ) IS NULL
----
-4148
-4148
-4148

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> 19 + col2 * - col0
----

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab1 AS cor0 WHERE ( 78 ) IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT - - MAX( 88 ) * + 93 FROM tab0 AS cor0
----
8184

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT - - MAX ( 88 ) * + 93 FROM tab0 AS cor0
----
8184

query I rowsort
SELECT 77 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 < - col2
----
77
77
77

query I rowsort
SELECT ALL col2 * 58 AS col0 FROM tab1 cor0
----
3422
3944
5568

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 / - 76 ) < - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT + + CAST ( 40 AS INTEGER ) + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) + col2 ) FROM tab2 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT ALL - col2 * - col2 * + col1 + 29 DIV col1 AS col2 FROM tab1
----
129026
17410
217328

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - col2 * - col2 * + col1 + 29 / col1 AS col2 FROM tab1
----
129026
17410
217328

query I rowsort
SELECT - 6 + + col1 FROM tab1
----
-1
41
8

query I rowsort
SELECT col0 * - col2 * - col1 + col2 AS col1 FROM tab0
----
18280
57152
9702

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT 12 * - + 1 * - col1 + - 58 DIV 61 AS col1 FROM tab0
----
12
252
972

skipif mysql # not compatible
query I rowsort label-7462
SELECT 12 * - + 1 * - col1 + - 58 / 61 AS col1 FROM tab0
----
12
252
972

query I rowsort
SELECT + col1 + - + 22 AS col0 FROM tab2
----
29
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT - 73 + - COUNT( * ) - 13 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - 73 + - COUNT ( * ) - 13 FROM tab0
----
-89

query I rowsort
SELECT ALL 47 * + col1 + + ( + col2 ) AS col2 FROM tab2
----
2420
3207
3659

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 * + col0 + col0 * col1 ) <> ( + 25 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 * + + 61 * + 52 col2 FROM tab0 AS cor0
----
85644
85644
85644

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

skipif mysql # not compatible
query I rowsort label-7468
SELECT COUNT ( * ) * + 6 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + 41 AS col1 FROM tab0 cor0
----
122
42
62

query I rowsort
SELECT - 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - 78 - 9 AS col0 FROM tab2
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + COUNT( * ) - - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
86

skipif mysql # not compatible
query I rowsort label-7472
SELECT + COUNT ( * ) - - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 20
----

query I rowsort
SELECT - col1 + + 13 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
2141
92
9813

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT 47 + + COUNT( * ) - - COUNT( * ) * 20 AS col0 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-7476
SELECT 47 + + COUNT ( * ) - - COUNT ( * ) * 20 AS col0 FROM tab2 AS cor0
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT + CAST( + col2 AS SIGNED ) + - 88 * - 70 AS col1 FROM tab1 AS cor0
----
6219
6228
6256

skipif mysql # not compatible
query I rowsort label-7477
SELECT + CAST ( + col2 AS INTEGER ) + - 88 * - 70 AS col1 FROM tab1 AS cor0
----
6219
6228
6256

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + + col1 * + col0 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab1 WHERE NOT - 22 IS NOT NULL
----

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

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

query I rowsort
SELECT 13 * - - col2 AS col2 FROM tab1
----
1248
767
884

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

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

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

query I rowsort
SELECT ALL 56 + 11 * AVG ( + 79 + 61 * col1 ) AS col1 FROM tab2 AS cor0 WHERE col1 * - col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7489
SELECT ALL + 53 DIV + col0 AS col2, 99 AS col2 FROM tab0 AS cor0
----
0
99
0
99
3
99

skipif mysql # not compatible
query II rowsort label-7489
SELECT ALL + 53 / + col0 AS col2, 99 AS col2 FROM tab0 AS cor0
----
0
99
0
99
3
99

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

query II rowsort
SELECT col1, + col1 * - + 97 * col2 + + col0 * - col1 AS col0 FROM tab0
----
1
-9700
21
-22197
81
-370494

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

query I rowsort
SELECT DISTINCT - 35 * + - col1 AS col0 FROM tab1
----
1645
175
490

query I rowsort
SELECT - 61 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL CAST( - - 87 AS SIGNED ) * + col1 * - CAST( NULL AS SIGNED ) * + 0 * + 41 + col1 * - 9 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL CAST ( - - 87 AS INTEGER ) * + col1 * - CAST ( NULL AS INTEGER ) * + 0 * + 41 + col1 * - 9 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 56 + + 26 FROM tab2 cor0
----
82
82
82

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7501
SELECT + CAST( - col0 AS SIGNED ) DIV 1 + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7501
SELECT + CAST ( - col0 AS INTEGER ) / 1 + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 9 * - col1 + + col1 FROM tab2 AS cor0
----
510
670
770

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT 4 + - 89 + - 60 DIV - col2 AS col0 FROM tab2 AS cor0 WHERE ( col2 * - col0 ) IS NOT NULL
----
-83
-84
-84

skipif mysql # not compatible
query I rowsort label-7504
SELECT 4 + - 89 + - 60 / - col2 AS col0 FROM tab2 AS cor0 WHERE ( col2 * - col0 ) IS NOT NULL
----
-83
-84
-84

query I rowsort
SELECT DISTINCT + col0 * col1 + col0 + + col1 FROM tab0 AS cor0
----
1311
1935
195

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

query I rowsort
SELECT DISTINCT 5 * + + col0 * + + col2 + - 14 FROM tab0 AS cor0
----
3511
4336
48001

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7508
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( + ( - - 33 ) AS SIGNED ) BETWEEN - 10 - + 75 AND ( 20 * col2 )
----

skipif mysql # not compatible
query III rowsort label-7508
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( + ( - - 33 ) AS INTEGER ) BETWEEN - 10 - + 75 AND ( 20 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7509
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> - - col0 * - col1 * - col1
----

skipif mysql # not compatible
query III rowsort label-7509
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> - - col0 * - col1 * - col1
----

query I rowsort
SELECT col1 + - 25 - - - col1 FROM tab2 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT col0 + + col0 + - + col1 AS col0 FROM tab0 cor0
----
-51
153
193

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab1 AS cor0 WHERE NOT ( - col0 - - col0 ) IS NULL
----
-4896
-5015
-6188

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7515
SELECT * FROM tab0 WHERE CAST( + - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7515
SELECT * FROM tab0 WHERE CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL - 97 + - 54 + + COUNT( * ) AS col1 FROM tab2
----
-148

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL - 97 + - 54 + + COUNT ( * ) AS col1 FROM tab2
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT - 18 - - 77 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1060
3601
367

skipif mysql # not compatible
query I rowsort label-7517
SELECT - 18 - - 77 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1060
3601
367

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7518
SELECT ALL + + CAST( - - ( - - 15 ) AS SIGNED ) AS col2, - 2 col1 FROM tab2 AS cor0
----
15
-2
15
-2
15
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7518
SELECT ALL + + CAST ( - - ( - - 15 ) AS INTEGER ) AS col2, - 2 col1 FROM tab2 AS cor0
----
15
-2
15
-2
15
-2

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 + col1 + - 56 + - ( - + col0 ) * + - col0 ) >= ( col0 )
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT ALL + + COUNT( * ) - - - COUNT( * ), - 34 AS col2 FROM tab0 AS cor0 WHERE NOT 23 BETWEEN + 44 AND NULL
----
0
-34

skipif mysql # not compatible
query II rowsort label-7521
SELECT ALL + + COUNT ( * ) - - - COUNT ( * ), - 34 AS col2 FROM tab0 AS cor0 WHERE NOT 23 BETWEEN + 44 AND NULL
----
0
-34

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

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

query I rowsort
SELECT - col1 - - - 50 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-131
-51
-71

query II rowsort
SELECT ALL col2 AS col0, - 38 AS col2 FROM tab1
----
59
-38
68
-38
96
-38

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + + col1 + - col2 AS col2 FROM tab1 WHERE NOT 31 NOT BETWEEN + col2 AND NULL
----

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

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

query II rowsort
SELECT + col2, - col1 + 54 FROM tab2 AS cor0
----
23
3
40
-23
58
-13

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

query I rowsort
SELECT ALL 94 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 4 AS col0, col2 + col1 col1 FROM tab1 AS cor0
----
4
110
4
115
4
64

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

query II rowsort
SELECT DISTINCT col1 AS col0, - col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + - ( + - 35 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT 39 * col1 + col1 FROM tab2
----
2040
2680
3080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL + MAX( DISTINCT 13 ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + MAX ( DISTINCT 13 ) AS col2 FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - MIN( ALL + - 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-7540
SELECT - MIN ( ALL + - 35 ) FROM tab1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT COUNT( * ) + - CAST( + 8 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7541
SELECT COUNT ( * ) + - CAST ( + 8 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT ALL col1 * - - col2 * + - col0 + + 39 FROM tab2 AS cor0
----
-197081
-291411
-53919

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT DISTINCT - 81 * - 11 - - COUNT( * ) * + + 57 col2 FROM tab1 AS cor0
----
1062

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7543
SELECT DISTINCT - 81 * - 11 - - COUNT ( * ) * + + 57 col2 FROM tab1 AS cor0
----
1062

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - col1 = + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7545
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7546
SELECT col2 + col2 AS col0, ( - col2 ) DIV col0 FROM tab0 AS cor0
----
198
-1
20
0
94
-3

skipif mysql # not compatible
query II rowsort label-7546
SELECT col2 + col2 AS col0, ( - col2 ) / col0 FROM tab0 AS cor0
----
198
-1
20
0
94
-3

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

query I rowsort
SELECT ALL + + col0 + ( col1 ) * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + 80 IS NULL
----
1230
1914
194

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

query I rowsort
SELECT DISTINCT col0 + + 33 + - - 19 + + - col1 FROM tab0
----
-14
118
148

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT IN ( col2, 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL - 17 * - COUNT( * ) AS col0 FROM tab1 WHERE 26 - - col0 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - 17 * - COUNT ( * ) AS col0 FROM tab1 WHERE 26 - - col0 IS NOT NULL
----
51

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

query I rowsort
SELECT - 95 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-95
-95
-95

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

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

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

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

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

query I rowsort
SELECT col2 * - 35 * + col0 * - col1 - - col1 FROM tab0
----
1998756
336106
639471

query I rowsort
SELECT - ( 17 ) FROM tab1 cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 cor0 WHERE NOT 59 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7564
SELECT + 37 * - CAST( NULL AS DECIMAL ) AS col0, 61 * - + col2 * - 69 / - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7564
SELECT + 37 * - CAST ( NULL AS REAL ) AS col0, 61 * - + col2 * - 69 / - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query II rowsort
SELECT - col2 * - 25, col1 + col1 AS col2 FROM tab1
----
1475
10
1700
94
2400
28

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 35 + - 86 + 37 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT - COUNT( * ) * - + 5 AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - COUNT ( * ) * - + 5 AS col1 FROM tab0
----
15

query I rowsort
SELECT ALL + 62 FROM tab2 cor0 WHERE col1 * + - col0 <= ( 12 * + col1 )
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 * 78 col1 FROM tab1
----
-4056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 3 col1 FROM tab2
----
54
70
80

query I rowsort
SELECT - - col2 + + + col0 FROM tab1 WHERE 80 < NULL
----

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

query I rowsort
SELECT ALL + 64 FROM tab2 AS cor0 WHERE NOT col1 * 78 <= + col2
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT - + COUNT( * ) + - MIN( 44 ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT - + COUNT ( * ) + - MIN ( 44 ) AS col0 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT ALL 75 + - col0 AS col2 FROM tab2
----
0
11
29

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 + - 95
----

query I rowsort
SELECT DISTINCT col2 + 37 * + 77 AS col2 FROM tab0
----
2859
2896
2948

query II rowsort
SELECT col2 + + col2 AS col2, + col1 - col1 FROM tab1
----
118
0
136
0
192
0

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

query I rowsort
SELECT + ( - col1 ) + + ( - 86 ) FROM tab2 cor0
----
-137
-153
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT ALL - 21 * + 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-7582
SELECT ALL - 21 * + CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7584
SELECT - COUNT ( - 14 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col2 AS col1, + 35 AS col0 FROM tab1 AS cor0
----
59
35
68
35
96
35

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= col0 + col2 * 22
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / - 82 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - MIN( - 74 ) * + + COUNT( - 29 ) col1 FROM tab1
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7591
SELECT - MIN ( - 74 ) * + + COUNT ( - 29 ) col1 FROM tab1
----
222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7592
SELECT COUNT( + 49 ) col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7592
SELECT COUNT ( + 49 ) col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT - ( + + COUNT( ALL col0 ) ) * + + 98 AS col0 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-7593
SELECT - ( + + COUNT ( ALL col0 ) ) * + + 98 AS col0 FROM tab1
----
-294

query I rowsort
SELECT 81 + 10 FROM tab2
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7595
SELECT ALL * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) * - col0 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7595
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) * - col0 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 + + + 58 col2 FROM tab1
----
1402
3254
353

query I rowsort
SELECT col2 + col1 + col0 + - col1 AS col1 FROM tab1 cor0
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - col2 AS col0, + col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT SUM( DISTINCT - ( + - 23 ) ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-7600
SELECT SUM ( DISTINCT - ( + - 23 ) ) AS col2 FROM tab1
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7601
SELECT MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7601
SELECT MAX ( DISTINCT - CAST ( NULL AS REAL ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ( ( - col2 ) ) * col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL - + COUNT( ALL + 85 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL - + COUNT ( ALL + 85 ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT + 14 DIV col1 + - col0 * col2 FROM tab0 AS cor0
----
-705
-870
-9589

skipif mysql # not compatible
query I rowsort label-7604
SELECT + 14 / col1 + - col0 * col2 FROM tab0 AS cor0
----
-705
-870
-9589

query I rowsort
SELECT - - col1 + - 15 FROM tab2 AS cor0
----
36
52
62

query I rowsort
SELECT - col1 + + col0 / 39 - + col2 + - col2 + + + col2 - - 65 * + 11 * col1 / + 36 FROM tab1 AS cor0 WHERE - col1 = col1 + + 71 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT COUNT( * ) + + 22 AS col1 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT COUNT ( * ) + + 22 AS col1 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT + col2 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT + col2 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( + ( + col1 ) ) + - col2, 59 * - col0 AS col1 FROM tab0
----
-98
-5723
11
-5133
34
-885

query I rowsort
SELECT 47 + + col2 * + ( - col0 ) AS col2 FROM tab2
----
-1011
-2513
-4303

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT 60 + + - COUNT( ALL + col1 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT 60 + + - COUNT ( ALL + col1 ) FROM tab2
----
57

query II rowsort
SELECT col1, 17 FROM tab2
----
51
17
67
17
77
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL + - COUNT( * ) * + 12 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + - COUNT ( * ) * + 12 FROM tab0 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19, col0 col1 FROM tab1 AS cor0
----
19
51
19
85
19
91

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - + col1 * + col2 > - col2
----
10
47
99

query I rowsort
SELECT ALL + 58 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + 57 AS col2 FROM tab2 AS cor0 WHERE 81 NOT BETWEEN col0 + 63 AND NULL
----
57
57
57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT - COUNT( ALL + + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7619
SELECT - COUNT ( ALL + + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + 80 * - col2 - 98 FROM tab1 AS cor0
----
4622
5342
7582

query I rowsort
SELECT DISTINCT + col2 * + + col2 + + col0 AS col0 FROM tab1 AS cor0
----
3566
4715
9267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7622
SELECT ALL - COUNT( * ) DIV - MAX( ALL + - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - COUNT ( * ) / - MAX ( ALL + - col1 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( - + 78 * + + col2 IS NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 0 * - - col1, - col2 col0 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

query I rowsort
SELECT col0 * + - ( - col1 ) * - + col0 * - 7 FROM tab0
----
1112643
127575
65863

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7626
SELECT col0 AS col1, col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7626
SELECT col0 AS col1, col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7627
SELECT DISTINCT + CAST( 65 AS SIGNED ) + - - COUNT( ALL + - col0 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + CAST ( 65 AS INTEGER ) + - - COUNT ( ALL + - col0 ) FROM tab2
----
68

query I rowsort
SELECT ALL col0 * + col0 + - 73 + + - 75 FROM tab1
----
2453
7077
8133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT DISTINCT - COUNT( DISTINCT + col1 ) / 21 * + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7629
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) / 21 * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query II rowsort
SELECT + col2, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE NOT ( + ( col2 ) ) NOT BETWEEN + 77 * col1 * - - col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT 26 * - CAST( NULL AS SIGNED ) * - - ( col1 ) * - col1 FROM tab2 WHERE NOT + + 92 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7632
SELECT 26 * - CAST ( NULL AS INTEGER ) * - - ( col1 ) * - col1 FROM tab2 WHERE NOT + + 92 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT - 64 DIV + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 64 / + col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7635
SELECT ALL + col0 * + - ( CAST( NULL AS SIGNED ) ) - + ( - - 63 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL + col0 * + - ( CAST ( NULL AS INTEGER ) ) - + ( - - 63 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 42 * 58 + + 52 FROM tab0, tab1 AS cor0
----
-2384

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT COUNT( * ) AS col2, ( - - COUNT( * ) ) AS col2 FROM tab2, tab1 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-7637
SELECT COUNT ( * ) AS col2, ( - - COUNT ( * ) ) AS col2 FROM tab2, tab1 AS cor0
----
9
9

query I rowsort
SELECT ALL - col2 + + col1 + + - col2 * + 19 AS col2 FROM tab0
----
-179
-1979
-859

query I rowsort
SELECT ALL + 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query II rowsort
SELECT DISTINCT col1 AS col0, col1 * 19 FROM tab2 AS cor0
----
51
969
67
1273
77
1463

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( ( + col0 ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, + 54 + + + col1 col0 FROM tab1 AS cor0
----
14
68
47
101
5
59

query I rowsort
SELECT DISTINCT + - 43 + 75 * + 7 * - 70 AS col1 FROM tab2 AS cor0
----
-36793

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - 41 - COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7645
SELECT - 41 - COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT - col2 + - 71 FROM tab0
----
-118
-170
-81

query III rowsort
SELECT * FROM tab2 WHERE - - 7 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + 50 * + + col0 * + col2 * + col2 AS col1 FROM tab2
----
-1216649
-12614933
-5119923

query I rowsort
SELECT + ( ( + 54 ) ) AS col0 FROM tab0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 76 ) NOT BETWEEN ( + col0 ) AND + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * ( + 24 ) FROM tab0
----
-1128
-2376
-240

query I rowsort
SELECT DISTINCT - + 45 * - + 91 AS col1 FROM tab2 AS cor0
----
4095

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 39 + + ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 64 * - col0 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT 69 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-7655
SELECT 69 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT col2 AS col1, - col2 DIV + col1 AS col1 FROM tab1 cor0
----
59
-11
68
-1
96
-6

skipif mysql # not compatible
query II rowsort label-7656
SELECT col2 AS col1, - col2 / + col1 AS col1 FROM tab1 cor0
----
59
-11
68
-1
96
-6

query II rowsort
SELECT DISTINCT + - 20, col1 * + col1 + + col0 + col2 AS col0 FROM tab1 AS cor0
----
-20
169
-20
2368
-20
343

query I rowsort
SELECT DISTINCT + 2 * - 31 AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT ALL + + col0 * + 82 FROM tab2 AS cor0
----
3772
5248
6150

query I rowsort
SELECT - 15 * - col2 * - - col0 * col0 FROM tab0 cor0
----
1135350
13972365
158625

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - MAX( - 39 ) FROM tab0, tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7661
SELECT - MAX ( - 39 ) FROM tab0, tab0 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT col0 + + CAST( - 82 AS SIGNED ) AS col0 FROM tab1
----
-31
3
9

skipif mysql # not compatible
query I rowsort label-7662
SELECT col0 + + CAST ( - 82 AS INTEGER ) AS col0 FROM tab1
----
-31
3
9

query I rowsort
SELECT - col2 * - ( + + 74 ) + - col2 FROM tab0
----
3431
7227
730

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - SUM( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7664
SELECT - SUM ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL 71 + - 36 FROM tab1 cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query II rowsort label-7666
SELECT ALL + col1 DIV + + col0 AS col2, - col0 + + col1 + - + 44 + + 13 AS col1 FROM tab0 AS cor0
----
0
-127
0
-97
5
35

skipif mysql # not compatible
query II rowsort label-7666
SELECT ALL + col1 / + + col0 AS col2, - col0 + + col1 + - + 44 + + 13 AS col1 FROM tab0 AS cor0
----
0
-127
0
-97
5
35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > + col0
----

query I rowsort
SELECT DISTINCT + 48 * - col2 - - col2 AS col1 FROM tab2
----
-1081
-1880
-2726

query II rowsort
SELECT DISTINCT col2, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7670
SELECT - col0 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT - col0 + - + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 59 * + 93 * 66 AS col0 FROM tab1 AS cor0
----
-362142

query I rowsort
SELECT ALL - col2 + + 85 + - col2 FROM tab0 AS cor0
----
-113
-9
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT + CAST( NULL AS SIGNED ) / + 1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT + CAST ( NULL AS INTEGER ) / + 1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col0, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7675
SELECT DISTINCT + COUNT( * ) + - CAST( 9 AS SIGNED ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + COUNT ( * ) + - CAST ( 9 AS INTEGER ) FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * 82 col1 FROM tab0
----
4920
4920
4920

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT + MAX( ALL + col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT DISTINCT + MAX ( ALL + col2 ) col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 96 * col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7680
SELECT - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT - + 70 AS col0, col1 AS col1 FROM tab0 cor0
----
-70
1
-70
21
-70
81

query III rowsort
SELECT col0, col2 * + + 43 * + col1 AS col1, col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to c0c2087c9ca73befd22b2c055c2eb24e

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT + 13 DIV + col1 + + - 67 * + col2 + + col2 DIV - col2 FROM tab2 AS cor0
----
-1542
-2681
-3887

skipif mysql # not compatible
query I rowsort label-7683
SELECT + 13 / + col1 + + - 67 * + col2 + + col2 / - col2 FROM tab2 AS cor0
----
-1542
-2681
-3887

query I rowsort
SELECT DISTINCT ( - 63 ) * + col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + + MAX( ALL col2 ) FROM tab0 AS cor0 WHERE NOT - col0 / col1 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-7685
SELECT + + MAX ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT - col0 / col1 IS NULL
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * ( col1 ) * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT - COUNT( - col1 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7687
SELECT - COUNT ( - col1 ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT 1 DIV col2 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT 1 / col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 22 * - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE - col0 - - 35 <> + col1 + - col2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT - 0 AS col1, + COUNT( * ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-7690
SELECT - 0 AS col1, + COUNT ( * ) AS col1 FROM tab0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT DISTINCT + 76 AS col2 FROM tab0 WHERE NOT + CAST( - ( - - 72 ) AS SIGNED ) NOT BETWEEN + - 41 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + 76 AS col2 FROM tab0 WHERE NOT + CAST ( - ( - - 72 ) AS INTEGER ) NOT BETWEEN + - 41 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7692
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 36 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 36 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col1 FROM tab0 WHERE - + 77 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT ALL + col2 + - - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + col2 + - - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT ALL + col2 DIV - col1 AS col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + col2 / - col1 AS col0 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT DISTINCT - MIN( 67 ) * + COUNT( * ) AS col0 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT - MIN ( 67 ) * + COUNT ( * ) AS col0 FROM tab1
----
-201

query I rowsort
SELECT - col2 + + - col1 * + 70 * - col0 FROM tab1 AS cor0
----
29691
299322
49884

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT - ( - col2 ) * + CAST( + + col2 AS SIGNED ) * - col2 + - col2 + col0 + - - col1 FROM tab1 AS cor0
----
-205348
-314362
-884767

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT - ( - col2 ) * + CAST ( + + col2 AS INTEGER ) * - col2 + - col2 + col0 + - - col1 FROM tab1 AS cor0
----
-205348
-314362
-884767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT ALL - + CAST( + + col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - + CAST ( + + col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * + - ( - - col1 ) * - 4 + - 70 - ( + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7702
SELECT * FROM tab0 WHERE - + CAST( - col1 AS SIGNED ) * 20 * + col2 = ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-7702
SELECT * FROM tab0 WHERE - + CAST ( - col1 AS INTEGER ) * 20 * + col2 = ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT + + 83 - + COUNT( DISTINCT + + col2 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + + 83 - + COUNT ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT col1 - col2 DIV + ( 98 ) AS col0 FROM tab0 AS cor0
----
0
21
81

skipif mysql # not compatible
query I rowsort label-7704
SELECT col1 - col2 / + ( 98 ) AS col0 FROM tab0 AS cor0
----
0
21
81

query I rowsort
SELECT + col0 - - + 95 FROM tab1 cor0
----
146
180
186

query I rowsort
SELECT DISTINCT - - col1 - - + col2 AS col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 86 * + col1 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 4 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT + col0 DIV + 81 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7709
SELECT + col0 / + 81 AS col2 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT ALL 8 * - SUM( - 10 ) AS col2 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL 8 * - SUM ( - 10 ) AS col2 FROM tab1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL + + SUM( + 89 ) FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL + + SUM ( + 89 ) FROM tab2 AS cor0
----
267

query II rowsort
SELECT - col1, col1 + - - col1 - - ( + col1 ) AS col2 FROM tab1
----
-14
42
-47
141
-5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + COUNT( * ) * + 86 * COUNT( * ) col1 FROM tab0
----
774

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7713
SELECT + COUNT ( * ) * + 86 * COUNT ( * ) col1 FROM tab0
----
774

onlyif mysql # DIV for integer division: 
query II rowsort label-7714
SELECT col1, col2 DIV col2 AS col0 FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-7714
SELECT col1, col2 / col2 AS col0 FROM tab2
----
51
1
67
1
77
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= + 44
----

query I rowsort
SELECT DISTINCT - col0 + - ( - col2 ) - col1 - - col2 * col1 AS col0 FROM tab0 AS cor0
----
100
112
3758

query I rowsort
SELECT + - col0 + - 25 + - col2 AS col1 FROM tab0 AS cor0
----
-122
-221
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 15 NOT BETWEEN + 42 + + col2 + + 71 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL + 24 + - - COUNT( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + 24 + - - COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
27

query II rowsort
SELECT DISTINCT - col0 * + 56 + + col2 AS col0, col0 FROM tab2
----
-2553
46
-3544
64
-4142
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL + 33 DIV - col1 + - + 56 * - + col2 FROM tab2
----
1288
2240
3248

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + 33 / - col1 + - + 56 * - + col2 FROM tab2
----
1288
2240
3248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + 53 col1 FROM tab1
----
2703
4505
4823

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + + 14
----

query I rowsort
SELECT ALL col2 * 52 + + - ( col2 ) FROM tab1
----
3009
3468
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT 79 + 29 * + - COUNT( * ) * + 53 + + MAX( DISTINCT + col1 ) FROM tab2
----
-4455

skipif mysql # not compatible
query I rowsort label-7726
SELECT 79 + 29 * + - COUNT ( * ) * + 53 + + MAX ( DISTINCT + col1 ) FROM tab2
----
-4455

query I rowsort
SELECT ALL col2 + + col1 + - 98 FROM tab1
----
-34
12
17

query I rowsort
SELECT ALL 81 + col1 + + + col2 FROM tab0
----
112
181
209

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * - - col2 * + col2 / - col1 + col1 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - col1 - + col1 AS col0 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL - COUNT( * ) + - + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL - COUNT ( * ) + - + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT ALL - ( - MAX( - col1 ) ) col2, COUNT( * ) col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + col0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7732
SELECT ALL - ( - MAX ( - col1 ) ) col2, COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + col0
----
NULL
0

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL + CAST( + col2 AS SIGNED ) * - + 94 * + col0 * + col0 FROM tab0 AS cor0
----
-7114860
-87560154
-994050

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL + CAST ( + col2 AS INTEGER ) * - + 94 * + col0 * + col0 FROM tab0 AS cor0
----
-7114860
-87560154
-994050

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 55 * col0 - - - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = col0 + - - col0 * - - 87 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT ALL + 80 * - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-3680
-5120
-6000

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + 80 * - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-3680
-5120
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT 87 * SUM( ALL + col0 ) FROM tab2 AS cor0
----
16095

skipif mysql # not compatible
query I rowsort label-7739
SELECT 87 * SUM ( ALL + col0 ) FROM tab2 AS cor0
----
16095

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT - 86 DIV + 21 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7740
SELECT - 86 / + 21 FROM tab1
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT SUM( - 13 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-7741
SELECT SUM ( - 13 ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT - 60 * - - COUNT( * ) FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-7742
SELECT - 60 * - - COUNT ( * ) FROM tab2
----
-180

query I rowsort
SELECT ALL ( + 45 ) FROM tab0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT ALL col2 DIV + + col2 + col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL col2 / + + col2 + col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT + ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT MAX( DISTINCT ( 69 ) ) AS col2 FROM tab1 cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT MAX ( DISTINCT ( 69 ) ) AS col2 FROM tab1 cor0 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT ALL SUM( ALL - + col0 ) col2, 87 AS col2 FROM tab1 AS cor0
----
-227
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7747
SELECT ALL SUM ( ALL - + col0 ) col2, 87 AS col2 FROM tab1 AS cor0
----
-227
87

query I rowsort
SELECT + col0 + col0 - col1 FROM tab1
----
135
165
88

query I rowsort
SELECT ALL + col2 * + + col0 * col0 AS col1 FROM tab2
----
163840
326250
48668

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT 14 DIV ( col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT 14 / ( col0 ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + ( - 93 )
----

query I rowsort
SELECT + - col0 * - col0 - + 78 AS col2 FROM tab0 cor0
----
147
7491
9331

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 75 <> NULL
----

query I rowsort
SELECT DISTINCT - 36 FROM tab1 AS cor0 WHERE NULL < col1 - + 44
----

query II rowsort
SELECT ALL col0, col2 * col1 + + + col1 AS col0 FROM tab1
----
51
1358
85
300
91
3243

query II rowsort
SELECT DISTINCT + col0 + col2 - col0 + + col2 AS col2, 68 AS col0 FROM tab0
----
198
68
20
68
94
68

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7758
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 * col0 IN ( + 29, col1 * + CAST( NULL AS SIGNED ) * - - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 * col0 IN ( + 29, col1 * + CAST ( NULL AS INTEGER ) * - - 65 )
----
0

query I rowsort
SELECT ALL col2 - - + col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT col0 + - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT col0 + - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 73 + - col1 + - 69 AS col0 FROM tab2 AS cor0
----
-47
-63
-73

query II rowsort
SELECT - col2 * - 81 AS col1, 6 AS col0 FROM tab1
----
4779
6
5508
6
7776
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT DISTINCT col0 * - CAST( - - ( + 55 ) AS SIGNED ) FROM tab0
----
-4785
-5335
-825

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT col0 * - CAST ( - - ( + 55 ) AS INTEGER ) FROM tab0
----
-4785
-5335
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT COUNT( * ) * + COUNT( * ) * 52 FROM tab2 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-7764
SELECT COUNT ( * ) * + COUNT ( * ) * 52 FROM tab2 AS cor0
----
468

query II rowsort
SELECT ALL col0 * + + col0, - col1 + + 50 + + 23 - 12 AS col1 FROM tab2 AS cor0
----
2116
10
4096
-16
5625
-6

query I rowsort
SELECT DISTINCT - + col2 * + 3 FROM tab1 cor0
----
-177
-204
-288

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7767
SELECT ALL + col1 * - + col1 DIV - CAST( - CAST( + + col1 AS SIGNED ) AS SIGNED ) col0, + col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7767
SELECT ALL + col1 * - + col1 / - CAST ( - CAST ( + + col1 AS INTEGER ) AS INTEGER ) col0, + col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT 49 * - col1 FROM tab1 AS cor0
----
-2303
-245
-686

query II rowsort
SELECT 97, + col2 AS col2 FROM tab1
----
97
59
97
68
97
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7770
SELECT DISTINCT + 72 AS col1, COUNT( * ) AS col2 FROM tab1
----
72
3

skipif mysql # not compatible
query II rowsort label-7770
SELECT DISTINCT + 72 AS col1, COUNT ( * ) AS col2 FROM tab1
----
72
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT - 69 DIV + 34 AS col2 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7771
SELECT - 69 / + 34 AS col2 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT CAST( - 8 AS SIGNED ) * - + col0 AS col2 FROM tab1
----
408
680
728

skipif mysql # not compatible
query I rowsort label-7772
SELECT CAST ( - 8 AS INTEGER ) * - + col0 AS col2 FROM tab1
----
408
680
728

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT + 35 DIV + + 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT + 35 / + + 86 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * + - 51 AS col1 FROM tab2 AS cor0
----
-1173
-2040
-2958

query II rowsort
SELECT + col0 AS col2, - 75 FROM tab0 AS cor0
----
15
-75
87
-75
97
-75

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

query I rowsort
SELECT DISTINCT - - 49 AS col1 FROM tab0 cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT DISTINCT + col0 * 91 DIV + - col0 AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + col0 * 91 / + - col0 AS col2 FROM tab2 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT + MAX( ALL - - col2 ) + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT + MAX ( ALL - - col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7781
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + CAST( - 43 AS SIGNED ) * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7781
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + CAST ( - 43 AS INTEGER ) * + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT 19 + + col2 AS col1 FROM tab2 cor0
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + COUNT( * ) + + 51 AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7783
SELECT + COUNT ( * ) + + 51 AS col1 FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IN ( - 90 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 0 col0 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7786
SELECT ALL col0 * - col1 + col2 + - - col0 DIV + col0 AS col0, - 89 + + col0 AS col1 FROM tab1
----
-365
-4
-4208
2
-617
-38

skipif mysql # not compatible
query II rowsort label-7786
SELECT ALL col0 * - col1 + col2 + - - col0 / + col0 AS col0, - 89 + + col0 AS col1 FROM tab1
----
-365
-4
-4208
2
-617
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7787
SELECT - CAST( - MAX( ALL - col1 ) AS SIGNED ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7787
SELECT - CAST ( - MAX ( ALL - col1 ) AS INTEGER ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col2 + + col2 * - 65 FROM tab0
----
-3008
-6336
-640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + col0 NOT IN ( + col0, col0 )
----

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + col0 NOT IN ( + col0, col0 )
----

query I rowsort
SELECT DISTINCT + 87 - + col2 AS col2 FROM tab2
----
29
47
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT ALL 87 + + CAST( - 73 AS SIGNED ) FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL 87 + + CAST ( - 73 AS INTEGER ) FROM tab2
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 + + ( 59 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 + + ( 59 ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT 32 AS col0, col2 * col1 FROM tab2
----
32
1173
32
3080
32
3886

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 71 AND NULL
----

query I rowsort
SELECT - col1 * + + col0 * col2 * - - 17 FROM tab0 cor0
----
-163251
-310590
-970785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col2 * - col1 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( CAST( NULL AS SIGNED ) ) AND - col2 * + col0 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - col2 * + col0 + - col0
----
0

query I rowsort
SELECT ALL + col0 * + 24 - + 40 FROM tab2 AS cor0
----
1064
1496
1760

query I rowsort
SELECT + ( - ( + col2 ) ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + + COUNT( * ) FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7803
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7804
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) * - 18 <> NULL
----

skipif mysql # not compatible
query III rowsort label-7804
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) * - 18 <> NULL
----

query I rowsort
SELECT ( - col2 ) * - col0 + - - 52 + col0 FROM tab2
----
1156
2676
4477

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col0 / + 52 BETWEEN col2 AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7807
SELECT DISTINCT + - 7 * - - COUNT( * ) DIV ( SUM( 38 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT + - 7 * - - COUNT ( * ) / ( SUM ( 38 ) ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + 26 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7809
SELECT + col2 + - - ( - col2 ) AS col2, 39 + col0 FROM tab1 AS cor0 WHERE + col2 * - - col1 * - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7809
SELECT + col2 + - - ( - col2 ) AS col2, 39 + col0 FROM tab1 AS cor0 WHERE + col2 * - - col1 * - CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7810
SELECT ALL 51 + + ( col0 ) + + col0 / - CAST( NULL AS SIGNED ) / - 66 AS col1, - 18 AS col1 FROM tab1
----
NULL
-18
NULL
-18
NULL
-18

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL 51 + + ( col0 ) + + col0 / - CAST ( NULL AS INTEGER ) / - 66 AS col1, - 18 AS col1 FROM tab1
----
NULL
-18
NULL
-18
NULL
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT 30 * 16 + COUNT( * ) AS col0 FROM tab1
----
483

skipif mysql # not compatible
query I rowsort label-7811
SELECT 30 * 16 + COUNT ( * ) AS col0 FROM tab1
----
483

query I rowsort
SELECT DISTINCT - col0 * - + col0 * + - 85 FROM tab2
----
-179860
-348160
-478125

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT - ( + col0 ) * - col1 + + col2 DIV + col1 * ( 36 ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-7813
SELECT - ( + col0 ) * - col1 + + col2 / + col1 * ( 36 ) FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL 18 - - 43 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT DISTINCT COUNT( * ), 82 AS col2 FROM tab2 AS cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-7815
SELECT DISTINCT COUNT ( * ), 82 AS col2 FROM tab2 AS cor0
----
3
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT + SUM( + 53 ) * - 67 * SUM( DISTINCT col2 ) + + 18 FROM tab0 AS cor0
----
-1661850

skipif mysql # not compatible
query I rowsort label-7816
SELECT + SUM ( + 53 ) * - 67 * SUM ( DISTINCT col2 ) + + 18 FROM tab0 AS cor0
----
-1661850

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7817
SELECT + CAST( NULL AS DECIMAL ), 76 AS col2 FROM tab2 AS cor0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
query II rowsort label-7817
SELECT + CAST ( NULL AS REAL ), 76 AS col2 FROM tab2 AS cor0
----
NULL
76
NULL
76
NULL
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + - col2 ) col2 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 35 + - col0 FROM tab0 AS cor0
----
-122
-132
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - - col0 / + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - - col0 / + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 98 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 53 + + - col2 AS col2 FROM tab2
----
-5
13
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT DISTINCT col0 DIV - + col1 + + ( - col2 ) + - - 60 + + col1 AS col0 FROM tab2
----
68
88
97

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT col0 / - + col1 + + ( - col2 ) + - - 60 + + col1 AS col0 FROM tab2
----
68
88
97

query I rowsort
SELECT ( - ( col0 ) ) - - 47 AS col1 FROM tab1
----
-38
-4
-44

query I rowsort
SELECT 7 - - col1 * col2 * - + col1 FROM tab2
----
-237153
-260355
-59816

query I rowsort
SELECT 76 + + - col0 FROM tab2
----
1
12
30

query I rowsort
SELECT - 18 + + col2 * + - col1 AS col0 FROM tab1
----
-1362
-313
-3214

query I rowsort
SELECT DISTINCT - col0 - col1 + + col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL 38 + - + col0 FROM tab2 cor0 WHERE NULL = - col2 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 + 37 + 48 + - + ( + + ( + + col0 ) ) col2 FROM tab2 AS cor0
----
11
22
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + COUNT( * ) * + 42 AS col2 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-7832
SELECT + COUNT ( * ) * + 42 AS col2 FROM tab0
----
126

query I rowsort
SELECT ALL + + col1 - col1 + - 27 * col0 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + 48 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 48 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
432

query I rowsort
SELECT ALL - + 26 * - + ( col1 ) FROM tab2 AS cor0
----
1326
1742
2002

query I rowsort
SELECT + col1 * 45 FROM tab2 cor0
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL - - MIN( ALL - - 21 ) * COUNT( ALL + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL - - MIN ( ALL - - 21 ) * COUNT ( ALL + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) = col0
----
NULL

query II rowsort
SELECT DISTINCT - 18, - col0 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-18
-4910
-18
-5020
-18
-6235

query I rowsort
SELECT - AVG ( ALL - col2 ) AS col1 FROM tab0 WHERE NOT 44 * + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + ( + - 92 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 72 AS col1, col1 AS col1 FROM tab2
----
72
51
72
67
72
77

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT 22 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7845
SELECT DISTINCT - 57, + MIN( DISTINCT CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
-57
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7845
SELECT DISTINCT - 57, + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
-57
NULL

query I rowsort
SELECT DISTINCT 9 + - ( - col0 ) AS col1 FROM tab0
----
106
24
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT DISTINCT - - CAST( 67 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - - CAST ( 67 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 18 * col1 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + + + col0 / - - 81, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - + COUNT( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7850
SELECT - + COUNT ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7851
SELECT DISTINCT col1 + CAST( NULL AS DECIMAL ) + + + ( + + col0 ) * - col1 / - + col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT col1 + CAST ( NULL AS REAL ) + + + ( + + col0 ) * - col1 / - + col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + - 91 / + col0, col0 FROM tab1 AS cor0 WHERE NOT + 36 * + - col1 + - 29 < NULL
----

query I rowsort
SELECT ( + col0 ) + - col2 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT - COUNT( * ) - 52 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - COUNT ( * ) - 52 FROM tab2
----
-55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 50 < 93 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + COUNT( * ) + + 49 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7856
SELECT + COUNT ( * ) + + 49 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT + col1 + ( + 3 ) FROM tab1 AS cor0
----
17
50
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7858
SELECT + CAST( - + COUNT( * ) AS SIGNED ) DIV 67 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7858
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) / 67 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT CAST( + - 68 AS SIGNED ) AS col1 FROM tab1
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-7859
SELECT CAST ( + - 68 AS INTEGER ) AS col1 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT 37 * - col0 AS col2 FROM tab0
----
-3219
-3589
-555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7861
SELECT ALL col1 - + + CAST( 15 AS SIGNED ) AS col2, + col1 FROM tab1
----
-1
14
-10
5
32
47

skipif mysql # not compatible
query II rowsort label-7861
SELECT ALL col1 - + + CAST ( 15 AS INTEGER ) AS col2, + col1 FROM tab1
----
-1
14
-10
5
32
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7863
SELECT ALL * FROM tab0 WHERE 61 NOT IN ( - 4, 89 * + - 7 + + 66, col2 - CAST( NULL AS SIGNED ), + 85 - - 9 + - 54 )
----

skipif mysql # not compatible
query III rowsort label-7863
SELECT ALL * FROM tab0 WHERE 61 NOT IN ( - 4, 89 * + - 7 + + 66, col2 - CAST ( NULL AS INTEGER ), + 85 - - 9 + - 54 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 99 * + col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 95 + col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= col1 * col2
----

query I rowsort
SELECT - 99 * col2 + col0 * + 76 FROM tab0
----
-2429
-3513
5622

query I rowsort
SELECT ALL - 65 + - col0 * col2 FROM tab1
----
-4961
-5080
-6253

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= 30
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( - 50 * + col1 )
----

query I rowsort
SELECT - 14 + 23 AS col2 FROM tab2
----
9
9
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( - 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT 13 * SUM( 23 ) FROM tab0 WHERE NOT + col0 = 66 * col2
----
897

skipif mysql # not compatible
query I rowsort label-7874
SELECT 13 * SUM ( 23 ) FROM tab0 WHERE NOT + col0 = 66 * col2
----
897

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 / + 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + 3 + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 3 + + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab2 WHERE + col0 <> - 99
----
-23

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 - - col0 ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT COUNT( - col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7880
SELECT COUNT ( - col2 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + col0 * 42 + - 71 FROM tab0
----
3583
4003
559

query I rowsort
SELECT - 32 * 10 + - col1 AS col2 FROM tab2
----
-371
-387
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL + COUNT( 44 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + COUNT ( 44 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 / 56 + + col2 AS col2 FROM tab1 WHERE NOT col0 >= - col2 + + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT ( SUM( - col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT ( SUM ( - col2 ) ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT 94 FROM tab0 WHERE + col2 * + col2 IS NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT 51 / - col1 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 / + 52 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT - CAST( col0 AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-7889
SELECT - CAST ( col0 AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT COUNT( * ) * 18 + CAST( + 34 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7890
SELECT COUNT ( * ) * 18 + CAST ( + 34 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 + 91 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 >= NULL
----

query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > - 66 + 99
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT - col2 + col2 * CAST( NULL AS SIGNED ) FROM tab0 WHERE ( + col1 - - 85 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT - col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( + col1 - - 85 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + COUNT( + 19 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7897
SELECT + COUNT ( + 19 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - 16 * col0 )
----

query I rowsort
SELECT - col0 - 73 * col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7900
SELECT ALL * FROM tab1 cor0 WHERE NOT - 28 * + CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7900
SELECT ALL * FROM tab1 cor0 WHERE NOT - 28 * + CAST ( NULL AS INTEGER ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + 2 - - 7 AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE - col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 * col1
----
0

skipif mysql # not compatible
query I rowsort label-7903
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 * col1
----
0

query I rowsort
SELECT DISTINCT col2 + + + col2 + 12 * 28 FROM tab1
----
454
472
528

query I rowsort
SELECT + 53 AS col0 FROM tab0 WHERE + 15 BETWEEN - 20 - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT ALL ( + 18 ) DIV + col1 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL ( + 18 ) / + col1 AS col2 FROM tab1
----
0
1
3

query I rowsort
SELECT ALL + col2 - col1 FROM tab0 WHERE - col0 * col0 IS NOT NULL
----
-11
-34
98

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT 77 * + + COUNT( * ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT 77 * + + COUNT ( * ) FROM tab0
----
231

query I rowsort
SELECT ALL col2 * - col0 * col2 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT - ( + col0 ) + - 82 AS col0 FROM tab0 WHERE NOT ( col1 - 87 ) IN ( - ( 66 ) )
----
-179
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT + 31 * - + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + 31 * - + COUNT ( * ) FROM tab0
----
-93

query I rowsort
SELECT ALL col1 * - - col0 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - ( 96 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT DISTINCT - SUM( col2 ) * COUNT( * ) col1 FROM tab0 AS cor0 WHERE col0 BETWEEN ( 20 ) + col1 * + 97 AND + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7915
SELECT DISTINCT - SUM ( col2 ) * COUNT ( * ) col1 FROM tab0 AS cor0 WHERE col0 BETWEEN ( 20 ) + col1 * + 97 AND + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 4 col1 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT ALL - - ( + ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 + + 8 NOT BETWEEN 59 * 88 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> + 4
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT - 83 <= + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT - 83 <= + col0 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 8 * col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT COUNT( * ) * - 24 AS col1 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-7924
SELECT COUNT ( * ) * - 24 AS col1 FROM tab0
----
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( + 48 * col1 + col1 ) IS NULL )
----

query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab1 WHERE NOT ( ( 56 ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL + 99 + - - COUNT( * ) + + + 35 FROM tab2 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + 99 + - - COUNT ( * ) + + + 35 FROM tab2 AS cor0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + COUNT( * ) + + 11 AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7929
SELECT + COUNT ( * ) + + 11 AS col2 FROM tab0 AS cor0
----
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 77 > + col2 * + col2 + - col0
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7932
SELECT DISTINCT - col0 + - 1 * + CAST( - 48 AS SIGNED ) DIV - 38 + 66 AS col0 FROM tab1
----
-20
-26
14

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT - col0 + - 1 * + CAST ( - 48 AS INTEGER ) / - 38 + 66 AS col0 FROM tab1
----
-20
-26
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT 72 + - 39 DIV - - col0 + col1 - col1 FROM tab0
----
70
72
72

skipif mysql # not compatible
query I rowsort label-7933
SELECT 72 + - 39 / - - col0 + col1 - col1 FROM tab0
----
70
72
72

query I rowsort
SELECT col2 + - col0 + + col0 - 12 FROM tab1
----
47
56
84

query I rowsort
SELECT DISTINCT ( 76 ) * + + col0 + - col1 AS col2 FROM tab1
----
3862
6455
6869

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE + ( 39 ) / - 32 > - 43
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + ( + col0 ) AND col0 * col0
----

query I rowsort
SELECT ALL - 86 * - 27 * col0 * ( + 6 ) * 96 + col0 AS col0 FROM tab0
----
116360151
129734881
20062095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE + + col2 IS NULL
----
NULL

query I rowsort
SELECT col0 + - - col2 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT - 15 * - + 99 AS col1 FROM tab0
----
1485
1485
1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7942
SELECT DISTINCT - MIN( - col1 ) col2, + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
47
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7942
SELECT DISTINCT - MIN ( - col1 ) col2, + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
47
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( - 14 ) <> ( + col2 / - col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7944
SELECT COUNT( + col1 ), 67 AS col2 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-7944
SELECT COUNT ( + col1 ), 67 AS col2 FROM tab0 AS cor0
----
3
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT COUNT( * ) - + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT COUNT ( * ) - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 34 - 39 * 14 FROM tab1 AS cor0
----
-512

query I rowsort
SELECT ALL - col2 * col2 - - 60 FROM tab0 AS cor0
----
-2149
-40
-9741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT ALL + - CAST( NULL AS SIGNED ) * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - - 76 * col0 AS col2 FROM tab1 AS cor0
----
3876
6460
6916

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - + col0 * + col2 + + 29 * col0 )
----

query I rowsort
SELECT ALL - - col2 FROM tab1 cor0 WHERE NOT col2 / col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + MIN( + 68 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-7953
SELECT + MIN ( + 68 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-204

query I rowsort
SELECT DISTINCT col1 * - - 98 + - - col1 - - col1 FROM tab1 AS cor0
----
1400
4700
500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT + - CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT + - CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * - - col1 * - col2 + - 11 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT + MAX( DISTINCT + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7957
SELECT + MAX ( DISTINCT + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2
----
77

query II rowsort
SELECT DISTINCT 49 AS col1, 42 FROM tab0
----
49
42

query I rowsort
SELECT ALL col2 * + col1 * 84 AS col0 FROM tab0
----
17640
319788
8316

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 > - + col2 * ( + + col0 ) * col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7961
SELECT ALL + - COUNT( * ) FROM tab2 WHERE + + CAST( + 26 AS DECIMAL ) * + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE + + CAST ( + 26 AS REAL ) * + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT + ( - - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT + ( - - COUNT ( * ) ) FROM tab2 cor0
----
3

query II rowsort
SELECT - col0 AS col1, 3 * - 79 FROM tab1 cor0
----
-51
-237
-85
-237
-91
-237

query I rowsort
SELECT + + col0 * - - col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE NOT 21 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7966
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 90 * - 85 AS col0 FROM tab0 AS cor0
----
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + COUNT( ALL + - ( - - ( + col0 ) ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7968
SELECT + COUNT ( ALL + - ( - - ( + col0 ) ) ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL ( + - COUNT( * ) ) + - + 46 FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL ( + - COUNT ( * ) ) + - + 46 FROM tab1 cor0
----
-49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND + + col1 * - - col2
----

query I rowsort
SELECT + 34 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT ALL + - col0 + + ( - col0 ), - col0 AS col1 FROM tab2 AS cor0
----
-128
-64
-150
-75
-92
-46

query I rowsort
SELECT DISTINCT col0 + - col2 * + + 13 FROM tab2
----
-253
-456
-679

query III rowsort
SELECT * FROM tab1 WHERE ( 7 ) BETWEEN ( NULL ) AND 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT ALL - 40 DIV + col2 + col1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - 40 / + col2 + col1 AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + + COUNT( * ) * + + COUNT( * ) FROM tab2 WHERE col1 + ( col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7976
SELECT + + COUNT ( * ) * + + COUNT ( * ) FROM tab2 WHERE col1 + ( col1 ) IS NULL
----
0

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT + + col1 + + col1 * - col0 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT - - col2 * - col0 * - 21 * col2 + - + 94 AS col2 FROM tab2 AS cor0
----
2150306
510920
5298206

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - - SUM( + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7980
SELECT - - SUM ( + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - 25 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - 25 ) IS NOT NULL
----
3

query I rowsort
SELECT + - 38 + - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-107
-142
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - COUNT( * ) FROM tab0 WHERE ( 51 - + ( - 52 ) - + + 4 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7983
SELECT - COUNT ( * ) FROM tab0 WHERE ( 51 - + ( - 52 ) - + + 4 ) IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 78 * + + col1 + - + 10 FROM tab1
----
1082
3656
380

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 95 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7986
SELECT * FROM tab1 AS cor0 WHERE + ( - - ( col2 ) ) + 23 BETWEEN ( + col0 ) AND ( - CAST( + - col1 AS SIGNED ) + col1 ) OR - 63 IS NULL
----
91
47
68

skipif mysql # not compatible
query III rowsort label-7986
SELECT * FROM tab1 AS cor0 WHERE + ( - - ( col2 ) ) + 23 BETWEEN ( + col0 ) AND ( - CAST ( + - col1 AS INTEGER ) + col1 ) OR - 63 IS NULL
----
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 12 * + 38 IS NULL
----

query I rowsort
SELECT - col1 * - ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < - ( - col1 )
----

query I rowsort
SELECT DISTINCT - 48 * - col2 * - - 12 FROM tab1 AS cor0
----
33984
39168
55296

query I rowsort
SELECT DISTINCT - col0 * - 14 * + 43 AS col2 FROM tab0 AS cor0
----
52374
58394
9030

query I rowsort
SELECT ALL - 41 * - + col1 * - col2 - + + 95 FROM tab0 AS cor0 WHERE 89 IS NOT NULL
----
-156182
-4154
-8705

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL COUNT( - + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL COUNT ( - + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col0 FROM tab1 AS cor0
----
47
47
47

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + - col2 * + + col1 - + col2 * + + 71 - - - col1 + - 26 * - col2 * - 32 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * + - 28 AS col1 FROM tab0
----
-1316
-2772
-280

query I rowsort
SELECT + 5 * - col1 FROM tab2
----
-255
-335
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT - MAX( - 4 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7998
SELECT - MAX ( - 4 ) AS col0 FROM tab0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT ( - COUNT( col1 ) ) * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT col1 * - - col2 * + - col1 = - + ( - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT ( - COUNT ( col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT col1 * - - col2 * + - col1 = - + ( - - col1 )
----
NULL

query II rowsort
SELECT col2 AS col2, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT col1 AS col1, 20 FROM tab1
----
14
20
47
20
5
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT + - col2 DIV + col2 + - col2 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-8002
SELECT + - col2 / + col2 + - col2 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + MAX( 72 ) + - - 61 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT + MAX ( 72 ) + - - 61 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, - col1 )
----
NULL

query I rowsort
SELECT ALL col2 * + 92 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT DISTINCT ( + + 34 ) AS col1 FROM tab0 AS cor0 WHERE ( - 49 - + + 42 IS NOT NULL )
----
34

query I rowsort
SELECT - 71 * col1 * + + 20 FROM tab2
----
-109340
-72420
-95140

query II rowsort
SELECT - col2 AS col1, + col2 + + 82 AS col0 FROM tab1
----
-59
141
-68
150
-96
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT + - 23 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-32

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + - 23 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT + COUNT( * ) + COUNT( - col1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + COUNT ( * ) + COUNT ( - col1 ) FROM tab0
----
6

query II rowsort
SELECT ALL 19 + - 6 AS col2, + 79 FROM tab2 WHERE NOT NULL IS NOT NULL
----
13
79
13
79
13
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8011
SELECT ALL + - col0 FROM tab1 cor0 WHERE NOT NULL >= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + - col0 FROM tab1 cor0 WHERE NOT NULL >= CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 67 col1 FROM tab2 AS cor0
----
-3082
-4288
-5025

query II rowsort
SELECT - - 54 * + col0 + - 69 + + col0, - 49 AS col2 FROM tab0 cor0
----
4716
-49
5266
-49
756
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT DISTINCT + col0 DIV + 12 FROM tab1 AS cor0
----
4
7

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT + col0 / + 12 FROM tab1 AS cor0
----
4
7

query I rowsort
SELECT ALL 75 - - col2 FROM tab1
----
134
143
171

query I rowsort
SELECT DISTINCT - col1 + + col2 + - - 42 AS col1 FROM tab2
----
14
33
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT ALL - col0 + col2 + - - 6 + col2 * - col1 DIV ( - 65 ) DIV 90 FROM tab1
----
-17
-20
51

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - col0 + col2 + - - 6 + col2 * - col1 / ( - 65 ) / 90 FROM tab1
----
-17
-20
51

query I rowsort
SELECT - + col2 FROM tab2 WHERE ( 41 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL - 40 - - COUNT( - ( + - 1 ) ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - 40 - - COUNT ( - ( + - 1 ) ) FROM tab2 AS cor0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT DISTINCT - 7 * ( - 2 ) + + col1 + - col1 + - - col0 DIV - + col0 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT - 7 * ( - 2 ) + + col1 + - col1 + - - col0 / - + col0 FROM tab0 AS cor0
----
13

query I rowsort
SELECT + col0 + col1 + + - col1 - + - col0 * - col0 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-210
-7482
-9312

query I rowsort
SELECT - col2 - + - col0 * - ( col1 ) + + col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8023
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - col0, + col2 * - - 76, + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8023
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - col0, + col2 * - - 76, + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL + + 56 + + col2 * + 42 FROM tab1 AS cor0
----
2534
2912
4088

query II rowsort
SELECT + 57 * + 24 - - 78 AS col2, + col2 * - col1 - col1 FROM tab2 AS cor0
----
1446
-1224
1446
-3157
1446
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT MIN( DISTINCT 17 ) - - 28 AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-8026
SELECT MIN ( DISTINCT 17 ) - - 28 AS col0 FROM tab1
----
45

query I rowsort
SELECT - col2 + - - col2 * - 81 * 36 * col2 AS col2 FROM tab0
----
-28579815
-291610
-6441491

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT 99 AS col0, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
99
-9

skipif mysql # not compatible
query II rowsort label-8028
SELECT 99 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
99
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= col2 * - col2 / col2 * col2 * ( + col0 )
----

query I rowsort
SELECT ALL + + ( 34 ) AS col1 FROM tab0 cor0
----
34
34
34

query II rowsort
SELECT ALL - + 87 AS col0, - 74 FROM tab2 AS cor0
----
-87
-74
-87
-74
-87
-74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 66 AS col2, + 3 AS col1 FROM tab1 AS cor0
----
-66
3

query II rowsort
SELECT col1 * - col0 * col0, col1 FROM tab1 AS cor0
----
-36125
5
-36414
14
-389207
47

query I rowsort
SELECT col1 * + + 81 FROM tab2
----
4131
5427
6237

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) < + col2 - + col0 ) OR ( NULL <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 82 col0 FROM tab2
----
-3772
-5248
-6150

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 56 + + + col2 + + 45 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 41 AS col2 FROM tab0
----
-3321
-41
-861

query III rowsort
SELECT - col2 AS col1, - col0, + 28 + + col1 FROM tab2 WHERE NOT - + 73 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8041
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + CAST( ( + col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8041
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + CAST ( ( + col2 ) AS INTEGER )
----

query II rowsort
SELECT DISTINCT - - ( col0 ) AS col0, - col1 * + ( + + col2 ) * - 19 - + col2 AS col2 FROM tab0 AS cor0
----
15
72286
87
3980
97
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT SUM( ALL + col2 ) * + 2 FROM tab0 cor0
----
312

skipif mysql # not compatible
query I rowsort label-8043
SELECT SUM ( ALL + col2 ) * + 2 FROM tab0 cor0
----
312

query I rowsort
SELECT + + ( 31 ) FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - col2 * 14 * + 44 AS col1 FROM tab2 AS cor0
----
-14168
-24640
-35728

query I rowsort
SELECT + + ( - - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT + + col2 DIV + 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT + + col2 / + 86 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 64 * + col1 * col1, + col0 AS col2 FROM tab0 AS cor0
----
-28224
87
-419904
15
-64
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( + - col1 ) col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL - - col2 * + - col1 * 81 + - + col1 AS col1 FROM tab1 cor0
----
-108878
-23900
-258923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8052
SELECT COUNT( * ) DIV - COUNT( * ) - ( - - MAX( 77 ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8052
SELECT COUNT ( * ) / - COUNT ( * ) - ( - - MAX ( 77 ) ) FROM tab0
----
-78

query II rowsort
SELECT DISTINCT - 85 AS col1, + col0 FROM tab2
----
-85
46
-85
64
-85
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT + col2 + + + col0 - - + col0 * - CAST( - - col1 AS SIGNED ) FROM tab1
----
-281
-4118
-567

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + col2 + + + col0 - - + col0 * - CAST ( - - col1 AS INTEGER ) FROM tab1
----
-281
-4118
-567

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col0 / 54
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8056
SELECT DISTINCT - 54 * 46 - - COUNT( * ) DIV - COUNT( ALL + + col2 ) FROM tab1
----
-2485

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - 54 * 46 - - COUNT ( * ) / - COUNT ( ALL + + col2 ) FROM tab1
----
-2485

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT + col1 * col0 DIV + col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8058
SELECT + col1 * col0 / + col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8059
SELECT - MIN( - col0 ) AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8059
SELECT - MIN ( - col0 ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT 76 DIV - - 36 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8060
SELECT 76 / - - 36 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL + 38 FROM tab1 AS cor0 WHERE NULL <> + 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 col0 FROM tab1 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE ( + 53 ) NOT BETWEEN + 11 AND 2
----
15
87
97

query I rowsort
SELECT ALL + col2 * + 47 - - - col0 AS col2 FROM tab2 AS cor0
----
1035
1816
2651

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * 89 * + col1 * - + col1 IN ( + 75 - 61 + - - col0 + + 80, 84, col1, + col0 )
----

query I rowsort
SELECT ALL + + 50 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + AVG ( ALL 68 ) FROM tab1 AS cor0 WHERE NULL <> + col2
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col2, 54 FROM tab0
----
-15
54
-87
54
-97
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT CAST( - + 55 AS SIGNED ) AS col0 FROM tab2
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-8069
SELECT CAST ( - + 55 AS INTEGER ) AS col0 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT + col0 * - 81 AS col0 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - 71 * COUNT( * ) + - + COUNT( * ) * - ( SUM( ALL + 90 ) ) FROM tab2
----
597

skipif mysql # not compatible
query I rowsort label-8071
SELECT - 71 * COUNT ( * ) + - + COUNT ( * ) * - ( SUM ( ALL + 90 ) ) FROM tab2
----
597

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT + COUNT( * ) AS col0, 0 AS col2 FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-8072
SELECT + COUNT ( * ) AS col0, 0 AS col2 FROM tab1
----
3
0

query II rowsort
SELECT 27 AS col1, + col1 AS col0 FROM tab2
----
27
51
27
67
27
77

query I rowsort
SELECT 53 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 45 AS col1 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8076
SELECT ALL + - 86 AS col0, col1 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-86
NULL
-86
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-8076
SELECT ALL + - 86 AS col0, col1 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-86
NULL
-86
NULL
-86
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 - - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT 17 + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8078
SELECT 17 + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL col2 + - 47 + + ( col0 ) + + col0 * col0 + - + col2 FROM tab0 AS cor0
----
193
7609
9459

query I rowsort
SELECT 33 + col0 AS col1 FROM tab2 AS cor0
----
108
79
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - - col2 col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT DISTINCT CAST( col2 AS SIGNED ) + + 11 FROM tab2
----
34
51
69

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + 11 FROM tab2
----
34
51
69

query I rowsort
SELECT DISTINCT + col1 + 76 + - 44 FROM tab2
----
109
83
99

query I rowsort
SELECT ( - - 56 ) FROM tab2
----
56
56
56

query III rowsort
SELECT * FROM tab1 WHERE - - 33 <> col1 * + 42 * - col1 * 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - + col0 + - col1 + + col1 - - + col2 FROM tab0
----
-164
-95
17

query I rowsort
SELECT ALL - 44 AS col1 FROM tab2 WHERE NULL IS NULL
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT DISTINCT + col0 * + CAST( - + ( + 1 ) AS SIGNED ) - - ( - + 83 ) AS col2 FROM tab1 AS cor0
----
-134
-168
-174

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + col0 * + CAST ( - + ( + 1 ) AS INTEGER ) - - ( - + 83 ) AS col2 FROM tab1 AS cor0
----
-134
-168
-174

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = + - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT 16 * + + SUM( ALL col2 ) AS col0 FROM tab0
----
2496

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 16 * + + SUM ( ALL col2 ) AS col0 FROM tab0
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8091
SELECT ALL * FROM tab1 WHERE NOT ( - 13 NOT BETWEEN ( 33 + - + CAST( NULL AS SIGNED ) * + + col2 ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-8091
SELECT ALL * FROM tab1 WHERE NOT ( - 13 NOT BETWEEN ( 33 + - + CAST ( NULL AS INTEGER ) * + + col2 ) AND NULL )
----

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab0 cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8093
SELECT CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) DIV + COUNT( ALL + 37 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8093
SELECT CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) / + COUNT ( ALL + 37 ) FROM tab1 cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8095
SELECT - COUNT( * ) AS col2, ( + 50 ) * + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
153

skipif mysql # not compatible
query II rowsort label-8095
SELECT - COUNT ( * ) AS col2, ( + 50 ) * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
153

query I rowsort
SELECT ALL + 31 * - 27 FROM tab1 AS cor0
----
-837
-837
-837

query II rowsort
SELECT + col2, + 40 AS col0 FROM tab1 cor0
----
59
40
68
40
96
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8098
SELECT - COUNT( * ) AS col1, - MIN( col2 ) FROM tab0 AS cor0
----
-3
-10

skipif mysql # not compatible
query II rowsort label-8098
SELECT - COUNT ( * ) AS col1, - MIN ( col2 ) FROM tab0 AS cor0
----
-3
-10

query II rowsort
SELECT - - 24, col1 AS col1 FROM tab1 AS cor0
----
24
14
24
47
24
5

query II rowsort
SELECT DISTINCT col1, + col0 FROM tab0 cor0
----
1
97
21
87
81
15

query II rowsort
SELECT - col0 * col1, + 47 AS col2 FROM tab2
----
-2346
47
-4928
47
-5025
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT - AVG ( + col2 ) AS col0 FROM tab0 WHERE NOT + + 53 / - 93 - + - CAST( NULL AS SIGNED ) * + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT - AVG ( + col2 ) AS col0 FROM tab0 WHERE NOT + + 53 / - 93 - + - CAST ( NULL AS INTEGER ) * + - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8103
SELECT ALL 40 / + + col1 * + CAST( NULL AS DECIMAL ) / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL 40 / + + col1 * + CAST ( NULL AS REAL ) / col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 4 * + col2 AS col1 FROM tab2 AS cor0
----
-160
-232
-92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8106
SELECT + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT - MIN( + 92 ) AS col2 FROM tab0 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8108
SELECT - MIN ( + 92 ) AS col2 FROM tab0 cor0
----
-92

query I rowsort
SELECT ALL ( - + 34 ) AS col1 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT DISTINCT - - ( - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - - ( - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT + 8 - 37 FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL + + MIN( + 80 ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + + MIN ( + 80 ) AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT DISTINCT - - 86 FROM tab1 cor0
----
86

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE ( ( + 21 - + + col2 >= NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 73 * + col1 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT + ( AVG ( ALL - col2 ) ) AS col1 FROM tab1 WHERE CAST( - + col2 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT + ( AVG ( ALL - col2 ) ) AS col1 FROM tab1 WHERE CAST ( - + col2 AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( + col2 ) * - 32 * - col2 AS col2 FROM tab2 AS cor0
----
-107648
-16928
-51200

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + MAX( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8118
SELECT + MAX ( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT - col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8119
SELECT - col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT MIN( ALL ( - - col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT MIN ( ALL ( - - col1 ) ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - + 74 * - + col2 AS col2 FROM tab2 AS cor0
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT - ( - ( MAX( col1 ) ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - ( - ( MAX ( col1 ) ) ) FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT - - 54 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT - - 54 / - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 57 FROM tab2 AS cor0 WHERE + 51 * + 5 IS NOT NULL
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN col1 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT - col0 + - 60 DIV + 51 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-8127
SELECT - col0 + - 60 / + 51 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL - MIN( - col2 ) * - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - MIN ( - col2 ) * - COUNT ( * ) FROM tab0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT DISTINCT + col1 * + CAST( + + col1 AS SIGNED ) + col0 AS col2 FROM tab2
----
2647
4564
5993

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT + col1 * + CAST ( + + col1 AS INTEGER ) + col0 AS col2 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT + 19 + 18 FROM tab1
----
37
37
37

query I rowsort
SELECT + 51 + col1 * + 12 FROM tab0
----
1023
303
63

query I rowsort
SELECT ALL - - 67 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 55 AS col0, col0 AS col1 FROM tab0
----
55
15
55
87
55
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT + MIN( ALL + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT + MIN ( ALL + - col1 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT + 10 * + + 11 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - - - 85 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8135
SELECT + 10 * + + 11 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - - - 85 IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) * - 58 * + col0 * - + col2 * + ( - + 96 ) - col0 - - col0 * + 11 AS col0 FROM tab0
----
-101726490
-317960490
-53468534

query I rowsort
SELECT ALL - 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT col2 + ( + - 14 ) FROM tab0
----
-4
33
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 36 * - ( + - 25 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT ALL + col2 DIV + - 43 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + col2 / + - 43 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + 78 * - ( - - ( 99 ) ) AS col1 FROM tab1 cor0
----
-7722
-7722
-7722

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT DISTINCT + - SUM( ALL + col2 ) AS col1, 62 + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-156
59

skipif mysql # not compatible
query II rowsort label-8142
SELECT DISTINCT + - SUM ( ALL + col2 ) AS col1, 62 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-156
59

query I rowsort
SELECT + ( - 29 ) AS col2 FROM tab2
----
-29
-29
-29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + + col0 + - col0 * col1 <> NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT DISTINCT + COUNT( ALL + - 93 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT + COUNT ( ALL + - 93 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col1 FROM tab0 AS cor0
----
44

query I rowsort
SELECT ALL - - ( + - 55 ) FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - col1 * + 27 * - col1 * + col2 FROM tab2 AS cor0
----
1615221
6403320
7029774

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL + - 3 * MIN( - 54 ) AS col1 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + - 3 * MIN ( - 54 ) AS col1 FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL - SUM( - 62 ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL - SUM ( - 62 ) FROM tab2
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab0
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 < + - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT + ( COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8154
SELECT + ( COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT ALL + 86 * + + col0 AS col1 FROM tab2 AS cor0
----
3956
5504
6450

query I rowsort
SELECT ALL + - col2 * - col0 + - - 10 AS col1 FROM tab1 cor0
----
4906
5025
6198

query I rowsort
SELECT ( + - 90 ) FROM tab1 AS cor0
----
-90
-90
-90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / - col1 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col1 FROM tab1 cor0
----
4
4
4

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + - - col0 + - 36 * + col2 NOT IN ( - 14, - col0, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8161
SELECT + CAST( NULL AS DECIMAL ) * + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT + CAST ( NULL AS REAL ) * + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + col2 + + col2 AS col0 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL + MIN( + + col2 ) + 58 AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + MIN ( + + col2 ) + 58 AS col1 FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT - col1 * - + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-531441
-9261

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT col0 * col0 DIV + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT col0 * col0 / + col0 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 37 + + ( + 73 ) col1 FROM tab1 AS cor0
----
-112
-1666
-445

query I rowsort
SELECT ALL - col1 * - 9 AS col1 FROM tab1
----
126
423
45

query I rowsort
SELECT ALL - col1 * - 27 FROM tab0
----
2187
27
567

query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 + + ( - - 38 ) AS col0 FROM tab0 AS cor0
----
137
48
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + + col2
----

query I rowsort
SELECT - + col1 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT - 59 * + - 98 + + col1 AS col0 FROM tab1 cor0
----
5787
5796
5829

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT DISTINCT col2 + + col2 * 31 DIV - + 35 FROM tab0 AS cor0
----
12
2
6

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT col2 + + col2 * 31 / - + 35 FROM tab0 AS cor0
----
12
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT MIN( DISTINCT - col1 ) * - MAX( ALL - col0 ) + MIN( + col1 ) FROM tab0
----
-1214

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT MIN ( DISTINCT - col1 ) * - MAX ( ALL - col0 ) + MIN ( + col1 ) FROM tab0
----
-1214

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT - COUNT( * ) + ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-8176
SELECT - COUNT ( * ) + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL + ( 15 ) - 73 + + COUNT( * ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL + ( 15 ) - 73 + + COUNT ( * ) AS col1 FROM tab2
----
-55

query I rowsort
SELECT 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + 84 + col2 AS col2 FROM tab2
----
107
124
142

query I rowsort
SELECT + + 73 - + col2 AS col2 FROM tab1 AS cor0
----
-23
14
5

query I rowsort
SELECT col0 - - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 - - col0 + col0 * col1 * + + col1 col2 FROM tab0 AS cor0
----
278
38538
98514

query I rowsort
SELECT + col2 - 12 AS col2 FROM tab2 AS cor0
----
11
28
46

query I rowsort
SELECT ( 69 ) - col0 AS col2 FROM tab1 AS cor0
----
-16
-22
18

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 * 47 AS col2 FROM tab1 AS cor0
----
59
-2773
68
-3196
96
-4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT MAX( + col1 ) DIV - - COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8186
SELECT MAX ( + col1 ) / - - COUNT ( * ) FROM tab1
----
15

query II rowsort
SELECT ALL - - col0, + 15 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + 99 FROM tab1
----
-5049
-8415
-9009

query I rowsort
SELECT ALL col0 * + col0 * - col1 AS col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT DISTINCT SUM( col2 ) AS col2, - COUNT( * ) FROM tab0
----
156
-3

skipif mysql # not compatible
query II rowsort label-8190
SELECT DISTINCT SUM ( col2 ) AS col2, - COUNT ( * ) FROM tab0
----
156
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT MAX( DISTINCT - - 60 ) AS col1, ( ( - - MAX( + col0 ) ) ) AS col2 FROM tab1
----
60
91

skipif mysql # not compatible
query II rowsort label-8191
SELECT MAX ( DISTINCT - - 60 ) AS col1, ( ( - - MAX ( + col0 ) ) ) AS col2 FROM tab1
----
60
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN col0 + + col2 + col1 + 20 * + col0 AND - 68
----

query II rowsort
SELECT col2 AS col0, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8194
SELECT - COUNT( CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0, 35 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0
105

skipif mysql # not compatible
query II rowsort label-8194
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0, 35 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL SUM( + + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL SUM ( + + col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT ALL ( + - col0 ) + + col1 + - - col1 FROM tab0 AS cor0 WHERE 24 = + col1 + 13
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT ALL 43, + MAX( ALL + + col1 ) + - COUNT( * ) col1 FROM tab0 AS cor0
----
43
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8197
SELECT ALL 43, + MAX ( ALL + + col1 ) + - COUNT ( * ) col1 FROM tab0 AS cor0
----
43
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - 97 + + + COUNT( * ) + - + 1 * 10 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - 97 + + + COUNT ( * ) + - + 1 * 10 FROM tab2 AS cor0
----
-104

query I rowsort
SELECT + ( - + 24 ) + col2 FROM tab1
----
35
44
72

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - col1 * - 65 FROM tab1
----
1006
3123
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT DISTINCT - MAX( - - 80 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT - MAX ( - - 80 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT SUM( + col2 ) + + - COUNT( * ) * + SUM( DISTINCT col0 ) FROM tab2
----
-434

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT SUM ( + col2 ) + + - COUNT ( * ) * + SUM ( DISTINCT col0 ) FROM tab2
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT + - CAST( - COUNT( * ) AS SIGNED ) - + + 63 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8205
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) - + + 63 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT ALL col1 + - - 25 + + - 16 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 66 IS NOT NULL
----

query I rowsort
SELECT + 20 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8210
SELECT + - col2 AS col2, - col1 * - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-8210
SELECT + - col2 AS col2, - col1 * - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col0 + + ( - + col0 ) * - - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + - MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8212
SELECT + - MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL COUNT( * ) * - - COUNT( * ) DIV MAX( - ( col0 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL COUNT ( * ) * - - COUNT ( * ) / MAX ( - ( col0 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT ( + COUNT( + + 30 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT ( + COUNT ( + + 30 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 88 * - col1 FROM tab0 AS cor0
----
-1848
-7128
-88

query II rowsort
SELECT ALL col1 AS col1, - 84 + 3 AS col2 FROM tab2
----
51
-81
67
-81
77
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 76 > col2 - - - 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - 82 FROM tab0
----
-3854
-8118
-820

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT DISTINCT + col2 DIV + + col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + col2 / + + col0 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NOT NULL BETWEEN - + 8 AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT 23 + COUNT( * ) FROM tab2 WHERE ( col2 * - col1 IS NULL )
----
23

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT 23 + COUNT ( * ) FROM tab2 WHERE ( col2 * - col1 IS NULL )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT 2 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT 2 / + col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) BETWEEN col2 AND NULL
----

query II rowsort
SELECT ALL - col2, + col1 AS col0 FROM tab0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT ALL + 69 AS col2, + col1 AS col1 FROM tab1
----
69
14
69
47
69
5

query I rowsort
SELECT + col2 / + 57 AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, 97 AS col2 FROM tab1
----
14
97
47
97
5
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT DISTINCT + CAST( - 96 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT + CAST ( - 96 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <> - col0 + + 54
----

query II rowsort
SELECT - col2 AS col0, - 91 FROM tab0 cor0
----
-10
-91
-47
-91
-99
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <= - col0 * - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - + MIN( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-8232
SELECT - + MIN ( DISTINCT col2 ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 39 col1 FROM tab0
----
-1833
-3861
-390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL - col1 AS col2 FROM tab1 WHERE + 39 * col2 IN ( - col0 - + + col1, CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL - col1 AS col2 FROM tab1 WHERE + 39 * col2 IN ( - col0 - + + col1, CAST ( + col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT 94 DIV ( + MAX( ALL - - col2 ) ) * ( COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT 94 / ( + MAX ( ALL - - col2 ) ) * ( COUNT ( * ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - COUNT( + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - COUNT ( + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 10 * - 96 AS col2 FROM tab0 AS cor0
----
-960
-960
-960

query II rowsort
SELECT ALL - 50 + + col2 AS col1, - ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-3
-2209
-40
-100
49
-9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT SUM( + 82 ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-8240
SELECT SUM ( + 82 ) FROM tab1
----
246

onlyif mysql # DIV for integer division: 
query II rowsort label-8241
SELECT ALL - ( - col1 ) - + 25, + col2 DIV + 71 AS col1 FROM tab1
----
-11
1
-20
0
22
0

skipif mysql # not compatible
query II rowsort label-8241
SELECT ALL - ( - col1 ) - + 25, + col2 / + 71 AS col1 FROM tab1
----
-11
1
-20
0
22
0

query I rowsort
SELECT - col0 + + + ( - col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT - 32 DIV - + col2 + + + col1 col1 FROM tab0
----
1
24
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8243
SELECT - 32 / - + col2 + + + col1 col1 FROM tab0
----
1
24
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL ( MIN( - 37 ) ) AS col2 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL ( MIN ( - 37 ) ) AS col2 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT + 4 + + col0 AS col2 FROM tab1 AS cor0
----
55
89
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8246
SELECT ALL - - MAX( col0 ) + - COUNT( * ) DIV - COUNT( col2 ) col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8246
SELECT ALL - - MAX ( col0 ) + - COUNT ( * ) / - COUNT ( col2 ) col2 FROM tab2 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT DISTINCT col1 DIV - 83 * + 84 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT col1 / - 83 * + 84 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT DISTINCT + 57 DIV + 96 * - + COUNT( DISTINCT + 46 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT + 57 / + 96 * - + COUNT ( DISTINCT + 46 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE 54 IS NULL
----

query I rowsort
SELECT - col2 * + - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL + ( MAX( DISTINCT - - col1 ) ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + ( MAX ( DISTINCT - - col1 ) ) AS col0 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 40 NOT BETWEEN - - col2 * col1 AND - 80
----

query I rowsort
SELECT ALL - 45 * + + 32 AS col0 FROM tab0 AS cor0
----
-1440
-1440
-1440

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 = + col2 * - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT - + 66 DIV - col1 + col0 col1 FROM tab0 AS cor0
----
15
163
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8255
SELECT DISTINCT - + 66 / - col1 + col0 col1 FROM tab0 AS cor0
----
15
163
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT + 51 * COUNT( * ) col1 FROM tab2 cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8257
SELECT DISTINCT + 51 * COUNT ( * ) col1 FROM tab2 cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - - COUNT( + col1 ) FROM tab0 WHERE NOT - 84 NOT BETWEEN - 16 AND + 27
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT - - COUNT ( + col1 ) FROM tab0 WHERE NOT - 84 NOT BETWEEN - 16 AND + 27
----
0

query I rowsort
SELECT ALL - col0 * 77 AS col0 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT + col1 DIV 17 AS col0 FROM tab2
----
3
3
4

skipif mysql # not compatible
query I rowsort label-8260
SELECT + col1 / 17 AS col0 FROM tab2
----
3
3
4

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - col1 <= 30
----

query I rowsort
SELECT + col0 * + 71 AS col0 FROM tab2
----
3266
4544
5325

query I rowsort
SELECT + col1 * - + ( col2 ) AS col1 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT + + col2 AS col0, + col2 AS col1 FROM tab2 cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - - col0 * - col0 * ( - ( + 44 ) ) * + col1 + - + 17 AS col2 FROM tab2 AS cor0
----
13877231
16582483
4748287

query I rowsort
SELECT ALL - col0 + - + 99 + + 55 AS col2 FROM tab0 AS cor0
----
-131
-141
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT MIN( 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8267
SELECT MIN ( 5 ) FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 66 * - + 38 * ( + + 4 ) FROM tab0
----
15
-10032
87
-10032
97
-10032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT + 98 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT + 98 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL COUNT( * ) * - + 0 + + - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL COUNT ( * ) * - + 0 + + - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 27 * - col1 IS NOT NULL
----

query I rowsort
SELECT - 9 * - col2 + - col1 FROM tab2
----
156
283
455

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL + MAX( + col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8273
SELECT ALL + MAX ( + col1 ) col1 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT CAST( NULL AS SIGNED ) * - - col2 + 40 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT CAST ( NULL AS INTEGER ) * - - col2 + 40 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + 17 AS col0, + col1 FROM tab2 AS cor0
----
17
51
17
67
17
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT + SUM( ( + 67 ) ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + SUM ( ( + 67 ) ) FROM tab2 AS cor0
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT ALL - - COUNT( * ) - 72 DIV - - 94 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL - - COUNT ( * ) - 72 / - - 94 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT + 7 + + - 93 + + col1 AS col1 FROM tab0 AS cor0
----
-5
-65
-85

query I rowsort
SELECT - - col1 + - - col2 FROM tab1 AS cor0 WHERE - 45 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8280
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 20 AS col0, MAX( ALL - - col0 ) FROM tab2 AS cor0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-8280
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 20 AS col0, MAX ( ALL - - col0 ) FROM tab2 AS cor0
----
NULL
75

query I rowsort
SELECT DISTINCT ( + 9 ) + - 46 + - col2 FROM tab1
----
-105
-133
-96

query I rowsort
SELECT ALL 45 * - - col1 - + col1 AS col1 FROM tab0
----
3564
44
924

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + COUNT( * ) col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT + COUNT ( * ) col1 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + + col0 FROM tab0 WHERE + col0 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 72 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 9 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + 24 * - + ( + + 84 )
----

query II rowsort
SELECT ALL + col1 AS col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query II rowsort
SELECT ALL - col1, - col2 AS col1 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 26 >= + col1
----
15
81
47

query I rowsort
SELECT ALL + 57 * - + 14 AS col2 FROM tab1 AS cor0
----
-798
-798
-798

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( ( + 83 / - ( - - col1 ) * - col0 ) IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL 26 * COUNT( * ) AS col1 FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL 26 * COUNT ( * ) AS col1 FROM tab0 cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT ALL 93 DIV + - 81 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL 93 / + - 81 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT - - COUNT( ALL 51 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8295
SELECT - - COUNT ( ALL 51 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT DISTINCT + + col2 * + col0 / CAST( NULL AS SIGNED ) * + 84 * - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT + + col2 * + col0 / CAST ( NULL AS INTEGER ) * + 84 * - col0 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col2, + 35 + + col1 FROM tab1 AS cor0
----
59
40
68
82
96
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + 42 + SUM( ALL - 0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8298
SELECT + 42 + SUM ( ALL - 0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT MIN( + 86 ) AS col0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8299
SELECT MIN ( + 86 ) AS col0 FROM tab2 AS cor0
----
86

query I rowsort
SELECT DISTINCT + - 43 * + col1 * - 15 * - - col2 AS col0 FROM tab2 AS cor0
----
1986600
2506470
756585

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + SUM( 16 ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-8301
SELECT + SUM ( 16 ) FROM tab1 cor0
----
48

query I rowsort
SELECT DISTINCT 84 * col2 * - 84 + - col2 FROM tab1 AS cor0
----
-416363
-479876
-677472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT DISTINCT + - col1 * + CAST( - - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8303
SELECT DISTINCT + - col1 * + CAST ( - - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + SUM( DISTINCT 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8304
SELECT + SUM ( DISTINCT 40 ) FROM tab0
----
40

query I rowsort
SELECT DISTINCT + - col1 + col1 AS col0 FROM tab2 WHERE NOT - - 90 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT ALL + col1 DIV col0 AS col0 FROM tab1 AS cor0 WHERE + col1 DIV - col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + col1 / col0 AS col0 FROM tab1 AS cor0 WHERE + col1 / - col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + col1 * - col2 * - 95 FROM tab1 AS cor0
----
127680
28025
303620

query I rowsort
SELECT + col0 + + 54 - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
228
248
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 64 * - 39
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT - + COUNT( DISTINCT - col2 ) * - + 74 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT - + COUNT ( DISTINCT - col2 ) * - + 74 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - COUNT( - 95 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8312
SELECT - COUNT ( - 95 ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + 53 AS col0, col1 - + + col1 AS col1 FROM tab0 AS cor0
----
53
0

query I rowsort
SELECT ALL + 29 * + + col0 * + col1 FROM tab2 AS cor0
----
142912
145725
68034

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT + + col2 DIV + 54 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8315
SELECT + + col2 / + 54 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - + 95 - - - 36 FROM tab0 cor0
----
-131
-131
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL CAST( 12 AS SIGNED ) + + col2 AS col1 FROM tab2
----
35
52
70

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL CAST ( 12 AS INTEGER ) + + col2 AS col1 FROM tab2
----
35
52
70

query I rowsort
SELECT DISTINCT - col0 + + ( + ( + 41 ) ) AS col0 FROM tab2
----
-23
-34
-5

query I rowsort
SELECT DISTINCT 95 - - - col2 AS col2 FROM tab1
----
-1
27
36

query III rowsort
SELECT * FROM tab2 WHERE - 87 >= 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab2 WHERE + col0 > - col0 + - + 72
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col0 - - + col0 + + 0 FROM tab2
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 - col0 col2, col0 AS col1 FROM tab2
----
-104
64
-133
75
-69
46

onlyif mysql # DIV for integer division: 
query II rowsort label-8324
SELECT ALL - 57, col2 DIV - + col1 AS col1 FROM tab1
----
-57
-1
-57
-11
-57
-6

skipif mysql # not compatible
query II rowsort label-8324
SELECT ALL - 57, col2 / - + col1 AS col1 FROM tab1
----
-57
-1
-57
-11
-57
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + - ( - + COUNT( * ) ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8325
SELECT ALL + - ( - + COUNT ( * ) ) col2 FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT + - col0 AS col0, col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8327
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + col2 <= - col1
----

skipif mysql # not compatible
query III rowsort label-8327
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col2 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> ( + 27 )
----
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> ( + 27 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8329
SELECT ALL - - CAST( - 17 AS SIGNED ), + col0 AS col2 FROM tab1 AS cor0
----
-17
51
-17
85
-17
91

skipif mysql # not compatible
query II rowsort label-8329
SELECT ALL - - CAST ( - 17 AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0
----
-17
51
-17
85
-17
91

query I rowsort
SELECT ALL ( + + col2 ) * + 11 FROM tab0 AS cor0
----
1089
110
517

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT + + COUNT( * ) + + ( - + 54 ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - + ( - col1 ) + + + 34
----
-54

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT + + COUNT ( * ) + + ( - + 54 ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - + ( - col1 ) + + + 34
----
-54

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT 98 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8333
SELECT - - col2, - col1 * + CAST( + 69 AS SIGNED ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8333
SELECT - - col2, - col1 * + CAST ( + 69 AS INTEGER ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( + 90 ) IS NOT NULL
----

query I rowsort
SELECT 97 + + col1 FROM tab2
----
148
164
174

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT col2 DIV - + 43 + col1 * - col2 FROM tab0
----
-101
-210
-3808

skipif mysql # not compatible
query I rowsort label-8336
SELECT col2 / - + 43 + col1 * - col2 FROM tab0
----
-101
-210
-3808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 91 + - 46 col0 FROM tab0
----
1865
45
7325

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ( 54 ) + - MIN( DISTINCT ( 52 ) ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-8338
SELECT ( 54 ) + - MIN ( DISTINCT ( 52 ) ) FROM tab2
----
2

query I rowsort
SELECT 38 + - + 64 AS col2 FROM tab1
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT - 85 DIV - + col0 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8340
SELECT - 85 / - + col0 AS col2 FROM tab1
----
0
1
1

query II rowsort
SELECT 45 * - 1 * - 7, + col2 * - col1 AS col2 FROM tab0
----
315
-210
315
-3807
315
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT DISTINCT CAST( - ( + CAST( + - 71 AS SIGNED ) ) AS SIGNED ) * - col1 AS col2 FROM tab1
----
-3337
-355
-994

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT CAST ( - ( + CAST ( + - 71 AS INTEGER ) ) AS INTEGER ) * - col1 AS col2 FROM tab1
----
-3337
-355
-994

onlyif mysql # DIV for integer division: 
query II rowsort label-8343
SELECT DISTINCT - 67 DIV - col1 + 2 AS col2, + col2 + col1 + + 39 AS col0 FROM tab1 AS cor0
----
15
103
3
154
6
149

skipif mysql # not compatible
query II rowsort label-8343
SELECT DISTINCT - 67 / - col1 + 2 AS col2, + col2 + col1 + + 39 AS col0 FROM tab1 AS cor0
----
15
103
3
154
6
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 / - col1 <> ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8347
SELECT + COUNT( - col2 ) DIV - 62 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT + COUNT ( - col2 ) / - 62 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 * + 40 AS col2 FROM tab2
----
-2040
-2680
-3080

query I rowsort
SELECT ALL - col2 * - 7 AS col1 FROM tab1
----
413
476
672

query I rowsort
SELECT ALL col2 * col2 - col1 FROM tab0
----
2128
79
9800

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT - CAST( col1 AS SIGNED ) * ( col1 * col0 + col0 ) + col0 AS col2 FROM tab1
----
-10659
-205205
-2465

skipif mysql # not compatible
query I rowsort label-8352
SELECT - CAST ( col1 AS INTEGER ) * ( col1 * col0 + col0 ) + col0 AS col2 FROM tab1
----
-10659
-205205
-2465

query I rowsort
SELECT col0 * 93 FROM tab0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + 77 * + ( + MIN( DISTINCT col2 ) ) FROM tab1
----
4543

skipif mysql # not compatible
query I rowsort label-8354
SELECT + 77 * + ( + MIN ( DISTINCT col2 ) ) FROM tab1
----
4543

query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT ALL + col1 / col1 FROM tab2 WHERE ( col1 * + 19 ) IS NULL
----

query I rowsort
SELECT col1 * - 19 AS col1 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT ALL col2 + col2 * col0 FROM tab0 WHERE col1 * - col1 IS NULL
----

query I rowsort
SELECT + 18 + + col0 AS col2 FROM tab0
----
105
115
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT DISTINCT col2 + - 20 AS col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col0 + - 77 >= NULL
----

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT col2 + - 20 AS col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col0 + - 77 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - MAX( ALL - 11 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-8361
SELECT - MAX ( ALL - 11 ) FROM tab2
----
11

query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8363
SELECT DISTINCT - CAST( ( COUNT( ALL + 39 ) ) AS SIGNED ) * MIN( - 49 + 58 DIV - col0 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - CAST ( ( COUNT ( ALL + 39 ) ) AS INTEGER ) * MIN ( - 49 + 58 / - col0 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT DISTINCT 60 * col0 AS col2 FROM tab2
----
2760
3840
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT 5 * + COUNT( DISTINCT col0 ) - 78 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT 5 * + COUNT ( DISTINCT col0 ) - 78 FROM tab2
----
-63

query I rowsort
SELECT - col0 + - col1 * col2 FROM tab1
----
-1395
-3287
-380

query III rowsort
SELECT * FROM tab0 WHERE col1 > - col1 - 74 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col2 * + col0 BETWEEN + 4 AND 13
----

query I rowsort
SELECT ALL + ( - 81 ) FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT COUNT( * ) * 25 FROM tab0 WHERE ( - 61 ) IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT COUNT ( * ) * 25 FROM tab0 WHERE ( - 61 ) IS NOT NULL
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 0 * - 40 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT + col0 DIV - col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8372
SELECT + col0 / - col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * + ( col1 ) AS col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT + 24 * + 87 FROM tab0
----
2088
2088
2088

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT ALL 92 DIV + col1 FROM tab0 WHERE NOT + col0 IS NULL
----
1
4
92

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL 92 / + col1 FROM tab0 WHERE NOT + col0 IS NULL
----
1
4
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
-9

skipif mysql # not compatible
query I rowsort label-8376
SELECT - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT COUNT( * ) + 77 AS col2 FROM tab1 AS cor0 WHERE NOT - 11 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-8377
SELECT COUNT ( * ) + 77 AS col2 FROM tab1 AS cor0 WHERE NOT - 11 IS NOT NULL
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 85 col0 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT MAX( ALL col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT MAX ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT ALL 84 * 67 + + CAST( + 47 + col0 AS SIGNED ) FROM tab1 AS cor0
----
5726
5760
5766

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL 84 * 67 + + CAST ( + 47 + col0 AS INTEGER ) FROM tab1 AS cor0
----
5726
5760
5766

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT - 38 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT - 38 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 / + col1 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 cor0 WHERE NOT col2 < - col0 + col2
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL + col0 * ( col1 ) FROM tab0 AS cor0 WHERE 16 * + col1 - + 50 BETWEEN + 3 / CAST( col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL + col0 * ( col1 ) FROM tab0 AS cor0 WHERE 16 * + col1 - + 50 BETWEEN + 3 / CAST ( col0 AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - 69 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT + MIN( ALL - 55 ) + 21 AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT + MIN ( ALL - 55 ) + 21 AS col2 FROM tab0
----
-34

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT col0 + + 16 NOT BETWEEN NULL AND - 83
----

query III rowsort
SELECT * FROM tab0 WHERE ( 6 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col2 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 51 + - col2 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 84 * + 15 * - col1 FROM tab0
----
102060
1260
26460

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8393
SELECT 59 + 93 * - CAST( + col1 + col2 * + 12 AS DECIMAL ) FROM tab1 WHERE col0 IN ( 53 + col1 )
----

skipif mysql # not compatible
query I rowsort label-8393
SELECT 59 + 93 * - CAST ( + col1 + col2 * + 12 AS REAL ) FROM tab1 WHERE col0 IN ( 53 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT DISTINCT - COUNT( * ) * + - 83 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - COUNT ( * ) * + - 83 FROM tab2
----
249

query I rowsort
SELECT ALL ( - 68 ) * col1 FROM tab1 AS cor0
----
-3196
-340
-952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 * - 45 * col0 + col2 col0 FROM tab2 AS cor0
----
126760
148558
91103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8397
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 + col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + - COUNT( * ) + - 96 AS col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8399
SELECT + - COUNT ( * ) + - 96 AS col2 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT - 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( ( col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8402
SELECT + + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 13 / - ( - col2 ) BETWEEN ( + col0 ) AND ( + col0 + 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col1 - col1 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col1, 92 + 48 AS col0 FROM tab1 AS cor0
----
14
140
47
140
5
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL col0 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL col0 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + - 18 ) FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + col2 - + col2 AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + + col1 AS col2, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col1 FROM tab0 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL + MAX( + - col2 ) * - 27 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
621

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL + MAX ( + - col2 ) * - 27 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
621

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( col2 + + 48 - - 34 ) = - 66 - + col2
----

query I rowsort
SELECT DISTINCT - 66 * + col0 FROM tab0 AS cor0
----
-5742
-6402
-990

query I rowsort
SELECT 33 + + 80 + + col0 AS col2 FROM tab0 AS cor0
----
128
200
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + col0, col1 col2 FROM tab1
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT DISTINCT + col0 * - + 50 FROM tab1
----
-2550
-4250
-4550

query I rowsort
SELECT ALL 54 * + col0 AS col0 FROM tab0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT + ( - CAST( + - ( - 46 ) AS SIGNED ) ) col1 FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8420
SELECT + ( - CAST ( + - ( - 46 ) AS INTEGER ) ) col1 FROM tab2
----
-46
-46
-46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + col1 - 77 >= col1
----
64
77
40

query I rowsort
SELECT ALL 57 AS col1 FROM tab2 AS cor0 WHERE + 40 - + col2 * 25 <> + col1 + col0 / 50
----
57
57
57

query I rowsort
SELECT ALL - + col0 * - 88 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8424
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 * col2 + CAST( NULL AS SIGNED ) ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-8424
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 * col2 + CAST ( NULL AS INTEGER ) ) > NULL )
----

query I rowsort
SELECT + col1 * - 38 * + col2 FROM tab2
----
-117040
-147668
-44574

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT DISTINCT col2 DIV - - 23 col2 FROM tab0
----
0
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8426
SELECT DISTINCT col2 / - - 23 col2 FROM tab0
----
0
2
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 14, + 42 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT SUM( DISTINCT - col1 ) * - + CAST( NULL AS SIGNED ) + 76 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT SUM ( DISTINCT - col1 ) * - + CAST ( NULL AS INTEGER ) + 76 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT ( - col0 + + + col2 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT + - col0 * + 13 + 23 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1108
-1238
-172

query II rowsort
SELECT DISTINCT 48 AS col0, col2 + col0 AS col2 FROM tab0 cor0
----
48
196
48
62
48
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT ALL + + 31 AS col0, + COUNT( * ) col2 FROM tab1 AS cor0
----
31
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8432
SELECT ALL + + 31 AS col0, + COUNT ( * ) col2 FROM tab1 AS cor0
----
31
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL - 11 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - 11 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT ALL + col0 + ( - 35 ) + + - col0 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 8 + col1 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 46 FROM tab1 WHERE - col1 * 37 IS NOT NULL
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT ALL col0 DIV + col0 + - ( col2 ) * - col0 - - 72 AS col1 FROM tab2
----
1131
2633
4423

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL col0 / + col0 + - ( col2 ) * - col0 - - 72 AS col1 FROM tab2
----
1131
2633
4423

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT 20 + - col2 + - 29 + col0 DIV - - 70 + + + 70 * 84 FROM tab1
----
5775
5804
5813

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT 20 + - col2 + - 29 + col0 / - - 70 + + + 70 * 84 FROM tab1
----
5775
5804
5813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT ALL - col0 + CAST( + + col2 AS SIGNED ) + - col0 FROM tab1
----
-111
-114
-6

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - col0 + CAST ( + + col2 AS INTEGER ) + - col0 FROM tab1
----
-111
-114
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0, 75 AS col2 FROM tab0 AS cor0
----
-15
75
-87
75
-97
75

query I rowsort
SELECT + ( - col0 ) - - 44 AS col1 FROM tab0 AS cor0
----
-43
-53
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - 76 col2 FROM tab2 AS cor0
----
-18
-36
-53

query I rowsort
SELECT - col0 * + + col1 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( 90 / + 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT - 71 * col1 * + 36 + - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-206989
-2457
-53666

skipif mysql # not compatible
query I rowsort label-8445
SELECT - 71 * col1 * + 36 + - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-206989
-2457
-53666

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - - ( - ( col0 ) ) NOT IN ( - 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) * + col2 * col2 col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL + 16 * - + col0 - 72 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN - + col2 + - CAST( NULL AS SIGNED ) AND ( - 44 )
----
-1464
-1624

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + 16 * - + col0 - 72 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN - + col2 + - CAST ( NULL AS INTEGER ) AND ( - 44 )
----
-1464
-1624

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT col1 DIV + col1 + 21 + col1 AS col2 FROM tab1 AS cor0
----
27
36
69

skipif mysql # not compatible
query I rowsort label-8449
SELECT col1 / + col1 + 21 + col1 AS col2 FROM tab1 AS cor0
----
27
36
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 = + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8451
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / + 3 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 3 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + col0 NOT BETWEEN col1 AND + + 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL - col1 * + 12 * + - col0 * + + CAST( + - 54 AS SIGNED ) FROM tab2
----
-1520208
-3193344
-3256200

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - col1 * + 12 * + - col0 * + + CAST ( + - 54 AS INTEGER ) FROM tab2
----
-1520208
-3193344
-3256200

query III rowsort
SELECT * FROM tab1 WHERE NOT - 43 * + 94 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT COUNT( * ) * - 47 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT COUNT ( * ) * - 47 FROM tab2
----
-141

query I rowsort
SELECT col2 * - - 76 FROM tab1
----
4484
5168
7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8458
SELECT DISTINCT COUNT( * ), - 7 AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + - col1 IN ( - 67 )
----
0
-7

skipif mysql # not compatible
query II rowsort label-8458
SELECT DISTINCT COUNT ( * ), - 7 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 IN ( - 67 )
----
0
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col2 - - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - SUM( - 94 ) AS col0 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-8460
SELECT - SUM ( - 94 ) AS col0 FROM tab2
----
282

query I rowsort
SELECT DISTINCT + + 64 AS col0 FROM tab2 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8462
SELECT ALL + col1 DIV - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL + col1 / - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT - COUNT( * ) * - + SUM( - - 15 ) + - + 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1117

skipif mysql # not compatible
query I rowsort label-8463
SELECT - COUNT ( * ) * - + SUM ( - - 15 ) + - + 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1117

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + - COUNT( * ) + - 62 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + - COUNT ( * ) + - 62 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT COUNT( * ) * + - COUNT( * ) * + 99 FROM tab1 AS cor0
----
-891

skipif mysql # not compatible
query I rowsort label-8465
SELECT COUNT ( * ) * + - COUNT ( * ) * + 99 FROM tab1 AS cor0
----
-891

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col0 + 52
----

query I rowsort
SELECT + - 9 * + col0 - + + col2 FROM tab0 AS cor0
----
-182
-793
-972

query I rowsort
SELECT - + col2 * - + 72 AS col2 FROM tab2 AS cor0
----
1656
2880
4176

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT + col1 DIV + col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT + col1 / + col2 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8471
SELECT + 84 DIV + - 84 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-8471
SELECT + 84 / + - 84 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-1
14
-1
47
-1
5

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE + - col2 <> ( - col1 / + col1 - col0 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 9 * - - col1 * + - 12 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT - 4 + - + col1 AS col2 FROM tab1
----
-18
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL COUNT( * ) - 7 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL COUNT ( * ) - 7 FROM tab1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8476
SELECT + CAST( COUNT( * ) AS SIGNED ) + + COUNT( ALL + - 83 ) + - + SUM( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8476
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( ALL + - 83 ) + - + SUM ( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
162

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col2, 25 * - + col0 * col0 FROM tab0
----
1
-235225
21
-189225
81
-5625

query I rowsort
SELECT ALL + col0 - + + 90 + - col0 FROM tab0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8480
SELECT - - COUNT( col2 ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8480
SELECT - - COUNT ( col2 ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8481
SELECT + 50 AS col1, 83 DIV - 6 FROM tab2 AS cor0
----
50
-13
50
-13
50
-13

skipif mysql # not compatible
query II rowsort label-8481
SELECT + 50 AS col1, 83 / - 6 FROM tab2 AS cor0
----
50
-13
50
-13
50
-13

query II rowsort
SELECT - col0 AS col1, + 56 + - col2 * + 16 - + col0 FROM tab0 cor0
----
-15
-711
-87
-191
-97
-1625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL - CAST( NULL AS SIGNED ) * - - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 42 AS col1 FROM tab2
----
1932
2688
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - COUNT( * ) * - - ( - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8485
SELECT - COUNT ( * ) * - - ( - COUNT ( * ) ) FROM tab2
----
9

query II rowsort
SELECT DISTINCT ( 29 ), col2 FROM tab2
----
29
23
29
40
29
58

query I rowsort
SELECT DISTINCT + col0 * + + col1 * - col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT col0 DIV + + col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8488
SELECT col0 / + + col1 AS col2 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 > col2 + + 4 + - - 38 * + 45 * - + col0 * col0 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 61 * + ( col1 ) * - 49 AS col2 FROM tab0
----
242109
2989
62769

query I rowsort
SELECT ALL + - 51 * + + col2 * - - 62 - - 1 * + + col1 - col2 FROM tab1 AS cor0
----
-186612
-215037
-303634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8492
SELECT DISTINCT + - MAX( + CAST( - - col0 AS SIGNED ) ) DIV - ( + - 96 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + - MAX ( + CAST ( - - col0 AS INTEGER ) ) / - ( + - 96 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 * 33 AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT DISTINCT COUNT( * ) AS col0, + ( - 80 ) FROM tab0
----
3
-80

skipif mysql # not compatible
query II rowsort label-8494
SELECT DISTINCT COUNT ( * ) AS col0, + ( - 80 ) FROM tab0
----
3
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT DISTINCT 82 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT 82 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - COUNT( ALL 39 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - COUNT ( ALL 39 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 71 * + 27 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - 76
----

query I rowsort
SELECT + col0 * + col0 + col2 - + + 20 * + 75 FROM tab2 AS cor0
----
2636
4183
639

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 53 + - col2 + + col2 FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT ALL CAST( MIN( + 76 ) AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL CAST ( MIN ( + 76 ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
79

query I rowsort
SELECT col0 * + - 56 + col2 AS col0 FROM tab2
----
-2553
-3544
-4142

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL 66 + + COUNT( + 83 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL 66 + + COUNT ( + 83 ) FROM tab2
----
69

query I rowsort
SELECT ALL - col2 * col0 + - - col0 * 1 + + ( + - col1 ) * - - 61 FROM tab2
----
-4123
-7193
-8362

query I rowsort
SELECT DISTINCT col0 * + 1 - - - col2 + - 46 AS col1 FROM tab1
----
-20
-23
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - COUNT( DISTINCT ( col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8506
SELECT - COUNT ( DISTINCT ( col1 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT - col0 DIV - col0 + - col0 AS col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - col0 / - col0 + - col0 AS col0 FROM tab1
----
-50
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8508
SELECT ALL * FROM tab0 WHERE + - CAST( 95 AS SIGNED ) + - col2 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8508
SELECT ALL * FROM tab0 WHERE + - CAST ( 95 AS INTEGER ) + - col2 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - col2 ) * col1 * + 92 AS col0 FROM tab2
----
-107916
-283360
-357512

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT DISTINCT + 52 - - COUNT( DISTINCT 74 ) FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + 52 - - COUNT ( DISTINCT 74 ) FROM tab2 cor0
----
53

query II rowsort
SELECT - - col0 + - 20 + - ( + col1 ) * + 55 AS col0, 22 AS col1 FROM tab2 AS cor0
----
-2779
22
-3630
22
-4191
22

query I rowsort
SELECT - ( + 57 ) * - col1 * + + 90 - + 51 FROM tab2 WHERE NOT + col1 < col0 * - - col2
----

query I rowsort
SELECT + col1 / + + col2 / col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 33 = col1
----

query I rowsort
SELECT ALL - col0 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 col0 FROM tab1 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL - MIN( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL - MIN ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT COUNT( ALL col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8518
SELECT COUNT ( ALL col2 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + SUM( ALL + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + SUM ( ALL + col2 ) AS col1 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT - 18 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8520
SELECT - 18 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT + COUNT( * ) * - + 26 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8521
SELECT + COUNT ( * ) * - + 26 FROM tab0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT - SUM( DISTINCT - - col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT - SUM ( DISTINCT - - col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT DISTINCT 94, 10 * COUNT( * ) * + 80 AS col1 FROM tab2
----
94
2400

skipif mysql # not compatible
query II rowsort label-8523
SELECT DISTINCT 94, 10 * COUNT ( * ) * + 80 AS col1 FROM tab2
----
94
2400

query II rowsort
SELECT DISTINCT - 26, 97 * - col2 AS col2 FROM tab2
----
-26
-2231
-26
-3880
-26
-5626

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT - 33 DIV - 89 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT - 33 / - 89 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT MIN( ALL + 77 ) * - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT MIN ( ALL + 77 ) * - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 26 )
----
NULL

query I rowsort
SELECT ALL 95 FROM tab2 AS cor0 WHERE NULL <> 82
----

query II rowsort
SELECT - ( - + col0 ) - - + col2 AS col1, 93 + ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 36 AS col1, + col2 FROM tab1 AS cor0
----
36
59
36
68
36
96

query II rowsort
SELECT DISTINCT 4 + - 34 * col1 AS col0, - col2 FROM tab2
----
-1730
-23
-2274
-58
-2614
-40

query I rowsort
SELECT - col2 * + 68 AS col0 FROM tab0 cor0
----
-3196
-6732
-680

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT DISTINCT + - 9 DIV + 64 + - col2 * col2 * + col2 * + - col2 AS col1 FROM tab0 AS cor0
----
10000
4879681
96059601

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT + - 9 / + 64 + - col2 * col2 * + col2 * + - col2 AS col1 FROM tab0 AS cor0
----
10000
4879681
96059601

query II rowsort
SELECT col1 * col0, col0 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

query I rowsort
SELECT ALL + + 49 AS col2 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL - - 43 + - MAX( ALL + - col0 ) FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL - - 43 + - MAX ( ALL + - col0 ) FROM tab1 cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT - 45 DIV 97 - - col1 * - - 83 FROM tab0 AS cor0
----
1743
6723
83

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 45 / 97 - - col1 * - - 83 FROM tab0 AS cor0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT - - MAX( ALL - + col0 ) + + - COUNT( * ) FROM tab1 WHERE NULL NOT IN ( + col1 - - 32, + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - - MAX ( ALL - + col0 ) + + - COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( + col1 - - 32, + col0 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - + col1 - - 52 * - col2 AS col2 FROM tab0
----
-2478
-5050
-531

query I rowsort
SELECT ALL + col0 * col1 + col0 + - col0 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT DISTINCT col1 DIV + 58 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT col1 / + 58 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 - - + col2 + + + ( 91 ) * - - 37 AS col0 FROM tab1
----
3388
3421
3449

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT col0 + - 49 - - col2 DIV + + 79 + - col1 * - ( + 16 ) * + + 73 + - col2 AS col0 FROM tab2
----
59542
78224
89911

skipif mysql # not compatible
query I rowsort label-8542
SELECT col0 + - 49 - - col2 / + + 79 + - col1 * - ( + 16 ) * + + 73 + - col2 AS col0 FROM tab2
----
59542
78224
89911

query I rowsort
SELECT col2 + - + 21 AS col0 FROM tab1
----
38
47
75

query I rowsort
SELECT ALL + - ( + + 83 ) AS col2 FROM tab1 AS cor0
----
-83
-83
-83

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT - + MAX( + - col0 ), 4 col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
15
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8546
SELECT - + MAX ( + - col0 ), 4 col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
15
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 82 + + + col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT DISTINCT CAST( + ( + col2 ) AS SIGNED ) * col2 AS col1 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT CAST ( + ( + col2 ) AS INTEGER ) * col2 AS col1 FROM tab0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col2 FROM tab2
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, 6 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
6
-47
6
-5
6

query I rowsort
SELECT 21 + - + 26 FROM tab2
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT + CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * - 36 * + col2 FROM tab1
----
125316
166464
331776

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT col1 DIV - 7 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-8555
SELECT col1 / - 7 FROM tab1
----
-2
-6
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 3 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 34, - col0 * - + col0 - + 43 AS col2 FROM tab2
----
34
2073
34
4053
34
5582

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * + col1 * + 24 FROM tab2 WHERE NULL IS NULL
----
-107736
-142296
-62424

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT - COUNT( * ) + + 35 AS col2 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8562
SELECT - COUNT ( * ) + + 35 AS col2 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT col1 * + 96 + + col2 + + + CAST( - 19 AS SIGNED ) + - col2 * + 15 AS col2 FROM tab0 cor0
----
-1309
1857
7099

skipif mysql # not compatible
query I rowsort label-8563
SELECT col1 * + 96 + + col2 + + + CAST ( - 19 AS INTEGER ) + - col2 * + 15 AS col2 FROM tab0 cor0
----
-1309
1857
7099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT MAX( ALL - CAST( + - col1 AS SIGNED ) ) FROM tab0 AS cor0 WHERE - col2 <> - + 51
----
81

skipif mysql # not compatible
query I rowsort label-8564
SELECT MAX ( ALL - CAST ( + - col1 AS INTEGER ) ) FROM tab0 AS cor0 WHERE - col2 <> - + 51
----
81

query II rowsort
SELECT DISTINCT - - col0 AS col0, + col0 * - 30 FROM tab0 AS cor0
----
15
-450
87
-2610
97
-2910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT - CAST( NULL AS SIGNED ) * COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT SUM( ALL + col0 ) AS col2, - COUNT( * ) FROM tab1
----
227
-3

skipif mysql # not compatible
query II rowsort label-8567
SELECT SUM ( ALL + col0 ) AS col2, - COUNT ( * ) FROM tab1
----
227
-3

query I rowsort
SELECT ALL 86 - + + 4 AS col1 FROM tab0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * + col0 + ( + 45 ) col2 FROM tab1
----
4023
6675
7143

query I rowsort
SELECT + - 83 AS col1 FROM tab1 cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT DISTINCT - COUNT( * ) DIV + ( 60 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT - COUNT ( * ) / + ( 60 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT + + col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT - + 23, - 42 + - + 68 + + col1 * + + col0 AS col2 FROM tab1 AS cor0
----
-23
315
-23
4167
-23
604

query I rowsort
SELECT ALL - - col2 + - col1 * - col2 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
237264
260495
59892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 * - col1 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 85 * + col2 FROM tab2 AS cor0
----
1955
3400
4930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col1, 56 AS col2 FROM tab1 AS cor0
----
-14
56
-47
56
-5
56

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( + 81 + + col1 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT ALL + MAX( - + col0 ) DIV 83 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + MAX ( - + col0 ) / 83 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT 0 * + - MAX( ALL + - col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT 0 * + - MAX ( ALL + - col0 ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT + ( + col2 ) * + col2 + - - col2 DIV - col1 * - col0 * - - col0 + - 68 AS col1 FROM tab2 AS cor0
----
1532
3296
461

skipif mysql # not compatible
query I rowsort label-8583
SELECT + ( + col2 ) * + col2 + - - col2 / - col1 * - col0 * - - col0 + - 68 AS col1 FROM tab2 AS cor0
----
1532
3296
461

query I rowsort
SELECT + 46 + - + 84 AS col1 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + + 95 + - col2 - + ( - 3 ) FROM tab0 AS cor0
----
-1
51
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8586
SELECT ALL - col0 * - col1 + + CAST( + col0 AS DECIMAL ) / + 81 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) * + + 37 + + col1 * col0 / - + col2 * col1 + col0 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - col0 * - col1 + + CAST ( + col0 AS REAL ) / + 81 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 ) * + + 37 + + col1 * col0 / - + col2 * col1 + col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT - - col0 + 30 FROM tab0 AS cor0
----
117
127
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + col1 * + col1 + 52
----

query I rowsort
SELECT DISTINCT + col2 - + - 20 * 26 FROM tab2
----
543
560
578

query I rowsort
SELECT + col0 - + - col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - MAX( ALL - + 10 ) - + + ( + + 46 ) AS col0 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8592
SELECT - MAX ( ALL - + 10 ) - + + ( + + 46 ) AS col0 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT 30 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + + 66 col1 FROM tab0 AS cor0
----
-51
21
31

query I rowsort
SELECT DISTINCT 72 * + - col2 AS col1 FROM tab0
----
-3384
-7128
-720

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - + 40 * + + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT - COUNT( + + ( col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8597
SELECT - COUNT ( + + ( col0 ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT col0 DIV - + col0 FROM tab2 WHERE NOT + col1 * + 86 * - - col2 * + - ( + + col0 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8598
SELECT col0 / - + col0 FROM tab2 WHERE NOT + col1 * + 86 * - - col2 * + - ( + + col0 ) IS NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT ALL 83 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL 83 / + col2 FROM tab1
----
0
1
1

query II rowsort
SELECT + col1 AS col0, col1 + - + 86 AS col1 FROM tab2 AS cor0
----
51
-35
67
-19
77
-9

query II rowsort
SELECT + col1 AS col1, + col0 + 22 + col0 * + 95 FROM tab2 AS cor0
----
51
4438
67
7222
77
6166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT ALL CAST( - 27 AS SIGNED ) FROM tab1 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL CAST ( - 27 AS INTEGER ) FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT - 17 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT - 17 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - - ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT + col0 * col0 + - col2 - + ( + - col1 ) * + 20 + - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8604
SELECT - - ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT + col0 * col0 + - col2 - + ( + - col1 ) * + 20 + - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT ( 96 ) DIV + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8605
SELECT ( 96 ) / + COUNT ( * ) FROM tab1
----
32

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT SUM( - col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT SUM ( - col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT ALL - col0 * - - col0 + + 21 + - col1 + - 5 * - col2 DIV + col2 + col1 * - col0 - + + col2 FROM tab1 AS cor0
----
-12647
-3399
-7688

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - col0 * - - col0 + + 21 + - col1 + - 5 * - col2 / + col2 + col1 * - col0 - + + col2 FROM tab1 AS cor0
----
-12647
-3399
-7688

query II rowsort
SELECT - + col1 + col1 AS col0, 6 FROM tab1 AS cor0
----
0
6
0
6
0
6

query I rowsort
SELECT DISTINCT - col2 + + - col1 AS col0 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT col1 * + 15 * + col1 * col1 + - col2 FROM tab0
----
-84
138905
7971568

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8612
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * + col0 + - col0 + 61 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8612
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * + col0 + - col0 + 61 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 41 + + + 0 FROM tab1
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT col0 + - - col2 AS col0 FROM tab2 WHERE - 0 * - + CAST( col0 AS SIGNED ) * ( - - col1 ) + + 10 NOT IN ( - 30 )
----
104
133
69

skipif mysql # not compatible
query I rowsort label-8614
SELECT col0 + - - col2 AS col0 FROM tab2 WHERE - 0 * - + CAST ( col0 AS INTEGER ) * ( - - col1 ) + + 10 NOT IN ( - 30 )
----
104
133
69

query I rowsort
SELECT - col2 * + - col2 * - - 28 + - + 51 AS col1 FROM tab1
----
129421
257997
97417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT - CAST( + - 31 AS SIGNED ) FROM tab0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8616
SELECT - CAST ( + - 31 AS INTEGER ) FROM tab0
----
31
31
31

query I rowsort
SELECT 28 * - - ( - 28 ) * - 58 AS col2 FROM tab2
----
45472
45472
45472

onlyif mysql # aggregate syntax: 
query II rowsort label-8618
SELECT - 15 AS col1, COUNT( * ) FROM tab1
----
-15
3

skipif mysql # not compatible
query II rowsort label-8618
SELECT - 15 AS col1, COUNT ( * ) FROM tab1
----
-15
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8619
SELECT + col0 - - col0 AS col0, col0 DIV + 43 AS col1 FROM tab1
----
102
1
170
1
182
2

skipif mysql # not compatible
query II rowsort label-8619
SELECT + col0 - - col0 AS col0, col0 / + 43 AS col1 FROM tab1
----
102
1
170
1
182
2

query I rowsort
SELECT DISTINCT col0 * + + 18 * col0 + 49 FROM tab2
----
101299
38137
73777

query I rowsort
SELECT DISTINCT col2 - - - col1 AS col2 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT DISTINCT + MIN( ALL - col1 ) - - MAX( DISTINCT ( 39 ) ) col2 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8622
SELECT DISTINCT + MIN ( ALL - col1 ) - - MAX ( DISTINCT ( 39 ) ) col2 FROM tab2 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - 28 + 72 + - - col2 col2 FROM tab0 AS cor0 WHERE NULL IN ( col0, col1 )
----

query I rowsort
SELECT ALL col0 - - 39 FROM tab1 AS cor0
----
124
130
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 47 * 1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL - SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL - SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL ( 22 ) AS col1 FROM tab2 cor0
----
22
22
22

query I rowsort
SELECT ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT ALL col0 * - col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL col0 * - col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 60 * - + 54 FROM tab1
----
-3240
-3240
-3240

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT + 4, - COUNT( * ) AS col0 FROM tab1
----
4
-3

skipif mysql # not compatible
query II rowsort label-8632
SELECT + 4, - COUNT ( * ) AS col0 FROM tab1
----
4
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( ( + + col1 ), 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL - SUM( + ( - ( - col1 ) ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL - SUM ( + ( - ( - col1 ) ) ) FROM tab1
----
-66

query I rowsort
SELECT ALL - - 60 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-293760
-300900
-371280

query I rowsort
SELECT DISTINCT col0 * - 12 AS col2 FROM tab0
----
-1044
-1164
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8637
SELECT DISTINCT CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - 36 * - col0 AS col0 FROM tab1
----
1836
3060
3276

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 38 col0 FROM tab0 AS cor0
----
-3306
-3686
-570

query II rowsort
SELECT DISTINCT - + 61 AS col1, 66 AS col2 FROM tab1 AS cor0
----
-61
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT - CAST( 65 AS SIGNED ) FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-8642
SELECT - CAST ( 65 AS INTEGER ) FROM tab2 AS cor0
----
-65
-65
-65

query II rowsort
SELECT 97, col0 FROM tab0 AS cor0
----
97
15
97
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT + - col0 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT + - col0 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8645
SELECT CAST( NULL AS SIGNED ), + COUNT( * ) col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8645
SELECT CAST ( NULL AS INTEGER ), + COUNT ( * ) col2 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT + - 66 * - col1 FROM tab0 AS cor0
----
1386
5346
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT ALL - + CAST( NULL AS SIGNED ) + + - 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - + CAST ( NULL AS INTEGER ) + + - 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8648
SELECT DISTINCT COUNT( * ) DIV + 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT COUNT ( * ) / + 63 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 77 + + - col1 AS col2 FROM tab0 cor0
----
-158
-78
-98

query I rowsort
SELECT DISTINCT + 14 + 12 AS col2 FROM tab0
----
26

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - 14 - - 35 * - 3 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT + 4 DIV + + col0 + + - col1 AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8653
SELECT + 4 / + + col0 + + - col1 AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL 18 + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 18 + COUNT ( * ) FROM tab2
----
21

query II rowsort
SELECT ALL col2 * col0 AS col2, - 2 - - 36 FROM tab0
----
705
34
870
34
9603
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT - 62 / + CAST( NULL AS SIGNED ) + - MAX( + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT - 62 / + CAST ( NULL AS INTEGER ) + - MAX ( + col0 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - + COUNT( * ) + + - ( + + SUM( + 36 ) ) AS col2 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-8657
SELECT - + COUNT ( * ) + + - ( + + SUM ( + 36 ) ) AS col2 FROM tab1 AS cor0
----
-111

query II rowsort
SELECT ALL ( - 72 ) AS col1, + col2 FROM tab1 AS cor0
----
-72
59
-72
68
-72
96

query II rowsort
SELECT - col1 + col0, - col2 / 25 + + - col0 * col2 FROM tab2 AS cor0 WHERE + ( + + col1 ) IS NULL
----

query I rowsort
SELECT + 39 * + 45 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 31d0dff9c059d529b9fa1bec61c01795

query III rowsort
SELECT * FROM tab2 cor0 WHERE 49 + col0 BETWEEN NULL AND + col0
----

query I rowsort
SELECT - 52 - ( + - col2 ) FROM tab0 AS cor0
----
-42
-5
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT DISTINCT col2 * - + col1 - + 23 DIV - 15 FROM tab0 AS cor0
----
-209
-3806
-98

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT col2 * - + col1 - + 23 / - 15 FROM tab0 AS cor0
----
-209
-3806
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8664
SELECT CAST( NULL AS SIGNED ) - + + col2 * - + col2 AS col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8664
SELECT CAST ( NULL AS INTEGER ) - + + col2 * - + col2 AS col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8665
SELECT 40 * + CAST( - col1 AS SIGNED ) AS col2, + col2 * - - col1 - + ( + col1 ) FROM tab1 AS cor0
----
-1880
3149
-200
290
-560
1330

skipif mysql # not compatible
query II rowsort label-8665
SELECT 40 * + CAST ( - col1 AS INTEGER ) AS col2, + col2 * - - col1 - + ( + col1 ) FROM tab1 AS cor0
----
-1880
3149
-200
290
-560
1330

query II rowsort
SELECT - + col0, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT - COUNT( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col1 AS col0, - 79 * - col0 FROM tab0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8669
SELECT 73 * - - 56 AS col0, + COUNT( * ) AS col1 FROM tab2
----
4088
3

skipif mysql # not compatible
query II rowsort label-8669
SELECT 73 * - - 56 AS col0, + COUNT ( * ) AS col1 FROM tab2
----
4088
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT + 11 DIV - 66 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8670
SELECT + 11 / - 66 FROM tab1
----
0
0
0

query I rowsort
SELECT - 8 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + 59 + + + col2 FROM tab0 AS cor0
----
-2726
-5742
-580

query I rowsort
SELECT - 97 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT 32 <= ( 91 ) * - col2 )
----

query I rowsort
SELECT ALL - 69 * + + col1 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT COUNT( - 92 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8675
SELECT COUNT ( - 92 ) FROM tab0
----
3

query II rowsort
SELECT + col1 AS col2, + 83 AS col1 FROM tab2
----
51
83
67
83
77
83

query I rowsort
SELECT DISTINCT - 76 * - col2 FROM tab1
----
4484
5168
7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8678
SELECT + CAST( NULL AS SIGNED ) / - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + 9 + - 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 9 + - 75 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8680
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL AND NOT col2 = + - CAST( NULL AS SIGNED ) - - 4 / col0
----

skipif mysql # not compatible
query III rowsort label-8680
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL AND NOT col2 = + - CAST ( NULL AS INTEGER ) - - 4 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT + 48 + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 48 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - COUNT( * ) + 26 AS col2 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8683
SELECT - COUNT ( * ) + 26 AS col2 FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL - col2 + - col1 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL - col2 + - col1 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL ) > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, - col2 col1 FROM tab2
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT COUNT( * ) col2, ( SUM( - + 94 ) ) * COUNT( * ) col0 FROM tab0
----
3
-846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8687
SELECT COUNT ( * ) col2, ( SUM ( - + 94 ) ) * COUNT ( * ) col0 FROM tab0
----
3
-846

query I rowsort
SELECT DISTINCT + 28 * + 56 + + col2 FROM tab0
----
1578
1615
1667

onlyif mysql # DIV for integer division: 
query II rowsort label-8689
SELECT ALL + 97 DIV - 42, ( + col2 ) + + col1 AS col0 FROM tab1
----
-2
110
-2
115
-2
64

skipif mysql # not compatible
query II rowsort label-8689
SELECT ALL + 97 / - 42, ( + col2 ) + + col1 AS col0 FROM tab1
----
-2
110
-2
115
-2
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT ALL col0 DIV col1 * - - col1 AS col0 FROM tab1
----
42
47
85

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL col0 / col1 * - - col1 AS col0 FROM tab1
----
42
47
85

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + MIN( - 26 ) - + 53 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8692
SELECT + MIN ( - 26 ) - + 53 FROM tab0 AS cor0
----
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / ( - + 40 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 + + - col0 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT - col2 + - col0 AS col0, - col1 FROM tab0
----
-196
-1
-62
-81
-97
-21

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 21 / - + col2
----

query I rowsort
SELECT - 25 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT - - 20 * + ( - CAST( NULL AS SIGNED ) ) 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-8698
SELECT - - 20 * + ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL - + SUM( ( + + 3 ) ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - + SUM ( ( + + 3 ) ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - - 64 AS col2 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT 45 DIV - + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT 45 / - + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 9 FROM tab0 WHERE NOT col1 IS NULL OR NOT NULL IN ( col1 * - + 15 )
----
9

query I rowsort
SELECT col0 * + - 9 AS col1 FROM tab0
----
-135
-783
-873

query II rowsort
SELECT - + col1 * - col1 AS col2, + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
99
441
10
6561
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT 70 DIV + col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT 70 / + col0 FROM tab0 AS cor0
----
0
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT + col1 + - 30 + + col2 DIV ( + 95 ) FROM tab0 AS cor0
----
-28
-9
51

skipif mysql # not compatible
query I rowsort label-8706
SELECT + col1 + - 30 + + col2 / ( + 95 ) FROM tab0 AS cor0
----
-28
-9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 95 * + - 5 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-484

skipif mysql # not compatible
query I rowsort label-8707
SELECT 95 * + - 5 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-484

query II rowsort
SELECT DISTINCT 6 + - col1 * - col0 * col2 * 32 AS col2, ( - 23 ) AS col1 FROM tab1
----
2193414
-23
802406
-23
9306758
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT + - CAST( NULL AS SIGNED ) / - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT + - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8710
SELECT - - CAST( NULL AS DECIMAL ) * col2 / - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT - - CAST ( NULL AS REAL ) * col2 / - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + 61 + col1 * + + col1 BETWEEN - col1 / - + col1 AND 11
----

query I rowsort
SELECT col0 - 96 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT - col1 FROM tab1 WHERE ( - col0 ) > - 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT DISTINCT 25 + - col0 + col1 DIV col0 DIV + + col2 FROM tab0
----
-62
-72
10

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT 25 + - col0 + col1 / col0 / + + col2 FROM tab0
----
-62
-72
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8715
SELECT DISTINCT CAST( NULL AS DECIMAL ) - col2 * col0 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8715
SELECT DISTINCT CAST ( NULL AS REAL ) - col2 * col0 col1 FROM tab2
----
NULL

query I rowsort
SELECT - col0 * + - ( - col1 ) + col2 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT - + col2 + + 5 AS col2 FROM tab0 AS cor0
----
-42
-5
-94

query I rowsort
SELECT ALL + col1 * - - 68 - - col1 AS col2 FROM tab0 AS cor0
----
1449
5589
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 * - 80 col0 FROM tab1 AS cor0
----
5360
5360
5360

query I rowsort
SELECT DISTINCT + 40 * - 24 FROM tab2
----
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8721
SELECT ALL CAST( NULL AS SIGNED ) * - 83 * ( + COUNT( * ) ) + - ( 27 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL CAST ( NULL AS INTEGER ) * - 83 * ( + COUNT ( * ) ) + - ( 27 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + ( - + ( ( + COUNT( + - 84 ) ) ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8722
SELECT ALL + ( - + ( ( + COUNT ( + - 84 ) ) ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( + - 5 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 95 + + col1 * + col1 / - col2 <> - col1 + 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT 14 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT 14 / + col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8726
SELECT ALL - 36 DIV 98 AS col1, + 27 AS col1 FROM tab0
----
0
27
0
27
0
27

skipif mysql # not compatible
query II rowsort label-8726
SELECT ALL - 36 / 98 AS col1, + 27 AS col1 FROM tab0
----
0
27
0
27
0
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT MAX( DISTINCT + col1 ) FROM tab1 WHERE NOT - 5 * - col2 * 51 * + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT MAX ( DISTINCT + col1 ) FROM tab1 WHERE NOT - 5 * - col2 * 51 * + + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 * - - col2 AS col0 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT ( col1 ) AS col0, ( - 79 ) + col2 FROM tab0
----
1
20
21
-69
81
-32

query I rowsort
SELECT 81 * - ( + col1 ) AS col1 FROM tab1
----
-1134
-3807
-405

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT ALL - 0 DIV 27 + + col0 * col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - 0 / 27 + + col0 * col2 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT col1 AS col0, + col1 * + 2 + col1 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
1
3
21
63
81
243

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 <> + - col1 + 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL AVG ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8736
SELECT * FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) - col1 * - col1 NOT BETWEEN - 89 AND col0 * + - col2 - + col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8736
SELECT * FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) - col1 * - col1 NOT BETWEEN - 89 AND col0 * + - col2 - + col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT COUNT( * ) + + + 21 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8737
SELECT COUNT ( * ) + + + 21 FROM tab1 AS cor0
----
24

query I rowsort
SELECT col1 + - + 26 + + + ( col2 ) FROM tab0 AS cor0
----
102
5
74

query II rowsort
SELECT col2 AS col0, + col1 * - 27 AS col0 FROM tab2 AS cor0
----
23
-1377
40
-2079
58
-1809

query I rowsort
SELECT ALL + col0 + + 69 AS col1 FROM tab2
----
115
133
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT + 76 + - + COUNT( * ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT + 76 + - + COUNT ( * ) AS col2 FROM tab0
----
73

query I rowsort
SELECT ALL + 70 - col2 FROM tab2
----
12
30
47

query I rowsort
SELECT ALL 89 + + col2 + - + col2 FROM tab2
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8744
SELECT * FROM tab0 WHERE - col1 + + 85 * - 66 + + - CAST( + ( - - 57 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8744
SELECT * FROM tab0 WHERE - col1 + + 85 * - 66 + + - CAST ( + ( - - 57 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT + col1 / - col1 * + - col2 AS col1 FROM tab1 WHERE + 71 + - ( - CAST( NULL AS SIGNED ) ) / + + ( + 80 ) > col2 + - + col0 * + + col2
----

skipif mysql # not compatible
query I rowsort label-8745
SELECT + col1 / - col1 * + - col2 AS col1 FROM tab1 WHERE + 71 + - ( - CAST ( NULL AS INTEGER ) ) / + + ( + 80 ) > col2 + - + col0 * + + col2
----

query I rowsort
SELECT DISTINCT - 10 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-150
-870
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 55 * col1 col1 FROM tab0 AS cor0
----
-1155
-4455
-55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + - col2 ) * + 16 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + + 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + + 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL = ( col1 )
----

query I rowsort
SELECT ALL + + 90 * 69 * col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
366390
422280
596160

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 4 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT - SUM( DISTINCT + CAST( + col2 AS SIGNED ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8755
SELECT - SUM ( DISTINCT + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
-156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - + col1 - col1 * - col0 * col0 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL + + 99 * MIN( ALL + + 3 ) FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + + 99 * MIN ( ALL + + 3 ) FROM tab2 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= col2
----

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 + - 77 * + + ( + + 65 ) * - + ( + col1 ) + + col0 AS col2 FROM tab1 AS cor0
----
238590
25464
71561

query I rowsort
SELECT + col1 + + + col2 * - - 82 AS col2 FROM tab0 AS cor0
----
3935
8119
841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) * - 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) * - 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT ALL CAST( + - 48 AS SIGNED ) + + - col1 + - ( + + CAST( + col2 AS SIGNED ) ) + + + 2 * + 98 * col0 FROM tab0
----
16973
18864
2764

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL CAST ( + - 48 AS INTEGER ) + + - col1 + - ( + + CAST ( + col2 AS INTEGER ) ) + + + 2 * + 98 * col0 FROM tab0
----
16973
18864
2764

query I rowsort
SELECT col0 * 98 FROM tab0 cor0
----
1470
8526
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT DISTINCT 90 * + col2 + + - col2 + CAST( NULL AS SIGNED ) + + 26 * + 32 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT 90 * + col2 + + - col2 + CAST ( NULL AS INTEGER ) + + 26 * + 32 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 4 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + col0 ) * + + col1 * col1 FROM tab2 AS cor0
----
119646
336675
379456

query II rowsort
SELECT + + 27 - - + col0 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
102
-67
73
-51
91
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8769
SELECT + 17 * 1 - + - SUM( + col2 ) + COUNT( * ) DIV + - 7 FROM tab0 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-8769
SELECT + 17 * 1 - + - SUM ( + col2 ) + COUNT ( * ) / + - 7 FROM tab0 AS cor0
----
173

query I rowsort
SELECT 75 + - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-6
54
74

query I rowsort
SELECT ALL 87 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL - 74 + - + 47 AS col2 FROM tab0
----
-121
-121
-121

onlyif mysql # DIV for integer division: 
query II rowsort label-8773
SELECT ALL col1 DIV + + col1 - col1, col2 AS col0 FROM tab2
----
-50
23
-66
58
-76
40

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL col1 / + + col1 - col1, col2 AS col0 FROM tab2
----
-50
23
-66
58
-76
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 - + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 - + col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT MAX( + - 29 ) AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT MAX ( + - 29 ) AS col0 FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT DISTINCT 86 * + - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
-6450

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT 86 * + - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-6450

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * - 75 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + SUM( ALL 59 ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-8779
SELECT + SUM ( ALL 59 ) FROM tab0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL 90 + COUNT( * ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL 90 + COUNT ( * ) AS col0 FROM tab2
----
93

query I rowsort
SELECT - col0 + - col1 FROM tab0 WHERE NULL < ( - col1 + + 19 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) <> col1 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT ALL 74 + - CAST( col0 + col1 AS SIGNED ) FROM tab1
----
-16
-64
9

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL 74 + - CAST ( col0 + col1 AS INTEGER ) FROM tab1
----
-16
-64
9

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8785
SELECT - COUNT( * ) DIV + COUNT( * ) + - ( - 52 ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8785
SELECT - COUNT ( * ) / + COUNT ( * ) + - ( - 52 ) AS col1 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL + SUM( DISTINCT + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + SUM ( DISTINCT + col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT col2 FROM tab0 WHERE 26 * col1 <= col0
----
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + + 82 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE 82 / + col1 BETWEEN NULL AND 93
----

query I rowsort
SELECT + ( - col2 ) + + col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT COUNT( DISTINCT - col0 ) * 19 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8791
SELECT COUNT ( DISTINCT - col0 ) * 19 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL 23 - + COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL 23 - + COUNT ( * ) FROM tab1
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 BETWEEN NULL AND 26 + + col1
----

query I rowsort
SELECT + col2 * ( ( 47 ) * - 48 ) AS col0 FROM tab2
----
-130848
-51888
-90240

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8795
SELECT * FROM tab1 WHERE ( - 40 ) IN ( - CAST( NULL AS SIGNED ) + 25 )
----

skipif mysql # not compatible
query III rowsort label-8795
SELECT * FROM tab1 WHERE ( - 40 ) IN ( - CAST ( NULL AS INTEGER ) + 25 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 84 + 70 * + col2 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + 82 AS col0 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col0 + + col2 * - 4 )
----

query I rowsort
SELECT col2 * 46 AS col0 FROM tab2
----
1058
1840
2668

query I rowsort
SELECT 81 + - col2 * + col2 FROM tab1
----
-3400
-4543
-9135

query I rowsort
SELECT ALL 9 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 26 AS col0 FROM tab1 WHERE ( 67 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < col0 + 5
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT ALL - COUNT( * ) DIV ( - ( COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - COUNT ( * ) / ( - ( COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 88 col0 FROM tab1 cor0
----
-1232
-4136
-440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col0 FROM tab0 AS cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT ALL 56 * + col2 + - 98 FROM tab2 cor0
----
1190
2142
3150

query I rowsort
SELECT DISTINCT - ( 74 ) FROM tab0 cor0 CROSS JOIN tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT COUNT( * ) + - MIN( + col1 ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-8809
SELECT COUNT ( * ) + - MIN ( + col1 ) AS col0 FROM tab2
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col2 col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT MIN( col0 ) + + 1 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-8811
SELECT MIN ( col0 ) + + 1 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT 85 + + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8812
SELECT 85 + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT ALL - 55 DIV + 15 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - 55 / + 15 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 69 + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * - 73 AS col0 FROM tab2 AS cor0
----
3358
4672
5475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col1 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT ( - 77 ) + - col0 FROM tab0
----
-164
-174
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8818
SELECT DISTINCT 48 - - ( 85 ) + + col0 * + col2 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT 48 - - ( 85 ) + + col0 * + col2 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT - COUNT( - col0 ) DIV + 18 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8820
SELECT - COUNT ( - col0 ) / + 18 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 < ( col1 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT - MAX( - col2 ) col1 FROM tab0 WHERE col0 - - 8 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT DISTINCT - MAX ( - col2 ) col1 FROM tab0 WHERE col0 - - 8 > NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT ALL - + 40 DIV - col1 * + ( 22 ) + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - + 40 / - col1 * + ( 22 ) + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL >= + 68 + CAST( ( 72 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL >= + 68 + CAST ( ( 72 ) AS INTEGER )
----

query I rowsort
SELECT - 84 * - - col0 * ( 46 ) AS col0 FROM tab1 AS cor0
----
-197064
-328440
-351624

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 - - col1 * - col2 = ( 0 )
----
97
1
99

query I rowsort
SELECT 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8830
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - ( + CAST( + ( + 15 ) AS SIGNED ) ) + 89 ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8830
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - ( + CAST ( + ( + 15 ) AS INTEGER ) ) + 89 ) IS NULL
----

query I rowsort
SELECT - - 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT - 32 + + 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-25

query I rowsort
SELECT 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + 77 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - + col0 )
----

query I rowsort
SELECT DISTINCT - - col1 * + - ( 35 ) FROM tab2 AS cor0
----
-1785
-2345
-2695

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( 81 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT - - COUNT( * ) AS col2, 9 + + + 98 col1 FROM tab1 AS cor0
----
3
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8837
SELECT - - COUNT ( * ) AS col2, 9 + + + 98 col1 FROM tab1 AS cor0
----
3
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL - + MAX( DISTINCT - - col2 ) col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT ALL - + MAX ( DISTINCT - - col2 ) col0 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + + 16, + col0 FROM tab2 cor0
----
16
46
16
64
16
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL SUM( DISTINCT - col2 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL SUM ( DISTINCT - col2 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT - 1 AS col1, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-8841
SELECT - 1 AS col1, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - - MAX( DISTINCT - 29 ) AS col1 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8842
SELECT - - MAX ( DISTINCT - 29 ) AS col1 FROM tab2 AS cor0
----
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + col1 * col2 ) >= 74
----

query I rowsort
SELECT DISTINCT 54 + ( - - col2 ) AS col0 FROM tab1
----
113
122
150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL 72 + + MIN( - - col2 ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL 72 + + MIN ( - - col2 ) AS col2 FROM tab0
----
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT IN ( - 52 )
----

query I rowsort
SELECT DISTINCT 7 / 20 FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NOT ( NULL ) < col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + col0 - + - 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT - CAST( NULL AS SIGNED ) * - - 40 + - 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT - CAST ( NULL AS INTEGER ) * - - 40 + - 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 43 + + col1 * + col1 FROM tab1 cor0 WHERE NULL <= + 84 / - 3
----

query I rowsort
SELECT - ( + - col1 ) + - + 55 FROM tab1 AS cor0
----
-41
-50
-8

query I rowsort
SELECT AVG ( col0 ) FROM tab1 AS cor0 WHERE NULL < ( - col2 )
----
NULL

query I rowsort
SELECT ALL - + 78 + 96 AS col0 FROM tab1 WHERE + - 65 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * col0 - + col0 col1 FROM tab0 AS cor0
----
10560
75603
931394

query I rowsort
SELECT 52 * + + col1 - + 13 AS col0 FROM tab0 AS cor0
----
1079
39
4199

query I rowsort
SELECT - ( + - col2 ) - + 29 * 16 FROM tab0 AS cor0
----
-365
-417
-454

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 * col0 IN ( + ( - col2 ) ) AND NOT + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 87 * 32 + + - col1 - + col0 - - 86 * + 77 FROM tab0 cor0
----
9298
9308
9310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col0 col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab0 cor0 WHERE NOT ( + + col0 ) < NULL AND ( - + col2 * + 61 + col0 ) < col0
----

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab0 cor0 WHERE NOT ( + + col0 ) < NULL AND ( - + col2 * + 61 + col0 ) < col0
----

query I rowsort
SELECT DISTINCT 36 - ( + ( col2 ) ) FROM tab1 AS cor0
----
-23
-32
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 22 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 28 * - + 47 - col1 + + col1 > ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 * col0 ) BETWEEN ( NULL ) AND - col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL + COUNT( * ) * + - MAX( ALL + CAST( col0 AS SIGNED ) ) AS col0 FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL + COUNT ( * ) * + - MAX ( ALL + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1 cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT 79 * - - COUNT( * ) AS col1 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT 79 * - - COUNT ( * ) AS col1 FROM tab0
----
237

query I rowsort
SELECT DISTINCT 45 * col1 AS col1 FROM tab0
----
3645
45
945

query II rowsort
SELECT col0, + col0 * - col0 FROM tab2
----
46
-2116
64
-4096
75
-5625

query II rowsort
SELECT col1, + 95 FROM tab2
----
51
95
67
95
77
95

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col0 * - 19 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 75 + + col1 NOT BETWEEN NULL AND + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab1 WHERE - 17 + + col2 - + - col2 IS NOT NULL
----
-41
-41
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT CAST( COUNT( 19 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8877
SELECT CAST ( COUNT ( 19 ) AS INTEGER ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0, - col1 + ( + 31 ) - + + col2 )
----

query II rowsort
SELECT - col0 AS col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT + - 47, - 6 * + col1 AS col2 FROM tab0 AS cor0
----
-47
-126
-47
-486
-47
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT DISTINCT - col1 + col2 AS col0 FROM tab1 cor0 WHERE - col2 * 10 > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - col1 + col2 AS col0 FROM tab1 cor0 WHERE - col2 * 10 > ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * col2 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 94 AS col1 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT 3 * - 55 AS col0 FROM tab2 AS cor0
----
-165

query I rowsort
SELECT DISTINCT col2 * - col2 + + col1 FROM tab0
----
-2128
-79
-9800

query I rowsort
SELECT 52 * - col0 FROM tab2
----
-2392
-3328
-3900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab2
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * + 60 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT col1 DIV + 23 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1212
-1827
-97

skipif mysql # not compatible
query I rowsort label-8891
SELECT col1 / + 23 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1212
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL - COUNT( * ) - - - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT 0 * - - 19 + - 95 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL col1 - - col0 FROM tab0 cor0
----
108
96
98

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + - COUNT( + col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8896
SELECT + - COUNT ( + col1 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT + + 57 * + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8897
SELECT + + 57 * + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-171

query I rowsort
SELECT DISTINCT ( + + 83 ) * - - 92 AS col1 FROM tab2 AS cor0
----
7636

query II rowsort
SELECT - col2 * - col1 AS col0, col2 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

query I rowsort
SELECT DISTINCT + 67 FROM tab2 AS cor0 WHERE NOT col1 * + col2 NOT IN ( - + col0, + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT COUNT( * ) * + 33 FROM tab1 WHERE - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT COUNT ( * ) * + 33 FROM tab1 WHERE - col0 < NULL
----
0

query I rowsort
SELECT ALL - 52 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 * + - col2, - col0, - - ( + - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT 77 * + + COUNT( * ) FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-8903
SELECT 77 * + + COUNT ( * ) FROM tab0
----
231

query I rowsort
SELECT ALL - + 97 * - col0 AS col2 FROM tab0 AS cor0
----
1455
8439
9409

query II rowsort
SELECT + 93 AS col0, col0 * - - col1 + - - col2 FROM tab2 AS cor0
----
93
2369
93
4968
93
5083

query I rowsort
SELECT - col2 + + 56 AS col2 FROM tab1 AS cor0
----
-12
-3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT - MIN( DISTINCT + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8907
SELECT - MIN ( DISTINCT + col2 ) AS col0 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col2 + + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8909
SELECT * FROM tab2 AS cor0 WHERE - col2 + - - col0 + col1 * 35 * + CAST( NULL AS SIGNED ) - + col2 = - col2 - + col0
----

skipif mysql # not compatible
query III rowsort label-8909
SELECT * FROM tab2 AS cor0 WHERE - col2 + - - col0 + col1 * 35 * + CAST ( NULL AS INTEGER ) - + col2 = - col2 - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8910
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + col1 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8910
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + col1 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8911
SELECT COUNT( * ) DIV + - CAST( - 61 AS SIGNED ) DIV + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT COUNT ( * ) / + - CAST ( - 61 AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 96 * + + col2 - + 91 AS col0 FROM tab0 AS cor0
----
-1051
-4603
-9595

query I rowsort
SELECT DISTINCT - - col1 * + 35 FROM tab1 AS cor0
----
1645
175
490

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT COUNT( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8914
SELECT COUNT ( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT ALL COUNT( * ) + - COUNT( * ) / - + MIN( - - CAST( NULL AS SIGNED ) ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL COUNT ( * ) + - COUNT ( * ) / - + MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8916
SELECT DISTINCT * FROM tab2 WHERE NOT + 20 * 3 * - - 33 + - 43 * - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8916
SELECT DISTINCT * FROM tab2 WHERE NOT + 20 * 3 * - - 33 + - 43 * - CAST ( NULL AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 1 - 51 IS NULL
----

query I rowsort
SELECT + col1 + + 81 AS col2 FROM tab2
----
132
148
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT SUM( DISTINCT + col1 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT SUM ( DISTINCT + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * + - 60 AS col1 FROM tab1 AS cor0
----
-3060
-5100
-5460

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col0 + - + ( - col0 ) IN ( 7 + - + col1 + + + 2 + col1 * 4 - col1 * col0 * + 92 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8922
SELECT ALL MIN( - col1 ), - COUNT( + + col2 ) AS col1 FROM tab0 AS cor0
----
-81
-3

skipif mysql # not compatible
query II rowsort label-8922
SELECT ALL MIN ( - col1 ), - COUNT ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-81
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8923
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT ALL + CAST( 22 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + CAST ( 22 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT COUNT( + 72 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8925
SELECT COUNT ( + 72 ) col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 23 NOT BETWEEN col0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT COUNT( ALL - - col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8927
SELECT DISTINCT COUNT ( ALL - - col0 ) col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) > - col1
----

query I rowsort
SELECT + col0 * + + 68 * + 20 FROM tab0 AS cor0
----
118320
131920
20400

query I rowsort
SELECT ALL - - 73 AS col2 FROM tab0 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NOT + 87 / + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NOT + 87 / + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 52 NOT IN ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT col2 * + col0 DIV - - col0 col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8934
SELECT col2 * + col0 / - - col0 col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8935
SELECT - col0 DIV - ( + col2 ) col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT - col0 / - ( + col2 ) col0 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8936
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 26 col1 FROM tab2
----
1040
1508
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 * + 86 + - col0 + - 86 * - col2 col2, + col1 AS col2 FROM tab1
----
10229
47
12677
14
9461
5

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 69 AND + - col2 + + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8940
SELECT ALL CAST( + + col2 AS DECIMAL ) * + 77 * - col2 + CAST( NULL AS DECIMAL ), + ( - col2 ) AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-8940
SELECT ALL CAST ( + + col2 AS REAL ) * + 77 * - col2 + CAST ( NULL AS REAL ), + ( - col2 ) AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 + + - 93 FROM tab0 AS cor0
----
-12
-72
-92

query I rowsort
SELECT + - col1 + - - col2 FROM tab1 AS cor0 WHERE + 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - COUNT( * ) + - 6 AS col0 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8944
SELECT - COUNT ( * ) + - 6 AS col0 FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT 58 + col0 FROM tab2
----
104
122
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT + SUM( ALL + 94 ) * COUNT( * ) * ( 47 ) * + 11 + + 89 AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT + SUM ( ALL + 94 ) * COUNT ( * ) * ( 47 ) * + 11 + + 89 AS col0 FROM tab2 WHERE - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8947
SELECT + col2 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8947
SELECT + col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8948
SELECT DISTINCT + MAX( ALL - - col1 ) + - CAST( NULL AS SIGNED ) + + 52 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + MAX ( ALL - - col1 ) + - CAST ( NULL AS INTEGER ) + + 52 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 5 * 81 AS col2 FROM tab0
----
-405
-405
-405

query I rowsort
SELECT DISTINCT col2 - - col1 AS col0 FROM tab0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 / col0 NOT BETWEEN NULL AND + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT MIN( DISTINCT + 51 ) AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8952
SELECT MIN ( DISTINCT + 51 ) AS col1 FROM tab0
----
51

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL IN ( + 96, col0 / col2 * - + col0, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT + - MAX( ALL - + col1 ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8954
SELECT DISTINCT + - MAX ( ALL - + col1 ) col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - + 43 + - 63 + + col1 FROM tab1 AS cor0
----
-101
-59
-92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 + + 90, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + - 24 col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT 27 + - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-8958
SELECT 27 + - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
18

query I rowsort
SELECT DISTINCT + - ( + 18 ) FROM tab2 cor0
----
-18

query I rowsort
SELECT DISTINCT + - 59 AS col2 FROM tab1 cor0
----
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( col0 ) / - 49 - + col1 * + col1, col0 + + - 17, - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8962
SELECT + - CAST( - MIN( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8962
SELECT + - CAST ( - MIN ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 - col1 * - 90 AND - col1 / + col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT DISTINCT - - CAST( 47 AS SIGNED ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT - - CAST ( 47 AS INTEGER ) FROM tab2 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <> - col1
----

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8967
SELECT 70 AS col1, + COUNT( * ) FROM tab0
----
70
3

skipif mysql # not compatible
query II rowsort label-8967
SELECT 70 AS col1, + COUNT ( * ) FROM tab0
----
70
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8968
SELECT ALL * FROM tab0 WHERE NOT - + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8968
SELECT ALL * FROM tab0 WHERE NOT - + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL = + 57
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8970
SELECT DISTINCT - col0 * col2 + CAST( NULL AS DECIMAL ) AS col1, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-8970
SELECT DISTINCT - col0 * col2 + CAST ( NULL AS REAL ) AS col1, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT - + ( - - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT - + ( - - COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT col1 + 6 FROM tab0 WHERE + col1 <> + 19
----
27
7
87

query I rowsort
SELECT DISTINCT - col0 * - 88 * - 19 AS col1 FROM tab1
----
-142120
-152152
-85272

query I rowsort
SELECT DISTINCT col2 + - col1 * + 59 AS col1 FROM tab1
----
-236
-2705
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT - - 37 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT - - 37 / - - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 97 * - col1 + + + col2 FROM tab2 AS cor0
----
4970
6557
7509

query I rowsort
SELECT - col0 * + col1 * + + 0 AS col2 FROM tab1 cor0 WHERE ( 1 - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col1 * + 11 * - 48 BETWEEN + 55 AND - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + 40 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8979
SELECT + 40 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT ALL + - col0 DIV + + 5 FROM tab0 AS cor0
----
-17
-19
-3

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + - col0 / + + 5 FROM tab0 AS cor0
----
-17
-19
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 + - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8982
SELECT CAST( NULL AS DECIMAL ) - + + AVG ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT CAST ( NULL AS REAL ) - + + AVG ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 / col1 FROM tab1 WHERE NOT + - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 52 + 86 + + + col2 + - ( - - col1 ) col0 FROM tab2
----
100
52
61

query I rowsort
SELECT DISTINCT 69 + 58 AS col0 FROM tab0
----
127

query I rowsort
SELECT ALL 69 * col2 * col2 * + 43 - - col2 + + col0 FROM tab1
----
10328271
13719567
27344019

query I rowsort
SELECT ALL col2 + - + 85 FROM tab2
----
-27
-45
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT ALL + + 49 DIV - 53 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + + 49 / - 53 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 * - 0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT ALL + - ( - 35 ) DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + - ( - 35 ) / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * 46 * - + col1 * + 28 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-252448
-2845192
-32200

query I rowsort
SELECT ALL + 84 * + + col0 FROM tab2 AS cor0
----
3864
5376
6300

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT col2 DIV - - col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8993
SELECT col2 / - - col1 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + - MIN( + col1 ) col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8994
SELECT + - MIN ( + col1 ) col0 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 53 AS col1, + col1 col1 FROM tab2 AS cor0
----
-53
51
-53
67
-53
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL + col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query II rowsort
SELECT ALL + col0 AS col2, 11 FROM tab0 AS cor0
----
15
11
87
11
97
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( col0 ) / col1 * 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT + ( - + ( 43 ) ) + 2 - col1 DIV - col1 FROM tab1
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-9000
SELECT + ( - + ( 43 ) ) + 2 - col1 / - col1 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT 5 * - + col2 AS col2 FROM tab2
----
-115
-200
-290

onlyif mysql # DIV for integer division: 
query II rowsort label-9002
SELECT 97 DIV + + 50 AS col1, + 17 AS col0 FROM tab0
----
1
17
1
17
1
17

skipif mysql # not compatible
query II rowsort label-9002
SELECT 97 / + + 50 AS col1, + 17 AS col0 FROM tab0
----
1
17
1
17
1
17

onlyif mysql # DIV for integer division: 
query II rowsort label-9003
SELECT ALL - ( - + col1 ) * ( - 68 ) DIV col2 - - col2 + col1 AS col2, col2 FROM tab0
----
-111
10
100
99
11
47

skipif mysql # not compatible
query II rowsort label-9003
SELECT ALL - ( - + col1 ) * ( - 68 ) / col2 - - col2 + col1 AS col2, col2 FROM tab0
----
-111
10
100
99
11
47

query I rowsort
SELECT ALL ( - ( + col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL - MAX( ALL + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT + COUNT( DISTINCT - col1 ) + - COUNT( * ) + + 60 + 93 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9007
SELECT + COUNT ( DISTINCT - col1 ) + - COUNT ( * ) + + 60 + 93 FROM tab1
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 70 col2 FROM tab0 AS cor0
----
-49
-69
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL MAX( DISTINCT - 93 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL MAX ( DISTINCT - 93 ) FROM tab2 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col0 col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT + ( - + 19 ) FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab1 WHERE 45 * - col0 + + - 81 BETWEEN col1 + + col2 AND - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT DISTINCT 93 * + - MAX( + col2 ) - - + COUNT( * ) AS col2 FROM tab2
----
-5391

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT 93 * + - MAX ( + col2 ) - - + COUNT ( * ) AS col2 FROM tab2
----
-5391

query I rowsort
SELECT col0 - - - 49 FROM tab0
----
-34
38
48

query I rowsort
SELECT DISTINCT 51 * 66 AS col0 FROM tab1
----
3366

query I rowsort
SELECT - + col1 * + + 6 FROM tab0 AS cor0
----
-126
-486
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL + ( COUNT( DISTINCT - - col1 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + ( COUNT ( DISTINCT - - col1 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT + SUM( + 57 ) AS col1, 28 AS col2 FROM tab0 AS cor0
----
171
28

skipif mysql # not compatible
query II rowsort label-9019
SELECT + SUM ( + 57 ) AS col1, 28 AS col2 FROM tab0 AS cor0
----
171
28

query I rowsort
SELECT + col2 * - 69 FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT + col0 * + - col1 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT + MIN( + 66 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + MIN ( + 66 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9025
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab1 AS cor0 WHERE NULL < 1 * - + col0 * col2
----
0
0

skipif mysql # not compatible
query II rowsort label-9025
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < 1 * - + col0 * col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + + COUNT( * ) * + 28 col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9026
SELECT + + COUNT ( * ) * + 28 col0 FROM tab1 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9027
SELECT DISTINCT MAX( - CAST( NULL AS DECIMAL ) ) + 75 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT MAX ( - CAST ( NULL AS REAL ) ) + 75 AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col2, - col2 FROM tab0 cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 31 > - col2 - + - col1 - 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT - SUM( - 46 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-9030
SELECT - SUM ( - 46 ) FROM tab1 AS cor0
----
138

query II rowsort
SELECT col1 AS col1, 0 FROM tab0
----
1
0
21
0
81
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 41 FROM tab0 WHERE NOT - + col0 * + 17 IS NULL
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL ( SUM( - - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL ( SUM ( - - col1 ) ) FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT - COUNT( * ) * - 31 + - MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9036
SELECT - COUNT ( * ) * - 31 + - MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 3 + + + col2 AS col0 FROM tab0 AS cor0
----
44
7
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL - COUNT( * ) AS col0 FROM tab0 cor0 WHERE 46 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE 46 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT + col1 + - + CAST( - 1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-9041
SELECT + col1 + - + CAST ( - 1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT ALL col1 DIV - 83 + - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL col1 / - 83 + - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT col2 + - - col1 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
131
2337
9901

query I rowsort
SELECT ALL - 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT 83 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ( 4 ) * + col2 FROM tab1 AS cor0
----
236
272
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT - - 51 * - - col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT - - 51 * - - col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL - COUNT( ALL col2 ) - + 27 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - COUNT ( ALL col2 ) - + 27 FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT - COUNT( DISTINCT col0 ) DIV + - COUNT( * ) - + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9049
SELECT - COUNT ( DISTINCT col0 ) / + - COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9050
SELECT - 85 + + + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col2 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9050
SELECT - 85 + + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - + col2 NOT IN ( + ( + - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + 10 FROM tab2
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL - MAX( + col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - MAX ( + col2 ) AS col1 FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT + col2 DIV - 57 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9054
SELECT + col2 / - 57 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT MIN( + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT MIN ( + col0 ) AS col1 FROM tab0
----
15

query II rowsort
SELECT - 13, 71 AS col0 FROM tab2
----
-13
71
-13
71
-13
71

query I rowsort
SELECT DISTINCT - 98 * - + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1372
-4606
-490

query I rowsort
SELECT ALL + + 52 * - + col1 AS col0 FROM tab2 AS cor0
----
-2652
-3484
-4004

query I rowsort
SELECT ALL + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL - COUNT( * ) * - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL - COUNT ( * ) * - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT 12 * + MAX( + col1 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
564

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT 12 * + MAX ( + col1 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
564

query I rowsort
SELECT ALL - 25 FROM tab2 AS cor0 WHERE NOT - 35 + - - col0 < col1 + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT - - SUM( + - ( 89 ) ) + - + SUM( col2 ) AS col1 FROM tab1 AS cor0
----
-490

skipif mysql # not compatible
query I rowsort label-9063
SELECT - - SUM ( + - ( 89 ) ) + - + SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT 30 + COUNT( * ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9064
SELECT 30 + COUNT ( * ) FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT COUNT( * ) + + 92 * + - MAX( DISTINCT + 53 ) AS col1 FROM tab1
----
-4873

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( * ) + + 92 * + - MAX ( DISTINCT + 53 ) AS col1 FROM tab1
----
-4873

query I rowsort
SELECT + + 30 FROM tab1 WHERE NULL IS NULL
----
30
30
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9067
SELECT + 19 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT + 19 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 67 * + 40 FROM tab0
----
-2680
-2680
-2680

query I rowsort
SELECT DISTINCT + col2 * - 29 * col0 FROM tab1
----
-141984
-145435
-179452

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <= col1 + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 90 / - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - 6 col2 FROM tab2
----
52
70
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT - CAST( ( + + col2 ) AS SIGNED ) + col1 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-9073
SELECT - CAST ( ( + + col2 ) AS INTEGER ) + col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT COUNT( * ) + + MIN( ALL col0 ) col0 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9074
SELECT COUNT ( * ) + + MIN ( ALL col0 ) col0 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT 81 + - + COUNT( * ) * - - COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-9075
SELECT 81 + - + COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
72

query I rowsort
SELECT - col2 + + + 85 FROM tab0
----
-14
38
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 NOT BETWEEN NULL AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9078
SELECT DISTINCT COUNT( * ) col0, + 33 AS col2 FROM tab0 AS cor0
----
3
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9078
SELECT DISTINCT COUNT ( * ) col0, + 33 AS col2 FROM tab0 AS cor0
----
3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT + 21 + + COUNT( + col2 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT + 21 + + COUNT ( + col2 ) FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL + COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL + COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * col2 - col1 + + 35 * col2 FROM tab2 AS cor0
----
-1401
-277
225

query I rowsort
SELECT - - 40 / + 57 * + - col2 * + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 89 IS NOT NULL
----

query I rowsort
SELECT ALL + 5 * 9 FROM tab1
----
45
45
45

query I rowsort
SELECT col0 * + + col1 * - col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NOT - - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( - 55 ) * col0 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 53 AND NULL
----

query I rowsort
SELECT - col0 - - + col1 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col1 * col2, 40 AS col1 FROM tab0 AS cor0
----
-210
40
-3807
40
-99
40

query I rowsort
SELECT ALL - - col2 * col1 + 68 FROM tab2 AS cor0
----
1241
3148
3954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9093
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL COUNT( * ) col0 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT ALL COUNT ( * ) col0 FROM tab2, tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9095
SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL COUNT( * ) * + + MAX( DISTINCT + col1 ) + + 48 col1 FROM tab0 cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9096
SELECT ALL COUNT ( * ) * + + MAX ( DISTINCT + col1 ) + + 48 col1 FROM tab0 cor0
----
291

query I rowsort
SELECT DISTINCT - 48 * + 37 + + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-1776

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT DISTINCT col1 + - 59 + col2 * - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
5
51
56

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT col1 + - 59 + col2 * - col1 / - col1 AS col2 FROM tab1 AS cor0
----
5
51
56

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL + + 68 * 7 + - COUNT( * ) + - 81 AS col1 FROM tab0 cor0
----
392

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL + + 68 * 7 + - COUNT ( * ) + - 81 AS col1 FROM tab0 cor0
----
392

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 25 AND + col0
----

query I rowsort
SELECT ALL + col1 + col2 - - - col0 AS col0 FROM tab2
----
28
50
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT ALL col2 + - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9103
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - - 89 FROM tab1
----
5251
6052
8544

query I rowsort
SELECT DISTINCT - 44 - + col2 - - 88 AS col2 FROM tab0
----
-3
-55
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 59 * - col1 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 5 col2 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT ALL + col0 DIV col2 + - ( - + col2 ) DIV + - col1 + - col0 + + col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-1230
-1906
-293

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + col0 / col2 + - ( - + col2 ) / + - col1 + - col0 + + col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-1230
-1906
-293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 * + 87 * - col1 col2 FROM tab1 AS cor0
----
17038
192136
2170

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT + - 45 DIV + - 47 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9110
SELECT + - 45 / + - 47 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 94 + + + col0 * + + col2 * + - col2 FROM tab1
----
-295979
-420878
-470110

query III rowsort
SELECT * FROM tab1 WHERE - col0 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 22 AS col0 FROM tab1 WHERE + - 91 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 - - + 81 col2 FROM tab0
----
123
123
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT DISTINCT - COUNT( + + ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - COUNT ( + + ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + - 47 AS col2, + 10 FROM tab0 cor0
----
-47
10
-47
10
-47
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT - + MAX( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT - + MAX ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT + + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9119
SELECT DISTINCT 39 col2, - SUM( ALL + col1 ) FROM tab1
----
39
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9119
SELECT DISTINCT 39 col2, - SUM ( ALL + col1 ) FROM tab1
----
39
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT col2 DIV 57 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9120
SELECT col2 / 57 AS col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT DISTINCT SUM( - + ( col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT SUM ( - + ( col2 ) ) FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT 57 DIV + 44 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9122
SELECT 57 / + 44 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <> 49 * + col1 * - + col0 + + col2 + - col1 * - - col0 * + ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 70 + col2 <= NULL
----

query I rowsort
SELECT - 0 * + col0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 25 col2, + col1 + col0 * - col0 AS col2 FROM tab2
----
25
-2065
25
-4019
25
-5558

query III rowsort
SELECT DISTINCT - col1 AS col1, + col1 AS col0, col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to c253f75c0b7e41f5f5b3768168649010

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL 22 * - - 47 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > - 49
----
1034

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL 22 * - - 47 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > - 49
----
1034

query I rowsort
SELECT 64 + - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-32
-34
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT 9 + COUNT( * ) - + 96 AS col1, - 80 * - ( - SUM( ALL - col1 ) ) AS col0 FROM tab1 AS cor0
----
-84
5280

skipif mysql # not compatible
query II rowsort label-9130
SELECT 9 + COUNT ( * ) - + 96 AS col1, - 80 * - ( - SUM ( ALL - col1 ) ) AS col0 FROM tab1 AS cor0
----
-84
5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 18 AS col1, 27 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 14 + - col2 AS col1 FROM tab2 cor0
----
-26
-44
-9

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE ( - - 55 >= + 63 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9134
SELECT - 24 + - + 49 DIV - - MAX( 4 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9134
SELECT - 24 + - + 49 / - - MAX ( 4 ) FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT + 38 + - COUNT( col0 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT + 38 + - COUNT ( col0 ) FROM tab0
----
35

query II rowsort
SELECT 79 * + col2 * col1 * 32, + col1 FROM tab2
----
2965344
51
7786240
77
9823808
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9137
SELECT ALL - col1 DIV + - CAST( + col0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - col1 / + - CAST ( + col0 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - - col1 * - ( col2 ) FROM tab1
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + - ( col1 ) + 27 AND NOT - 19 NOT BETWEEN 15 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + COUNT( * ) + + SUM( ALL - - col2 ) + + + 31 col0 FROM tab0
----
190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9140
SELECT + COUNT ( * ) + + SUM ( ALL - - col2 ) + + + 31 col0 FROM tab0
----
190

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 4 AND NULL
----

query I rowsort
SELECT ALL - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col0 * + 45 FROM tab1 AS cor0
----
2295
3825
4095

query I rowsort
SELECT ( - col2 ) + - ( + col2 ) + + + 47 * + 28 FROM tab2
----
1200
1236
1270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9145
SELECT * FROM tab1 WHERE - 24 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9145
SELECT * FROM tab1 WHERE - 24 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - ( + 44 ) FROM tab1 AS cor0
----
-44
-44
-44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + 48 IN ( col2 * - col0 * + - col0, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9148
SELECT - 92 * - col1 * + CAST( NULL AS DECIMAL ) / + col1 AS col2, + 60 AS col0 FROM tab2 AS cor0
----
NULL
60
NULL
60
NULL
60

skipif mysql # not compatible
query II rowsort label-9148
SELECT - 92 * - col1 * + CAST ( NULL AS REAL ) / + col1 AS col2, + 60 AS col0 FROM tab2 AS cor0
----
NULL
60
NULL
60
NULL
60

query II rowsort
SELECT DISTINCT + col0 AS col2, + col2 * + col1 AS col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

query I rowsort
SELECT DISTINCT + - 83 + - - col2 FROM tab1 AS cor0
----
-15
-24
13

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE + col2 + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT - + 54, - MIN( - 59 ) AS col2 FROM tab1 AS cor0
----
-54
59

skipif mysql # not compatible
query II rowsort label-9152
SELECT - + 54, - MIN ( - 59 ) AS col2 FROM tab1 AS cor0
----
-54
59

query I rowsort
SELECT col0 - + col2 + col1 FROM tab0 AS cor0
----
-1
49
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT - col2 + + CAST( - 16 AS SIGNED ) FROM tab2
----
-39
-56
-74

skipif mysql # not compatible
query I rowsort label-9155
SELECT - col2 + + CAST ( - 16 AS INTEGER ) FROM tab2
----
-39
-56
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT + col1 * + CAST( NULL AS SIGNED ) / - col0 + - col1 + + 90 + - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT + col1 * + CAST ( NULL AS INTEGER ) / - col0 + - col1 + + 90 + - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 40 + - 53 AS col2 FROM tab0
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 51 * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + SUM( DISTINCT - 88 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9159
SELECT + SUM ( DISTINCT - 88 ) FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9160
SELECT COUNT( * ) DIV - 83 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT COUNT ( * ) / - 83 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT 86 * + MAX( ALL + 18 ) FROM tab2
----
1548

skipif mysql # not compatible
query I rowsort label-9161
SELECT 86 * + MAX ( ALL + 18 ) FROM tab2
----
1548

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT ALL + 38 DIV + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + 38 / + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT CAST( NULL AS SIGNED ) * + 38 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT CAST ( NULL AS INTEGER ) * + 38 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + - MIN( DISTINCT + - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9164
SELECT + - MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT col2 * + col0 + + - col1, + 54 AS col1 FROM tab2 AS cor0
----
1007
54
2483
54
4283
54

query I rowsort
SELECT ALL - col2 * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - col1 * + + col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= col0 + col1 + + col2 + - 9
----

query I rowsort
SELECT + 42 * col2 AS col0 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ALL + col1 * + - 48 AS col0 FROM tab0
----
-1008
-3888
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT + COUNT( * ) DIV + COUNT( - - col2 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9171
SELECT + COUNT ( * ) / + COUNT ( - - col2 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9173
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9173
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT + 26 AS col0 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9175
SELECT DISTINCT ( + MIN( CAST( 35 AS SIGNED ) ) ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT ( + MIN ( CAST ( 35 AS INTEGER ) ) ) FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col2 FROM tab1 cor0
----
-21

query I rowsort
SELECT ALL + - 60 FROM tab1 AS cor0 WHERE NOT + col0 <= - - col1 + + col2
----
-60

query I rowsort
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE col0 - + ( - col2 ) < col1 + - ( 86 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9179
SELECT DISTINCT + - CAST( + SUM( DISTINCT - - col2 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + - CAST ( + SUM ( DISTINCT - - col2 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT - - ( + col1 ) FROM tab0 AS cor0 WHERE NOT - 30 * col2 * + + col1 * - + 11 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + 13 + + col1 FROM tab0 AS cor0
----
14
34
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 76 col2 FROM tab1 cor0
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL - MIN( ALL - col0 ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9183
SELECT ALL - MIN ( ALL - col0 ) col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT COUNT( * ) col1, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9184
SELECT COUNT ( * ) col1, - COUNT ( * ) FROM tab0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT DISTINCT - 34 + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT - 34 + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9187
SELECT - col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-9187
SELECT - col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT ALL col0 * + col0 + 21 AS col0 FROM tab0
----
246
7590
9430

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9189
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) IN ( - + 45 + - - col0 + - col0, col0 )
----

skipif mysql # not compatible
query III rowsort label-9189
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IN ( - + 45 + - - col0 + - col0, col0 )
----

query I rowsort
SELECT 2 - + ( - col1 ) - + 51 AS col1 FROM tab1
----
-2
-35
-44

query II rowsort
SELECT ALL + col2 AS col0, + col0 * - 7 FROM tab2
----
23
-322
40
-448
58
-525

query I rowsort
SELECT - 80 - col2 FROM tab1
----
-139
-148
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT DISTINCT + MAX( ALL + CAST( 17 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + MAX ( ALL + CAST ( 17 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
17

query I rowsort
SELECT ALL + col2 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT + + 53 * - col1 * col2 AS col1 FROM tab1 cor0
----
-15635
-169388
-71232

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT 9 DIV + + col2 * + 31 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT 9 / + + col2 * + 31 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - - 71 AS col0 FROM tab1
----
3621
6035
6461

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - col1 + + ( - - 43 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col1 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - 48 * + - col0 + col2 AS col1 FROM tab2 cor0
----
2231
3112
3658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9202
SELECT ALL 45 * + - 57, CAST( - 19 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2565
-19
-2565
-19
-2565
-19

skipif mysql # not compatible
query II rowsort label-9202
SELECT ALL 45 * + - 57, CAST ( - 19 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2565
-19
-2565
-19
-2565
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT ALL col0 DIV + + 70 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL col0 / + + 70 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT col0 * - + col0 * - + col0 AS col1 FROM tab0
----
3375
658503
912673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT NULL > + 54 * col0 + - ( - CAST( - - 5 AS SIGNED ) ) - + 64 * + + 55
----

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT NULL > + 54 * col0 + - ( - CAST ( - - 5 AS INTEGER ) ) - + 64 * + + 55
----

query I rowsort
SELECT ALL - col2 + + col0 * col0 AS col1 FROM tab2 WHERE NOT NULL = 42
----

query I rowsort
SELECT DISTINCT - 0 * - ( - col2 ) FROM tab1
----
0

query I rowsort
SELECT + + 94 + + + col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
1438
3290
389

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + ( COUNT( ALL - col2 ) ) + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) >= 66
----
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT + ( COUNT ( ALL - col2 ) ) + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) >= 66
----
0

query I rowsort
SELECT + ( - 81 ) FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT ( - COUNT( * ) ) * COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT ( - COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT + 60 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
60
60
60

query III rowsort
SELECT * FROM tab0 WHERE ( - ( + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL SUM( - ( - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL SUM ( - ( - col0 ) ) FROM tab2
----
185

query I rowsort
SELECT 83 + 82 * ( col0 ) AS col0 FROM tab1
----
4265
7053
7545

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT DISTINCT - col0 * 62 - col0 DIV + col0 FROM tab1
----
-3163
-5271
-5643

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT - col0 * 62 - col0 / + col0 FROM tab1
----
-3163
-5271
-5643

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9218
SELECT col0 DIV - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT col0 / - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT + MAX( 18 ) FROM tab0 WHERE ( 74 ) BETWEEN NULL AND 72 * + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + MAX ( 18 ) FROM tab0 WHERE ( 74 ) BETWEEN NULL AND 72 * + 43
----
NULL

query I rowsort
SELECT DISTINCT - 53 * col2 + + 35 * - col0 AS col1 FROM tab0
----
-3016
-3575
-8642

query I rowsort
SELECT DISTINCT + ( 45 ) * - 76 + col1 FROM tab1
----
-3373
-3406
-3415

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT + 43 DIV - 47 + 84 * col2 FROM tab1
----
4956
5712
8064

skipif mysql # not compatible
query I rowsort label-9222
SELECT + 43 / - 47 + 84 * col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT + col1 + + 47 * + col2 AS col2 FROM tab1
----
2778
3243
4526

query I rowsort
SELECT + 71 * - ( 48 ) AS col1 FROM tab1
----
-3408
-3408
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= col2 + - col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT + 89 + col0 * - CAST( - col0 * + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT + 89 + col0 * - CAST ( - col0 * + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 68 * col1 AS col0 FROM tab1
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT - 79 + + ( MIN( col2 ) ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-9229
SELECT - 79 + + ( MIN ( col2 ) ) AS col0 FROM tab2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9230
SELECT ALL * FROM tab1 WHERE NOT ( 57 * CAST( - col0 AS SIGNED ) + - col0 ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-9230
SELECT ALL * FROM tab1 WHERE NOT ( 57 * CAST ( - col0 AS INTEGER ) + - col0 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9231
SELECT * FROM tab0 WHERE NOT + ( - CAST( NULL AS DECIMAL ) ) - + 49 NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-9231
SELECT * FROM tab0 WHERE NOT + ( - CAST ( NULL AS REAL ) ) - + 49 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ( COUNT( * ) ) * - MIN( + col1 * - 3 ) AS col1 FROM tab1 AS cor0
----
423

skipif mysql # not compatible
query I rowsort label-9232
SELECT ( COUNT ( * ) ) * - MIN ( + col1 * - 3 ) AS col1 FROM tab1 AS cor0
----
423

query I rowsort
SELECT 99 FROM tab1 AS cor0 WHERE NOT - 68 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL = ( col2 - + col1 )
----

query I rowsort
SELECT ALL - 71 * col2 AS col2 FROM tab0 cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + 81 * MAX( ALL col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
6561

skipif mysql # not compatible
query I rowsort label-9236
SELECT + 81 * MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
6561

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 = 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT ALL 54 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL 54 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT COUNT( * ) * - 94 AS col1 FROM tab1 WHERE NOT - col0 / col2 IS NULL
----
-282

skipif mysql # not compatible
query I rowsort label-9239
SELECT COUNT ( * ) * - 94 AS col1 FROM tab1 WHERE NOT - col0 / col2 IS NULL
----
-282

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9240
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9240
SELECT + CAST ( NULL AS REAL ) * COUNT ( * ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9241
SELECT CAST( - col1 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9241
SELECT CAST ( - col1 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( ( col0 ) )
----

query I rowsort
SELECT ALL + col1 * + ( + col1 * + col2 ) FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT + 6 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN ( ( - 60 ) ) AND col0
----

skipif mysql # not compatible
query I rowsort label-9244
SELECT + 6 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN ( ( - 60 ) ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 / col0 col0 FROM tab0 cor0 WHERE NULL = col2 + col0
----

query I rowsort
SELECT DISTINCT + + col2 * + 82 FROM tab1 AS cor0
----
4838
5576
7872

query I rowsort
SELECT DISTINCT + 40 * - col1 AS col1 FROM tab0 AS cor0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL - 91 * - COUNT( DISTINCT - col0 * col1 ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL - 91 * - COUNT ( DISTINCT - col0 * col1 ) FROM tab0 AS cor0
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT - 74 DIV COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-9249
SELECT - 74 / COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9250
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 7 * ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + + col2 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 32 + - col2 FROM tab1 cor0
----
-100
-128
-91

query I rowsort
SELECT AVG ( 87 ) FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IN ( 39 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 2 col1 FROM tab0 WHERE NULL BETWEEN + col2 * + col0 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 / + col2 ) <> + 46
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 76 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * 39 FROM tab0
----
3393
3783
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT DISTINCT COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 83 * - col2 FROM tab0
----
3901
8217
830

query I rowsort
SELECT - ( - - col2 ) * col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT COUNT( * ) DIV - + 29 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT COUNT ( * ) / - + 29 FROM tab2
----
0

query I rowsort
SELECT ALL - 39 * + 30 FROM tab1
----
-1170
-1170
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT col2 DIV - + 39 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9267
SELECT col2 / - + 39 AS col0 FROM tab1
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT DISTINCT + 50 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( 37 ) IN ( ( + col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + 50 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( 37 ) IN ( ( + col1 ) )
----
NULL

query I rowsort
SELECT + col0 * + col0 - - col2 FROM tab2 cor0 WHERE 53 IS NOT NULL
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9270
SELECT DISTINCT col1 * + + CAST( + 45 AS SIGNED ) FROM tab1 cor0
----
2115
225
630

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT col1 * + + CAST ( + 45 AS INTEGER ) FROM tab1 cor0
----
2115
225
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ( MAX( col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9271
SELECT ( MAX ( col1 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9272
SELECT + col1 + + col2 + - 16 DIV + col0 AS col2 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-9272
SELECT + col1 + + col2 + - 16 / + col0 AS col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + - col2 * - 60 FROM tab2 AS cor0
----
1380
2400
3480

query I rowsort
SELECT DISTINCT + 78 - - + col2 * + - col1 * + col1 - + 65 FROM tab2 AS cor0
----
-237147
-260349
-59810

query I rowsort
SELECT DISTINCT + ( - 94 ) AS col0 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT ALL - 63 DIV SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - 63 / SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + + col0 + - - col1 AS col1 FROM tab0 cor0
----
129
177
99

query I rowsort
SELECT ALL + 73 + - 87 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + 20 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9279
SELECT + 20 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-60

query II rowsort
SELECT - + col2 AS col1, 6 - - col1 AS col1 FROM tab2 AS cor0
----
-23
57
-40
83
-58
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT - col1 DIV + 24 AS col1 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-9281
SELECT - col1 / + 24 AS col1 FROM tab2
----
-2
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + + 14 col1, col2 AS col2 FROM tab2
----
65
23
81
58
91
40

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NULL ) <> + col1 * col2 / - col1 - 48
----

query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab2 WHERE ( + + 63 ) BETWEEN ( 52 / - 36 ) AND + col0 / 90
----

query I rowsort
SELECT + 33 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND ( - col1 + - col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT MAX( - 89 ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9286
SELECT MAX ( - 89 ) FROM tab0 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 / + col0 + col2 )
----

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 / + col0 + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT + col0 DIV - 31 AS col0 FROM tab2 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-9288
SELECT + col0 / - 31 AS col0 FROM tab2 cor0
----
-1
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT + 72 * col0 DIV + + col0 AS col0 FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-9289
SELECT + 72 * col0 / + + col0 AS col0 FROM tab2
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL + 23 * COUNT( ALL - col1 ) + + - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + 23 * COUNT ( ALL - col1 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT + SUM( DISTINCT + + 17 ) AS col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9292
SELECT + SUM ( DISTINCT + + 17 ) AS col1 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT - - SUM( ALL - col0 ) col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9293
SELECT - - SUM ( ALL - col0 ) col1 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT + + col0 AS col1, 86 FROM tab0 AS cor0
----
15
86
87
86
97
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT + ( ( CAST( + col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9295
SELECT + ( ( CAST ( + col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9296
SELECT ALL + + COUNT( * ) DIV + MAX( col0 ) + - ( - CAST( 5 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9296
SELECT ALL + + COUNT ( * ) / + MAX ( col0 ) + - ( - CAST ( 5 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT + 69 FROM tab1 AS cor0 WHERE ( + 73 ) = + col0
----

query I rowsort
SELECT DISTINCT + 38 + + + col1 FROM tab2
----
105
115
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT MAX( ALL - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT MAX ( ALL - + col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT 25 * - + MAX( ALL + 1 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT 25 * - + MAX ( ALL + 1 ) FROM tab0
----
-25

query I rowsort
SELECT + 74 * - - col0 FROM tab1 WHERE NULL BETWEEN NULL AND + - col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT - CAST( - col1 AS SIGNED ) FROM tab0 WHERE NULL NOT BETWEEN ( - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9303
SELECT - CAST ( - col1 AS INTEGER ) FROM tab0 WHERE NULL NOT BETWEEN ( - col2 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT col1 + - 82 + col1 DIV - col1 FROM tab0
----
-2
-62
-82

skipif mysql # not compatible
query I rowsort label-9304
SELECT col1 + - 82 + col1 / - col1 FROM tab0
----
-2
-62
-82

query II rowsort
SELECT + col1 + 31 AS col1, col0 FROM tab0 AS cor0
----
112
15
32
97
52
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT DISTINCT - ( + ( + + CAST( NULL AS SIGNED ) ) ) * - col1 + + + ( - 25 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT - ( + ( + + CAST ( NULL AS INTEGER ) ) ) * - col1 + + + ( - 25 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 98 - - col1 * 24 * + 20 + + col1 FROM tab0
----
10199
39059
579

query I rowsort
SELECT ALL 86 * col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT + col0 + - col0 + + col0 + + + col1 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT + col0 + - col0 + + col0 + + + col1 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT + - 74 / + CAST( NULL AS SIGNED ) + col0 / - - CAST( NULL AS SIGNED ) + - 65 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + - 74 / + CAST ( NULL AS INTEGER ) + col0 / - - CAST ( NULL AS INTEGER ) + - 65 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 51 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT 37 * + - col2 FROM tab1
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: 
query II rowsort label-9314
SELECT ALL + COUNT( * ), COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0
0

query I rowsort
SELECT DISTINCT 69 FROM tab2 WHERE NULL NOT BETWEEN - 69 AND - - col1 + col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9316
SELECT * FROM tab0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9316
SELECT * FROM tab0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT - COUNT( - - 51 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9317
SELECT - COUNT ( - - 51 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col0 FROM tab0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT ALL - 77 DIV + col0 col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9319
SELECT ALL - 77 / + col0 col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT ALL + - COUNT( * ) AS col1, 90 AS col0 FROM tab2 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-9320
SELECT ALL + - COUNT ( * ) AS col1, 90 AS col0 FROM tab2 AS cor0
----
-3
90

query II rowsort
SELECT DISTINCT col1, + col2 + 39 FROM tab2 cor0 WHERE NULL <> 75
----

query II rowsort
SELECT ALL + - col2 AS col0, ( - col0 ) AS col2 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + + 72 IS NOT NULL
----

query I rowsort
SELECT 49 + - col0 FROM tab1 cor0
----
-2
-36
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT - + COUNT( ALL - 97 ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT - + COUNT ( ALL - 97 ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + - MAX( ALL - 15 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + - MAX ( ALL - 15 ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT + ( + - col0 ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + COUNT( * ) + - + 65 col1 FROM tab0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9328
SELECT + COUNT ( * ) + - + 65 col1 FROM tab0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT DISTINCT col2 + + CAST( - col2 AS SIGNED ) + + 45 * - col0 * - col0 FROM tab0
----
10125
340605
423405

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT col2 + + CAST ( - col2 AS INTEGER ) + + 45 * - col0 * - col0 FROM tab0
----
10125
340605
423405

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL ( - COUNT( * ) ) + + + 6 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL ( - COUNT ( * ) ) + + + 6 AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL MIN( ALL + col2 ) * - - 29 * + - COUNT( * ) FROM tab1
----
-5133

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL MIN ( ALL + col2 ) * - - 29 * + - COUNT ( * ) FROM tab1
----
-5133

query I rowsort
SELECT - 88 * - 72 FROM tab2
----
6336
6336
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * + 45 col2 FROM tab0
----
2430
2430
2430

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT - SUM( DISTINCT col0 ) * - COUNT( * ) * - ( - 60 ) FROM tab2
----
33300

skipif mysql # not compatible
query I rowsort label-9335
SELECT - SUM ( DISTINCT col0 ) * - COUNT ( * ) * - ( - 60 ) FROM tab2
----
33300

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col2 / - - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9338
SELECT - ( + COUNT( * ) ), + ( + - 90 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-90

skipif mysql # not compatible
query II rowsort label-9338
SELECT - ( + COUNT ( * ) ), + ( + - 90 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-90

query I rowsort
SELECT - 94 + 9 FROM tab2
----
-85
-85
-85

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT 39 * - 18 + + col2 AS col2 FROM tab2
----
-644
-662
-679

query I rowsort
SELECT ALL - 7 FROM tab2 cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9343
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( col2 AS DECIMAL ) + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9343
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( col2 AS REAL ) + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 62 AS col2 FROM tab2 AS cor0
----
62
62
62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + - + col2
----

query I rowsort
SELECT - - col2 * - 61 FROM tab0 AS cor0
----
-2867
-6039
-610

query II rowsort
SELECT ALL - 57 AS col2, + 79 * + ( 1 ) FROM tab1 AS cor0
----
-57
79
-57
79
-57
79

query I rowsort
SELECT - + 19 * + 99 FROM tab0 cor0
----
-1881
-1881
-1881

query I rowsort
SELECT DISTINCT - col2 + - ( - col1 ) AS col0 FROM tab0 cor0 WHERE 30 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT DISTINCT CAST( + + col2 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + col0 AS col1, + 15 col0 FROM tab2
----
-1058
15
-2560
15
-4350
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9352
SELECT DISTINCT - MAX( DISTINCT - col1 ) DIV - 97 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - MAX ( DISTINCT - col1 ) / - 97 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT - - AVG ( ALL 90 ) AS col2 FROM tab2 WHERE NOT ( NOT col1 * + col2 + + 67 - CAST( NULL AS SIGNED ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT - - AVG ( ALL 90 ) AS col2 FROM tab2 WHERE NOT ( NOT col1 * + col2 + + 67 - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
NULL

query I rowsort
SELECT - 81 FROM tab1 WHERE NOT ( NOT 90 IN ( col2, + col0, - ( - - col1 ) ) )
----

query I rowsort
SELECT - - 76 FROM tab0 WHERE NOT col0 / - col1 * - col2 IS NULL
----
76
76
76

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT ALL CAST( + AVG ( DISTINCT - + col1 ) AS SIGNED ) FROM tab0 WHERE NOT 0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL CAST ( + AVG ( DISTINCT - + col1 ) AS INTEGER ) FROM tab0 WHERE NOT 0 IS NOT NULL
----
NULL

query II rowsort
SELECT + ( + + 34 ) AS col0, col2 + + 93 FROM tab2
----
34
116
34
133
34
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + + MIN( DISTINCT + col0 ) * - 70 FROM tab2 WHERE NOT - col0 IS NULL
----
-3217

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + MIN ( DISTINCT + col0 ) * - 70 FROM tab2 WHERE NOT - col0 IS NULL
----
-3217

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9360
SELECT ALL - 84 + - COUNT( * ) * - MAX( + - col0 ) * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE NOT + 76 * + - col2 + - + 26 < 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL - 84 + - COUNT ( * ) * - MAX ( + - col0 ) * + - CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE NOT + 76 * + - col2 + - + 26 < 30
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - ( + - 30 ) / + 51 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col0 + col1 + - 48 AS col2 FROM tab1 WHERE - 89 * 0 IS NOT NULL
----
-128
-85
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT ALL - + 26 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - + 26 / col1 AS col2 FROM tab0 AS cor0
----
-1
-26
0

query I rowsort
SELECT col1 + + 91 FROM tab0 AS cor0
----
112
172
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + 91 <= col2 + + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9366
SELECT ALL col2 AS col0, - ( CAST( - col0 AS SIGNED ) ) + 77 AS col2 FROM tab2 AS cor0
----
23
123
40
141
58
152

skipif mysql # not compatible
query II rowsort label-9366
SELECT ALL col2 AS col0, - ( CAST ( - col0 AS INTEGER ) ) + 77 AS col2 FROM tab2 AS cor0
----
23
123
40
141
58
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9367
SELECT + CAST( - + col2 AS SIGNED ) * + col0 AS col0, - ( + col1 ) FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

skipif mysql # not compatible
query II rowsort label-9367
SELECT + CAST ( - + col2 AS INTEGER ) * + col0 AS col0, - ( + col1 ) FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( + col0 ) AND - 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-9369
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 cor0 WHERE + 85 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + - 91 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9371
SELECT + - 91 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - COUNT( * ) + COUNT( DISTINCT - 73 ) AS col0 FROM tab0 cor0 WHERE ( - + 27 ) / col2 / 10 NOT IN ( - col0, 39 )
----
-2

skipif mysql # not compatible
query I rowsort label-9372
SELECT - COUNT ( * ) + COUNT ( DISTINCT - 73 ) AS col0 FROM tab0 cor0 WHERE ( - + 27 ) / col2 / 10 NOT IN ( - col0, 39 )
----
-2

query I rowsort
SELECT 86 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT ALL - 39 + col0 FROM tab0 WHERE + ( + ( CAST( NULL AS SIGNED ) ) ) NOT IN ( - - col1 )
----

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL - 39 + col0 FROM tab0 WHERE + ( + ( CAST ( NULL AS INTEGER ) ) ) NOT IN ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT - COUNT( * ) + - COUNT( * ) AS col2, - 69 FROM tab0 WHERE - col0 * col1 + + - 59 NOT IN ( + col1 + + col1 )
----
-6
-69

skipif mysql # not compatible
query II rowsort label-9375
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2, - 69 FROM tab0 WHERE - col0 * col1 + + - 59 NOT IN ( + col1 + + col1 )
----
-6
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-9376
SELECT - col2 + + 38, col0 DIV + 62 AS col1 FROM tab0
----
-61
1
-9
0
28
1

skipif mysql # not compatible
query II rowsort label-9376
SELECT - col2 + + 38, col0 / + 62 AS col1 FROM tab0
----
-61
1
-9
0
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col1 - + 21 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col1 - + 21 IN ( col0 )
----
0

query I rowsort
SELECT - col1 + + col1 + 86 AS col1 FROM tab0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT MAX( + 1 ) + COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT MAX ( + 1 ) + COUNT ( * ) AS col0 FROM tab1
----
4

query I rowsort
SELECT ALL col2 - + col2 - 86 + + + ( + col1 ) + + ( - 8 ) * - 59 * + + col1 AS col2 FROM tab0
----
38227
387
9847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col1 FROM tab2
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT + - 69 + + + SUM( - 78 ) FROM tab0 AS cor0
----
-303

skipif mysql # not compatible
query I rowsort label-9382
SELECT + - 69 + + + SUM ( - 78 ) FROM tab0 AS cor0
----
-303

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( col0 )
----

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - SUM( - 49 ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-9385
SELECT - SUM ( - 49 ) FROM tab1
----
147

query II rowsort
SELECT + col0, + 83 AS col1 FROM tab1
----
51
83
85
83
91
83

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 12 IS NULL
----

query II rowsort
SELECT ALL col0 AS col0, col2 + + 23 - + + 42 AS col1 FROM tab1
----
51
77
85
40
91
49

query I rowsort
SELECT - - ( + 59 ) AS col0 FROM tab0 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9390
SELECT ALL + - ( ( - - COUNT( * ) ) ), - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9390
SELECT ALL + - ( ( - - COUNT ( * ) ) ), - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - col1
----

query I rowsort
SELECT DISTINCT col1 * + - col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 AS cor0 WHERE - 61 NOT BETWEEN - + col2 AND NULL OR NOT col0 >= col0 * - ( col2 ) + - col0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 * + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT ALL col0 * - 66 + col0 + + col0 + - 32 * - col1 DIV col0 DIV + col0 AS col2 FROM tab2 WHERE NOT + - col2 * - - col0 + + 69 = + col1
----
-2944
-4096
-4800

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL col0 * - 66 + col0 + + col0 + - 32 * - col1 / col0 / + col0 AS col2 FROM tab2 WHERE NOT + - col2 * - - col0 + + 69 = + col1
----
-2944
-4096
-4800

query I rowsort
SELECT ALL + col1 * - - col0 AS col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 13 + - col1 = col0 * - col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - 9 AS col0 FROM tab2
----
-207
-360
-522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 39 col2 FROM tab0
----
-10
-39
-47
-39
-99
-39

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab2 WHERE col2 / + ( + - col1 ) IS NOT NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT + ( - SUM( DISTINCT col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9401
SELECT + ( - SUM ( DISTINCT col2 ) ) FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 * - ( + + 39 ) * ( 13 ) * - - col0 - + - col0 - + - col2 + + col0 * col1 * - + 97 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 * - ( + + 39 ) * ( 13 ) * - - col0 - + - col0 - + - col2 + + col0 * col1 * - + 97 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 * + 99 - + ( - + col0 ) - 86 FROM tab2 cor0
----
-5089
-6644
-7645

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT + MIN( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT + MIN ( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
59

query I rowsort
SELECT DISTINCT + - 55 + + 50 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( col0 ) + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT 80 * + COUNT( * ) * - 12 + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
-2874

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT 80 * + COUNT ( * ) * - 12 + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
-2874

query I rowsort
SELECT ALL - + 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT - col2 + 94 AS col2 FROM tab1
----
-2
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT - COUNT( * ) + + - 43 * - - 56 + - MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-2462

skipif mysql # not compatible
query I rowsort label-9410
SELECT - COUNT ( * ) + + - 43 * - - 56 + - MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-2462

query I rowsort
SELECT DISTINCT + - ( - + col1 ) + + col1 AS col1 FROM tab2 cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9412
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN + col0 * - col0 AND CAST( + col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9412
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN + col0 * - col0 AND CAST ( + col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 / col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - + 34 FROM tab2 AS cor0
----
17
33
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT - 25 DIV col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9415
SELECT - 25 / col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 15 * 49 + + + col0 + col0 * + + col1 FROM tab1
----
-225
30
3633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL CAST( + col1 AS SIGNED ) + col1 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL CAST ( + col1 AS INTEGER ) + col1 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT col2 * - 94 + + 99 FROM tab0
----
-4319
-841
-9207

query II rowsort
SELECT ALL + 99 * - - col1 - 62 AS col2, col1 AS col1 FROM tab2
----
4987
51
6571
67
7561
77

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + 94 AND 62
----

query II rowsort
SELECT ALL - - col2 AS col2, 48 + + 38 + + col1 FROM tab2 AS cor0
----
23
137
40
163
58
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - MAX( + col1 ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9422
SELECT ALL - MAX ( + col1 ) col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT + col2 + - 30 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-9423
SELECT + col2 + - 30 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT + COUNT( * ) AS col0, 21 FROM tab0 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-9424
SELECT + COUNT ( * ) AS col0, 21 FROM tab0 AS cor0
----
3
21

query I rowsort
SELECT ALL - - 66 * col1 / - col0 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9426
SELECT - 15 DIV + 73 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9426
SELECT - 15 / + 73 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT - SUM( DISTINCT 72 ) AS col0 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT - SUM ( DISTINCT 72 ) AS col0 FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE 18 BETWEEN ( NULL ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE 18 BETWEEN ( NULL ) AND col2
----
0

query I rowsort
SELECT + col0 * - 31 FROM tab2
----
-1426
-1984
-2325

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / - col2 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0 AS col1, + ( - - col1 ) FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - 83
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + col0 + - 82 FROM tab2 AS cor0
----
-18
-36
-7

query I rowsort
SELECT ALL + 59 * - 78 AS col1 FROM tab1 AS cor0
----
-4602
-4602
-4602

query I rowsort
SELECT + - col2 + + col1 + - ( col1 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - 90 * - 32 * - - col0 AS col0 FROM tab1 AS cor0
----
146880
244800
262080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + - + col1 col2 FROM tab0 AS cor0
----
-13
-73
7

query III rowsort
SELECT * FROM tab2 WHERE NULL >= col0 / 99
----

query II rowsort
SELECT ALL + - 28, col1 FROM tab0 AS cor0
----
-28
1
-28
21
-28
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT + + COUNT( DISTINCT - 7 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT + + COUNT ( DISTINCT - 7 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT + + 5 - + COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9443
SELECT + + 5 - + COUNT ( * ) FROM tab2 AS cor0
----
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 + - col0 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 82 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9445
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 82 IS NULL
----
0

query I rowsort
SELECT ALL + - 35 * col0 + 21 + - 72 + col1 FROM tab1 AS cor0
----
-1822
-3021
-3189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9447
SELECT - 91 + + - CAST( NULL AS SIGNED ) AS col0, 96 * - col2 FROM tab1
----
NULL
-5664
NULL
-6528
NULL
-9216

skipif mysql # not compatible
query II rowsort label-9447
SELECT - 91 + + - CAST ( NULL AS INTEGER ) AS col0, 96 * - col2 FROM tab1
----
NULL
-5664
NULL
-6528
NULL
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT DISTINCT - CAST( ( 94 ) AS SIGNED ) + col0 AS col0 FROM tab2
----
-19
-30
-48

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - CAST ( ( 94 ) AS INTEGER ) + col0 AS col0 FROM tab2
----
-19
-30
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9449
SELECT ALL * FROM tab1 WHERE col2 * col2 * + 89 IN ( + 95 / + col1, - 45, CAST( NULL AS DECIMAL ) / + - col2 )
----

skipif mysql # not compatible
query III rowsort label-9449
SELECT ALL * FROM tab1 WHERE col2 * col2 * + 89 IN ( + 95 / + col1, - 45, CAST ( NULL AS REAL ) / + - col2 )
----

query II rowsort
SELECT - + col1, col0 FROM tab2 WHERE ( - 82 ) < col0 + - col1 + + + 9
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL MIN( DISTINCT - + col0 ) + - 76 AS col2 FROM tab1
----
-167

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL MIN ( DISTINCT - + col0 ) + - 76 AS col2 FROM tab1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT MIN( ALL 49 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT MIN ( ALL 49 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 * + col0 - col2 - 18 FROM tab2
----
1017
2502
4274

query I rowsort
SELECT ALL + 15 - - col1 FROM tab0 AS cor0
----
16
36
96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT ( NOT col1 IS NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 74 * col0 <= - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT MIN( DISTINCT - - ( - ( - col0 ) ) ) * - 84 * + - ( + - 26 ) + - - 67 col1 FROM tab1
----
-111317

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9458
SELECT DISTINCT MIN ( DISTINCT - - ( - ( - col0 ) ) ) * - 84 * + - ( + - 26 ) + - - 67 col1 FROM tab1
----
-111317

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + COUNT( - 89 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9459
SELECT + COUNT ( - 89 ) FROM tab0
----
3

query II rowsort
SELECT ALL + 86 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
86
23
86
40
86
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE - col1 / + + 61 * col0 * - col1 / + 4 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE - col1 / + + 61 * col0 * - col1 / + 4 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 76 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 76 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col0 + - 1 FROM tab2
----
45
63
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col0 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 14 ) AS col0 FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL + COUNT( * ) + - 90 AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + COUNT ( * ) + - 90 AS col0 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT 16 + 0 * + COUNT( * ) * ( + - COUNT( * ) ) * + 6 * + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT 16 + 0 * + COUNT ( * ) * ( + - COUNT ( * ) ) * + 6 * + COUNT ( * ) FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - SUM( DISTINCT + + 39 ) + + 93 AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-9469
SELECT - SUM ( DISTINCT + + 39 ) + + 93 AS col2 FROM tab1
----
54

query I rowsort
SELECT col0 + - + 86 AS col1 FROM tab2
----
-11
-22
-40

query I rowsort
SELECT DISTINCT col2 * - + 49 AS col1 FROM tab0
----
-2303
-4851
-490

query I rowsort
SELECT 90 + - col1 FROM tab0
----
69
89
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT ALL + col0 DIV - + 92 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + col0 / - + 92 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT - col0 * - col1 + - + 59 DIV col1 col1 FROM tab2
----
2345
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9474
SELECT - col0 * - col1 + - + 59 / col1 col1 FROM tab2
----
2345
4928
5025

query II rowsort
SELECT DISTINCT - 79 AS col2, col0 + + - col2 + + col1 * 77 + - 64 FROM tab2 cor0
----
-79
3886
-79
5112
-79
5889

query I rowsort
SELECT 36 + - col0 AS col1 FROM tab1 AS cor0
----
-15
-49
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL + 77 * + COUNT( * ) * + COUNT( * ) - + 21 FROM tab2 cor0
----
672

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + 77 * + COUNT ( * ) * + COUNT ( * ) - + 21 FROM tab2 cor0
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9478
SELECT ALL - col0 AS col1, 9 * - CAST( NULL AS SIGNED ) * + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-9478
SELECT ALL - col0 AS col1, 9 * - CAST ( NULL AS INTEGER ) * + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 87 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + + col0 / - - col1 + col0 + - - col2 NOT BETWEEN - 92 AND - 93 * 51
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT MAX( DISTINCT 9 ) DIV 65 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9481
SELECT MAX ( DISTINCT 9 ) / 65 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 9 * + col2 * 67 + 2 FROM tab1
----
35579
41006
57890

query I rowsort
SELECT - ( - col0 ) - col2 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL + col0 + ( + 54 ) FROM tab0
----
141
151
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT COUNT( * ) - + 76 AS col0 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-9485
SELECT COUNT ( * ) - + 76 AS col0 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT 12 * + 99 - + - 72 FROM tab1
----
1260

query II rowsort
SELECT 53, ( + + 75 ) AS col1 FROM tab0
----
53
75
53
75
53
75

query I rowsort
SELECT DISTINCT - col0 * + + 69 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9489
SELECT ALL + COUNT( * ) DIV - + 45 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + COUNT ( * ) / - + 45 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 70 >= NULL
----

query II rowsort
SELECT DISTINCT + 52, + 14 AS col0 FROM tab1 AS cor0
----
52
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL - 15 * COUNT( * ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - 15 * COUNT ( * ) FROM tab2 AS cor0
----
-45

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 50 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT col2 DIV - 78 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT col2 / - 78 FROM tab0
----
-1
0
0

query I rowsort
SELECT + 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # DIV for integer division: 
query II rowsort label-9496
SELECT + ( - - col2 ), + col1 DIV - col1 AS col2 FROM tab1 cor0
----
59
-1
68
-1
96
-1

skipif mysql # not compatible
query II rowsort label-9496
SELECT + ( - - col2 ), + col1 / - col1 AS col2 FROM tab1 cor0
----
59
-1
68
-1
96
-1

query I rowsort
SELECT ALL col0 * col2 + - 31 AS col0 FROM tab2 AS cor0
----
1027
2529
4319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - 8 * - - 35 + - col2 - - + col1 * - + 20 - + + col1 + + 37 col2 FROM tab1 AS cor0
----
13927
23673
24462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL col1 * ( - col1 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL col1 * ( - col1 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 20 AS col0, col1 FROM tab2
----
20
51
20
67
20
77

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT - + 50 NOT BETWEEN ( + 45 ) * ( col1 ) AND + ( - ( + - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT MAX( - 47 ) AS col2 FROM tab1 WHERE NOT - - col1 / + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT MAX ( - 47 ) AS col2 FROM tab1 WHERE NOT - - col1 / + col2 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL 61, col1 AS col2 FROM tab2
----
61
51
61
67
61
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - ( COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9504
SELECT - ( COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab1
----
-6

query I rowsort
SELECT col2 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
110
2256
9900

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL + - COUNT( - 10 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + - COUNT ( - 10 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 + + ( - CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 + + ( - CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + 75 FROM tab1 AS cor0
----
-10
-16
24

query I rowsort
SELECT ALL + col0 + + - col2 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT col2 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-9511
SELECT col2 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
2

query I rowsort
SELECT - 87 - - 76 FROM tab2 cor0
----
-11
-11
-11

query I rowsort
SELECT col2 * + - 93 - + col0 AS col0 FROM tab0 AS cor0
----
-1017
-4386
-9304

query I rowsort
SELECT 34 - - + col2 AS col1 FROM tab1 AS cor0
----
102
130
93

query I rowsort
SELECT DISTINCT + 1 + + - col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT DISTINCT - 93 + + col2 FROM tab2 AS cor0
----
-35
-53
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT - col1 DIV 79 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT - col1 / 79 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) < + + col2 )
----

query I rowsort
SELECT DISTINCT - 31 * - 34 AS col0 FROM tab2 WHERE NULL IS NULL
----
1054

onlyif mysql # aggregate syntax: 
query II rowsort label-9521
SELECT DISTINCT + COUNT( * ) AS col1, + 18 FROM tab2
----
3
18

skipif mysql # not compatible
query II rowsort label-9521
SELECT DISTINCT + COUNT ( * ) AS col1, + 18 FROM tab2
----
3
18

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 BETWEEN + - 44 AND + + 23 + - + ( - 57 ) / + 51 + + col1 + + + 0 + - col0 * + + col1
----

query I rowsort
SELECT DISTINCT ( 34 ) AS col1 FROM tab2
----
34

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col1 FROM tab1
----
25

query I rowsort
SELECT DISTINCT ( - - ( + - col0 ) ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - col0 / + + 42 FROM tab0 WHERE NOT + ( + - col1 ) * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT MAX( DISTINCT + 31 ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9528
SELECT MAX ( DISTINCT + 31 ) AS col2 FROM tab2 AS cor0
----
31

query I rowsort
SELECT DISTINCT + + 60 AS col2 FROM tab2 cor0
----
60

query I rowsort
SELECT ( col2 ) + - - col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT - COUNT( * ) * - 87 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - COUNT ( * ) * - 87 FROM tab1 AS cor0
----
261

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9534
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col1, + ( 76 ) FROM tab0 AS cor0
----
-3
76

skipif mysql # not compatible
query II rowsort label-9534
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + ( 76 ) FROM tab0 AS cor0
----
-3
76

query I rowsort
SELECT col2 + + 77 + + ( + - col1 ) FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL - CAST( + col2 AS SIGNED ) * 20 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - CAST ( + col2 AS INTEGER ) * 20 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE 9 * + 80 = + 99
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9538
SELECT + ( - + 84 ) * + 60 col2, COUNT( * ) AS col1 FROM tab0
----
-5040
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9538
SELECT + ( - + 84 ) * + 60 col2, COUNT ( * ) AS col1 FROM tab0
----
-5040
3

query II rowsort
SELECT - ( + col2 ) * + - 91 AS col0, col2 AS col0 FROM tab1
----
5369
59
6188
68
8736
96

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL IS NOT NULL OR ( - + 42 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT col0 * + + col1 * + 99 - - col2 + - 4 FROM tab2 WHERE + col0 < 90
----
232273
487908
497529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL + CAST( NULL AS SIGNED ) * - 99 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL + CAST ( NULL AS INTEGER ) * - 99 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT col0 + - col2 DIV + + 82 - - col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-9543
SELECT col0 + - col2 / + + 82 - - col2 FROM tab2
----
104
133
69

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE ( NULL ) <= col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9545
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - + 40 AS SIGNED ) BETWEEN NULL AND - col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-9545
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - + 40 AS INTEGER ) BETWEEN NULL AND - col0
----
87
21
10
97
1
99

query II rowsort
SELECT - col1 AS col1, + col2 + - 44 * col2 AS col1 FROM tab0 AS cor0
----
-1
-4257
-21
-430
-81
-2021

query I rowsort
SELECT + col0 * + 94 * - col2 FROM tab0
----
-66270
-81780
-902682

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + - MAX( + ( + col1 ) ) FROM tab1 WHERE col1 = - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + - MAX ( + ( + col1 ) ) FROM tab1 WHERE col1 = - + 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9549
SELECT ALL - col1 / + 5 + + - col1 / col1 + + col2 + - col0 + - - col1 col0 FROM tab0 WHERE NULL >= - - CAST( + CAST( + col2 AS SIGNED ) AS DECIMAL ) - + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9549
SELECT ALL - col1 / + 5 + + - col1 / col1 + + col2 + - col0 + - - col1 col0 FROM tab0 WHERE NULL >= - - CAST ( + CAST ( + col2 AS INTEGER ) AS REAL ) - + col2
----

query I rowsort
SELECT DISTINCT 10 * + col2 * + col0 FROM tab0
----
7050
8700
96030

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - + col0 <= - 65
----
10
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9552
SELECT * FROM tab2 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9552
SELECT * FROM tab2 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 65 * ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-3835
-4420
-6240

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 88
----

query I rowsort
SELECT DISTINCT - col1 + 19 * + - ( - - ( - - col1 ) ) FROM tab0 cor0 WHERE ( NULL ) >= - + 27 * - col2 + - + 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT - - COUNT( * ), ( - - 58 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9
58

skipif mysql # not compatible
query II rowsort label-9557
SELECT - - COUNT ( * ), ( - - 58 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND + - col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT - 57 DIV - + col1 FROM tab0 AS cor0
----
0
2
57

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 57 / - + col1 FROM tab0 AS cor0
----
0
2
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + CAST( NULL AS SIGNED ) / MIN( + col1 ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + CAST ( NULL AS INTEGER ) / MIN ( + col1 ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT + col1 DIV + + ( + col2 ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9562
SELECT + col1 / + + ( + col2 ) FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT ALL - 71 DIV + + col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL - 71 / + + col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL - - col1 + - ( - + col2 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL - - col1 + - ( - + col2 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL + 16 + MIN( + - 21 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + 16 + MIN ( + - 21 ) FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT DISTINCT - col1 + - - col1 AS col1 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - col1 + - - col1 AS col1 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL COUNT( + col2 ) + + - 94 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL COUNT ( + col2 ) + + - 94 FROM tab0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT - - 53 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL - 29 + - + COUNT( * ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - 29 + - + COUNT ( * ) AS col0 FROM tab2
----
-32

query I rowsort
SELECT + col2 * - - col2 + 52 * + col1 AS col1 FROM tab1
----
3741
7068
9944

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL COUNT( DISTINCT 89 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL COUNT ( DISTINCT 89 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col1 + - 48 * + col1 AS col1 FROM tab1
----
-2303
-245
-686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT 91 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-8
44
81

skipif mysql # not compatible
query I rowsort label-9574
SELECT 91 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-8
44
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + col0 + + col1 NOT BETWEEN - 37 AND + 11
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT + + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT + + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

query II rowsort
SELECT ALL col0 + + col1 AS col2, col2 FROM tab1 AS cor0 WHERE ( NOT - col0 IN ( col0 * + ( + - 13 ), + 55 ) )
----
138
68
65
96
90
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9578
SELECT - CAST( NULL AS DECIMAL ) / + + 91 - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - CAST ( NULL AS REAL ) / + + 91 - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 48 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9580
SELECT * FROM tab0 WHERE NOT - col2 > + 82 / + - col1 / - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9580
SELECT * FROM tab0 WHERE NOT - col2 > + 82 / + - col1 / - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + 61, col2 AS col2 FROM tab0
----
61
10
61
47
61
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9582
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col0 * - - ( 54 ) + + - 78 + 31 * 48 FROM tab0 AS cor0
----
-3288
-3828
600

query II rowsort
SELECT 83, col2 FROM tab1 AS cor0
----
83
59
83
68
83
96

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN + 9 AND col0
----

query I rowsort
SELECT + 20 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 57 + - 71 IS NOT NULL
----

query I rowsort
SELECT ALL + 90 * - + col2 FROM tab2
----
-2070
-3600
-5220

query II rowsort
SELECT + col0 + - 30 - - 69 * + + col1 AS col2, - 40 FROM tab2
----
3535
-40
4668
-40
5347
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT ALL - COUNT( * ) DIV + 11 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - COUNT ( * ) / + 11 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + ( - col2 ) FROM tab1 AS cor0 WHERE col2 IN ( - + col2, col1 * + col2 )
----

query I rowsort
SELECT ALL - 49 + - col2 FROM tab2 AS cor0
----
-107
-72
-89

query I rowsort
SELECT DISTINCT + + 36 + + 66 FROM tab1 AS cor0
----
102

query I rowsort
SELECT - ( + 63 ) AS col1 FROM tab1 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + 40 + col2 FROM tab1 AS cor0
----
108
136
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT MIN( ALL - 42 ) - - ( - 18 ) AS col0 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT MIN ( ALL - 42 ) - - ( - 18 ) AS col0 FROM tab2
----
-60

query II rowsort
SELECT 45, 23 AS col0 FROM tab0
----
45
23
45
23
45
23

query III rowsort
SELECT * FROM tab1 WHERE + - 94 BETWEEN - 54 AND col1
----

query I rowsort
SELECT DISTINCT - 11 * - - 99 AS col1 FROM tab0
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT 84 - - + COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT 84 - - + COUNT ( * ) FROM tab1
----
87

query I rowsort
SELECT + col0 * - col2 * + col1 + + 52 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * - + 1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT DISTINCT 33 AS col2, col1 FROM tab2 AS cor0
----
33
51
33
67
33
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 76 > 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT - COUNT( * ), 91 AS col2 FROM tab2 cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-9605
SELECT - COUNT ( * ), 91 AS col2 FROM tab2 cor0
----
-3
91

query I rowsort
SELECT 77 * + col1 FROM tab0
----
1617
6237
77

query I rowsort
SELECT ( col1 ) * - 22 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT ALL - col2 * - 83 FROM tab2
----
1909
3320
4814

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT ( col1 IS NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL - COUNT( ALL + ( + - col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL - COUNT ( ALL + ( + - col2 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE ( NULL ) <= - col2 * col0
----

query I rowsort
SELECT - + col0 + - 81 + - 76 FROM tab1 AS cor0
----
-208
-242
-248

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9613
SELECT DISTINCT col0 + - + CAST( NULL AS DECIMAL ) + + 41 / 97 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT col0 + - + CAST ( NULL AS REAL ) + + 41 / 97 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT - - 34 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT - - 34 + - col2 IS NOT NULL
----
0

query I rowsort
SELECT - 36 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT col2 * + - col0 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 * + 14 - - ( - 58 ) col2 FROM tab0 AS cor0
----
-982
-982
-982

query II rowsort
SELECT - col0, ( col0 ) FROM tab1 cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9619
SELECT ALL 46 AS col1, + COUNT( * ) + - 71 FROM tab1 AS cor0
----
46
-68

skipif mysql # not compatible
query II rowsort label-9619
SELECT ALL 46 AS col1, + COUNT ( * ) + - 71 FROM tab1 AS cor0
----
46
-68

query II rowsort
SELECT col1 - - + col2 - col2 AS col1, + 64 * - 49 + + 10 * + 32 FROM tab1 cor0
----
14
-2816
47
-2816
5
-2816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9621
SELECT ALL - SUM( + col2 ) + - MIN( + col1 ) DIV - 35 AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - SUM ( + col2 ) + - MIN ( + col1 ) / - 35 AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + 14 * + - col2 + 68 + - 45 + col1 + - + 94 FROM tab0 AS cor0
----
-1456
-190
-648

query I rowsort
SELECT + col0 + - 45 * - + 92 AS col1 FROM tab0 AS cor0
----
4155
4227
4237

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE - col0 = NULL
----

query II rowsort
SELECT DISTINCT - col1 + - 68, col0 * - - col1 * - col2 AS col0 FROM tab1
----
-115
-290836
-73
-25075
-82
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 + - + 81 col2 FROM tab0
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9627
SELECT COUNT( * ) + 32 AS col2, CAST( NULL AS SIGNED ) * + 26 AS col1 FROM tab1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9627
SELECT COUNT ( * ) + 32 AS col2, CAST ( NULL AS INTEGER ) * + 26 AS col1 FROM tab1
----
35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT + MIN( ALL col1 ) * + 51 + + COUNT( * ), + COUNT( * ) col0 FROM tab0
----
54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9628
SELECT + MIN ( ALL col1 ) * + 51 + + COUNT ( * ), + COUNT ( * ) col0 FROM tab0
----
54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT - SUM( - ( - col2 ) ) - + - 58 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - SUM ( - ( - col2 ) ) - + - 58 FROM tab1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT + 47 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9630
SELECT + 47 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + col2 * - - col1 * col1 + - - col1 * - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-142296
-59823
-76313

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT - - MAX( - 10 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9632
SELECT - - MAX ( - 10 ) FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT - MIN( CAST( NULL AS SIGNED ) ) + + + AVG ( DISTINCT - 25 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + + + AVG ( DISTINCT - 25 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL + 28 * - + COUNT( * ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + 28 * - + COUNT ( * ) AS col2 FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - SUM( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9635
SELECT - SUM ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT + - COUNT( * ) AS col1, 61 AS col0 FROM tab1 cor0
----
-3
61

skipif mysql # not compatible
query II rowsort label-9636
SELECT + - COUNT ( * ) AS col1, 61 AS col0 FROM tab1 cor0
----
-3
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, - col2 + - - col1 col1 FROM tab2 AS cor0
----
-23
28
-40
37
-58
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 <> col1 * + - ( + col0 )
----

query I rowsort
SELECT 46 * 16 AS col2 FROM tab0
----
736
736
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT COUNT( * ) / + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT COUNT ( * ) / + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 * + col2 * + col2 * 2 FROM tab1
----
591770
841568
940032

query I rowsort
SELECT + 32 * 27 FROM tab2
----
864
864
864

query I rowsort
SELECT 94 * - + col0 * - 91 FROM tab1
----
436254
727090
778414

query I rowsort
SELECT - col2 * - + col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT + col0 AS col0, col1 + + 26 FROM tab1
----
51
40
85
31
91
73

query II rowsort
SELECT - 52, col1 FROM tab0
----
-52
1
-52
21
-52
81

query I rowsort
SELECT + 21 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT DISTINCT - + SUM( + col0 ) AS col0, 93 AS col2 FROM tab2 AS cor0
----
-185
93

skipif mysql # not compatible
query II rowsort label-9648
SELECT DISTINCT - + SUM ( + col0 ) AS col0, 93 AS col2 FROM tab2 AS cor0
----
-185
93

query I rowsort
SELECT ALL - + col2 + + col2 + - - col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT DISTINCT + col2 + + col2, - col0 * + col2 AS col2 FROM tab1
----
118
-5015
136
-6188
192
-4896

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * 31 BETWEEN - col0 * 34 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 46 + - col1 + + 45 * col2 > NULL
----

query I rowsort
SELECT DISTINCT col1 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
28
37
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 + col1
----

query I rowsort
SELECT DISTINCT + 86 + + - ( col1 ) AS col0 FROM tab2 AS cor0
----
19
35
9

query I rowsort
SELECT 70 * ( col0 ) AS col2 FROM tab2
----
3220
4480
5250

query I rowsort
SELECT ALL 4 + - col1 + - - ( + 15 ) AS col2 FROM tab2
----
-32
-48
-58

query I rowsort
SELECT col1 - - col0 + col0 AS col2 FROM tab2
----
143
205
217

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9659
SELECT ALL ( - + ( - + 46 ) ) * + - MAX( - - col0 ) + - 5 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL ( - + ( - + 46 ) ) * + - MAX ( - - col0 ) + - 5 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 4 - - col0 * + 92 col0, + 45 FROM tab2 AS cor0
----
4228
45
5884
45
6896
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT + - COUNT( DISTINCT + 73 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT + - COUNT ( DISTINCT + 73 ) AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 * - col0 * - + ( + - col1 ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT + COUNT( * ) * + - 45 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
405

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + COUNT ( * ) * + - 45 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
405

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + ( - col0 ) * - col0 + + col0 <= ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - 59 * - COUNT( * ) FROM tab2 WHERE + col1 + - col0 >= ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT - 59 * - COUNT ( * ) FROM tab2 WHERE + col1 + - col0 >= ( col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT - col1 DIV - 64 + + 47 AS col2 FROM tab0
----
47
47
48

skipif mysql # not compatible
query I rowsort label-9666
SELECT - col1 / - 64 + + 47 AS col2 FROM tab0
----
47
47
48

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) BETWEEN + col2 - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col1 - + 44 FROM tab1
----
-30
-39
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL + col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col1 * col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL + col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col1 * col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT 76 + COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-9670
SELECT 76 + COUNT ( * ) FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL BETWEEN NULL AND - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT COUNT( * ) + + 93 AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-9672
SELECT COUNT ( * ) + + 93 AS col0 FROM tab2
----
96

query I rowsort
SELECT + ( - 88 ) + - 72 FROM tab0
----
-160
-160
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT col2 DIV col0 + 96 * - ( col0 * col2 ) FROM tab0
----
-67677
-83520
-921887

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT col2 / col0 + 96 * - ( col0 * col2 ) FROM tab0
----
-67677
-83520
-921887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE + CAST( 39 AS SIGNED ) BETWEEN + 36 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9675
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + CAST ( 39 AS INTEGER ) BETWEEN + 36 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT COUNT( * ) + + 11 AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9676
SELECT COUNT ( * ) + + 11 AS col1 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + COUNT( ALL + col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9677
SELECT + COUNT ( ALL + col0 ) col0 FROM tab1
----
3

query I rowsort
SELECT 80 + col1 AS col1 FROM tab2
----
131
147
157

query I rowsort
SELECT DISTINCT ( + 11 ) * - 49 FROM tab2
----
-539

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - ( - 30 )
----

query I rowsort
SELECT DISTINCT - col1 * 68 AS col1 FROM tab1
----
-3196
-340
-952

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 43 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * col2 NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT ALL - 82 AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) <= + ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL - 82 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) <= + ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9685
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9685
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9686
SELECT DISTINCT MAX( col1 ) FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT MAX ( col1 ) FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----
NULL

query I rowsort
SELECT - col1 + 80 AS col0 FROM tab0
----
-1
59
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT + col1 * - col2 + ( col2 ) DIV col1 FROM tab0
----
-210
-3807
0

skipif mysql # not compatible
query I rowsort label-9688
SELECT + col1 * - col2 + ( col2 ) / col1 FROM tab0
----
-210
-3807
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE + 85 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT + 77 AS col1 FROM tab2 AS cor0 WHERE col1 > col2
----
77
77
77

query I rowsort
SELECT ALL + 56 * col1 FROM tab0 AS cor0
----
1176
4536
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT + SUM( + 3 ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT + SUM ( + 3 ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) <> ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - ( - 71 ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 + + col1 * - 42 FROM tab0 AS cor0
----
-3355
-872
57

query I rowsort
SELECT - col1 + + 6 FROM tab1 AS cor0
----
-41
-8
1

query I rowsort
SELECT ALL + 29 + + col2 FROM tab1 AS cor0
----
125
88
97

query I rowsort
SELECT DISTINCT col2 + col2 * col2 FROM tab2
----
1640
3422
552

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT DISTINCT 68 + + 7 DIV - col1 AS col1 FROM tab1
----
67
68

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT 68 + + 7 / - col1 AS col1 FROM tab1
----
67
68

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + 53 - col0 * - col1 AS col1 FROM tab2 AS cor0
----
2399
4981
5078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL - + CAST( NULL AS SIGNED ) / - AVG ( ALL ( 40 ) ) - ( + AVG ( CAST( 32 AS SIGNED ) ) ) / - 78 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - + CAST ( NULL AS INTEGER ) / - AVG ( ALL ( 40 ) ) - ( + AVG ( CAST ( 32 AS INTEGER ) ) ) / - 78 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( - col0 / - col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 97 - - col1 FROM tab2 AS cor0
----
148
164
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT - COUNT( * ) - - COUNT( * ) * - 13 AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9705
SELECT - COUNT ( * ) - - COUNT ( * ) * - 13 AS col1 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ( + ( + col1 ) ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ( + ( + col1 ) ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 89 + - col0 AS col0 FROM tab2 AS cor0
----
14
25
43

query I rowsort
SELECT + + col0 + 59 AS col1 FROM tab2 cor0
----
105
123
134

query I rowsort
SELECT col1 + - 54 AS col2 FROM tab0 AS cor0
----
-33
-53
27

query I rowsort
SELECT + - col1 + - col1 * col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL + + ( COUNT( * ) ) + MAX( - col1 ) * 14 FROM tab2 AS cor0
----
-711

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL + + ( COUNT ( * ) ) + MAX ( - col1 ) * 14 FROM tab2 AS cor0
----
-711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9712
SELECT DISTINCT + ( + 80 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col1 + CAST( NULL AS SIGNED ) * - 5 BETWEEN NULL AND ( 78 )
----
0

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT + ( + 80 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col1 + CAST ( NULL AS INTEGER ) * - 5 BETWEEN NULL AND ( 78 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL - MAX( col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + 46 + + col1 - - col2 * + 38 FROM tab2
----
1643
2317
971

query I rowsort
SELECT ALL - 57 + + - 33 * 2 FROM tab0
----
-123
-123
-123

query I rowsort
SELECT ALL 1 + + ( 46 ) AS col1 FROM tab0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT DISTINCT col2 - - CAST( NULL AS SIGNED ) / 41 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT col2 - - CAST ( NULL AS INTEGER ) / 41 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + COUNT( ALL + 23 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9719
SELECT + COUNT ( ALL + 23 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * + ( 48 ) col1 FROM tab2
----
1008
1008
1008

query I rowsort
SELECT 23 * - col2 * - col0 FROM tab1
----
112608
115345
142324

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * + 3 + + 14 ) >= 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT - - MAX( ALL - - col0 ) * - 94 AS col0 FROM tab0 AS cor0
----
-9118

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - - MAX ( ALL - - col0 ) * - 94 AS col0 FROM tab0 AS cor0
----
-9118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT col0 * col2 FROM tab1 AS cor0 WHERE NOT col1 <> ( CAST( col2 AS SIGNED ) + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT col0 * col2 FROM tab1 AS cor0 WHERE NOT col1 <> ( CAST ( col2 AS INTEGER ) + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 89 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - 0 AND NULL
----

query I rowsort
SELECT + 19 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 69 )
----

query I rowsort
SELECT 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col2 * + 69 + - 33 AS col0 FROM tab2 AS cor0
----
1554
2727
3969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT ALL CAST( col1 AS SIGNED ) * + col1 + + col0 AS col2 FROM tab0
----
528
6576
98

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL CAST ( col1 AS INTEGER ) * + col1 + + col0 AS col2 FROM tab0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL + MIN( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL + MIN ( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 + - 11 col1 FROM tab2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9732
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9732
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - - ( + col2 ) col2 FROM tab1
----
590
680
960

query I rowsort
SELECT - col0 * + + 99 AS col1 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - COUNT( DISTINCT col1 ) * 18 + + - COUNT( * ) AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9735
SELECT - COUNT ( DISTINCT col1 ) * 18 + + - COUNT ( * ) AS col0 FROM tab1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 + - ( + ( + col1 ) ) + 75 * + col0 col2 FROM tab1 AS cor0
----
3880
6439
6847

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> col0
----

query I rowsort
SELECT 40 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 72 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 51 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT DISTINCT + col1 - - col2 DIV col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + col1 - - col2 / col0 FROM tab2
----
51
67
77

query I rowsort
SELECT + 44 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 col1 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT 72 AS col0 FROM tab2 AS cor0 WHERE col2 + + 62 IS NOT NULL
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT + + MAX( + col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT + + MAX ( + col2 ) AS col0 FROM tab2 cor0
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 81 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + 94 + col1 * - + col1 + col0 FROM tab0 AS cor0
----
-270
-6499
91

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE col0 * - + col2 - + - col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT ALL - 35 DIV + - col1 FROM tab1 cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - 35 / + - col1 FROM tab1 cor0
----
0
2
7

query II rowsort
SELECT col1 * - 50, col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + col1 IN ( - 60 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT ALL - - AVG ( col0 ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - CAST( - col2 AS SIGNED ) AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - - AVG ( col0 ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - CAST ( - col2 AS INTEGER ) AND + col0
----
NULL

query I rowsort
SELECT - col2 * - 85 + + col0 - 1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT col2 AS col1, 54 + - col0 FROM tab2
----
23
8
40
-10
58
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT COUNT( * ) + + + AVG ( ALL + col1 ) + COUNT( * ) FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + - + col0 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT COUNT ( * ) + + + AVG ( ALL + col1 ) + COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + - + col0 = ( NULL )
----
NULL

query I rowsort
SELECT ( - 30 ) AS col0 FROM tab2
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT ALL 50 DIV + - ( - - 24 ) FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL 50 / + - ( - - 24 ) FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9760
SELECT DISTINCT - COUNT( * ) DIV - 75 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT - COUNT ( * ) / - 75 AS col2 FROM tab2
----
0

query I rowsort
SELECT + col0 * + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND - col2 - - col1 * 5
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 38 >= 53 * - col1 / - + col1
----

query I rowsort
SELECT col1 * + col0 * - - col1 AS col0 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT ALL col1 * + + 53 AS col2 FROM tab0
----
1113
4293
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9765
SELECT - + 53 DIV ( COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-9765
SELECT - + 53 / ( COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT DISTINCT - CAST( + 84 AS SIGNED ) * 41 FROM tab0 AS cor0 WHERE NOT ( + 52 ) NOT BETWEEN - 19 + - col2 * + col0 AND + col1
----
-3444

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - CAST ( + 84 AS INTEGER ) * 41 FROM tab0 AS cor0 WHERE NOT ( + 52 ) NOT BETWEEN - 19 + - col2 * + col0 AND + col1
----
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL SUM( ALL 81 ) * - 94 AS col0 FROM tab2 AS cor0
----
-22842

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL SUM ( ALL 81 ) * - 94 AS col0 FROM tab2 AS cor0
----
-22842

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( + 11 )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9770
SELECT - - MAX( DISTINCT + col0 ), MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-9770
SELECT - - MAX ( DISTINCT + col0 ), MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9771
SELECT - + MIN( ALL + - CAST( - col1 AS SIGNED ) ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9771
SELECT - + MIN ( ALL + - CAST ( - col1 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col2 + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT + + MAX( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + + MAX ( ALL - - col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL + COUNT( * ) + MAX( ALL - + col0 ) + + - 55 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + COUNT ( * ) + MAX ( ALL - + col0 ) + + - 55 FROM tab2 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT MIN( - ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT MIN ( - ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + ( + - COUNT( - col2 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9776
SELECT + ( + - COUNT ( - col2 ) ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT 0 / ( col2 ) + - col0 + col2 + - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9777
SELECT 0 / ( col2 ) + - col0 + col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT ALL - 70 * col1 DIV - col1 + + 19 + 90 FROM tab0 WHERE NULL IS NULL
----
179
179
179

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - 70 * col1 / - col1 + + 19 + 90 FROM tab0 WHERE NULL IS NULL
----
179
179
179

query I rowsort
SELECT ALL 54 + + 45 FROM tab0
----
99
99
99

query I rowsort
SELECT 32 * + col0 + + - col0 FROM tab0 AS cor0
----
2697
3007
465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59 col1, 62 + + + col0 FROM tab1 AS cor0
----
59
113
59
147
59
153

query I rowsort
SELECT + col1 * - 93 * + col1 FROM tab0 AS cor0
----
-41013
-610173
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT DISTINCT + - 32 AS col0, - COUNT( DISTINCT + - 72 ) AS col1 FROM tab1 AS cor0
----
-32
-1

skipif mysql # not compatible
query II rowsort label-9783
SELECT DISTINCT + - 32 AS col0, - COUNT ( DISTINCT + - 72 ) AS col1 FROM tab1 AS cor0
----
-32
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 WHERE + 93 <> + - 67 + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 93 <> + - 67 + 75
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9785
SELECT - col2 / 10 + + CAST( - col1 AS DECIMAL ), ( col2 ) FROM tab0 AS cor0 WHERE - col1 * col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9785
SELECT - col2 / 10 + + CAST ( - col1 AS REAL ), ( col2 ) FROM tab0 AS cor0 WHERE - col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT 67 + - - COUNT( * ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9786
SELECT 67 + - - COUNT ( * ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL - - SUM( 83 ) FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - - SUM ( 83 ) FROM tab0 AS cor0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT + col0 DIV - 57 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + col0 / - 57 AS col0 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + 70 * + - 35 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT + COUNT( * ) * - ( - 21 ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9790
SELECT + COUNT ( * ) * - ( - 21 ) AS col2 FROM tab0 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( 31 ) * - - ( + col2 ) + - - col1
----

query I rowsort
SELECT - + 99 * col0 AS col0 FROM tab0 AS cor0
----
-1485
-8613
-9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + - col2 BETWEEN + col2 * + 15 AND NULL OR NOT NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * - col2 = col0
----
-3

skipif mysql # not compatible
query I rowsort label-9794
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * - col2 = col0
----
-3

query II rowsort
SELECT DISTINCT col0 AS col1, col1 FROM tab1 WHERE NOT - - col2 / - col0 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + 66 ) <> NULL
----

query I rowsort
SELECT DISTINCT + 35 * - 78 AS col1 FROM tab1
----
-2730

query I rowsort
SELECT DISTINCT + ( - 33 ) AS col1 FROM tab0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9799
SELECT + CAST( NULL AS DECIMAL ) AS col1, 47 * + + MIN( + 69 ) + + COUNT( * ) + + COUNT( * ) * + 64 FROM tab2
----
NULL
3438

skipif mysql # not compatible
query II rowsort label-9799
SELECT + CAST ( NULL AS REAL ) AS col1, 47 * + + MIN ( + 69 ) + + COUNT ( * ) + + COUNT ( * ) * + 64 FROM tab2
----
NULL
3438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9800
SELECT MAX( ALL + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9800
SELECT MAX ( ALL + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9801
SELECT col0 * col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT col0 * col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT DISTINCT ( - + COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9802
SELECT DISTINCT ( - + COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 77 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 77 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL - MAX( col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE - col1 > - col0 * - col0 * - 82 * + - col2 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9805
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE - col1 > - col0 * - col0 * - 82 * + - col2 + - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + 22 / + ( + col1 ), - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + + 47
----

query I rowsort
SELECT ALL + col1 * - ( - 1 ) + + col1 * + ( col2 ) FROM tab2
----
1224
3157
3953

query I rowsort
SELECT ALL - col2 - 85 - col1 + + - col0 FROM tab0
----
-203
-228
-282

query I rowsort
SELECT DISTINCT - col2 * - ( - 63 ) * col1 + + - 60 / 45 FROM tab0 WHERE col2 / - - 8 - 23 + col1 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9811
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * col2 = + + 72 * CAST( + col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9811
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * col2 = + + 72 * CAST ( + col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * col0 + col0 + - ( + + 38 ) * + + 25 FROM tab2 AS cor0
----
1212
3210
4750

query I rowsort
SELECT DISTINCT ( 32 ) * col0 + col0 FROM tab1 cor0
----
1683
2805
3003

query I rowsort
SELECT + + 72 + + ( - col2 ) * - col0 * - - 0 + + 71 * col1 FROM tab1 AS cor0
----
1066
3409
427

query I rowsort
SELECT ALL - col2 - - - col2 * col2 AS col0 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT DISTINCT col2 + + + 58 FROM tab2
----
116
81
98

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE + 38 / - col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query II rowsort
SELECT - + col1 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( + col1 ) col0 FROM tab0 AS cor0 WHERE NULL < ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 AS cor0 WHERE NOT ( NOT - ( + col1 ) + col0 IN ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9823
SELECT + COUNT( * ) * - + MAX( DISTINCT col1 ), - 66 col0 FROM tab0 AS cor0
----
-243
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9823
SELECT + COUNT ( * ) * - + MAX ( DISTINCT col1 ), - 66 col0 FROM tab0 AS cor0
----
-243
-66

query I rowsort
SELECT col2 * + col0 * - + col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT 57 * + + COUNT( DISTINCT - col0 ) AS col2 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT 57 * + + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1
----
171

query I rowsort
SELECT DISTINCT + 0 FROM tab0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT 84 * col0 * - col1 AS col2 FROM tab0
----
-102060
-153468
-8148

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + col0 BETWEEN 21 + - + col2 * + 46 AND col0 * 55 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9829
SELECT - ( + + col1 ) col0, 78 + + CAST( + 8 AS SIGNED ) * - 3 * + col1 - + - 38 AS col0 FROM tab0 WHERE NOT - 55 IS NULL
----
-1
92
-21
-388
-81
-1828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9829
SELECT - ( + + col1 ) col0, 78 + + CAST ( + 8 AS INTEGER ) * - 3 * + col1 - + - 38 AS col0 FROM tab0 WHERE NOT - 55 IS NULL
----
-1
92
-21
-388
-81
-1828

query I rowsort
SELECT DISTINCT col2 * 1 FROM tab0 WHERE + + 72 IS NOT NULL
----
10
47
99

query II rowsort
SELECT DISTINCT col0 * + 22, - 35 AS col2 FROM tab2 AS cor0
----
1012
-35
1408
-35
1650
-35

query I rowsort
SELECT ALL - ( + + col0 ) * ( + - col0 ) FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT - 4 * - - col2 FROM tab0
----
-188
-396
-40

query I rowsort
SELECT + 38 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query III rowsort
SELECT * FROM tab2 WHERE - + col0 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 16 AS col1, - col1 FROM tab0 cor0
----
16
-1
16
-21
16
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + col2 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL + COUNT( * ) - 90 FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----
-90

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + COUNT ( * ) - 90 FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----
-90

query I rowsort
SELECT DISTINCT - 68 + + 4 * - 90 * 74 FROM tab1 AS cor0
----
-26708

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT 81 - - - MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - - 67 ) AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT 81 - - - MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - - 67 ) AND col2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 36 ) * - 39 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT + MAX( DISTINCT - - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
99

query II rowsort
SELECT DISTINCT col0, 21 AS col1 FROM tab2 AS cor0
----
46
21
64
21
75
21

query II rowsort
SELECT + col1, - col0 AS col0 FROM tab2 cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT + col0 * + col0 * - 23 * - 92 * - col1 AS col2 FROM tab1 AS cor0
----
-76440500
-77052024
-823562012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL + 48 + + - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL + 48 + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT ALL - MAX( ALL CAST( + 22 AS SIGNED ) ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - MAX ( ALL CAST ( + 22 AS INTEGER ) ) FROM tab1
----
-22

query I rowsort
SELECT ALL - col1 * + + 99 + 43 * + 70 AS col2 FROM tab2 AS cor0
----
-2039
-3623
-4613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT DISTINCT + - col1 * - + 39 - - CAST( NULL AS SIGNED ) * - col2 * + 73 * col0 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9850
SELECT DISTINCT + - col1 * - + 39 - - CAST ( NULL AS INTEGER ) * - col2 * + 73 * col0 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9851
SELECT * FROM tab2 WHERE NOT + ( + CAST( + + 59 AS SIGNED ) ) NOT IN ( + - 14, - col1 + - 4, - - 80, + - col1 )
----

skipif mysql # not compatible
query III rowsort label-9851
SELECT * FROM tab2 WHERE NOT + ( + CAST ( + + 59 AS INTEGER ) ) NOT IN ( + - 14, - col1 + - 4, - - 80, + - col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - 63 AS col0 FROM tab2
----
2898
4032
4725

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 AS col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT ALL COUNT( * ) AS col0, + ( 54 ) FROM tab0
----
3
54

skipif mysql # not compatible
query II rowsort label-9854
SELECT ALL COUNT ( * ) AS col0, + ( 54 ) FROM tab0
----
3
54

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9856
SELECT + 48 DIV 59 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9856
SELECT + 48 / 59 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL SUM( - 51 ) AS col2 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL SUM ( - 51 ) AS col2 FROM tab2
----
-153

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 42 - + 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 0 * - 59 + - - 77 IS NULL
----

query I rowsort
SELECT DISTINCT + 3 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT ALL + col2 + col1 + + 85 * + 33 * - + CAST( - 2 AS SIGNED ) * - 5 AS col2 FROM tab0
----
-27922
-27950
-28019

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + col2 + col1 + + 85 * + 33 * - + CAST ( - 2 AS INTEGER ) * - 5 AS col2 FROM tab0
----
-27922
-27950
-28019

query I rowsort
SELECT col0 + - 67 AS col1 FROM tab0
----
-52
20
30

query I rowsort
SELECT + 6 + - col2 * - - col1 FROM tab2
----
-1167
-3074
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT COUNT( - col1 ) + 19 AS col1 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9864
SELECT COUNT ( - col1 ) + 19 AS col1 FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT - MIN( - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - MIN ( - col2 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN - 46 AND ( - 1 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT - CAST( + 61 AS SIGNED ) * - 75 + col2 + - col0 + - col1 FROM tab1
----
4505
4544
4606

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - CAST ( + 61 AS INTEGER ) * - 75 + col2 + - col0 + - col1 FROM tab1
----
4505
4544
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - COUNT( DISTINCT + 81 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9868
SELECT - COUNT ( DISTINCT + 81 ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT ALL + col1 + - 85 + 24 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + col1 + - 85 + 24 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT DISTINCT col1 + - - col1 + - ( + 32 ) DIV + + 70 AS col2 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT col1 + - - col1 + - ( + 32 ) / + + 70 AS col2 FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT col0 - - col2 DIV 23 col0 FROM tab1
----
55
87
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9871
SELECT col0 - - col2 / 23 col0 FROM tab1
----
55
87
93

query I rowsort
SELECT DISTINCT 92 * + - col2 FROM tab1
----
-5428
-6256
-8832

query I rowsort
SELECT ALL - + 90 FROM tab1 WHERE NOT - + col0 + - 57 + + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 IN ( + + col0 * + col2 - + + col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + COUNT( * ) + + 96 * + 71 + + + COUNT( * ) FROM tab2 AS cor0
----
6822

skipif mysql # not compatible
query I rowsort label-9875
SELECT + COUNT ( * ) + + 96 * + 71 + + + COUNT ( * ) FROM tab2 AS cor0
----
6822

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT ALL COUNT( + col2 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL COUNT ( + col2 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 * col2 + - ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT ALL MIN( - + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL MIN ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT - 96 * + COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - 96 * + COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT DISTINCT - - 72 * + col2 FROM tab0 AS cor0
----
3384
7128
720

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 8 + - - col1 NOT BETWEEN - 57 * + + col0 AND col1 / 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT MAX( - 91 ) AS col0 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9884
SELECT MAX ( - 91 ) AS col0 FROM tab2 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9885
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) + + 46 - - - 97 FROM tab2 AS cor0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-9885
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + + 46 - - - 97 FROM tab2 AS cor0
----
NULL
-54

query I rowsort
SELECT DISTINCT + col0 * + 34 FROM tab2 AS cor0
----
1564
2176
2550

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT - SUM( DISTINCT col2 ) col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9888
SELECT - SUM ( DISTINCT col2 ) col0 FROM tab2 cor0
----
-121

query I rowsort
SELECT + col0 * - 69 FROM tab2
----
-3174
-4416
-5175

query I rowsort
SELECT + col1 * + 26 - + + col1 + - 66 - - + 9 AS col0 FROM tab2 WHERE NOT + col0 - - ( + + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 + + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL + 76 * - + ( + COUNT( * ) ) AS col0 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + 76 * - + ( + COUNT ( * ) ) AS col0 FROM tab2
----
-228

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + col0 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT ALL SUM( + 25 ) AS col2, + COUNT( * ) + + 61 AS col0 FROM tab0
----
75
64

skipif mysql # not compatible
query II rowsort label-9894
SELECT ALL SUM ( + 25 ) AS col2, + COUNT ( * ) + + 61 AS col0 FROM tab0
----
75
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT NULL > - + 94 - - 96 + - 80
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT NULL > - + 94 - - 96 + - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL + COUNT( DISTINCT - 45 ) * - 60 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + COUNT ( DISTINCT - 45 ) * - 60 FROM tab2
----
-60

query I rowsort
SELECT ALL + col1 + + col2 - col2 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT 57 + + MIN( - ( + + 98 ) ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT 57 + + MIN ( - ( + + 98 ) ) FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 * - + 0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT 74 - col2 DIV + 91 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-9901
SELECT 74 - col2 / + 91 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT + col0 + 87 - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1113
-1653
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9903
SELECT ALL - + CAST( - 82 AS SIGNED ) * - 91 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-7462
3

skipif mysql # not compatible
query II rowsort label-9903
SELECT ALL - + CAST ( - 82 AS INTEGER ) * - 91 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-7462
3

query I rowsort
SELECT + + col1 + - col0 AS col2 FROM tab2 cor0
----
-8
13
5

query II rowsort
SELECT ALL - - 84 AS col2, 62 FROM tab1 AS cor0
----
84
62
84
62
84
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9906
SELECT DISTINCT - ( - CAST( COUNT( * ) AS SIGNED ) ) + + 50 AS col0 FROM tab0 cor0
----
53

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT - ( - CAST ( COUNT ( * ) AS INTEGER ) ) + + 50 AS col0 FROM tab0 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + 59 + ( + - SUM( ( + 7 ) ) ) FROM tab2 cor0
----
38

skipif mysql # not compatible
query I rowsort label-9907
SELECT + 59 + ( + - SUM ( ( + 7 ) ) ) FROM tab2 cor0
----
38

query I rowsort
SELECT DISTINCT col2 * 0 + + + 7 * + col2 * - 1 FROM tab2
----
-161
-280
-406

query I rowsort
SELECT ALL col0 - - + ( - + col2 ) FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9910
SELECT ALL * FROM tab2 WHERE NOT - col2 * ( + col1 ) NOT BETWEEN + + col0 + col2 * CAST( + 7 AS SIGNED ) + + col2 AND 91 * + 74
----

skipif mysql # not compatible
query III rowsort label-9910
SELECT ALL * FROM tab2 WHERE NOT - col2 * ( + col1 ) NOT BETWEEN + + col0 + col2 * CAST ( + 7 AS INTEGER ) + + col2 AND 91 * + 74
----

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9912
SELECT - - CAST( + 7 AS SIGNED ) AS col1, - col0 * - - 39 FROM tab1 WHERE NULL NOT BETWEEN col1 + 76 - + - col1 + + 13 AND - col2
----

skipif mysql # not compatible
query II rowsort label-9912
SELECT - - CAST ( + 7 AS INTEGER ) AS col1, - col0 * - - 39 FROM tab1 WHERE NULL NOT BETWEEN col1 + 76 - + - col1 + + 13 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT CAST( - col0 AS SIGNED ) * col1 * + 36 FROM tab2
----
-177408
-180900
-84456

skipif mysql # not compatible
query I rowsort label-9913
SELECT CAST ( - col0 AS INTEGER ) * col1 * + 36 FROM tab2
----
-177408
-180900
-84456

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - 6 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 NOT BETWEEN + col0 AND ( + - col2 + - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT + + 80 + + SUM( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT + + 80 + + SUM ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query II rowsort
SELECT col1 AS col1, + 0 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - MIN( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9919
SELECT - MIN ( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - - col2 + 49 AS col1 FROM tab0 AS cor0
----
148
59
96

query II rowsort
SELECT ALL + - 90, - col0 AS col2 FROM tab0 AS cor0
----
-90
-15
-90
-87
-90
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL + 48 + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL + 48 + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT - ( - 4 ) - - + 65 AS col0 FROM tab2 WHERE NOT - - 97 + + col2 < NULL
----

query I rowsort
SELECT + 42 * - - 73 FROM tab0
----
3066
3066
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab0
----
15

query III rowsort
SELECT ALL 12 AS col1, - 73 AS col2, + + col1 AS col2 FROM tab1
----
9 values hashing to ec54554e7552a0cdaacafd7a4bec04f3

query I rowsort
SELECT 69 * - + col1 FROM tab1
----
-3243
-345
-966

query I rowsort
SELECT DISTINCT 25 + + col2 FROM tab1 cor0
----
121
84
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( - 45 ) * + col0 * 38 * + + col2 * 42 + - col0 + + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - 2 + - - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 2 + - - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + 56 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT ( 28 ) * + COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT ( 28 ) * + COUNT ( * ) FROM tab2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL - CAST( - + ( - 50 ) AS SIGNED ) - col0 AS col2 FROM tab2 AS cor0
----
-114
-125
-96

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - CAST ( - + ( - 50 ) AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0
----
-114
-125
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 * + col2 - 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT + col2 DIV - + 56 col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9936
SELECT + col2 / - + 56 col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 15 + col0 + + + 99 AS col2 FROM tab1
----
165
199
205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9938
SELECT - col2 - - + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9938
SELECT - col2 - - + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL ( + MAX( ALL col1 ) ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL ( + MAX ( ALL col1 ) ) AS col2 FROM tab0
----
81

query I rowsort
SELECT DISTINCT 26 * + col0 FROM tab2
----
1196
1664
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT DISTINCT + 14 * - COUNT( ALL - col2 ) * - 81 FROM tab2
----
3402

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT + 14 * - COUNT ( ALL - col2 ) * - 81 FROM tab2
----
3402

query II rowsort
SELECT 0 AS col1, col1 AS col1 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT ALL + 20 / - CAST( NULL AS SIGNED ) * MAX( col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + 20 / - CAST ( NULL AS INTEGER ) * MAX ( col2 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col1 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + - + col2 + + col2 + 93 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 * CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9946
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 94 * + + 0 + - col0 + - col0 + + ( col1 ) - + col1 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT - COUNT( * ) DIV SUM( DISTINCT + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT - COUNT ( * ) / SUM ( DISTINCT + col0 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 59 col2 FROM tab0 AS cor0
----
59
59
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 21 * + - col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + - MAX( - col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9951
SELECT + - MAX ( - col2 ) FROM tab2 cor0
----
23

query II rowsort
SELECT DISTINCT col2 + + col2, col2 FROM tab1 AS cor0
----
118
59
136
68
192
96

query I rowsort
SELECT + 48 * col0 FROM tab1 cor0
----
2448
4080
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - + COUNT( ALL + + 22 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9954
SELECT - + COUNT ( ALL + + 22 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - col1 * - + col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
441
21
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + COUNT( * ) * + COUNT( * ) col0 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9956
SELECT + COUNT ( * ) * + COUNT ( * ) col0 FROM tab1, tab0 AS cor0
----
81

query III rowsort
SELECT col0 AS col0, ( - 6 ), + + col0 FROM tab0
----
9 values hashing to 57bb4ceee017351167e71080bb859713

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT 75 + COUNT( * ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9958
SELECT 75 + COUNT ( * ) AS col2 FROM tab0
----
78

query I rowsort
SELECT + 49 * - - col0 AS col2 FROM tab2 WHERE + 88 + + col0 IS NOT NULL
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - 16 + SUM( + 17 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-9960
SELECT - 16 + SUM ( + 17 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
35

query I rowsort
SELECT ALL + 87 * - 37 FROM tab0
----
-3219
-3219
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + + 54 * MAX( DISTINCT - - 90 ) AS col2 FROM tab1 AS cor0
----
4860

skipif mysql # not compatible
query I rowsort label-9962
SELECT + + 54 * MAX ( DISTINCT - - 90 ) AS col2 FROM tab1 AS cor0
----
4860

query I rowsort
SELECT - 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT - + CAST( NULL AS SIGNED ) + + 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT - + CAST ( NULL AS INTEGER ) + + 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + - - col1 + 23 FROM tab0 AS cor0
----
119
121
131

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9966
SELECT 59 * - + 68 + + col2 DIV - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-4012
-4012
-4013

skipif mysql # not compatible
query I rowsort label-9966
SELECT 59 * - + 68 + + col2 / - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-4012
-4012
-4013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT + COUNT( * ) + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9967
SELECT + COUNT ( * ) + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + - 26 NOT BETWEEN col1 * - col1 / 15 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 IN ( 93, + 82, + col0, - col2 )
----

query I rowsort
SELECT 19 * - col0 FROM tab2
----
-1216
-1425
-874

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 88 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9973
SELECT DISTINCT + MAX( DISTINCT - CAST( col2 AS SIGNED ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + MAX ( DISTINCT - CAST ( col2 AS INTEGER ) ) FROM tab0
----
-10

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT + 30 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT + 30 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9976
SELECT - col2 DIV + + CAST( - + 75 AS SIGNED ) AS col1, col1 FROM tab0
----
0
21
0
81
1
1

skipif mysql # not compatible
query II rowsort label-9976
SELECT - col2 / + + CAST ( - + 75 AS INTEGER ) AS col1, col1 FROM tab0
----
0
21
0
81
1
1

query I rowsort
SELECT col2 * 46 FROM tab1
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + 54 + 35 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9978
SELECT + 54 + 35 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
86

query I rowsort
SELECT + ( + col0 ) * + - 52 + + + ( + col0 ) * + + col2 * + - col2 AS col0 FROM tab2 AS cor0
----
-105728
-256200
-26726

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT DISTINCT - 53 + - COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT - 53 + - COUNT ( * ) FROM tab1
----
-56

query I rowsort
SELECT ALL - ( 74 ) FROM tab2
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT + col0 + + + 92 AS col1 FROM tab1 WHERE col1 * col0 + - - ( col0 ) - - - CAST( - col0 AS SIGNED ) + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9982
SELECT + col0 + + + 92 AS col1 FROM tab1 WHERE col1 * col0 + - - ( col0 ) - - - CAST ( - col0 AS INTEGER ) + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9983
SELECT * FROM tab0 WHERE - CAST( - 8 AS SIGNED ) / - + 82 NOT IN ( col2 / 20 + - 51, - col1 + 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9983
SELECT * FROM tab0 WHERE - CAST ( - 8 AS INTEGER ) / - + 82 NOT IN ( col2 / 20 + - 51, - col1 + 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + col1 * col1 * - 49 FROM tab2
----
-16497075
-18593344
-5862654

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT 44 * + - COUNT( * ) AS col1 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-9985
SELECT 44 * + - COUNT ( * ) AS col1 FROM tab0
----
-132

query I rowsort
SELECT - 80 - col0 AS col1 FROM tab0 AS cor0
----
-167
-177
-95

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL > col0 - + + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT col0 IS NOT NULL )
----

query II rowsort
SELECT col2 + - 57 + + 38 + col0 + - - col1 AS col1, 47 FROM tab1
----
130
47
142
47
187
47

query I rowsort
SELECT + col1 + 64 FROM tab0
----
145
65
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9991
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + + 35 + CAST( + ( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) + 94 * + 88 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9991
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + + 35 + CAST ( + ( + CAST ( NULL AS REAL ) ) AS INTEGER ) + 94 * + 88 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 92 * - - 25 FROM tab1 AS cor0
----
2300
2300
2300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * + col2 col2 FROM tab0
----
-1980
-200
-940

query I rowsort
SELECT 2 * + col0 AS col1 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ( + + COUNT( * ) ) * - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9995
SELECT ( + + COUNT ( * ) ) * - + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT + MAX( DISTINCT + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + MAX ( DISTINCT + col1 ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9997
SELECT DISTINCT - col0, - col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query II rowsort label-9997
SELECT DISTINCT - col0, - col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL + 92 * COUNT( ALL 19 ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + 92 * COUNT ( ALL 19 ) FROM tab1 AS cor0
----
276

query II rowsort
SELECT DISTINCT col0 * - + col2, col1 FROM tab0 cor0
----
-705
81
-870
21
-9603
1

