hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 * col0 FROM tab0 WHERE + col2 + + + 46 < ( NULL )
----

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

query I rowsort
SELECT ALL 98 + - col0 FROM tab0
----
1
11
83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 58 * + 25 * col1 <= - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT - MIN( DISTINCT - col0 ) * - 30 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-2727

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT - MIN ( DISTINCT - col0 ) * - 30 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-2727

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + col1 * - 4
----

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

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

query I rowsort
SELECT ALL - col1 * + ( + + ( - col0 ) ) FROM tab1 AS cor0
----
425
4277
714

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL >= NULL )
----

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

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

skipif mysql # not compatible
query III rowsort label-11
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + CAST ( - + col0 AS INTEGER ) BETWEEN ( + col2 ) AND 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 / - 22 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

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

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

query II rowsort
SELECT - col1 * - 65 AS col0, col0 * - col0 FROM tab0 AS cor0
----
1365
-7569
5265
-225
65
-9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 65 * - - 28 - + - 55 / 34 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 30 * + 76 AS col0 FROM tab1
----
2280
2280
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT + 14 > - + 87
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 14 > - + 87
----
0

query I rowsort
SELECT ALL - 98 * + 12 AS col0 FROM tab0
----
-1176
-1176
-1176

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT ALL - ( + + 71 ) AS col1, COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 * - col1 IS NOT NULL
----
-71
0

skipif mysql # not compatible
query II rowsort label-21
SELECT ALL - ( + + 71 ) AS col1, COUNT ( * ) AS col0 FROM tab1 WHERE NOT col0 * - col1 IS NOT NULL
----
-71
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 85 col0 FROM tab2 AS cor0
----
4335
5695
6545

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + - - 81 * 81, - 16 col0 FROM tab1 AS cor0
----
6465
-16
6493
-16
6502
-16

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 + ( col2 ) col0, + col1 AS col2 FROM tab2 AS cor0
----
-17
67
-23
51
-24
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-27
SELECT + + MIN( + CAST( NULL AS SIGNED ) ) / - CAST( NULL AS DECIMAL ) / - COUNT( * ) * - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT + + MIN ( + CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS REAL ) / - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE col0 * + 80 < + 0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 NOT IN ( - 99, + 93 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-31
SELECT - + MAX ( - 9 ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 85 / - AVG ( ALL - 60 ) AS col1 FROM tab2 AS cor0 WHERE 85 * - col2 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col1 + - col0, 66 AS col1 FROM tab0 AS cor0
----
-66
66
-96
66
66
66

query II rowsort
SELECT DISTINCT 8 * - col1 + - - 11, + col1 * + col2 + - - 53 FROM tab2 AS cor0 WHERE NULL < ( col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 12 * - col2 ) IS NULL
----

query I rowsort
SELECT 40 AS col0 FROM tab2 cor0 WHERE - ( col1 ) IS NULL
----

query I rowsort
SELECT 68 * + col2 + + col0 FROM tab0 cor0
----
3211
6829
767

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

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

query I rowsort
SELECT 54 + + - 93 FROM tab1
----
-39
-39
-39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 + - col0 col1 FROM tab0
----
-146
-156
-74

query I rowsort
SELECT col1 + + + 7 AS col0 FROM tab2 WHERE - col2 * col0 NOT BETWEEN - col2 AND NULL
----
58
74
84

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

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

query I rowsort
SELECT - col2 * - 73 FROM tab0 WHERE col1 + col1 IS NOT NULL
----
3431
7227
730

query I rowsort
SELECT DISTINCT col1 + + 50 * - ( + - 15 ) AS col2 FROM tab1
----
755
764
797

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE ( ( NULL ) > + 26 * - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + - col0 col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT DISTINCT + - 67 + 90 DIV + + col1 FROM tab0 AS cor0
----
-63
-66
23

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + - 67 + 90 / + + col1 FROM tab0 AS cor0
----
-63
-66
23

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-51
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= + ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-51
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= + ( - CAST ( NULL AS REAL ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IN ( - 57 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-53
SELECT ALL - - COUNT( - - CAST( NULL AS SIGNED ) ), + 42 col1 FROM tab2 AS cor0
----
0
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-53
SELECT ALL - - COUNT ( - - CAST ( NULL AS INTEGER ) ), + 42 col1 FROM tab2 AS cor0
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT + 38 * + 13 * + ( COUNT( DISTINCT col0 ) ) + - - ( - + ( - + 5 ) ) FROM tab0 AS cor0
----
1487

skipif mysql # not compatible
query I rowsort label-54
SELECT + 38 * + 13 * + ( COUNT ( DISTINCT col0 ) ) + - - ( - + ( - + 5 ) ) FROM tab0 AS cor0
----
1487

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * 97 * - 23 col0 FROM tab1 AS cor0
----
122705

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

query I rowsort
SELECT ALL col2 * - + ( + col2 ) * col1 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT 12 * 33 AS col0 FROM tab2
----
396

query III rowsort
SELECT * FROM tab0 WHERE NOT - 69 * - - 64 * col0 BETWEEN ( - 70 * - - 65 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-62
SELECT ALL COUNT( DISTINCT + col2 ), COUNT( + ( + 92 ) ) col0, - + 18 * + COUNT( * ) AS col0 FROM tab2 WHERE CAST( - CAST( - col2 AS SIGNED ) AS DECIMAL ) IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-62
SELECT ALL COUNT ( DISTINCT + col2 ), COUNT ( + ( + 92 ) ) col0, - + 18 * + COUNT ( * ) AS col0 FROM tab2 WHERE CAST ( - CAST ( - col2 AS INTEGER ) AS REAL ) IS NULL
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL COUNT( * ) + - 17 AS col1 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL COUNT ( * ) + - 17 AS col1 FROM tab1
----
-14

query I rowsort
SELECT DISTINCT 82 + - 32 FROM tab0 AS cor0
----
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL SUM( 68 ) FROM tab0 cor0
----
204

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL SUM ( 68 ) FROM tab0 cor0
----
204

query I rowsort
SELECT DISTINCT 32 * + 14 FROM tab2
----
448

query I rowsort
SELECT col2 + - 91 FROM tab0
----
-44
-81
8

query I rowsort
SELECT col1 + - col1 * - ( + + col1 ) * + col2 + + col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col0, 51 + - col2 + - - 68 * - ( col1 ) / - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT - + COUNT( * ) * + - 65 AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-71
SELECT - + COUNT ( * ) * + - 65 AS col2 FROM tab2 cor0
----
195

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-73
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV - col0 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT CAST ( col1 AS INTEGER ) / - col0 AS col0 FROM tab2
----
-1
0

query I rowsort
SELECT - 17 * + col1 AS col2 FROM tab0
----
-1377
-17
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT 84 * - SUM( - - col2 ) col2 FROM tab1
----
-18732

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-75
SELECT 84 * - SUM ( - - col2 ) col2 FROM tab1
----
-18732

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 54 AS col1 FROM tab2 AS cor0
----
-54
-54
-54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT DISTINCT 79 DIV + ( - - 75 ) FROM tab1, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT 79 / + ( - - 75 ) FROM tab1, tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / + 53 * - - 80 * + + 51 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + 55 AND NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 65 * 53 + col0 AS col0 FROM tab0 AS cor0
----
3460
3532
3542

query I rowsort
SELECT col0 * - + col2 * - - 1 + - col0 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT DISTINCT - col1 * + - col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-94
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2
----
3
3

query II rowsort
SELECT ALL col1, 4 FROM tab1
----
14
4
47
4
5
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-98
SELECT DISTINCT 23 * + COUNT( * ) AS col2, 23 AS col0 FROM tab0
----
69
23

skipif mysql # not compatible
query II rowsort label-98
SELECT DISTINCT 23 * + COUNT ( * ) AS col2, 23 AS col0 FROM tab0
----
69
23

query I rowsort
SELECT ALL 77 + + 79 FROM tab1
----
156
156
156

query I rowsort
SELECT ALL + col2 + + col0 - - 74 * + ( - 82 ) + - 66 - ( col0 ) AS col0 FROM tab2 AS cor0
----
-6076
-6094
-6111

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - 58 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - 58 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

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

query I rowsort
SELECT - + col2 * - col1 - - 20 FROM tab0 AS cor0
----
119
230
3827

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT + col0 DIV col1 - - col0 FROM tab1 AS cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-106
SELECT + col0 / col1 - - col0 FROM tab1 AS cor0
----
102
54
92

query I rowsort
SELECT 87 - col2 AS col1 FROM tab2 cor0
----
29
47
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT - - CAST( + - col0 AS SIGNED ) - + - 41 FROM tab0 AS cor0
----
-46
-56
26

skipif mysql # not compatible
query I rowsort label-108
SELECT - - CAST ( + - col0 AS INTEGER ) - + - 41 FROM tab0 AS cor0
----
-46
-56
26

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

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

query I rowsort
SELECT + - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE col0 + - 37 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT + COUNT( * ) + - 17 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT + COUNT ( * ) + - 17 FROM tab0 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + 92 AS col2, 59 col1 FROM tab0 AS cor0
----
-5
59
5
59
77
59

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT DISTINCT + + 28 - - COUNT( * ) col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-113
SELECT DISTINCT + + 28 - - COUNT ( * ) col0 FROM tab2 AS cor0
----
31

query II rowsort
SELECT ALL - + col2 - 10 AS col1, col0 FROM tab2 AS cor0
----
-33
46
-50
64
-68
75

query I rowsort
SELECT DISTINCT + + 19 * + col2 FROM tab0 WHERE NOT NULL BETWEEN ( 49 ) * - col2 + + col1 - col1 * + col1 AND NULL
----

query I rowsort
SELECT + col2 * + - 85 FROM tab0
----
-3995
-8415
-850

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + + 31 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL + MIN( DISTINCT - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + MIN ( DISTINCT - col1 ) AS col2 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT DISTINCT + - COUNT( * ) AS col1, - MIN( DISTINCT 81 ) + 91 FROM tab0 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-119
SELECT DISTINCT + - COUNT ( * ) AS col1, - MIN ( DISTINCT 81 ) + 91 FROM tab0 AS cor0
----
-3
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-120
SELECT ALL 33 DIV + ( + + 58 ) + + ( - - 56 ) * 2 * COUNT( * ) FROM tab1 AS cor0
----
336

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL 33 / + ( + + 58 ) + + ( - - 56 ) * 2 * COUNT ( * ) FROM tab1 AS cor0
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + MAX( - + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-121
SELECT + MAX ( - + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + + 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

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

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

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

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT ( NULL = - - 38 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT + COUNT( * ) * + 24 FROM tab2 cor0 WHERE NOT NULL IN ( col1 * - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-130
SELECT + COUNT ( * ) * + 24 FROM tab2 cor0 WHERE NOT NULL IN ( col1 * - - col2 )
----
0

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

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

query I rowsort
SELECT ALL col2 + 18 * - col2 + + - col2 FROM tab1 WHERE 15 IS NOT NULL
----
-1062
-1224
-1728

query I rowsort
SELECT ALL + col1 + + col1 + + - col2 * + 22 FROM tab0
----
-178
-2176
-872

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + - 47 IS NULL
----

query I rowsort
SELECT ALL + 5 + + 24 AS col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT - 14 + + col0 + - col0 FROM tab2 AS cor0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2 AS col0, + col0 col1, + - col1 FROM tab1
----
9 values hashing to 2414f6a21a14a1038129123549ac9034

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

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

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

query I rowsort
SELECT ALL - + col2 - + col0 * + col2 AS col2 FROM tab1 cor0
----
-4992
-5074
-6256

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + col1 * + col2 * - 11 <= + ( + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT - col0 - ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-108
-96
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL 64 - - - COUNT( * ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL 64 - - - COUNT ( * ) FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT ALL + ( - SUM( + + 61 ) ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL + ( - SUM ( + + 61 ) ) FROM tab2 AS cor0
----
-183

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT col1 - + ( col2 ) FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT - col0 - + + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

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

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL 23 * - COUNT ( * ) FROM tab0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 37 * + 82 * - + ( - 12 ) col2 FROM tab1
----
-2148072
-2475744
-3495168

query I rowsort
SELECT ALL col2 * + 57 FROM tab0
----
2679
5643
570

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL - ( - + COUNT( * ) ) * 38 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL - ( - + COUNT ( * ) ) * 38 FROM tab0
----
114

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

query I rowsort
SELECT ALL - col1 * + + col0 * + + 2 * - col0 FROM tab1
----
72250
72828
778414

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 59 FROM tab2
----
1357
2360
3422

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

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

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

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

query I rowsort
SELECT ALL + + col1 + + + col1 FROM tab2 AS cor0
----
102
134
154

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

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - COUNT ( * ) / - - COUNT ( * ) - - + 90 AS col0 FROM tab0 AS cor0
----
89

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 86 > - 65
----

query I rowsort
SELECT + 96 + + 68 * col2 AS col2 FROM tab2
----
1660
2816
4040

query I rowsort
SELECT DISTINCT 3 + + 19 FROM tab1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 81 + - + 48 col1 FROM tab1
----
101
129
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT DISTINCT 70 + + 9 * + MAX( + CAST( NULL AS SIGNED ) ) * - MAX( DISTINCT - col1 ) * + + COUNT( * ) + 5 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT 70 + + 9 * + MAX ( + CAST ( NULL AS INTEGER ) ) * - MAX ( DISTINCT - col1 ) * + + COUNT ( * ) + 5 FROM tab1
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - + 72 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-123
-157
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-179
SELECT - COUNT( * ) DIV + 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT - COUNT ( * ) / + 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

query I rowsort
SELECT DISTINCT 66 * + 4 - - col1 - + col0 AS col1 FROM tab2 AS cor0
----
256
269
277

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT COUNT( * ) + - 88 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT COUNT ( * ) + - 88 FROM tab1 AS cor0
----
-85

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 71 * + - 37 IS NULL
----

query I rowsort
SELECT + - 52 AS col2 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - - col0 * col1 + + 75 AS col2 FROM tab2 cor0
----
2421
5003
5100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT 18 NOT BETWEEN + - col2 AND 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 34 + - 46 * + - col1 * + ( + + col1 ) / + 8 * ( - 86 ) IN ( + - 55, - 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT - MIN( ALL 95 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-95

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - MIN ( ALL 95 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-95

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

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

query II rowsort
SELECT ALL - col1, - 87 - - - 35 AS col2 FROM tab2
----
-51
-122
-67
-122
-77
-122

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 56 + + + col1 / - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col1 FROM tab0
----
10
47
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT + 87 DIV + col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-198
SELECT + 87 / + col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT + ( + + 36 ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 40 col0 FROM tab0
----
-3480
-3880
-600

query I rowsort
SELECT DISTINCT + - ( - + col1 ) + - - col0 * ( + 26 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL + - MIN( col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + - MIN ( col2 ) FROM tab0 cor0
----
-10

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

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

query I rowsort
SELECT ( - col2 ) * col1 AS col0 FROM tab2 WHERE NOT + - ( + + col0 ) BETWEEN - col2 AND + 31 + col0
----
-1173
-3080
-3886

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-211
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-211
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 80 * + + col2 FROM tab2
----
1840
3200
4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * + col2 col2 FROM tab2
----
1334
2320
3364

query II rowsort
SELECT ALL - 58 * + col0 * 30 + + 33 AS col2, + 78 AS col0 FROM tab0
----
-151347
78
-168747
78
-26067
78

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT 16 DIV + 68 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-215
SELECT 16 / + 68 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + MAX( ALL + 98 ) + + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT + MAX ( ALL + 98 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 + + - col2 * + 23 + - col1 FROM tab2
----
-1334
-529
-920

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab0 WHERE NOT - col2 < NULL
----

query II rowsort
SELECT col0 AS col1, - col2 * - col1 FROM tab2
----
46
1173
64
3080
75
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT 83 * - COUNT( * ) * 66 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-49302

skipif mysql # not compatible
query I rowsort label-221
SELECT 83 * - COUNT ( * ) * 66 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-49302

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

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

query I rowsort
SELECT ( + 39 ) + + col0 + - col2 * + 34 AS col0 FROM tab2 cor0
----
-1257
-1858
-697

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT + col0 DIV + 32 + + col1 * col1 AS col1 FROM tab2
----
2602
4491
5931

skipif mysql # not compatible
query I rowsort label-224
SELECT + col0 / + 32 + + col1 * col1 AS col1 FROM tab2
----
2602
4491
5931

onlyif mysql # aggregate syntax: 
query II rowsort label-225
SELECT - COUNT( * ) + - COUNT( * ), - 50 col2 FROM tab2
----
-6
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-225
SELECT - COUNT ( * ) + - COUNT ( * ), - 50 col2 FROM tab2
----
-6
-50

query I rowsort
SELECT ALL + 7 + col2 AS col1 FROM tab2
----
30
47
65

query III rowsort
SELECT * FROM tab2 WHERE - - 47 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-230
SELECT ALL * FROM tab1 WHERE - ( + col1 ) * + 20 / - 4 * - - ( + ( + col2 ) ) * + 48 - CAST( - col0 AS DECIMAL ) + - - 72 NOT IN ( CAST( + col0 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-230
SELECT ALL * FROM tab1 WHERE - ( + col1 ) * + 20 / - 4 * - - ( + ( + col2 ) ) * + 48 - CAST ( - col0 AS REAL ) + - - 72 NOT IN ( CAST ( + col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - 8 AS col2 FROM tab1
----
-472
-544
-768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-232
SELECT 15 * + 89 * + - CAST( - + col1 AS SIGNED ) AS col2 FROM tab2
----
102795
68085
89445

skipif mysql # not compatible
query I rowsort label-232
SELECT 15 * + 89 * + - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2
----
102795
68085
89445

query I rowsort
SELECT DISTINCT col1 * - 10 AS col0 FROM tab0 WHERE NULL > NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - 58 + + 0 BETWEEN + 14 AND NULL
----

query I rowsort
SELECT DISTINCT ( + + ( + - 10 ) ) * col0 FROM tab1
----
-510
-850
-910

query I rowsort
SELECT ALL - 32 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-238
SELECT ALL - 12 + - + 72 + + col0 + col2 - + col0 + + CAST( - + 73 AS SIGNED ) + + col0 * 46 * - col0 / col1 + + 44 + + col0 + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - 12 + - + 72 + + col0 + col2 - + col0 + + CAST ( - + 73 AS INTEGER ) + + col0 * 46 * - col0 / col1 + + 44 + + col0 + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NOT + 61 IS NULL )
----
-15
-87
-97

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

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

query I rowsort
SELECT DISTINCT + + 10 + + col1 + + col1 FROM tab0 AS cor0
----
12
172
52

query I rowsort
SELECT DISTINCT + + 11 * col1 AS col2 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-244
SELECT ALL - 24 + - 23 col1, + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-47
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-244
SELECT ALL - 24 + - 23 col1, + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-47
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL + col1 DIV - 51 * - 30 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + col1 / - 51 * - 30 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

skipif mysql # not compatible
query III rowsort label-248
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - 52 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 43 + + col1 AS col0 FROM tab2
----
110
120
94

query I rowsort
SELECT ALL + - col2 * 24 * - - 55 + - col2 AS col0 FROM tab2 AS cor0
----
-30383
-52840
-76618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 * + 49 col2 FROM tab0 AS cor0
----
2352
2352
2352

query I rowsort
SELECT DISTINCT + col1 - - + col2 * + col1 * 76 AS col2 FROM tab0 AS cor0
----
15981
289413
7525

query I rowsort
SELECT DISTINCT 47 - col2 * + col2 FROM tab0 AS cor0
----
-2162
-53
-9754

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col1 * 87, 1 )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col2 ) <= col1 * - 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 <= + ( + 82 ) + + col0
----

query I rowsort
SELECT DISTINCT col0 * - - ( col2 ) AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT DISTINCT - 23 + + col1 AS col0, + ( - col1 ) AS col0 FROM tab2
----
28
-51
44
-67
54
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT ALL - col1 + col2 + col2 DIV - - 5 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24
-29
2

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL - col1 + col2 + col2 / - - 5 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24
-29
2

query I rowsort
SELECT DISTINCT - ( - + col2 ) + + col2 AS col0 FROM tab0
----
198
20
94

query I rowsort
SELECT - col1 * + 3 + + ( + col0 ) + + + ( + 76 ) FROM tab0
----
-152
100
170

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-269
SELECT - 40 DIV + - col2 + col2 AS col1, CAST( NULL AS SIGNED ) + + - 45 * col2 AS col0 FROM tab0
----
14
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-269
SELECT - 40 / + - col2 + col2 AS col1, CAST ( NULL AS INTEGER ) + + - 45 * col2 AS col0 FROM tab0
----
14
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT + 98 + + CAST( + - ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
13
47
7

skipif mysql # not compatible
query I rowsort label-270
SELECT + 98 + + CAST ( + - ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
13
47
7

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

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

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

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

query II rowsort
SELECT col2 AS col0, 92 * col2 + col0 FROM tab2
----
23
2162
40
3744
58
5411

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT + 17 + + - MAX( ( - - col1 ) ) AS col1 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT + 17 + + - MAX ( ( - - col1 ) ) AS col1 FROM tab0
----
-64

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-278
SELECT ALL 86 / + 63 col0 FROM tab0
----
1
1
1

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

query I rowsort
SELECT + 38 * + 13 - + col1 + col1 AS col0 FROM tab1
----
494
494
494

query I rowsort
SELECT col1 * + col2 - - col2 FROM tab2
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT - 88 DIV + col0 - 19 DIV - + 3 - - - col1 FROM tab0
----
-16
-80
5

skipif mysql # not compatible
query I rowsort label-282
SELECT - 88 / + col0 - 19 / - + 3 - - - col1 FROM tab0
----
-16
-80
5

query II rowsort
SELECT ALL 71 AS col2, - ( - col1 ) * + + col0 FROM tab2
----
71
2346
71
4928
71
5025

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

query III rowsort
SELECT * FROM tab0 WHERE - 54 - 68 > 61 + col1
----

query I rowsort
SELECT ALL - col1 * - col2 + + 47 FROM tab1
----
1391
3243
342

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-287
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + CAST( + - col2 AS DECIMAL ) / + 54, 66 )
----

skipif mysql # not compatible
query III rowsort label-287
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + CAST ( + - col2 AS REAL ) / + 54, 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT + - col0 + CAST( 3 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0 WHERE ( col0 + - + ( - col0 ) ) <> 48 + 50 * - 19
----
3
3
3

skipif mysql # not compatible
query I rowsort label-288
SELECT + - col0 + CAST ( 3 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0 WHERE ( col0 + - + ( - col0 ) ) <> 48 + 50 * - 19
----
3
3
3

query I rowsort
SELECT ALL + + col2 + + col0 + + col0 FROM tab2 AS cor0
----
115
168
208

query II rowsort
SELECT - ( + col1 ) AS col0, + 12 FROM tab2
----
-51
12
-67
12
-77
12

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

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

skipif mysql # not compatible
query I rowsort label-292
SELECT + - col0 / + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( col2 ) * - col2 + + 10 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * 25 col2 FROM tab0 AS cor0
----
1725
1725
1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-296
SELECT + CAST( + ( - + MAX( ALL + col2 ) ) AS SIGNED ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-296
SELECT + CAST ( + ( - + MAX ( ALL + col2 ) ) AS INTEGER ) col0 FROM tab1
----
-96

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

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

query I rowsort
SELECT ALL col1 + + - 3 AS col2 FROM tab2
----
48
64
74

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 14 IN ( 58, - 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 36 ) FROM tab1
----
-36
-36
-36

query II rowsort
SELECT ALL - 40 AS col0, 38 + ( + - col2 ) AS col1 FROM tab2
----
-40
-2
-40
-20
-40
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 73 col1, 95 FROM tab1
----
73
95
73
95
73
95

query I rowsort
SELECT DISTINCT col2 + + ( - col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT MIN( + + col1 ) DIV - COUNT( * ) AS col2 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT MIN ( + + col1 ) / - COUNT ( * ) AS col2 FROM tab2
----
-17

query I rowsort
SELECT 88 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - - 34 col2, col2 FROM tab0 AS cor0
----
133
99
44
10
81
47

query I rowsort
SELECT DISTINCT + 56 * - col0 * + col2 + + - col0 FROM tab0 AS cor0
----
-39495
-48807
-537865

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + + COUNT( * ) * - - 57 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 - 64 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-309
SELECT + + COUNT ( * ) * - - 57 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 - 64 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + 82 - + + MIN( DISTINCT + + col1 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-310
SELECT + 82 - + + MIN ( DISTINCT + + col1 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT + + col1 + + col1 + col0 + - col0 * - col1 * - - col2 FROM tab1 AS cor0
----
25170
291021
68623

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 / - + col0 * + - 19 )
----

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

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

query I rowsort
SELECT ALL - - 61 AS col2 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL col1 * 1 * + CAST( - 2 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - col2 >= + - col2 - - col2 * - col0 * + + col2 * + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-315
SELECT ALL col1 * 1 * + CAST ( - 2 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - col2 >= + - col2 - - col2 * - col0 * + + col2 * + + col1
----

query I rowsort
SELECT - + 65 + + col0 FROM tab1 AS cor0
----
-14
20
26

onlyif mysql # aggregate syntax: 
query II rowsort label-317
SELECT DISTINCT - COUNT( * ) AS col0, - 44 FROM tab2 WHERE NOT - col0 - ( col0 ) IS NOT NULL
----
0
-44

skipif mysql # not compatible
query II rowsort label-317
SELECT DISTINCT - COUNT ( * ) AS col0, - 44 FROM tab2 WHERE NOT - col0 - ( col0 ) IS NOT NULL
----
0
-44

query I rowsort
SELECT 75 FROM tab1 WHERE 61 IS NOT NULL
----
75
75
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 45 > - col0 - 89
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL - SUM( DISTINCT 11 ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL - SUM ( DISTINCT 11 ) FROM tab0
----
-11

query I rowsort
SELECT 69 * 43 FROM tab2
----
2967
2967
2967

query I rowsort
SELECT + 22 FROM tab0 WHERE - + col0 IN ( + + col0 )
----

query I rowsort
SELECT + + col1 / + 94 + + col2 FROM tab0 AS cor0 WHERE - col2 > col0
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
23
40
58

query II rowsort
SELECT + col2 * 25 * + col1 AS col1, 15 AS col1 FROM tab1 cor0
----
33600
15
7375
15
79900
15

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT SUM( - col1 ) * + ( - 52 ) * 69 FROM tab2
----
699660

skipif mysql # not compatible
query I rowsort label-328
SELECT SUM ( - col1 ) * + ( - 52 ) * 69 FROM tab2
----
699660

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT ( - 34 ) * + 14 + COUNT( * ) FROM tab0
----
-473

skipif mysql # not compatible
query I rowsort label-329
SELECT ( - 34 ) * + 14 + COUNT ( * ) FROM tab0
----
-473

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

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

skipif mysql # not compatible
query II rowsort label-331
SELECT - 29 AS col0, MAX ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-29
-46

query I rowsort
SELECT DISTINCT + + col1 * col0 - + ( ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT + col2 = + ( + col1 )
----
51
85
91

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

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

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

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

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

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

query II rowsort
SELECT - col0 * - + col1 AS col0, 14 FROM tab2
----
2346
14
4928
14
5025
14

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

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

query I rowsort
SELECT DISTINCT + 61 * + + 75 FROM tab2
----
4575

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT 2 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT 2 / col2 FROM tab1
----
0

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

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

query I rowsort
SELECT - + col0 + col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT + + 7 DIV col2 * - 2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-345
SELECT + + 7 / col2 * - 2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 + + col0 col1 FROM tab1
----
0
34
40

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 22 + - - col0 col2 FROM tab1 AS cor0
----
107
113
73

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

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

query I rowsort
SELECT DISTINCT - 17 - - + 41 AS col0 FROM tab0 cor0
----
24

query I rowsort
SELECT col1 + - 66 + + + col1 * col0 - - col1 * + 37 / col0 FROM tab1 AS cor0 WHERE col1 * 26 IS NULL
----

query II rowsort
SELECT - col0, 9 AS col1 FROM tab1 cor0
----
-51
9
-85
9
-91
9

query I rowsort
SELECT + ( col2 ) - 47 FROM tab1
----
12
21
49

query I rowsort
SELECT + col1 - + 53 FROM tab2
----
-2
14
24

query I rowsort
SELECT col0 * + col1 * + col0 * col2 * + 57 FROM tab1
----
121488375
1508566332
199257408

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

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

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

query I rowsort
SELECT - + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL col0 * + + ( + 24 ) * + col2 FROM tab0
----
16920
20880
230472

query I rowsort
SELECT DISTINCT 99 * + col2 AS col0 FROM tab0
----
4653
9801
990

query I rowsort
SELECT ALL col2 * + col1 * + + 31 AS col1 FROM tab1 AS cor0
----
41664
9145
99076

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT + 16 * + - COUNT( * ) + + 83 AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-364
SELECT + 16 * + - COUNT ( * ) + + 83 AS col2 FROM tab1 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT - 21 DIV + 51 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-365
SELECT - 21 / + 51 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-367
SELECT col1 AS col2, 78 * + CAST( + + col0 AS SIGNED ) FROM tab0
----
1
7566
21
6786
81
1170

skipif mysql # not compatible
query II rowsort label-367
SELECT col1 AS col2, 78 * + CAST ( + + col0 AS INTEGER ) FROM tab0
----
1
7566
21
6786
81
1170

query I rowsort
SELECT ALL - 38 AS col1 FROM tab2
----
-38
-38
-38

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

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

query I rowsort
SELECT ALL 3 * 7 FROM tab2
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 + ( - col0 ) col0 FROM tab1
----
-39
-73
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + 70 ) col2 FROM tab1
----
121
155
161

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 IS NOT NULL AND 6 >= 36
----

query I rowsort
SELECT + 35 AS col2 FROM tab1 WHERE NOT col0 >= + col2 * col1 AND NOT col2 NOT IN ( col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT + 98 FROM tab1 WHERE col2 * + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-375
SELECT + 98 FROM tab1 WHERE col2 * + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 42 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 66 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 * + col2 col0 FROM tab2 AS cor0
----
-1610
-2800
-4060

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-380
SELECT DISTINCT - col2 * - col2 AS col1, - CAST( NULL AS SIGNED ) * - col2 + - + CAST( NULL AS SIGNED ) + + 90 FROM tab1
----
3481
NULL
4624
NULL
9216
NULL

skipif mysql # not compatible
query II rowsort label-380
SELECT DISTINCT - col2 * - col2 AS col1, - CAST ( NULL AS INTEGER ) * - col2 + - + CAST ( NULL AS INTEGER ) + + 90 FROM tab1
----
3481
NULL
4624
NULL
9216
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT ALL CAST( NULL AS SIGNED ) / 87 * - MIN( - 51 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 23 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL CAST ( NULL AS INTEGER ) / 87 * - MIN ( - 51 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 23 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + + 6 + + col2 FROM tab1
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT 32 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT 32 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
35

query I rowsort
SELECT - col0 + + 75 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-12
-22
60

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL - MIN( DISTINCT - + col0 ) * + + 58 + - 51 + + COUNT( * ) FROM tab0 AS cor0
----
5578

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL - MIN ( DISTINCT - + col0 ) * + + 58 + - 51 + + COUNT ( * ) FROM tab0 AS cor0
----
5578

query I rowsort
SELECT + 25 + + col1 * 55 FROM tab1 AS cor0 WHERE col0 - + 19 IS NOT NULL
----
2610
300
795

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL - - 53 - - - COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL - - 53 - - - COUNT ( * ) FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( ( + 91 ) ) - - + col0 + col2 col2 FROM tab2 AS cor0
----
4255
5928
6958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 + + col2 col2 FROM tab1
----
14
110
47
115
5
64

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

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

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

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

query I rowsort
SELECT ALL - + 72 AS col0 FROM tab2 AS cor0
----
-72
-72
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT - COUNT( * ) * + MIN( ALL col1 * 78 ) AS col2 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - COUNT ( * ) * + MIN ( ALL col1 * 78 ) AS col2 FROM tab0
----
-234

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 24 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT - 4 * - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN - ( 42 ) + 76 * - 23 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-399
SELECT - 4 * - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN - ( 42 ) + 76 * - 23 AND NULL
----
0

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

query I rowsort
SELECT - 49 * + col1 AS col0 FROM tab1
----
-2303
-245
-686

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

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

query I rowsort
SELECT DISTINCT 94 + 27 FROM tab1
----
121

query I rowsort
SELECT 19 * col1 AS col2 FROM tab1
----
266
893
95

query I rowsort
SELECT - ( 42 ) * + 78 FROM tab0
----
-3276
-3276
-3276

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col0 FROM tab1 WHERE col0 * + col2 IS NOT NULL
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-408
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - col2 >= 25
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - col2 >= 25
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT COUNT( DISTINCT 91 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-410
SELECT COUNT ( DISTINCT 91 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL 36 * + 91 AS col2 FROM tab2
----
3276
3276
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT ALL + COUNT( * ) * + MAX( col2 ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + COUNT ( * ) * + MAX ( col2 ) AS col1 FROM tab1
----
288

query I rowsort
SELECT DISTINCT 48 FROM tab1 WHERE NOT NULL BETWEEN - col2 AND col1
----

query I rowsort
SELECT ALL - 91 * ( - col0 ) FROM tab1
----
4641
7735
8281

query I rowsort
SELECT col2 * col2 - 46 AS col0 FROM tab2
----
1554
3318
483

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT + 95 + col2 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-417
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + col2 ) = NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL + 83 + - COUNT( ( 29 ) ) AS col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL + 83 + - COUNT ( ( 29 ) ) AS col2 FROM tab0 AS cor0
----
80

query I rowsort
SELECT + ( + 85 ) + + col1 FROM tab1 cor0
----
132
90
99

query I rowsort
SELECT ALL - 51 * + col2 AS col1 FROM tab0 AS cor0
----
-2397
-5049
-510

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 = + 48 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT DISTINCT + - 19 * 16 + + 16 DIV - 46 AS col0 FROM tab1 cor0
----
-304

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + - 19 * 16 + + 16 / - 46 AS col0 FROM tab1 cor0
----
-304

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL MIN( ALL col2 ) col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-427
SELECT ALL MIN ( ALL col2 ) col0 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - 59 + + 14 FROM tab2 cor0 WHERE col1 * + col1 > - col1
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT 62 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT 62 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
186

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

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

query I rowsort
SELECT ALL 70 * - 57 FROM tab1 AS cor0
----
-3990
-3990
-3990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 4 col0 FROM tab2 cor0
----
184
256
300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT ALL - MIN( - ( + 55 ) ) AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL - MIN ( - ( + 55 ) ) AS col1 FROM tab2
----
55

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 33 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT MAX( + - ( 69 ) ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-437
SELECT MAX ( + - ( 69 ) ) FROM tab1
----
-69

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

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT 0 >= - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT 86 * - COUNT( * ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT 86 * - COUNT ( * ) FROM tab2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT + + SUM( + 67 ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT + + SUM ( + 67 ) FROM tab0 AS cor0
----
201

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-444
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) * 63 IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-444
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) * 63 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT col2 FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) / col2 NOT IN ( + col1 + col1 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-445
SELECT col2 FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) / col2 NOT IN ( + col1 + col1 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 59 * - + col2 * + col0 + 91 col2 FROM tab0 AS cor0
----
-4465619
-54957878
-623834

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE + col1 >= + 12
----
-15
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-448
SELECT CAST( NULL AS SIGNED ), - col1 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-448
SELECT CAST ( NULL AS INTEGER ), - col1 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL + 49 * - ( + + col2 ) * 3 FROM tab1 AS cor0
----
-14112
-8673
-9996

query I rowsort
SELECT col0 * + 25 * - col2 AS col2 FROM tab2 cor0
----
-108750
-26450
-64000

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

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

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

query I rowsort
SELECT 31 + + col2 + + ( 91 ) FROM tab2 AS cor0
----
145
162
180

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 21 ) IS NOT NULL AND NULL NOT BETWEEN + ( ( - ( + col1 ) ) ) AND - 61
----

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

skipif mysql # not compatible
query I rowsort label-455
SELECT - COUNT ( * ) + + - 59 FROM tab0
----
-62

query I rowsort
SELECT ALL - col1 * ( - + col1 ) + 13 FROM tab1
----
209
2222
38

query I rowsort
SELECT + 86 * col1 AS col0 FROM tab0 WHERE NULL NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT col1 * - - CAST( + + col2 AS SIGNED ) + + - CAST( 94 AS SIGNED ) FROM tab0
----
116
3713
5

skipif mysql # not compatible
query I rowsort label-458
SELECT col1 * - - CAST ( + + col2 AS INTEGER ) + + - CAST ( 94 AS INTEGER ) FROM tab0
----
116
3713
5

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

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

query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab2 WHERE 19 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT + COUNT( DISTINCT - 60 ) + - SUM( + - col1 ) * 9 FROM tab2
----
1756

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + COUNT ( DISTINCT - 60 ) + - SUM ( + - col1 ) * 9 FROM tab2
----
1756

onlyif mysql # DIV for integer division: 
query I rowsort label-462
SELECT DISTINCT col0 + + 44 DIV 27 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT col0 + + 44 / 27 FROM tab2
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT ALL - 8 * - - col2 + + 14 + - + col0 DIV + col2 FROM tab1
----
-459
-531
-754

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL - 8 * - - col2 + + 14 + - + col0 / + col2 FROM tab1
----
-459
-531
-754

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-464
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE CAST( ( - 71 ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE CAST ( ( - 71 ) AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT - COUNT( * ) + + 41 AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-465
SELECT - COUNT ( * ) + + 41 AS col1 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT - + col2 - col1 - - 61 * + 10 - - 15 FROM tab2 AS cor0
----
500
508
551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 col2, col0 AS col0 FROM tab1
----
-8
51
-8
85
-8
91

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

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + + 92 * + ( + + COUNT ( * ) ) + - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
273

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

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

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

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

query I rowsort
SELECT - 71 FROM tab0 AS cor0 WHERE NOT NULL >= + 77 / + col2
----

query II rowsort
SELECT 10 AS col1, - col2 FROM tab2 AS cor0
----
10
-23
10
-40
10
-58

query I rowsort
SELECT - col2 * 74 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( ( + - 5 ) )
----

query I rowsort
SELECT ALL + 21 * - + col2 AS col0 FROM tab0 AS cor0
----
-2079
-210
-987

query I rowsort
SELECT 47 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 = col2
----

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

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL CAST ( + - 73 AS INTEGER ) FROM tab1
----
-73
-73
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT + COUNT( * ) DIV SUM( DISTINCT - 34 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-480
SELECT + COUNT ( * ) / SUM ( DISTINCT - 34 ) col0 FROM tab2
----
0

query I rowsort
SELECT - 95 * - + col2 * + + col2 FROM tab0
----
209855
931095
9500

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

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT ALL - 20 DIV 33 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - 20 / 33 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - - col1 ) * - col0 * + col0 * - col0 * - + col2 FROM tab0 AS cor0
----
-12848625
-138285630
-90354627

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT DISTINCT + - col1 DIV - + col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT + - col1 / - + col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-486
SELECT ALL 49, + col0 DIV - 35 AS col1 FROM tab0 AS cor0
----
49
-2
49
-2
49
0

skipif mysql # not compatible
query II rowsort label-486
SELECT ALL 49, + col0 / - 35 AS col1 FROM tab0 AS cor0
----
49
-2
49
-2
49
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT 71 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 49 + + - col0 IS NULL
----
74

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT 71 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 49 + + - col0 IS NULL
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-489
SELECT DISTINCT - COUNT( * ), 29 AS col2 FROM tab2 AS cor0
----
-3
29

skipif mysql # not compatible
query II rowsort label-489
SELECT DISTINCT - COUNT ( * ), 29 AS col2 FROM tab2 AS cor0
----
-3
29

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

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

query II rowsort
SELECT ALL + col2 + + col1, col2 AS col2 FROM tab0
----
100
99
128
47
31
10

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

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

query I rowsort
SELECT + 68 + - col0 AS col2 FROM tab1 cor0
----
-17
-23
17

query I rowsort
SELECT 85 + - + ( + col2 ) FROM tab2 AS cor0
----
27
45
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 - - 97 * - 86 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + + 73 * - 68 + + col1 * 40 FROM tab2 AS cor0
----
-1884
-2284
-2924

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

query II rowsort
SELECT - col1 * - col0 * + + col2 AS col2, col0 AS col2 FROM tab0 AS cor0
----
18270
87
57105
15
9603
97

query I rowsort
SELECT ALL ( + col2 ) * + col1 AS col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + - 40 AND - - 21
----

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

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

query I rowsort
SELECT ALL - 56 + - + ( + col0 ) AS col0 FROM tab0
----
-143
-153
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT - col2 DIV + col0 - - col1 AS col0 FROM tab0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-506
SELECT - col2 / + col0 - - col1 AS col0 FROM tab0
----
0
21
78

query II rowsort
SELECT ALL - col0 + - ( + 51 ) AS col2, - col1 FROM tab2 AS cor0
----
-115
-77
-126
-67
-97
-51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 81 ) * 22 col1 FROM tab1
----
-1782
-1782
-1782

query I rowsort
SELECT 45 + 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fffa05abe62cb539edc957636b354583

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT - 13 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 * + - col2 ) IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-513
SELECT - 13 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 * + - col2 ) IS NULL
----
-39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT ALL + + 87 DIV + - COUNT( * ) + + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL + + 87 / + - COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-23

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - SUM( + - 24 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-520
SELECT - SUM ( + - 24 ) FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL + COUNT( * ) * + 34 AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL + COUNT ( * ) * + 34 AS col0 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-522
SELECT ALL COUNT( ALL - + 75 ), - 92 + - - 56 AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0
-36

skipif mysql # not compatible
query II rowsort label-522
SELECT ALL COUNT ( ALL - + 75 ), - 92 + - - 56 AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0
-36

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 37 * - col0 ) IS NULL
----

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

query I rowsort
SELECT + col0 + 51 AS col0 FROM tab0 AS cor0
----
138
148
66

query I rowsort
SELECT - col2 * - - 99 + + col0 AS col0 FROM tab1 AS cor0
----
-5756
-6641
-9453

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * col1 * - 88 col1 FROM tab1 AS cor0
----
-169576
-18040
-50512

query I rowsort
SELECT 86 AS col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + 37 * + 17
----

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

query I rowsort
SELECT - col2 * + 55 - - 22 AS col0 FROM tab1 AS cor0
----
-3223
-3718
-5258

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

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

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

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

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

query I rowsort
SELECT + + col2 * - - col2 + 47 AS col2 FROM tab2 AS cor0 WHERE 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT + 96 * - SUM( ALL 85 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24480

skipif mysql # not compatible
query I rowsort label-537
SELECT + 96 * - SUM ( ALL 85 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24480

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-540
SELECT - 85 + + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) + + 76 FROM tab2
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-540
SELECT - 85 + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) + + 76 FROM tab2
----
-82
NULL

query I rowsort
SELECT col1 / + col1 + + col1 AS col0 FROM tab0 WHERE ( ( NOT NULL < - 89 ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + COUNT( * ) * COUNT( DISTINCT col0 ) col2 FROM tab1
----
9

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

query I rowsort
SELECT + col1 * - 82 AS col1 FROM tab2
----
-4182
-5494
-6314

onlyif mysql # aggregate syntax: 
query II rowsort label-546
SELECT COUNT( * ) col2, - 82 - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
3
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-546
SELECT COUNT ( * ) col2, - 82 - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
3
-91

query I rowsort
SELECT - + col1 * - - ( - col2 ) FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT 14 * - + 72 FROM tab1 AS cor0
----
-1008

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-551
SELECT ALL - ( - COUNT( * ) ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-551
SELECT ALL - ( - COUNT ( * ) ), COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT MAX( DISTINCT - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT MAX ( DISTINCT - + col1 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT + col1 DIV 97 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-553
SELECT + col1 / 97 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT DISTINCT COUNT( * ) + - - 36 * MIN( ALL col0 ) col2 FROM tab1
----
1839

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-555
SELECT DISTINCT COUNT ( * ) + - - 36 * MIN ( ALL col0 ) col2 FROM tab1
----
1839

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

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

query I rowsort
SELECT + col1 * - col2 FROM tab1 WHERE NOT 88 / + col1 + + 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 63 * - + col0 AS col2 FROM tab2 AS cor0
----
2898
4032
4725

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

query I rowsort
SELECT ( - ( + ( 36 ) ) ) * + 72 + - 76 * - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 960f54d8c05ad8b47dcf64908d1b3d8d

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT + + COUNT( DISTINCT - 8 ) + - - COUNT( * ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT + + COUNT ( DISTINCT - 8 ) + - - COUNT ( * ) FROM tab1 cor0
----
4

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 14 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - col2 * - 19 AS col0 FROM tab2
----
1102
437
760

query I rowsort
SELECT col2 - - 91 AS col1 FROM tab2
----
114
131
149

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT + COUNT( * ) FROM tab1 WHERE ( - + col2 + + col2 + + col2 ) NOT BETWEEN 17 * - col2 AND - 96 * + col1
----
3

skipif mysql # not compatible
query I rowsort label-568
SELECT + COUNT ( * ) FROM tab1 WHERE ( - + col2 + + col2 + + col2 ) NOT BETWEEN 17 * - col2 AND - 96 * + col1
----
3

query I rowsort
SELECT 40 - + 35 + col0 AS col0 FROM tab0
----
102
20
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT - col2 * - col0 - CAST( - + col0 AS SIGNED ) + + ( col2 ) * + + 87 FROM tab2
----
3105
6104
9471

skipif mysql # not compatible
query I rowsort label-570
SELECT - col2 * - col0 - CAST ( - + col0 AS INTEGER ) + + ( col2 ) * + + 87 FROM tab2
----
3105
6104
9471

query III rowsort
SELECT * FROM tab0 WHERE - 12 IS NULL
----

query II rowsort
SELECT 81 + + + col1, + 87 AS col2 FROM tab2
----
132
87
148
87
158
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL NOT IN ( 12 * - col1 + + ( + - col0 ), + col0 ) ) )
----

query I rowsort
SELECT ALL + col1 * + 17 AS col1 FROM tab0 AS cor0
----
1377
17
357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT + AVG ( 43 ) AS col1 FROM tab1 AS cor0 WHERE NOT 47 + + CAST( NULL AS SIGNED ) + - - ( - col1 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT + AVG ( 43 ) AS col1 FROM tab1 AS cor0 WHERE NOT 47 + + CAST ( NULL AS INTEGER ) + - - ( - col1 ) > NULL
----
NULL

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

query II rowsort
SELECT col1, - 75 * + col0 AS col0 FROM tab2 AS cor0
----
51
-3450
67
-5625
77
-4800

query I rowsort
SELECT DISTINCT + 77 FROM tab1 WHERE + 12 IS NULL
----

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + col1 = - - 34 AND NULL > NULL
----

query I rowsort
SELECT - col0 * - + 97 * + col1 * - col0 FROM tab1 AS cor0
----
-3504125
-3532158
-37753079

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NOT col1 / - col2 - - + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT 23 DIV - 22 col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-583
SELECT 23 / - 22 col1 FROM tab1
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-585
SELECT - 60 AS col2, COUNT( * ) * + 89 FROM tab2
----
-60
267

skipif mysql # not compatible
query II rowsort label-585
SELECT - 60 AS col2, COUNT ( * ) * + 89 FROM tab2
----
-60
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col2 FROM tab0
----
-225
-7569
-9409

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

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

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

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

query I rowsort
SELECT - 18 + - col2 AS col0 FROM tab0
----
-117
-28
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-591
SELECT + CAST( - col1 AS SIGNED ) DIV - col0 + - - 69 * col1 FROM tab2 cor0
----
3520
4623
5314

skipif mysql # not compatible
query I rowsort label-591
SELECT + CAST ( - col1 AS INTEGER ) / - col0 + - - 69 * col1 FROM tab2 cor0
----
3520
4623
5314

query I rowsort
SELECT 28 AS col0 FROM tab0 cor0
----
28
28
28

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT ALL 6 * - - COUNT( * ) AS col1, 22 FROM tab1
----
18
22

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL 6 * - - COUNT ( * ) AS col1, 22 FROM tab1
----
18
22

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL - COUNT( ALL + 20 ) + + 56 AS col2 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - COUNT ( ALL + 20 ) + + 56 AS col2 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT - - 40 + + col1 FROM tab0 AS cor0
----
121
41
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 99 > NULL
----

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

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

query I rowsort
SELECT DISTINCT + + col1 - + - 19 AS col2 FROM tab1 AS cor0
----
24
33
66

query I rowsort
SELECT col2 + + 97 AS col2 FROM tab2
----
120
137
155

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

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

query II rowsort
SELECT DISTINCT col1 AS col1, 28 + - 31 AS col0 FROM tab1
----
14
-3
47
-3
5
-3

query I rowsort
SELECT col2 * - 47 FROM tab2
----
-1081
-1880
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT MAX( + 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-605
SELECT MAX ( + 34 ) FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT - COUNT( * ) * + - 30 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - COUNT ( * ) * + - 30 FROM tab0
----
90

query I rowsort
SELECT col2 * - col2 + - + col1 + + 30 AS col0 FROM tab2 AS cor0
----
-1647
-3401
-550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT ALL 62, SUM( + col2 ) AS col0 FROM tab0
----
62
156

skipif mysql # not compatible
query II rowsort label-609
SELECT ALL 62, SUM ( + col2 ) AS col0 FROM tab0
----
62
156

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND + col0 / col2 )
----

query I rowsort
SELECT - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

query I rowsort
SELECT DISTINCT col0 + - + 57 AS col1 FROM tab1 AS cor0
----
-6
28
34

query II rowsort
SELECT ALL - col1 AS col1, col1 * - 30 FROM tab0 AS cor0
----
-1
-30
-21
-630
-81
-2430

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

query I rowsort
SELECT 47 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN + col1 AND + + 10 * + - col2 + + 28 - - - col0 - - col1
----
47
47
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - COUNT( * ) * + 70 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - COUNT ( * ) * + 70 FROM tab2
----
-210

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 NOT BETWEEN + 28 * - + 88 AND - + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 + + + 88 * + + col2 col2 FROM tab0
----
4118
862
8694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-622
SELECT - - CAST( NULL AS SIGNED ) + + + 57, - SUM( ALL - 78 ) AS col2 FROM tab2 AS cor0
----
NULL
234

skipif mysql # not compatible
query II rowsort label-622
SELECT - - CAST ( NULL AS INTEGER ) + + + 57, - SUM ( ALL - 78 ) AS col2 FROM tab2 AS cor0
----
NULL
234

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT + + 61 * - 83 + COUNT( * ) FROM tab1 AS cor0
----
-5060

skipif mysql # not compatible
query I rowsort label-623
SELECT + + 61 * - 83 + COUNT ( * ) FROM tab1 AS cor0
----
-5060

query I rowsort
SELECT - - col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT - col0 DIV - 85 + + 10 + col1 AS col0 FROM tab2
----
61
77
87

skipif mysql # not compatible
query I rowsort label-625
SELECT - col0 / - 85 + + 10 + col1 AS col0 FROM tab2
----
61
77
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col2 * col0 + - 72 * + col2 * col1 col2 FROM tab2
----
46
-83398
64
-219200
75
-275442

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64

query I rowsort
SELECT ALL 65 + + 48 FROM tab0 AS cor0
----
113
113
113

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-629
SELECT - COUNT ( * ) / - 35 col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT ALL - + COUNT( * ), + ( - 74 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0
-74

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL - + COUNT ( * ), + ( - 74 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + 44 - - 91 - - col2, - 53, - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + 44 - - 91 - - col2, - 53, - CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col2 + - col2 * + 18 * - 26 + 68 FROM tab1 AS cor0
----
27739
31960
45092

onlyif mysql # aggregate syntax: 
query II rowsort label-634
SELECT - COUNT( * ) AS col2, 25 * - + COUNT( * ) FROM tab1 AS cor0
----
-3
-75

skipif mysql # not compatible
query II rowsort label-634
SELECT - COUNT ( * ) AS col2, 25 * - + COUNT ( * ) FROM tab1 AS cor0
----
-3
-75

query II rowsort
SELECT col1 * + 42 AS col1, 96 + + + col1 FROM tab2
----
2142
147
2814
163
3234
173

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 - 31 - - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT + ( + COUNT( ALL - - 0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-637
SELECT + ( + COUNT ( ALL - - 0 ) ) FROM tab2
----
3

query II rowsort
SELECT ALL ( - 46 ) * - + 11 * col0 AS col2, - col1 AS col1 FROM tab1
----
25806
-14
43010
-5
46046
-47

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
15
87
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE 90 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT ALL col1 DIV - col0 - + - 86 FROM tab0 AS cor0
----
81
86
86

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL col1 / - col0 - + - 86 FROM tab0 AS cor0
----
81
86
86

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

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

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT 37 / - col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT 19 * + 34 * + COUNT( * ) col2 FROM tab0 AS cor0
----
1938

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-644
SELECT 19 * + 34 * + COUNT ( * ) col2 FROM tab0 AS cor0
----
1938

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col1 + + 9
----

query II rowsort
SELECT - 19 * col1 + + - col1 AS col2, 22 AS col2 FROM tab1 AS cor0
----
-100
22
-280
22
-940
22

query I rowsort
SELECT + 56 * + - col1 + col1 FROM tab2 AS cor0
----
-2805
-3685
-4235

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 * + + col2 NOT BETWEEN + + col0 AND 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT - COUNT( * ) + + + ( + - 5 ) AS col0 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-649
SELECT - COUNT ( * ) + + + ( + - 5 ) AS col0 FROM tab2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-650
SELECT ALL + col2 - col0 + - + col1 AS col1, + 58 AS col1, - + 61 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-650
SELECT ALL + col2 - col0 + - + col1 AS col1, + 58 AS col1, - + 61 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + 18 FROM tab2 cor0 WHERE col0 / + ( 69 ) IS NOT NULL
----
18
18
18

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

query I rowsort
SELECT ALL + + 11 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT 99 - + 74 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-655
SELECT - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL COUNT( * ) - COUNT( * ) * 51 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL COUNT ( * ) - COUNT ( * ) * 51 FROM tab0 AS cor0
----
-150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - COUNT( * ) + - MIN( DISTINCT + 4 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-661
SELECT - COUNT ( * ) + - MIN ( DISTINCT + 4 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT + + MAX( DISTINCT - col2 ) AS col0, + COUNT( + - col1 ) col0 FROM tab2 AS cor0
----
-23
3

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

query I rowsort
SELECT DISTINCT - - 92 * + col2 * 71 AS col1 FROM tab2 cor0
----
150236
261280
378856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 27 col2, + ( 97 ) * - + col1 * + 87 FROM tab0
----
-27
-177219
-27
-683559
-27
-8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT ALL - + COUNT( ( - 36 ) ) DIV - - 50 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - + COUNT ( ( - 36 ) ) / - - 50 FROM tab1 WHERE NULL <> NULL
----
0

query I rowsort
SELECT + 65 * + - col1 AS col0 FROM tab2
----
-3315
-4355
-5005

query I rowsort
SELECT + col1 * - - 58 FROM tab2
----
2958
3886
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-668
SELECT ALL - col2 * - ( + ( + 57 ) ) FROM tab2 WHERE NOT col2 BETWEEN + col1 * - + col0 / - - 69 * col1 - + 8 * + col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL - col2 * - ( + ( + 57 ) ) FROM tab2 WHERE NOT col2 BETWEEN + col1 * - + col0 / - - 69 * col1 - + 8 * + col2 AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - 33 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-33
23
-33
40
-33
58

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

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

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

query I rowsort
SELECT ALL - 81 * - 85 FROM tab2
----
6885
6885
6885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + 23 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL - SUM( - 63 ) FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - SUM ( - 63 ) FROM tab2 cor0
----
189

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-678
SELECT CAST( 51 AS SIGNED ) * COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-678
SELECT CAST ( 51 AS INTEGER ) * COUNT ( * ) FROM tab1
----
153

query I rowsort
SELECT - 2 - - 66 + + 18 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT - 59 - + 67 AS col0 FROM tab2 cor0
----
-126

query I rowsort
SELECT DISTINCT + 50 - - 10 FROM tab0 AS cor0
----
60

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

query I rowsort
SELECT ALL + 53 - col0 FROM tab0
----
-34
-44
38

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT ALL 78 DIV col0 * + + col2 + + - col0 + - + col1 * - col2 col2 FROM tab0
----
123
2
4027

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-684
SELECT ALL 78 / col0 * + + col2 + + - col0 + - + col1 * - col2 col2 FROM tab0
----
123
2
4027

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-685
SELECT ALL + SUM ( col1 ) col1 FROM tab1 AS cor0
----
66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT - - ( + - ( col0 ) ) DIV - + 36 AS col2 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-688
SELECT - - ( + - ( col0 ) ) / - + 36 AS col2 FROM tab0 AS cor0
----
0
2
2

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

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

query II rowsort
SELECT DISTINCT - + col1 AS col2, 88 + - + col2 FROM tab1 AS cor0
----
-14
-8
-47
20
-5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL - SUM( DISTINCT 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - SUM ( DISTINCT 52 ) FROM tab1
----
-52

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-693
SELECT DISTINCT col0 * + + col2 AS col2, 36 DIV + - col0 col1 FROM tab1
----
4896
0
5015
0
6188
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-693
SELECT DISTINCT col0 * + + col2 AS col2, 36 / + - col0 col1 FROM tab1
----
4896
0
5015
0
6188
0

query II rowsort
SELECT ALL - 48 * - - col0, + col0 AS col0 FROM tab1
----
-2448
51
-4080
85
-4368
91

query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 FROM tab1
----
-1344
-295
-3196

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

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

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

query I rowsort
SELECT - + col1 * + - 17 FROM tab2 cor0
----
1139
1309
867

query I rowsort
SELECT ALL - - ( - 40 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( 58 ) + col0 AS col2, 48 col0 FROM tab0 AS cor0
----
-43
48
29
48
39
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT + 8 * + MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-600

skipif mysql # not compatible
query I rowsort label-703
SELECT + 8 * + MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-600

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-705
SELECT DISTINCT + - CAST( - 27 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
-1377
-1809
-2079

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + - CAST ( - 27 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
-1377
-1809
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT + COUNT( + + col1 ) + + COUNT( * ) - 55 AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-706
SELECT + COUNT ( + + col1 ) + + COUNT ( * ) - 55 AS col1 FROM tab1 AS cor0
----
-49

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

query I rowsort
SELECT 75 + + + col0 * + 99 AS col0 FROM tab0 cor0
----
1560
8688
9678

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL MIN( col2 ) + + 55 * - 36 FROM tab1 AS cor0
----
-1921

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL MIN ( col2 ) + + 55 * - 36 FROM tab1 AS cor0
----
-1921

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

query I rowsort
SELECT + 46 + + col2 FROM tab0
----
145
56
93

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) col0 FROM tab0 WHERE + col1 >= + col2
----
-10
-47

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

query II rowsort
SELECT DISTINCT + 17, + col1 * - col1 + col2 AS col0 FROM tab0 WHERE - col0 <> - col0 * + col1 * - - 9
----
17
-431
17
-6514
17
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 27 col2 FROM tab0
----
126
37
74

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT 94 DIV - - col1 col2 FROM tab1
----
18
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-719
SELECT 94 / - - col1 col2 FROM tab1
----
18
2
6

query I rowsort
SELECT + + ( + 43 ) FROM tab1 AS cor0
----
43
43
43

query II rowsort
SELECT ALL - 41 + 89, - col0 AS col2 FROM tab1 AS cor0
----
48
-51
48
-85
48
-91

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

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

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

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

query I rowsort
SELECT ALL + - ( + col0 ) * 54 FROM tab1 AS cor0
----
-2754
-4590
-4914

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

query I rowsort
SELECT ALL + col2 * - 7 FROM tab1 WHERE + col2 IS NOT NULL
----
-413
-476
-672

query I rowsort
SELECT ALL 5 * - col0 AS col0 FROM tab1
----
-255
-425
-455

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

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

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

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

query I rowsort
SELECT ALL - 15 * - col1 * - col1 AS col2 FROM tab0
----
-15
-6615
-98415

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

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

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

query II rowsort
SELECT 24 * - + 82 + - 20 AS col0, - 5 AS col2 FROM tab0
----
-1988
-5
-1988
-5
-1988
-5

query I rowsort
SELECT DISTINCT + - ( - col2 ) - + col1 * + 95 FROM tab0 AS cor0
----
-1985
-7648
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - COUNT( * ) * - + 19 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-738
SELECT - COUNT ( * ) * - + 19 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT MAX( DISTINCT 42 ) * - 62 - + COUNT( col1 ) FROM tab1
----
-2607

skipif mysql # not compatible
query I rowsort label-739
SELECT MAX ( DISTINCT 42 ) * - 62 - + COUNT ( col1 ) FROM tab1
----
-2607

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL OR NULL <= NULL
----

query I rowsort
SELECT col1 - - 16 - col1 FROM tab0
----
16
16
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT + MAX( DISTINCT 20 ) * - + 8 AS col0 FROM tab2 cor0 WHERE NOT NULL > ( + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT + MAX ( DISTINCT 20 ) * - + 8 AS col0 FROM tab2 cor0 WHERE NOT NULL > ( + 53 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 * col1 col2 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT + - 20 DIV - col1 * - + 49 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-745
SELECT + - 20 / - col1 * - + 49 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT ALL 51 * - ( + COUNT( * ) ) AS col2 FROM tab0 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL 51 * - ( + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0 AS col2, 16 * - col0 col1 FROM tab0 cor0
----
-705
-240
-870
-1392
-9603
-1552

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL - MIN( DISTINCT col1 ) * - MAX( - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - MIN ( DISTINCT col1 ) * - MAX ( - col0 ) FROM tab0
----
-15

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

query I rowsort
SELECT + 64 FROM tab2 WHERE NOT - ( - col0 ) <= ( - 58 )
----
64
64
64

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

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

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

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

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

query I rowsort
SELECT ALL - ( 83 ) AS col0 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT + + col2 DIV 67 + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-757
SELECT + + col2 / 67 + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 36 / + col0 >= NULL
----

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT DISTINCT - SUM( + col2 ) + 48 AS col1 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - SUM ( + col2 ) + 48 AS col1 FROM tab0 AS cor0
----
-108

query I rowsort
SELECT - ( + ( + - col2 ) ) + - + 31 + 88 + - col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT COUNT( * ) + + - ( + + 60 ) AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-762
SELECT COUNT ( * ) + + - ( + + 60 ) AS col2 FROM tab1 AS cor0
----
-57

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

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

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

query I rowsort
SELECT DISTINCT col1 + col1 + col2 AS col2 FROM tab2 AS cor0
----
125
192
194

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

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

skipif mysql # not compatible
query I rowsort label-767
SELECT + - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-768
SELECT DISTINCT 13 FROM tab1 WHERE NOT - - col0 * - - CAST( - col2 AS DECIMAL ) IS NULL
----
13

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT 13 FROM tab1 WHERE NOT - - col0 * - - CAST ( - col2 AS REAL ) IS NULL
----
13

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 94 FROM tab0 WHERE NULL IS NULL
----
94

query I rowsort
SELECT DISTINCT + 92 * 27 FROM tab2 AS cor0
----
2484

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-779
SELECT DISTINCT - 72, + 37 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-779
SELECT DISTINCT - 72, + 37 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL 25 / - + 7 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-783
SELECT DISTINCT MIN( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT + 94 * - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + + COUNT( * ) FROM tab0 WHERE col2 = - col1
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE col2 = - col1
----
0

query I rowsort
SELECT ALL + 19 * 1 AS col0 FROM tab2
----
19
19
19

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE 11 BETWEEN - + col1 AND + col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + + SUM( DISTINCT col0 ) col1 FROM tab0 WHERE - 47 * col2 + - - ( + 15 ) IN ( + 31, col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-788
SELECT + + SUM ( DISTINCT col0 ) col1 FROM tab0 WHERE - 47 * col2 + - - ( + 15 ) IN ( + 31, col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT ALL + ( - 14 ) DIV - col0 * + 54 - + col1 + + 38 AS col0 FROM tab2 cor0
----
-13
-29
-39

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + ( - 14 ) / - col0 * + 54 - + col1 + + 38 AS col0 FROM tab2 cor0
----
-13
-29
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT DISTINCT - - col2 DIV - + col1 + - + 2 AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT - - col2 / - + col1 + - + 2 AS col2 FROM tab2 AS cor0
----
-2

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

query I rowsort
SELECT - ( - 24 ) FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-793
SELECT col2 / 15 + 72 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT col2 / 15 + 72 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + - ( + + ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-795
SELECT ALL CAST( NULL AS DECIMAL ) - ( - ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL CAST ( NULL AS REAL ) - ( - ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT ALL - col1 + + 49 DIV - col1 AS col2 FROM tab0 AS cor0
----
-23
-50
-81

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL - col1 + + 49 / - col1 AS col2 FROM tab0 AS cor0
----
-23
-50
-81

query I rowsort
SELECT DISTINCT - - 7 + - col2 + col0 + - - 65 AS col2 FROM tab2 AS cor0
----
89
95
96

onlyif mysql # DIV for integer division: 
query II rowsort label-798
SELECT ALL col0 DIV + - col1 - col0 AS col0, col0 + + - col1 AS col2 FROM tab1 cor0
----
-102
80
-54
37
-92
44

skipif mysql # not compatible
query II rowsort label-798
SELECT ALL col0 / + - col1 - col0 AS col0, col0 + + - col1 AS col2 FROM tab1 cor0
----
-102
80
-54
37
-92
44

query I rowsort
SELECT - col0 * - col2 - 8 * + 41 AS col0 FROM tab0 AS cor0
----
377
542
9275

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT col2 DIV col2 * + col0 - - - col2 * col0 + + col0 col1 FROM tab2 AS cor0
----
-2432
-4200
-966

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-800
SELECT col2 / col2 * + col0 - - - col2 * col0 + + col0 col1 FROM tab2 AS cor0
----
-2432
-4200
-966

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

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE - - 69 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT DISTINCT + MIN( + 95 ) AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT + MIN ( + 95 ) AS col0 FROM tab1
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-804
SELECT + col1 DIV 27 col1, - col1 FROM tab2
----
1
-51
2
-67
2
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-804
SELECT + col1 / 27 col1, - col1 FROM tab2
----
1
-51
2
-67
2
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-805
SELECT col1, 21 DIV col1 FROM tab0
----
1
21
21
1
81
0

skipif mysql # not compatible
query II rowsort label-805
SELECT col1, 21 / col1 FROM tab0
----
1
21
21
1
81
0

query I rowsort
SELECT - + ( 59 ) * - col2 - col2 AS col0 FROM tab1 WHERE NOT col2 + + col0 + + col0 * + col2 IS NULL
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL ( - MAX( + + 17 ) ) * + 71 FROM tab0
----
-1207

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL ( - MAX ( + + 17 ) ) * + 71 FROM tab0
----
-1207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 * - col1 col0 FROM tab2
----
-3570
-4690
-5390

query I rowsort
SELECT ALL + col1 * - - col0 FROM tab1 AS cor0
----
425
4277
714

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

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT + 30, - 77 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
30
-80

skipif mysql # not compatible
query II rowsort label-811
SELECT + 30, - 77 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
30
-80

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

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

query I rowsort
SELECT DISTINCT + 76 * - col0 * - ( - - col0 ) AS col1 FROM tab0
----
17100
575244
715084

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT + COUNT( DISTINCT - - col1 ) * + 35 AS col0 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-818
SELECT + COUNT ( DISTINCT - - col1 ) * + 35 AS col0 FROM tab2 AS cor0
----
105

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT DISTINCT MIN( DISTINCT - + col2 ) * - 48 * + COUNT( * ) FROM tab0 AS cor0
----
14256

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT MIN ( DISTINCT - + col2 ) * - 48 * + COUNT ( * ) FROM tab0 AS cor0
----
14256

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT 96 * + + 90 * - 61 * + - COUNT( * ) col2 FROM tab0
----
1581120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-824
SELECT 96 * + + 90 * - 61 * + - COUNT ( * ) col2 FROM tab0
----
1581120

query II rowsort
SELECT col0 * - col1 + - - col1 AS col0, 34 AS col2 FROM tab0
----
-1134
34
-1806
34
-96
34

query I rowsort
SELECT DISTINCT ( + col0 ) + - col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT - 84 + + col1 FROM tab2 WHERE - - 66 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + + + col0 col1 FROM tab2
----
55
73
84

query I rowsort
SELECT - col2 + - - col0 - + ( + - 4 ) FROM tab2 AS cor0
----
21
27
28

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT DISTINCT - MAX( ALL - - 74 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - MAX ( ALL - - 74 ) FROM tab2 AS cor0
----
-74

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

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

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

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

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

query I rowsort
SELECT - col2 * col2 + col0 AS col2 FROM tab2
----
-1536
-3289
-483

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 6
----

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

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - 79 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + + col2 > NULL
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + col1 col0 FROM tab1
----
41
50
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + SUM( DISTINCT + col2 ) + + ( 23 - 73 ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-847
SELECT + SUM ( DISTINCT + col2 ) + + ( 23 - 73 ) AS col0 FROM tab2
----
71

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT DISTINCT - 28 + - COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT - 28 + - COUNT ( * ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL - AVG ( 53 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT SUM( + 28 ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT SUM ( + 28 ) AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL + AVG ( DISTINCT - col0 ) * MIN( DISTINCT col0 ) + + 48 FROM tab1 WHERE NOT ( - col2 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + AVG ( DISTINCT - col0 ) * MIN ( DISTINCT col0 ) + + 48 FROM tab1 WHERE NOT ( - col2 ) = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT + 33 - COUNT( * ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-855
SELECT + 33 - COUNT ( * ) AS col1 FROM tab2
----
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL SUM( + ( col0 ) ) col2 FROM tab1
----
227

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

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

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

query I rowsort
SELECT DISTINCT col2 * 52 - 65 FROM tab2
----
1131
2015
2951

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - col2 ) <= ( 43 / col0 )
----

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

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

query I rowsort
SELECT 7 * - col2 AS col0 FROM tab2 AS cor0
----
-161
-280
-406

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

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

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

query I rowsort
SELECT 55 * 92 FROM tab0 AS cor0
----
5060
5060
5060

query I rowsort
SELECT + 55 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - 32 * - 56 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 612cb61eb795f2c140855fde96962f23

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT COUNT( ALL col2 ) + + 40 AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT COUNT ( ALL col2 ) + + 40 AS col0 FROM tab0
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE + 80 * - col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-872
SELECT CAST( + SUM( - 10 ) AS SIGNED ) DIV 71 FROM tab2 AS cor0 CROSS JOIN tab2
----
-1

skipif mysql # not compatible
query I rowsort label-872
SELECT CAST ( + SUM ( - 10 ) AS INTEGER ) / 71 FROM tab2 AS cor0 CROSS JOIN tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT - 26 * CAST( - ( col1 ) AS SIGNED ) + col2 FROM tab0 AS cor0
----
125
2153
556

skipif mysql # not compatible
query I rowsort label-873
SELECT - 26 * CAST ( - ( col1 ) AS INTEGER ) + col2 FROM tab0 AS cor0
----
125
2153
556

onlyif mysql # DIV for integer division: 
query I rowsort label-874
SELECT + 29 DIV col0 + col2 AS col0 FROM tab0 AS cor0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-874
SELECT + 29 / col0 + col2 AS col0 FROM tab0 AS cor0
----
10
48
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-875
SELECT DISTINCT COUNT ( - col0 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - ( col2 ) )
----
0

query I rowsort
SELECT ALL + 29 * - col0 FROM tab0 AS cor0
----
-2523
-2813
-435

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + ( + 49 ) * col2 IS NULL
----
23
40
58

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( col2 ) <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT - COUNT( * ) * + - MAX( 73 ) AS col2 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-883
SELECT - COUNT ( * ) * + - MAX ( 73 ) AS col2 FROM tab2
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT ALL col2 DIV - - col2 + col2 * - col1 AS col2 FROM tab2
----
-1172
-3079
-3885

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL col2 / - - col2 + col2 * - col1 AS col2 FROM tab2
----
-1172
-3079
-3885

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-886
SELECT DISTINCT 19 * - - COUNT( ALL + CAST( col2 AS SIGNED ) ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT 19 * - - COUNT ( ALL + CAST ( col2 AS INTEGER ) ) FROM tab0
----
57

query I rowsort
SELECT DISTINCT ( - + col0 ) + - ( col1 - - col2 ) FROM tab2
----
-120
-181
-200

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-889
SELECT - 7 / COUNT( DISTINCT col0 ) / + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT - 7 / COUNT ( DISTINCT col0 ) / + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 5 + - col2 * + col1 FROM tab2
----
-1168
-3075
-3881

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

query I rowsort
SELECT + - col1 * + col2 - ( 94 ) + col2 AS col2 FROM tab0 AS cor0
----
-294
-3854
-94

query I rowsort
SELECT ALL - 7 * + col2 * - ( 16 ) AS col2 FROM tab1
----
10752
6608
7616

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT ( 87 ) + + 16 + + 32 * + SUM( - col2 ) AS col2 FROM tab0
----
-4889

skipif mysql # not compatible
query I rowsort label-895
SELECT ( 87 ) + + 16 + + 32 * + SUM ( - col2 ) AS col2 FROM tab0
----
-4889

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - 4 * + ( - SUM( 46 ) ) FROM tab0
----
552

skipif mysql # not compatible
query I rowsort label-896
SELECT - 4 * + ( - SUM ( 46 ) ) FROM tab0
----
552

query I rowsort
SELECT ALL col0 / ( + col1 ) AS col1 FROM tab2 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - - 76 FROM tab2 cor0
----
76

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

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

query I rowsort
SELECT ALL - 1 * 61 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - + CAST( - col2 AS SIGNED ) 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-903
SELECT - + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab1 AS cor0 WHERE - col0 NOT IN ( 69 )
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT CAST( + MIN( + 6 ) AS SIGNED ) col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-905
SELECT CAST ( + MIN ( + 6 ) AS INTEGER ) col2 FROM tab0 cor0
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT + MIN( ALL + col0 ) AS col1 FROM tab1 WHERE NOT + + col0 * - col2 - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT + MIN ( ALL + col0 ) AS col1 FROM tab1 WHERE NOT + + col0 * - col2 - - col0 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL + + col1 * - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT + COUNT( 12 ) + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + col0 + col1 + - 90 * col0 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT + COUNT ( 12 ) + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + col0 + col1 + - 90 * col0 ) <> NULL
----
0

query I rowsort
SELECT - 27 * col0 * - col2 FROM tab2 AS cor0
----
117450
28566
69120

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-913
SELECT ALL + COUNT( * ) AS col2, 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
5

skipif mysql # not compatible
query II rowsort label-913
SELECT ALL + COUNT ( * ) AS col2, 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT + CAST( NULL AS SIGNED ) AS col1, - 46 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-46
NULL
-46

skipif mysql # not compatible
query II rowsort label-915
SELECT + CAST ( NULL AS INTEGER ) AS col1, - 46 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-46
NULL
-46

query I rowsort
SELECT DISTINCT + col0 + - col0 + + + col1 AS col2 FROM tab2 cor0
----
51
67
77

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

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

query I rowsort
SELECT - 52 * + col2 * + col2 FROM tab1 AS cor0
----
-181012
-240448
-479232

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT - col0 DIV + col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-919
SELECT - col0 / + col0 FROM tab2 cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT - - 74 * + + ( - col1 ) * + - 70 AS col2 FROM tab2 AS cor0
----
264180
347060
398860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( + 81 ) NOT IN ( 75 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( + 81 ) NOT IN ( 75 )
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col2 + + 57 FROM tab2
----
126
161
190

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) + 24 * + MAX( DISTINCT - 91 ) AS col1 FROM tab0
----
-2184

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) + 24 * + MAX ( DISTINCT - 91 ) AS col1 FROM tab0
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT - - SUM( + col1 ) AS col0 FROM tab2 WHERE - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT - - SUM ( + col1 ) AS col0 FROM tab2 WHERE - - col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - 69 + + col1 FROM tab2
----
-18
-2
8

query I rowsort
SELECT ALL 72 AS col2 FROM tab1 WHERE NULL < + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT ALL - COUNT( - - col2 ), 14 AS col0 FROM tab2
----
-3
14

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL - COUNT ( - - col2 ), 14 AS col0 FROM tab2
----
-3
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 4 * 60 FROM tab1 AS cor0
----
14
240
47
240
5
240

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT COUNT( - 65 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-930
SELECT COUNT ( - 65 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

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

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

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

query I rowsort
SELECT - - 83 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

query I rowsort
SELECT 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - 73 IS NULL AND NOT NULL IN ( - ( + ( 39 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - - col0 col2 FROM tab0
----
187
2224
9898

query I rowsort
SELECT + ( + - col1 ) * col1 * + 78 FROM tab2 AS cor0
----
-202878
-350142
-462462

query I rowsort
SELECT - - col0 * col0 * + 60 * + + 95 AS col1 FROM tab1 AS cor0
----
14825700
41182500
47201700

query II rowsort
SELECT ALL - + ( + + col2 ) AS col1, + 28 * + - 28 AS col2 FROM tab1 AS cor0
----
-59
-784
-68
-784
-96
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT ALL + COUNT( * ) * 49 DIV MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL + COUNT ( * ) * 49 / MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT DISTINCT col1 DIV + 84 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT col1 / + 84 FROM tab2 AS cor0
----
0

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

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

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

query I rowsort
SELECT - 21 * - 7 FROM tab0
----
147
147
147

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - 6 AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - 6 AS col1 FROM tab1
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col2 * + 89 col1 FROM tab1
----
51
8544
85
5251
91
6052

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + col0 * + + col0 NOT BETWEEN ( - col1 ) AND + col0 - 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + col0 col2 FROM tab0 cor0
----
1335
7743
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT 96 * - - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-950
SELECT 96 * - - COUNT ( * ) FROM tab1 AS cor0
----
288

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( - col2 ) ) + 50 > - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT 50 + + COUNT( * ) * MAX( + 42 ) AS col0 FROM tab2 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT 50 + + COUNT ( * ) * MAX ( + 42 ) AS col0 FROM tab2 AS cor0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - + 92 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 >= + col1
----
-92

skipif mysql # not compatible
query I rowsort label-953
SELECT - + 92 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 >= + col1
----
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( - 71 * - - 42 )
----

query I rowsort
SELECT ALL ( + + ( - + col1 ) ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 2 - col2 AS col0 FROM tab1 AS cor0
----
-57
-66
-94

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

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

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

query I rowsort
SELECT col2 * col0 * - col1 - + 44 - + 53 + 50 * - col1 AS col1 FROM tab1
----
-25422
-293283
-69341

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT - MAX( - - 53 ) * - 51 - + COUNT( * ) - 99 * COUNT( - col2 ) FROM tab2
----
2403

skipif mysql # not compatible
query I rowsort label-960
SELECT - MAX ( - - 53 ) * - 51 - + COUNT ( * ) - 99 * COUNT ( - col2 ) FROM tab2
----
2403

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

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

query I rowsort
SELECT ALL + col0 * - + col0 + - col1 FROM tab0 cor0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL MAX( + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL MAX ( + col1 ) AS col2 FROM tab2
----
77

query II rowsort
SELECT + + col2 AS col2, ( col0 ) * - col2 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

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

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + COUNT ( * ) / + 81 FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL MAX ( 22 ) FROM tab2 AS cor0
----
22

query II rowsort
SELECT ALL - col1 + col0 AS col0, + col1 + col1 AS col1 FROM tab0 AS cor0 WHERE + col1 IN ( + 91 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - ( - COUNT( * ) ) * MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-968
SELECT - ( - COUNT ( * ) ) * MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-30

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

query I rowsort
SELECT + col1 * - + col1 * col1 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
10625
139944
9447893

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 - - 62 + + - 58 IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT - + col0 - - ( + + col0 ), 71 AS col2 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + 94 FROM tab1 AS cor0 WHERE NOT 93 >= ( NULL )
----

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

query I rowsort
SELECT - 73 * - col0 AS col1 FROM tab2 AS cor0
----
3358
4672
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT - 77 * + MAX( + 11 ) FROM tab1 AS cor0
----
-847

skipif mysql # not compatible
query I rowsort label-978
SELECT - 77 * + MAX ( + 11 ) FROM tab1 AS cor0
----
-847

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - 60 > + - col0
----
-59
-68

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - - 47 < 44
----

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

skipif mysql # not compatible
query I rowsort label-981
SELECT - + AVG ( DISTINCT - 2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT + ( + - 3 ) + + col2 + col0 AS col2 FROM tab1 cor0
----
141
144
156

query I rowsort
SELECT ALL - col2 * - ( + - col0 ) - + + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-767
-967
-9799

query I rowsort
SELECT DISTINCT 11 * + - col1 + - col0 * + - col2 AS col1 FROM tab0 AS cor0
----
-186
639
9592

query I rowsort
SELECT + ( - + 97 ) * ( - - ( + col2 ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-5782
-6664
-9408

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - 59 ) + AVG ( ALL + - ( - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-989
SELECT ALL + + col1 AS col2, - col0 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-989
SELECT ALL + + col1 AS col2, - col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( - col1 ) / + - col1 IN ( - col1, 34 - col1 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 WHERE + - 67 > - col0
----
67

query I rowsort
SELECT col0 * + 66 FROM tab1
----
3366
5610
6006

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

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

query II rowsort
SELECT ALL col0 + - col2 + col1 * - + 47, - col0 * col2 AS col1 FROM tab1
----
-209
-5015
-2186
-6188
-703
-4896

query II rowsort
SELECT col0 * - col1, + col0 + 21 AS col2 FROM tab1
----
-425
106
-4277
112
-714
72

query I rowsort
SELECT ALL + col2 + - - col2 * - 65 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL ( - COUNT( * ) ) FROM tab0 cor0 WHERE ( col1 + col1 ) BETWEEN + 37 + + col2 AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL ( - COUNT ( * ) ) FROM tab0 cor0 WHERE ( col1 + col1 ) BETWEEN + 37 + + col2 AND ( - col2 )
----
0

query I rowsort
SELECT ALL + 80 * - 3 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0610af4582ef9667f54c9da2a68959ef

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

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

query I rowsort
SELECT ALL col0 * + col2 * - + 86 FROM tab1
----
-421056
-431290
-532168

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - - MIN( ALL + 99 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
99

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - - MIN ( ALL + 99 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT ( + 89 ) * + 54 * + - ( + col0 ) DIV - col0 FROM tab1 cor0
----
4806
4806
4806

skipif mysql # not compatible
query I rowsort label-1003
SELECT ( + 89 ) * + 54 * + - ( + col0 ) / - col0 FROM tab1 cor0
----
4806
4806
4806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col1 ) * - col1 col1, - col2 - - - 15 FROM tab1 AS cor0
----
-196
-111
-2209
-83
-25
-74

query I rowsort
SELECT + 10 * - col1 * - - col2 AS col0 FROM tab1 AS cor0
----
-13440
-2950
-31960

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT COUNT( * ) AS col0, COUNT( * ) + MIN( col2 ) AS col0 FROM tab1
----
3
62

skipif mysql # not compatible
query II rowsort label-1011
SELECT COUNT ( * ) AS col0, COUNT ( * ) + MIN ( col2 ) AS col0 FROM tab1
----
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT COUNT( + - col1 ) AS col1 FROM tab2 WHERE NULL > 64
----
0

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT COUNT ( + - col1 ) AS col1 FROM tab2 WHERE NULL > 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT MIN( + ( - 71 ) ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-1013
SELECT MIN ( + ( - 71 ) ) FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT + - 61 * 43 * - COUNT( * ) + 38 + - - 42 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
80

skipif mysql # not compatible
query I rowsort label-1014
SELECT + - 61 * 43 * - COUNT ( * ) + 38 + - - 42 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 / 6 + - col2 col2 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 < + 56
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 WHERE NOT - 54 IS NULL
----
-7

query I rowsort
SELECT DISTINCT - 66 * col2 + col0 + + 6 * + - col2 FROM tab0 AS cor0
----
-3369
-633
-7031

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT DISTINCT + SUM( - col0 ) * - COUNT( * ) AS col2 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT + SUM ( - col0 ) * - COUNT ( * ) AS col2 FROM tab0
----
597

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT 93 + - ( - - MAX( DISTINCT col1 ) ) * + COUNT( * ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-1023
SELECT 93 + - ( - - MAX ( DISTINCT col1 ) ) * + COUNT ( * ) AS col1 FROM tab1
----
-48

query I rowsort
SELECT ALL + 42 * col1 * + col2 AS col2 FROM tab2
----
129360
163212
49266

query I rowsort
SELECT 61 FROM tab1 WHERE NULL <= 47 + ( + col0 ) + - + ( + col2 ) - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14 col2, + 47 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 9fd51352004b6389075111e6a1bc042f

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + COUNT( * ) * + - COUNT( * ) * - 39 + + MAX( DISTINCT col2 ) AS col0 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
447

skipif mysql # not compatible
query I rowsort label-1027
SELECT + COUNT ( * ) * + - COUNT ( * ) * - 39 + + MAX ( DISTINCT col2 ) AS col0 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
447

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT ALL + COUNT( * ), - COUNT( * ) col1 FROM tab0 WHERE + ( col2 ) IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1028
SELECT ALL + COUNT ( * ), - COUNT ( * ) col1 FROM tab0 WHERE + ( col2 ) IS NULL
----
0
0

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

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

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

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

query I rowsort
SELECT ALL + 1 - - + col0 * + col1 * - 25 FROM tab1 AS cor0
----
-10624
-106924
-17849

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT - COUNT( * ) FROM tab0, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - COUNT ( * ) FROM tab0, tab0 cor0
----
-9

query I rowsort
SELECT 8 - 66 FROM tab1
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL ( MIN( - col0 ) ) - - - 28 FROM tab2
----
-103

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL ( MIN ( - col0 ) ) - - - 28 FROM tab2
----
-103

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

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

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

query I rowsort
SELECT 11 * - - col0 - + ( col2 ) FROM tab0
----
118
947
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL 67 * - AVG ( col0 ) FROM tab0 WHERE NOT CAST( - 39 AS SIGNED ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL 67 * - AVG ( col0 ) FROM tab0 WHERE NOT CAST ( - 39 AS INTEGER ) NOT BETWEEN NULL AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT - COUNT ( * ) / - 75 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1043
SELECT ALL - 49 AS col2, MIN( + - col2 ) FROM tab0 AS cor0
----
-49
-99

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL - 49 AS col2, MIN ( + - col2 ) FROM tab0 AS cor0
----
-49
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT DISTINCT CAST( 47 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT CAST ( 47 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1048
SELECT + col1 * col1 * - CAST( NULL AS SIGNED ) * + 82, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1048
SELECT + col1 * col1 * - CAST ( NULL AS INTEGER ) * + 82, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1049
SELECT DISTINCT - SUM( ALL - + CAST( NULL AS DECIMAL ) ) * - 24 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT - SUM ( ALL - + CAST ( NULL AS REAL ) ) * - 24 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT MAX( col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1050
SELECT MAX ( col2 ) col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT 10 FROM tab0 WHERE 52 BETWEEN col2 * - 36 AND col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1052
SELECT ALL 9 * + + MAX( col2 ) AS col1, CAST( NULL AS DECIMAL ) FROM tab0
----
891
NULL

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL 9 * + + MAX ( col2 ) AS col1, CAST ( NULL AS REAL ) FROM tab0
----
891
NULL

query I rowsort
SELECT ALL col0 + 22 FROM tab1 AS cor0
----
107
113
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT + + MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + + MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
51

query II rowsort
SELECT ALL + + col2, col0 + col0 FROM tab0 AS cor0 WHERE 29 / - + col1 NOT IN ( col1, col2 )
----
10
174
47
30
99
194

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

query I rowsort
SELECT - 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 10 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - col0 - - - col2 > + + 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT - COUNT( * ) + - + MIN( + col1 ) AS col0 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1059
SELECT - COUNT ( * ) + - + MIN ( + col1 ) AS col0 FROM tab0 cor0
----
-4

query I rowsort
SELECT - 44 + 21 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - col1 * - ( - 20 ) - - - ( + col1 ) FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT - - 16 DIV - - 81 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - - 16 / - - 81 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - 32 FROM tab1 WHERE NOT col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - col1 + + - 82 IS NULL
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - + 44 ) AS col0, - 4 col0 FROM tab0
----
-44
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT 18 DIV col1 FROM tab0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-1068
SELECT 18 / col1 FROM tab0
----
0
0
18

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1070
SELECT MAX ( ALL + ( 85 ) ) col0 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL + 32 + + col2 FROM tab0 AS cor0 WHERE ( NOT - 53 IS NULL )
----
131
42
79

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1072
SELECT ALL + SUM ( ALL + CAST ( NULL AS INTEGER ) ) / - 95 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 88 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1075
SELECT CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) AS col0, - COUNT( - 96 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
81
-9

skipif mysql # not compatible
query II rowsort label-1075
SELECT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col0, - COUNT ( - 96 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
81
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL + + MIN( - 82 ) FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL + + MIN ( - 82 ) FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----
NULL

query I rowsort
SELECT ALL - + col1 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT 87 = 3 + col2 + ( - col2 )
----
37
44
80

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

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - + col2 * + 35 FROM tab0 cor0
----
-1645
-3465
-350

query II rowsort
SELECT ( 39 ), col2 AS col2 FROM tab0
----
39
10
39
47
39
99

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 47 * - + col1 + + col0 - + - col0 * - - col1 + - 23 )
----

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT + MIN ( ( + col0 ) ) FROM tab0
----
15

query I rowsort
SELECT ALL col1 * + col1 + 96 * ( + col2 ) AS col2 FROM tab0
----
11073
1401
9505

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

query I rowsort
SELECT DISTINCT col1 + - + ( - 31 ) FROM tab1 AS cor0
----
36
45
78

query I rowsort
SELECT DISTINCT col2 + - + col0 * + col2 + col2 FROM tab2 AS cor0
----
-1012
-2480
-4234

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT DISTINCT + col2 - col1 + - CAST( - - col2 AS SIGNED ) * + + col0 AS col0 FROM tab1 AS cor0
----
-4814
-4961
-6167

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT + col2 - col1 + - CAST ( - - col2 AS INTEGER ) * + + col0 AS col0 FROM tab1 AS cor0
----
-4814
-4961
-6167

query I rowsort
SELECT ALL - 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query II rowsort
SELECT - col0 AS col2, col0 FROM tab0 WHERE NULL IS NULL
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL col0 + - 78 AS col0 FROM tab1
----
-27
13
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT + + 50 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT + + 50 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 35 + + - col1 FROM tab0 AS cor0
----
-46
14
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 23 + - col0 col2 FROM tab1 AS cor0
----
-108
-114
-74

query I rowsort
SELECT DISTINCT - 46 - - col1 FROM tab1 AS cor0
----
-32
-41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NULL IN ( - col2 + 0, - col1 + + + 24 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NULL IN ( - col2 + 0, - col1 + + + 24 + - col2 )
----
0

query I rowsort
SELECT ALL + 76 + - col2 AS col2 FROM tab1 AS cor0
----
-20
17
8

query I rowsort
SELECT ALL + 81 * - - col2 - - + col1 * - col2 FROM tab0 AS cor0
----
0
600
7920

query I rowsort
SELECT DISTINCT + - 23 * col1 - + - col0 - - + col2 FROM tab2 AS cor0
----
-1104
-1408
-1667

query I rowsort
SELECT ALL 32 * - col2 AS col2 FROM tab0 AS cor0
----
-1504
-3168
-320

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1104
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) <> col2 - + col1
----

skipif mysql # not compatible
query III rowsort label-1104
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) <> col2 - + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT ALL 26 * 73 DIV + col1 FROM tab1
----
135
379
40

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL 26 * 73 / + col1 FROM tab1
----
135
379
40

query II rowsort
SELECT DISTINCT + 5, 31 + col2 AS col2 FROM tab0
----
5
130
5
41
5
78

query I rowsort
SELECT - 92 * - col0 AS col2 FROM tab2
----
4232
5888
6900

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

query I rowsort
SELECT ALL col0 * - 16 AS col0 FROM tab1
----
-1360
-1456
-816

query I rowsort
SELECT ALL - col2 * - 2 AS col2 FROM tab2 AS cor0
----
116
46
80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT - SUM( ALL - - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT - SUM ( ALL - - col0 ) FROM tab2
----
-185

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

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

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

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

query I rowsort
SELECT + - col2 * - 32 FROM tab0 AS cor0
----
1504
3168
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col0 col0 FROM tab0 cor0
----
-705
-870
-9603

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - 59 / + - 45 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1121
SELECT DISTINCT + 96 AS col2, 99 * + COUNT( * ) + - 57 + + - MAX( 24 ) FROM tab0
----
96
216

skipif mysql # not compatible
query II rowsort label-1121
SELECT DISTINCT + 96 AS col2, 99 * + COUNT ( * ) + - 57 + + - MAX ( 24 ) FROM tab0
----
96
216

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

skipif mysql # not compatible
query II rowsort label-1122
SELECT DISTINCT - col0, + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

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

query I rowsort
SELECT ALL - 99 + - + col2 - - + 47 AS col2 FROM tab0
----
-151
-62
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 + - + col0 * - + 95 col1 FROM tab2
----
4386
6096
7141

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1127
SELECT * FROM tab2 AS cor0 WHERE + CAST( - - 55 AS SIGNED ) = - + 22
----

skipif mysql # not compatible
query III rowsort label-1127
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - - 55 AS INTEGER ) = - + 22
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * + col0 + 60, 25 * - col0 + - + col1 + - col2 * 79 )
----

query I rowsort
SELECT DISTINCT + - col1 * col1 - + col2 + - + col1 AS col0 FROM tab0 AS cor0
----
-101
-472
-6689

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE 34 = ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> + - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1136
SELECT ( - 89 ) + + COUNT( * ) DIV MAX( + - col0 ) AS col1 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1136
SELECT ( - 89 ) + + COUNT ( * ) / MAX ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-89

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1138
SELECT + CAST ( + - 56 AS INTEGER ) col1 FROM tab0 AS cor0
----
-56
-56
-56

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 90 AND + col1
----
-3

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 90 AND + col1
----
-3

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT DISTINCT + 33 DIV 16 AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT + 33 / 16 AS col0 FROM tab2
----
2

query I rowsort
SELECT ( col2 ) * - col2 AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - 34 * col1 FROM tab1 AS cor0
----
-1598
-170
-476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1149
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 58 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1149
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 58 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL - SUM( - - 41 ) AS col1 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - SUM ( - - 41 ) AS col1 FROM tab0
----
-123

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

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL - + COUNT ( * ) / 43 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT 2 + col2 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
101
-1
12
-21
49
-81

query II rowsort
SELECT ALL - col0 * + - 75 * + col0 + + col1, col0 AS col0 FROM tab2 AS cor0
----
158751
46
307277
64
421942
75

query II rowsort
SELECT ALL col2, + 67 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
67
68
67
96
67

query I rowsort
SELECT ALL + ( + + 11 ) FROM tab2 AS cor0 WHERE NOT 47 >= + col2
----
11

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

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

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

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

query II rowsort
SELECT + col2 * 85 AS col1, + col2 FROM tab2
----
1955
23
3400
40
4930
58

query I rowsort
SELECT DISTINCT + 33 + - col1 FROM tab1
----
-14
19
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT + col0 * - 38 * + + 83 - col2 + col0 + + col1 DIV + col1 FROM tab2 AS cor0
----
-145060
-201831
-236532

skipif mysql # not compatible
query I rowsort label-1163
SELECT + col0 * - 38 * + + 83 - col2 + col0 + + col1 / + col1 FROM tab2 AS cor0
----
-145060
-201831
-236532

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT - 34 DIV + col2 + + 11 FROM tab0 AS cor0
----
11
11
8

skipif mysql # not compatible
query I rowsort label-1164
SELECT - 34 / + col2 + + 11 FROM tab0 AS cor0
----
11
11
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL - 13 AS col1 FROM tab2 AS cor0 WHERE NOT 78 + + 85 IS NULL
----
-13
-13
-13

query II rowsort
SELECT col2, + col2 * + - col2 + col1 AS col0 FROM tab1
----
59
-3476
68
-4577
96
-9202

query I rowsort
SELECT DISTINCT 20 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 85 FROM tab1 AS cor0
----
-5015
-5780
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - - ( + - 7 ) * MAX( 53 ) FROM tab1 AS cor0
----
-371

skipif mysql # not compatible
query I rowsort label-1171
SELECT - - ( + - 7 ) * MAX ( 53 ) FROM tab1 AS cor0
----
-371

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT SUM( DISTINCT - col2 ), + 90 AS col2 FROM tab1
----
-223
90

skipif mysql # not compatible
query II rowsort label-1174
SELECT SUM ( DISTINCT - col2 ), + 90 AS col2 FROM tab1
----
-223
90

query II rowsort
SELECT - col0 * - - 25, col0 AS col0 FROM tab2
----
-1150
46
-1600
64
-1875
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT SUM( ALL + col1 ) * 1 * - ( + ( + ( + - COUNT( * ) ) ) ) AS col2 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT SUM ( ALL + col1 ) * 1 * - ( + ( + ( + - COUNT ( * ) ) ) ) AS col2 FROM tab2
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1177
SELECT * FROM tab1 WHERE NOT + CAST( 59 AS SIGNED ) + - 61 > NULL
----

skipif mysql # not compatible
query III rowsort label-1177
SELECT * FROM tab1 WHERE NOT + CAST ( 59 AS INTEGER ) + - 61 > NULL
----

query II rowsort
SELECT DISTINCT + 6 * + 73, + 95 AS col0 FROM tab2
----
438
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT DISTINCT + 0 DIV - col0 * + col2 * - col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT + 0 / - col0 * + col2 * - col2 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT - ( - ( + 15 ) ) FROM tab2 WHERE NOT - col2 * + - ( - col1 ) - - col0 + + - col1 * - CAST( + - col1 AS SIGNED ) IN ( + - ( + col2 ) )
----
15
15
15

skipif mysql # not compatible
query I rowsort label-1180
SELECT - ( - ( + 15 ) ) FROM tab2 WHERE NOT - col2 * + - ( - col1 ) - - col0 + + - col1 * - CAST ( + - col1 AS INTEGER ) IN ( + - ( + col2 ) )
----
15
15
15

query I rowsort
SELECT ALL - col2 * + ( ( - 7 ) ) FROM tab1
----
413
476
672

query II rowsort
SELECT ALL - ( - - 30 ) AS col1, + 60 * + - col2 FROM tab0
----
-30
-2820
-30
-5940
-30
-600

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1185
SELECT ALL - - 52 * col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - - 52 * col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 41 <> - col2 - + 45 - 47 * col1 + - 50 + col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 83 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT - 93 * MIN( + col0 ) + + COUNT( * ) + + 9 * 14 * ( + 38 ) FROM tab2 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-1189
SELECT - 93 * MIN ( + col0 ) + + COUNT ( * ) + + 9 * 14 * ( + 38 ) FROM tab2 AS cor0
----
513

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT 72 + + COUNT( * ) AS col0 FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-1191
SELECT 72 + + COUNT ( * ) AS col0 FROM tab1 cor0
----
75

query I rowsort
SELECT DISTINCT - 94 * - + 28 AS col1 FROM tab1 AS cor0
----
2632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 61 + + col2 col2 FROM tab2
----
107
141
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL - 99 * COUNT( DISTINCT col0 ) * - + 3 col0 FROM tab2
----
891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1194
SELECT ALL - 99 * COUNT ( DISTINCT col0 ) * - + 3 col0 FROM tab2
----
891

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

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

query I rowsort
SELECT DISTINCT - ( + 23 ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 / - 15 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL 91 + - COUNT( * ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL 91 + - COUNT ( * ) AS col1 FROM tab2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT - ( + - 23 ) DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT - ( + - 23 ) / - col0 FROM tab2
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col1 AS col2 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT - 38 - - COUNT( * ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1204
SELECT - 38 - - COUNT ( * ) FROM tab2 AS cor0
----
-35

query I rowsort
SELECT ALL col0 - - 39 AS col2 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1206
SELECT + + COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-1206
SELECT + + COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL + COUNT( * ) col0 FROM tab0 WHERE NOT - 50 / + - col0 + - 6 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1207
SELECT ALL + COUNT ( * ) col0 FROM tab0 WHERE NOT - 50 / + - col0 + - 6 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT 82 DIV + + col0 + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1208
SELECT 82 / + + col0 + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT 98 DIV ( col2 ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1212
SELECT 98 / ( col2 ) FROM tab1 cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT - SUM( - 74 ) AS col1 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - SUM ( - 74 ) AS col1 FROM tab2
----
222

query I rowsort
SELECT DISTINCT + 33 * - - ( + - col2 ) AS col1 FROM tab1
----
-1947
-2244
-3168

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

query I rowsort
SELECT + ( + + 80 ) FROM tab0
----
80
80
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT + 80 + + + MAX( ALL + col2 ) AS col2 FROM tab2 WHERE 35 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT + 80 + + + MAX ( ALL + col2 ) AS col2 FROM tab2 WHERE 35 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 + 33 FROM tab2
----
1091
2593
4383

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

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

query I rowsort
SELECT + col1 * + + 18 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + ( + - col1 )
----

query I rowsort
SELECT + col1 + - 65 * + - 27 - col2 FROM tab0 AS cor0
----
1657
1766
1789

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1227
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1227
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 33 + col1 * + - col0 + + col1 FROM tab1 AS cor0
----
-1227
2385
983

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT + 96 + - - 36 + + + MIN( DISTINCT 46 ) + + + COUNT( * ) FROM tab1 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT + 96 + - - 36 + + + MIN ( DISTINCT 46 ) + + + COUNT ( * ) FROM tab1 AS cor0
----
181

query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
786
891
9604

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

query I rowsort
SELECT ALL 61 * ( - col2 ) FROM tab2 cor0
----
-1403
-2440
-3538

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT col2 * 42 * + 80 - - - col2 + - 75 + - - col0 + - + 39 DIV + col1 AS col1 FROM tab0
----
157813
332524
33601

skipif mysql # not compatible
query I rowsort label-1236
SELECT col2 * 42 * + 80 - - - col2 + - 75 + - - col0 + - + 39 / + col1 AS col1 FROM tab0
----
157813
332524
33601

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT 87 DIV - ( - + 80 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT 87 / - ( - + 80 ) FROM tab0
----
1

query I rowsort
SELECT ALL - ( - 60 ) * + col2 * - + col2 FROM tab0
----
-132540
-588060
-6000

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

query I rowsort
SELECT DISTINCT - - ( - - col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1241
SELECT DISTINCT + ( - + MIN( ALL 5 ) ) DIV + + 16 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT + ( - + MIN ( ALL 5 ) ) / + + 16 FROM tab2 AS cor0
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1245
SELECT + col1 DIV col2 AS col0, - 67 FROM tab0 AS cor0
----
0
-67
1
-67
2
-67

skipif mysql # not compatible
query II rowsort label-1245
SELECT + col1 / col2 AS col0, - 67 FROM tab0 AS cor0
----
0
-67
1
-67
2
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col2 * - 48 col1 FROM tab1 AS cor0
----
59
-2832
68
-3264
96
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1247
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 5 * + col0 * + - col2 AS col2 FROM tab2 AS cor0
----
NULL
-12800
NULL
-21750
NULL
-5290

skipif mysql # not compatible
query II rowsort label-1247
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 5 * + col0 * + - col2 AS col2 FROM tab2 AS cor0
----
NULL
-12800
NULL
-21750
NULL
-5290

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1249
SELECT MIN ( ALL 29 ) col1 FROM tab1 AS cor0
----
29

query II rowsort
SELECT + + col0 * - 22 * - 43 * col0, col0 FROM tab1 cor0
----
2460546
51
6834850
85
7833826
91

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

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

query I rowsort
SELECT 0 * + - 38 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - col0 * - - col2 - - 82 AS col0 FROM tab0 WHERE - 1 * - + col1 IN ( - 42, col0 + + col1 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 40
----

query I rowsort
SELECT ALL 79 + + col2 + - 35 AS col0 FROM tab0
----
143
54
91

query I rowsort
SELECT - col0 + - - col1 - col2 - col2 FROM tab2 AS cor0
----
-124
-41
-67

query I rowsort
SELECT ALL + 73 + ( col0 ) AS col2 FROM tab1 cor0
----
124
158
164

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

query II rowsort
SELECT ALL col1 + + col0 AS col0, - 81 * + col2 AS col1 FROM tab0 AS cor0
----
108
-810
96
-3807
98
-8019

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL 25 * + - COUNT( * ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL 25 * + - COUNT ( * ) AS col1 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT 12 + + SUM( DISTINCT - + col2 ) FROM tab2
----
-109

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT 12 + + SUM ( DISTINCT - + col2 ) FROM tab2
----
-109

query I rowsort
SELECT ALL + + 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + + col2 + - 73 - + ( - ( + - col2 ) ) * + - 82 FROM tab1 AS cor0
----
4824
5571
7895

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

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

query I rowsort
SELECT - col1 + - - col2 - - 92 * + col0 AS col0 FROM tab1 AS cor0
----
4774
7874
8393

query II rowsort
SELECT ALL + col1 + + ( + + 37 ) AS col2, + col1 FROM tab2 AS cor0
----
104
67
114
77
88
51

query I rowsort
SELECT DISTINCT 20 + + col2 AS col0 FROM tab1 AS cor0
----
116
79
88

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

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

query I rowsort
SELECT - col0 + + + 46 FROM tab0 AS cor0
----
-41
-51
31

query II rowsort
SELECT DISTINCT - 11 - col1 * - 72, ( col0 ) AS col2 FROM tab0 AS cor0
----
1501
87
5821
15
61
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL - MAX( + 65 ) AS col2 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL - MAX ( + 65 ) AS col2 FROM tab2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1275
SELECT ALL + CAST( 62 AS SIGNED ) + - - col2 FROM tab2
----
102
120
85

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + CAST ( 62 AS INTEGER ) + - - col2 FROM tab2
----
102
120
85

query I rowsort
SELECT 83 * + 13 * col1 AS col0 FROM tab2
----
55029
72293
83083

query I rowsort
SELECT DISTINCT + 95 * + + col2 FROM tab1
----
5605
6460
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT - col2 DIV - ( + 57 ) + + - 56 - - 29 * 39 + - 87 * + - col1 FROM tab0 AS cor0
----
1163
2902
8122

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT - col2 / - ( + 57 ) + + - 56 - - 29 * 39 + - 87 * + - col1 FROM tab0 AS cor0
----
1163
2902
8122

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT + + col0 + 58 + + + 25 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1282
SELECT ALL + + 94 * + - col1 * + CAST( NULL AS SIGNED ), + 30 AS col1 FROM tab2 AS cor0
----
NULL
30
NULL
30
NULL
30

skipif mysql # not compatible
query II rowsort label-1282
SELECT ALL + + 94 * + - col1 * + CAST ( NULL AS INTEGER ), + 30 AS col1 FROM tab2 AS cor0
----
NULL
30
NULL
30
NULL
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT - 65 DIV - 97 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT - 65 / - 97 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1284
SELECT ALL - 15 * - col1 DIV + col1 FROM tab2 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL - 15 * - col1 / + col1 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT ALL - - 98 DIV col2 col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT ALL - - 98 / col2 col0 FROM tab1 cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL CAST ( NULL AS INTEGER ) / - 52 - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col0, - ( + col2 ) / 70 )
----

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

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

query I rowsort
SELECT DISTINCT ( - - col1 ) * col0 + - 18 + + + col2 AS col1 FROM tab2
----
2351
4950
5065

query II rowsort
SELECT ALL + col0, col1 + + 40 FROM tab0
----
15
121
87
61
97
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 49, - 68 col2 FROM tab2
----
49
-68
49
-68
49
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT MAX( DISTINCT - ( - 38 ) ) col2 FROM tab1
----
38

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT COUNT( * ), - 24 + - - 37 AS col1 FROM tab1
----
3
13

skipif mysql # not compatible
query II rowsort label-1296
SELECT COUNT ( * ), - 24 + - - 37 AS col1 FROM tab1
----
3
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL + 71 + + + 37 + - COUNT( + - 17 ) AS col1 FROM tab1 WHERE + 48 IS NULL
----
108

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + 71 + + + 37 + - COUNT ( + - 17 ) AS col1 FROM tab1 WHERE + 48 IS NULL
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT DISTINCT + MIN( - - 2 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT + MIN ( - - 2 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + + - col1 col2 FROM tab0
----
67
7
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT ALL + - CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL + - CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) * + - 65 + + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT DISTINCT COUNT( * ), + COUNT( * ) + 12 col2 FROM tab2 cor0
----
3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1303
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) + 12 col2 FROM tab2 cor0
----
3
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( + 49 * - ( col2 ), col1, - + col0, - + col1 / + ( 95 ) - - 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT DISTINCT - COUNT( * ) DIV - 62 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT - COUNT ( * ) / - 62 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1306
SELECT ALL - col2 + - col1 AS col2, ( ( - 45 ) ) DIV - col0 FROM tab1 cor0
----
-110
0
-115
0
-64
0

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL - col2 + - col1 AS col2, ( ( - 45 ) ) / - col0 FROM tab1 cor0
----
-110
0
-115
0
-64
0

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL - 42 + + + COUNT ( * ) * + - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
-510

query I rowsort
SELECT + ( col0 ) - - + col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - col1 * col0 - - col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT - col1 - + 91 FROM tab1 AS cor0
----
-105
-138
-96

query I rowsort
SELECT 65 - + col0 + col2 AS col2 FROM tab2
----
41
42
48

query I rowsort
SELECT ALL col1 - 46 AS col0 FROM tab0
----
-25
-45
35

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

query I rowsort
SELECT + col0 * + 28 * - col1 FROM tab1
----
-11900
-119756
-19992

query II rowsort
SELECT col2, col0 * - 51 FROM tab2
----
23
-2346
40
-3264
58
-3825

query I rowsort
SELECT DISTINCT col0 * + 22 FROM tab0
----
1914
2134
330

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

query I rowsort
SELECT col0 * - - col0 FROM tab2 cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL + - 26 * + + COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + - 26 * + + COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT - col1 * - - 69 AS col0 FROM tab2 AS cor0
----
-3519
-4623
-5313

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT DISTINCT COUNT( ALL - 92 ) + + CAST( + 56 AS SIGNED ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT COUNT ( ALL - 92 ) + + CAST ( + 56 AS INTEGER ) AS col1 FROM tab1
----
59

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * col2 ) = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT col1 + - col0 DIV + ( 14 ) AS col1 FROM tab2
----
48
62
73

skipif mysql # not compatible
query I rowsort label-1327
SELECT col1 + - col0 / + ( 14 ) AS col1 FROM tab2
----
48
62
73

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

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

query I rowsort
SELECT ALL - 88 * - col2 + - 23 AS col2 FROM tab2
----
2001
3497
5081

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT CAST( + COUNT( - col0 ) AS SIGNED ) col2 FROM tab1
----
3

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( ( - 1 ) - - 73 * + col0 )
----

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

query I rowsort
SELECT col2 * + col0 + + col1 AS col2 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1335
SELECT - AVG ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT - AVG ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT DISTINCT + MIN( ALL 10 ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + MIN ( ALL 10 ) AS col1 FROM tab2
----
10

query I rowsort
SELECT 98 - col0 AS col2 FROM tab2
----
23
34
52

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

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

query I rowsort
SELECT 9 * col1 AS col1 FROM tab0
----
189
729
9

query I rowsort
SELECT DISTINCT - col0 * + 62 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 95 * col0 AS col2 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT + ( + col0 ) * col1 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT col2 * - ( - col2 ) AS col1 FROM tab0
----
100
2209
9801

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 + + 33 ) NOT BETWEEN - col2 * 63 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 83 ) + col1 AS col0 FROM tab2 AS cor0
----
-16
-32
-6

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1352
SELECT DISTINCT + col2 DIV + col1 + - col0 FROM tab0
----
-15
-87
2

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT + col2 / + col1 + - col0 FROM tab0
----
-15
-87
2

query I rowsort
SELECT + 38 + - ( col0 ) AS col0 FROM tab0
----
-49
-59
23

query I rowsort
SELECT ALL - 8 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL - 85 * - ( 38 + 30 * - 62 ) + - col2 FROM tab2 cor0
----
-154893
-154910
-154928

query I rowsort
SELECT + + 84 + 65 AS col2 FROM tab0 AS cor0
----
149
149
149

query I rowsort
SELECT - 84 + + 83 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - col2 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT - 88 + col1 DIV col1 col0 FROM tab1 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1359
SELECT - 88 + col1 / col1 col0 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL + - COUNT( * ) * - 96 + COUNT( * ) * - 23 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL + - COUNT ( * ) * - 96 + COUNT ( * ) * - 23 FROM tab0 AS cor0
----
219

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - 55 * 44 - ( col1 ) AND ( - 51 )
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + 70 * COUNT( DISTINCT col1 ) AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 70 * COUNT ( DISTINCT col1 ) AS col0 FROM tab0
----
210

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT col2 DIV ( col2 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1368
SELECT col2 / ( col2 ) AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + 21 * col2 AS col2 FROM tab0 AS cor0
----
2079
210
987

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

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

query I rowsort
SELECT + 10 * 5 FROM tab1 AS cor0
----
50
50
50

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

query I rowsort
SELECT 84 * - 24 + + col1 AS col1 FROM tab1 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT DISTINCT 38 * - col0 AS col0 FROM tab0
----
-3306
-3686
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT - 9 + MIN( + 94 ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-1375
SELECT - 9 + MIN ( + 94 ) AS col1 FROM tab1
----
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT + - col2 + + + col0 DIV ( + col0 ) AS col0 FROM tab1 cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-1377
SELECT + - col2 + + + col0 / ( + col0 ) AS col0 FROM tab1 cor0
----
-58
-67
-95

query II rowsort
SELECT DISTINCT 26 AS col0, 42 * col1 FROM tab2 AS cor0
----
26
2142
26
2814
26
3234

query I rowsort
SELECT DISTINCT col0 + - 50 AS col1 FROM tab0 AS cor0
----
-35
37
47

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

query I rowsort
SELECT - col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL ) OR 36 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 3 + + col1 * - col0 NOT BETWEEN + col2 / 1 AND 72 + - col1
----

query II rowsort
SELECT ALL - 55 AS col2, 81 FROM tab1 cor0
----
-55
81
-55
81
-55
81

query I rowsort
SELECT col0 / col1 + - 54 FROM tab1 cor0 WHERE col0 >= ( + ( 62 ) + + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT CAST ( - MIN ( + 78 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= 38 + + + col2 + - 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * - 68 * - col0 col0 FROM tab1
----
114444
190740
204204

query I rowsort
SELECT ALL - 93 + + col0 + - + col1 AS col2 FROM tab1
----
-13
-49
-56

query I rowsort
SELECT ALL 96 + + col0 AS col2 FROM tab0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - SUM( - - col0 ) - + - 99 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-1390
SELECT - SUM ( - - col0 ) - + - 99 FROM tab0
----
-100

query I rowsort
SELECT ALL + 66 + - ( - col1 ) FROM tab0
----
147
67
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT col1 * - - col0 DIV + + col0 + 21 + 86 AS col1 FROM tab1
----
112
121
154

skipif mysql # not compatible
query I rowsort label-1392
SELECT col1 * - - col0 / + + col0 + 21 + 86 AS col1 FROM tab1
----
112
121
154

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

query I rowsort
SELECT + col1 - - col1 + - 42 AS col0 FROM tab1 AS cor0 WHERE + col1 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT - 83 + + - COUNT ( * ) FROM tab2
----
-86

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

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

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

query I rowsort
SELECT 47 * 88 * 45 FROM tab0
----
186120
186120
186120

query I rowsort
SELECT ALL + 82 * - 31 AS col0 FROM tab2 WHERE ( NULL IN ( - col1 ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT ALL + col1 DIV 63 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + col1 / 63 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 11 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query II rowsort
SELECT - 37 AS col1, 68 + + + col2 * col2 FROM tab1
----
-37
3549
-37
4692
-37
9284

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT DISTINCT MIN( ALL - 93 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT MIN ( ALL - 93 ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT 83 + - COUNT( * ) AS col2 FROM tab1 WHERE NOT col0 NOT IN ( - 49 )
----
83

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT 83 + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT col0 NOT IN ( - 49 )
----
83

query I rowsort
SELECT ALL - col1 + - col2 * - + col0 FROM tab0
----
624
849
9602

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
46

query I rowsort
SELECT DISTINCT col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 68 IN ( + - 77, - 38 + col1 )
----

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

query I rowsort
SELECT + + 70 + - col2 AS col1 FROM tab0 AS cor0
----
-29
23
60

query II rowsort
SELECT + col0 + - col1, col2 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * + 76 > - + col2
----

query I rowsort
SELECT - - 1 + - + col1 * col0 AS col2 FROM tab0 AS cor0
----
-1214
-1826
-96

query II rowsort
SELECT ALL - col1 * col0 AS col0, + 79 FROM tab2 AS cor0
----
-2346
79
-4928
79
-5025
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 87 + - - col1 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT SUM( - 13 ) + - - MAX( + col2 ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-1420
SELECT SUM ( - 13 ) + - - MAX ( + col2 ) AS col2 FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 54 col2, ( + col0 ) FROM tab1
----
-54
51
-54
85
-54
91

query I rowsort
SELECT ALL - 60 + - + col2 AS col0 FROM tab0
----
-107
-159
-70

query I rowsort
SELECT DISTINCT + col0 * 62 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT - 92 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
-92
-92
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL COUNT( DISTINCT + col0 ) * + COUNT( DISTINCT + col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL COUNT ( DISTINCT + col0 ) * + COUNT ( DISTINCT + col1 ) FROM tab0
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1427
SELECT + CAST ( - + 9 AS INTEGER ) col2 FROM tab1
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) >= - 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + 29 + 26 + 54 AS col1 FROM tab0 AS cor0
----
10
62
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1430
SELECT ALL - COUNT ( * ) / COUNT ( * ) col0 FROM tab1
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT + MAX ( col1 ) FROM tab2 cor0
----
77

query I rowsort
SELECT ALL - col1 * + + col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

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

query I rowsort
SELECT DISTINCT - - col2 * 89 FROM tab0 AS cor0
----
4183
8811
890

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

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

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

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 # aggregate syntax: 
query I rowsort label-1439
SELECT + COUNT( - + col1 ) AS col0 FROM tab0 AS cor0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - COUNT ( * ) / + + COUNT ( * ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1442
SELECT DISTINCT 50 col2, MIN( + 50 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
50
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1442
SELECT DISTINCT 50 col2, MIN ( + 50 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
50
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1443
SELECT DISTINCT - col1 / + col2 col1 FROM tab2
----
-1
-2

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

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT + MIN ( + col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT + col2 / + + col0 * + col2 + + col2 AS col0 FROM tab0 WHERE col1 * + 19 * - col0 / + - col0 + - - 88 IS NULL
----

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

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

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

query I rowsort
SELECT - col1 * + col0 * - col2 - + col0 AS col0 FROM tab1 cor0
----
24990
290745
68493

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT col1 DIV + + col1 + col1 - 59 FROM tab1
----
-11
-44
-53

skipif mysql # not compatible
query I rowsort label-1450
SELECT col1 / + + col1 + col1 - 59 FROM tab1
----
-11
-44
-53

query I rowsort
SELECT col2 * - col1 * - 85 * + col0 + + 22 FROM tab2
----
16755222
24773272
4586452

query I rowsort
SELECT - col1 + - + 58 AS col1 FROM tab2 AS cor0
----
-109
-125
-135

query I rowsort
SELECT ALL - col2 + - + col2 + + 83 FROM tab1 AS cor0
----
-109
-35
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1454
SELECT - ( + col2 ), - CAST( NULL AS SIGNED ) 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-1454
SELECT - ( + col2 ), - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1455
SELECT DISTINCT - col1 + col1 AS col0, + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1455
SELECT DISTINCT - col1 + col1 AS col0, + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL 13 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL 13 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT - col0 * + - 54 AS col1 FROM tab2 cor0
----
2484
3456
4050

query I rowsort
SELECT DISTINCT - col0 * - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1459
SELECT ALL + + COUNT( * ) DIV - 81 + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + + COUNT ( * ) / - 81 + + COUNT ( * ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( + ( col2 ), + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT ALL 40 AS col0, MAX( ALL - - col1 ) col2 FROM tab0 cor0
----
40
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1461
SELECT ALL 40 AS col0, MAX ( ALL - - col1 ) col2 FROM tab0 cor0
----
40
81

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) >= ( + 32 ) )
----

query I rowsort
SELECT DISTINCT 3 * col0 AS col2 FROM tab2
----
138
192
225

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1465
SELECT COUNT( * ) DIV - 79 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1465
SELECT COUNT ( * ) / - 79 FROM tab1 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ALL 88 * + 13 + 15 FROM tab2
----
1159
1159
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL COUNT( * ) - + 20 + COUNT( * ) + - - 3 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL COUNT ( * ) - + 20 + COUNT ( * ) + - - 3 FROM tab1
----
-11

query II rowsort
SELECT ALL + col2, col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 97 * col2 BETWEEN NULL AND + + col0 + + 84
----

query II rowsort
SELECT ALL col1 - + 40, col2 FROM tab2 AS cor0
----
11
23
27
58
37
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT MAX( + 52 ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1471
SELECT MAX ( + 52 ) FROM tab1 AS cor0
----
52

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1473
SELECT DISTINCT 88 DIV + MIN( col1 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT 88 / + MIN ( col1 ) FROM tab1
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT DISTINCT - MAX( DISTINCT - - 92 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-92

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - MAX ( DISTINCT - - 92 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-92

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

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

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

query I rowsort
SELECT DISTINCT + - col0 * - - 53 AS col2 FROM tab2 AS cor0
----
-2438
-3392
-3975

query I rowsort
SELECT + 8 AS col2 FROM tab1 AS cor0 WHERE NOT - 84 / - 72 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 14 ) * + col0 col1 FROM tab0 AS cor0
----
1218
1358
210

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT + COUNT( DISTINCT + col2 ) DIV - 30 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1483
SELECT + COUNT ( DISTINCT + col2 ) / - 30 FROM tab2
----
0

query I rowsort
SELECT - col2 / - 56 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 >= col1 + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + - 93 AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
-93
-93
-93

query I rowsort
SELECT col0 + - 9 + col0 AS col1 FROM tab1
----
161
173
93

query I rowsort
SELECT 75 FROM tab1 WHERE NOT NULL = NULL
----

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

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

query I rowsort
SELECT col0 * 31 + - col1 AS col2 FROM tab0 AS cor0
----
2676
3006
384

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 > - ( + 65 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT ALL + + col2 DIV - + 88 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL + + col2 / - + 88 AS col2 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT - col2 * + col0 * 16 + - col0, - col1 AS col0 FROM tab1 AS cor0
----
-78387
-14
-80325
-5
-99099
-47

query I rowsort
SELECT ALL + col2 - - col1 + - 29 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
35
81
86

query II rowsort
SELECT ALL col0 AS col1, 34 + - col2 * col0 + + 23 AS col0 FROM tab2
----
46
-1001
64
-2503
75
-4293

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 * - col0 <= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + - col2 + - col2 FROM tab0 AS cor0
----
-141
-297
-30

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( ( + + 26 ) - + 49, + col1, + - 24 * col0 * - col0 + + 16 + - - ( - col0 ) )
----

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

query I rowsort
SELECT - - col0 * 82 + col2 * + - col1 FROM tab0 AS cor0
----
-2577
6924
7855

query I rowsort
SELECT ALL + + 38 - 13 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT - 69 + - + col2 + - col2 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1150
-2669
-4477

query I rowsort
SELECT - col1 * + col2 * col2 + ( col0 ) AS col0 FROM tab0
----
-178914
-2013
-9704

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 * col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col1 - + 80 + 77 <= NULL
----

query I rowsort
SELECT DISTINCT 21 - + 83 + 43 * - 43 AS col2 FROM tab1 AS cor0
----
-1911

query I rowsort
SELECT + 26 - - + 40 FROM tab0 AS cor0
----
66
66
66

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + + 61 <> + col2 - col0 + + + 7 + col0 + + 52 )
----

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

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - MAX ( + ( + col1 ) ) FROM tab2 cor0
----
-77

query II rowsort
SELECT - col2 AS col2, ( 54 ) FROM tab1 AS cor0
----
-59
54
-68
54
-96
54

query I rowsort
SELECT + col1 * 48 AS col2 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT - 19 * - 42 * - col2 FROM tab2
----
-18354
-31920
-46284

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

query I rowsort
SELECT - 5 * - 29 * - 73 * + + col1 FROM tab0 AS cor0
----
-10585
-222285
-857385

query I rowsort
SELECT ALL col2 * - + col1 AS col1 FROM tab0 AS cor0 WHERE col1 < ( + 91 * - col2 )
----

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

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

query I rowsort
SELECT + col1 + - - col0 AS col0 FROM tab2 WHERE NOT + col1 NOT BETWEEN col0 AND - 65
----

query II rowsort
SELECT DISTINCT col2 * - - col0 * ( - col0 ) * - 6 + - 0 AS col1, col2 AS col2 FROM tab1
----
1498176
96
2557650
59
3378648
68

query I rowsort
SELECT ALL - ( 42 ) FROM tab1
----
-42
-42
-42

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

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

query I rowsort
SELECT DISTINCT 4 + - col1 FROM tab2
----
-47
-63
-73

query I rowsort
SELECT + col1 * + - 82 AS col1 FROM tab2 AS cor0
----
-4182
-5494
-6314

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT DISTINCT CAST( col1 AS SIGNED ) + + ( + col0 ) + - col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-609
-762
-9505

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + ( + col0 ) + - col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-609
-762
-9505

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT COUNT( * ) + 50 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1533
SELECT COUNT ( * ) + 50 FROM tab1
----
53

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) >= + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ( + - MIN( ALL col0 ) ) * - COUNT( * ) AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-1535
SELECT ( + - MIN ( ALL col0 ) ) * - COUNT ( * ) AS col2 FROM tab2
----
138

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( - 97 ) NOT IN ( col0, ( col1 ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT DISTINCT ( - + COUNT( * ) ) + 24 + - 35 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - col1
----
-11

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT ( - + COUNT ( * ) ) + 24 + - 35 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - col1
----
-11

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

query I rowsort
SELECT - 73 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-73
-73
-73

query I rowsort
SELECT DISTINCT col0 - - - 88 FROM tab2 cor0
----
-13
-24
-42

query I rowsort
SELECT ALL + col2 - + + col2 - - - col0 FROM tab2 AS cor0
----
-46
-64
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT MIN( - - col0 ) * COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-1543
SELECT MIN ( - - col0 ) * COUNT ( * ) FROM tab2
----
138

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE NOT - col0 + + col0 + + col2 * + col0 + col0 + + 2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) AS col1 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT DISTINCT - AVG ( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT - - col2 + col0 AS col1, 12 + - + 8 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
196
4
62
4
97
4

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

query I rowsort
SELECT DISTINCT + 84 FROM tab0 AS cor0 WHERE NOT NULL > col2
----

query II rowsort
SELECT + + 31 AS col1, col0 + 51 AS col1 FROM tab0 AS cor0
----
31
138
31
148
31
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - ( COUNT( * ) ) * - 97 * - - COUNT( * ) FROM tab1 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-1554
SELECT - ( COUNT ( * ) ) * - 97 * - - COUNT ( * ) FROM tab1 AS cor0
----
873

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

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

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

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

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

query I rowsort
SELECT col0 + - - 69 + - 40 FROM tab2
----
104
75
93

query I rowsort
SELECT DISTINCT 83 * + col2 AS col2 FROM tab1
----
4897
5644
7968

query II rowsort
SELECT ALL + 47 + + col2 - - 94, col2 FROM tab2
----
164
23
181
40
199
58

query III rowsort
SELECT * FROM tab1 WHERE NOT 47 >= NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 68 + 83 * + 5 + + - 33 * + - col0 AS col0 FROM tab1
----
2166
3288
3486

query I rowsort
SELECT ALL - 80 * + ( + col2 ) + col1 AS col1 FROM tab1
----
-4715
-5393
-7666

query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 FROM tab0
----
-752
-880
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1566
SELECT + + col0 * CAST( - - col2 AS SIGNED ), + 49 + + + col0 AS col2 FROM tab0 AS cor0
----
705
64
870
136
9603
146

skipif mysql # not compatible
query II rowsort label-1566
SELECT + + col0 * CAST ( - - col2 AS INTEGER ), + 49 + + + col0 AS col2 FROM tab0 AS cor0
----
705
64
870
136
9603
146

query I rowsort
SELECT - - ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL - + 76 + CAST( + col0 AS SIGNED ) + col0 * col2 * - + 29 FROM tab1 AS cor0
----
-142009
-145426
-179437

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - + 76 + CAST ( + col0 AS INTEGER ) + col0 * col2 * - + 29 FROM tab1 AS cor0
----
-142009
-145426
-179437

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NULL <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT DISTINCT col1 * 7 DIV - + col1 + - + col1 AS col0 FROM tab1
----
-12
-21
-54

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT col1 * 7 / - + col1 + - + col1 AS col0 FROM tab1
----
-12
-21
-54

query I rowsort
SELECT + 82 - - - col1 FROM tab1
----
35
68
77

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

query I rowsort
SELECT col0 + col0 - ( col1 ) AS col0 FROM tab2 AS cor0
----
41
51
83

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

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

query I rowsort
SELECT + 58 + col2 + - col0 FROM tab1 AS cor0
----
103
32
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT SUM( DISTINCT 78 ) + + COUNT( ALL + col1 ) * + COUNT( * ) col2 FROM tab0 cor0
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT + SUM( + 9 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1579
SELECT + SUM ( + 9 ) FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1580
SELECT - col0 * col0 * - col0 - - col1 + - 88 + + col1 + - + CAST( - col0 AS SIGNED ) * col2 AS col2, - 83 FROM tab2 WHERE NOT + 15 IS NULL
----
264770
-83
426271
-83
98408
-83

skipif mysql # not compatible
query II rowsort label-1580
SELECT - col0 * col0 * - col0 - - col1 + - 88 + + col1 + - + CAST ( - col0 AS INTEGER ) * col2 AS col2, - 83 FROM tab2 WHERE NOT + 15 IS NULL
----
264770
-83
426271
-83
98408
-83

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

query I rowsort
SELECT ( 36 ) AS col0 FROM tab2 cor0
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT + - col0 DIV 16 * + 31 AS col1 FROM tab2 AS cor0
----
-124
-124
-62

skipif mysql # not compatible
query I rowsort label-1583
SELECT + - col0 / 16 * + 31 AS col1 FROM tab2 AS cor0
----
-124
-124
-62

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 67 AS col0 FROM tab0 AS cor0
----
1282
164
1894

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

query I rowsort
SELECT - - 64 + - - 33 FROM tab1 WHERE NOT - - col0 < 63
----
97
97

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT 35 * 31 + + 6, + COUNT( 70 ) AS col0 FROM tab0 AS cor0
----
1091
3

skipif mysql # not compatible
query II rowsort label-1589
SELECT 35 * 31 + + 6, + COUNT ( 70 ) AS col0 FROM tab0 AS cor0
----
1091
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT + + ( - COUNT( * ) ) * 99 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + + ( - COUNT ( * ) ) * 99 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT ALL + - 23 FROM tab2 AS cor0 WHERE NOT col2 * - col0 - 50 >= - 26 * + + 67
----
-23
-23

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT DISTINCT + COUNT( * ) * + + 82 AS col0 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + COUNT ( * ) * + + 82 AS col0 FROM tab1
----
246

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( col0 ) * + col1 - + + 34 - 98 IS NULL
----

query I rowsort
SELECT ALL + 85 + col2 FROM tab1
----
144
153
181

query II rowsort
SELECT + col2 + - col1, + col0 + - - col1 AS col0 FROM tab0 AS cor0
----
-11
108
-34
96
98
98

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + 97 - + + col0 * + 90 col2 FROM tab1 AS cor0
----
-1594
-1927
4722

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT + col2 - + 31 DIV + 48 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-1606
SELECT DISTINCT + col2 - + 31 / + 48 col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE - col0 < - 37
----
10
99

skipif mysql # not compatible
query I rowsort label-1607
SELECT CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE - col0 < - 37
----
10
99

query I rowsort
SELECT ALL col1 * + - 67 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
-157159
-330136
-336617

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL <> + 46 + + - 20
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1610
SELECT ALL col1, col2 DIV col2 FROM tab0
----
1
1
21
1
81
1

skipif mysql # not compatible
query II rowsort label-1610
SELECT ALL col1, col2 / col2 FROM tab0
----
1
1
21
1
81
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1612
SELECT ALL + col1 DIV + ( - 87 ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL + col1 / + ( - 87 ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1613
SELECT DISTINCT - MIN( + CAST( col2 AS SIGNED ) ) col1, COUNT( * ) + 68 FROM tab0
----
-10
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1613
SELECT DISTINCT - MIN ( + CAST ( col2 AS INTEGER ) ) col1, COUNT ( * ) + 68 FROM tab0
----
-10
71

query II rowsort
SELECT + col2 AS col1, - 49 FROM tab1
----
59
-49
68
-49
96
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + 51 * SUM( ALL + 72 ) col0 FROM tab0
----
11016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1616
SELECT + 51 * SUM ( ALL + 72 ) col0 FROM tab0
----
11016

query I rowsort
SELECT + 82 * col2 AS col1 FROM tab1
----
4838
5576
7872

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 42 AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * 25 + + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT - MAX( ALL 55 ) AS col2 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1621
SELECT - MAX ( ALL 55 ) AS col2 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT COUNT( + 37 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1622
SELECT COUNT ( + 37 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 50 >= - col0
----
46
51
23

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

query I rowsort
SELECT ALL col1 * 28 + ( - col2 ) FROM tab1 cor0
----
1248
296
81

query I rowsort
SELECT DISTINCT + 95 + - col2 AS col2 FROM tab1 AS cor0
----
-1
27
36

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

query I rowsort
SELECT - - col1 + - col0 - - 16 FROM tab1 AS cor0
----
-21
-28
-64

query I rowsort
SELECT DISTINCT + + 38 * - col1 * + 68 + 75 AS col2 FROM tab2 AS cor0
----
-131709
-173053
-198893

onlyif mysql # aggregate syntax: 
query II rowsort label-1630
SELECT DISTINCT 14 AS col0, COUNT( * ) FROM tab2
----
14
3

skipif mysql # not compatible
query II rowsort label-1630
SELECT DISTINCT 14 AS col0, COUNT ( * ) FROM tab2
----
14
3

query I rowsort
SELECT - col0 + + 45 + + col1 - - col0 + + - col0 AS col2 FROM tab0
----
-21
-51
111

query I rowsort
SELECT ALL + col0 + - + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT ALL + 80 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + 80 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND col0
----

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

query I rowsort
SELECT col1 - - 34 AS col1 FROM tab0 AS cor0
----
115
35
55

query II rowsort
SELECT DISTINCT - 2 * col0 AS col0, ( - 50 ) + + col0 * + + 14 FROM tab0
----
-174
1168
-194
1308
-30
160

query I rowsort
SELECT + ( - 51 ) FROM tab1 AS cor0
----
-51
-51
-51

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1641
SELECT - COUNT ( * ), MAX ( + + 60 ) AS col1 FROM tab0 AS cor0
----
-3
60

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + ( - + 22 ) IS NULL
----
14
47
5

query I rowsort
SELECT ALL + col0 * + - col0 * + col1 * + 83 AS col0 FROM tab1 AS cor0
----
-2998375
-3022362
-32304181

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT - + 48 * - + MIN( + 75 ) FROM tab1 cor0
----
3600

skipif mysql # not compatible
query I rowsort label-1644
SELECT - + 48 * - + MIN ( + 75 ) FROM tab1 cor0
----
3600

query II rowsort
SELECT DISTINCT - 52 AS col0, 24 - + 22 FROM tab0 AS cor0
----
-52
2

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 WHERE + - col1 * + - col1 - + + col0 IN ( col0 - + - col2 * - col1 * - col2, col1, col0 )
----

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

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

query I rowsort
SELECT ALL ( + col2 ) * + col0 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT col0 * + - col0 * ( 82 ) FROM tab1
----
-213282
-592450
-679042

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT - 7 DIV + + col2 + + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - 7 / + + col2 + + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL MIN( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL MIN ( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT MAX( - + col1 ) * ( + 52 ) FROM tab1
----
-260

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT MAX ( - + col1 ) * ( + 52 ) FROM tab1
----
-260

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

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

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

query II rowsort
SELECT ALL - + col0, + col1 AS col0 FROM tab1 AS cor0 WHERE col2 / + - col2 < + 54 * + col1 + + - 37 * - col1 * 67
----
-51
14
-85
5
-91
47

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

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

query I rowsort
SELECT ALL - - col1 * col1 + - + col1 FROM tab0 AS cor0
----
0
420
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + MAX( ALL + col2 ) * + 12 FROM tab1 AS cor0 WHERE NOT NULL = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + MAX ( ALL + col2 ) * + 12 FROM tab1 AS cor0 WHERE NOT NULL = + col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT ( CAST( + - col2 AS SIGNED ) ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1660
SELECT ( CAST ( + - col2 AS INTEGER ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL 36 * COUNT( * ) + + + 27 AS col0 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL 36 * COUNT ( * ) + + + 27 AS col0 FROM tab2
----
135

query I rowsort
SELECT - 4 - + col2 AS col0 FROM tab2
----
-27
-44
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT COUNT( * ) + - COUNT( * ) - MAX( DISTINCT + col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1663
SELECT COUNT ( * ) + - COUNT ( * ) - MAX ( DISTINCT + col1 ) col0 FROM tab0
----
-81

query I rowsort
SELECT ( - col2 ) + + - 56 AS col0 FROM tab1
----
-115
-124
-152

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - col0 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT - ( + col1 ) * - col1 + - 57 * + col1 AS col2 FROM tab1
----
-260
-470
-602

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, 51 * - + 12 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - ( - - col1 ) / - col2 + - col2 * - col1 * + col2 + - + ( + + col0 ) - - 71
----

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

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

query I rowsort
SELECT ALL - col1 - - - col1 + + 12 * - col2 * + col1 AS col1 FROM tab2
----
-14178
-37114
-46766

query I rowsort
SELECT DISTINCT + 91 * - + ( + col1 ) FROM tab2
----
-4641
-6097
-7007

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 78 - col1 * - + col2
----

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

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

query I rowsort
SELECT ALL 73 + - 57 AS col1 FROM tab2 AS cor0 WHERE - 72 / + col2 IS NOT NULL
----
16
16
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1675
SELECT - ( - + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT - ( - + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
60

query I rowsort
SELECT - col0 * - - 8 FROM tab1 AS cor0
----
-408
-680
-728

query II rowsort
SELECT ALL col1, 33 AS col0 FROM tab0
----
1
33
21
33
81
33

query I rowsort
SELECT DISTINCT 76 * - col0 * - 52 FROM tab2
----
181792
252928
296400

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT COUNT( DISTINCT 16 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1680
SELECT COUNT ( DISTINCT 16 ) FROM tab2
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1682
SELECT DISTINCT + col1 DIV 23 * + CAST( 28 AS SIGNED ) col1 FROM tab1
----
0
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1682
SELECT DISTINCT + col1 / 23 * + CAST ( 28 AS INTEGER ) col1 FROM tab1
----
0
56

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

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

query II rowsort
SELECT DISTINCT 97, col2 - + 86 * - + 60 AS col1 FROM tab2
----
97
5183
97
5200
97
5218

query II rowsort
SELECT col0 AS col0, 59 AS col2 FROM tab1
----
51
59
85
59
91
59

query I rowsort
SELECT DISTINCT col2 * + 34 AS col2 FROM tab0
----
1598
3366
340

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < col2 * + + col1
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col2 * - 79 FROM tab0
----
3713
7821
790

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NULL <= + 59
----

query I rowsort
SELECT DISTINCT col1 + + + col1 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT ALL + CAST( - - 31 AS SIGNED ) FROM tab0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL + CAST ( - - 31 AS INTEGER ) FROM tab0
----
31
31
31

query II rowsort
SELECT DISTINCT + - 55 + + col1, + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-34
-87
-54
-97
26
-15

query I rowsort
SELECT ALL col2 * - 25 + + - 28 AS col1 FROM tab0 AS cor0
----
-1203
-2503
-278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT + + col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + - col0 * + 12 < NULL
----

skipif mysql # not compatible
query I rowsort label-1696
SELECT + + col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + - col0 * + 12 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + COUNT( * ) + + 27 * + COUNT( * ) * + - 85 AS col1 FROM tab0 AS cor0
----
-6882

skipif mysql # not compatible
query I rowsort label-1697
SELECT + COUNT ( * ) + + 27 * + COUNT ( * ) * + - 85 AS col1 FROM tab0 AS cor0
----
-6882

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT MIN( - ( - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT MIN ( - ( - col2 ) ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT + ( MAX( DISTINCT + - col2 ) ) * + SUM( - col1 ) + - 7 FROM tab2
----
4478

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT + ( MAX ( DISTINCT + - col2 ) ) * + SUM ( - col1 ) + - 7 FROM tab2
----
4478

query I rowsort
SELECT ALL - ( + col0 ) + + - ( col1 ) FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT + col0 + + - col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT ALL + col2 + + - col0 col2 FROM tab0 AS cor0 WHERE col2 + 38 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1703
SELECT ALL + col2 + + - col0 col2 FROM tab0 AS cor0 WHERE col2 + 38 <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT - 1 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1704
SELECT - 1 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT - col0 DIV - - col2 - - + 26 FROM tab1 AS cor0
----
25
25
26

skipif mysql # not compatible
query I rowsort label-1705
SELECT - col0 / - - col2 - - + 26 FROM tab1 AS cor0
----
25
25
26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 33 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( - - 86 ) AS col1, - 30 * + col2 AS col2 FROM tab2
----
86
-1200
86
-1740
86
-690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT + + 16 - - - ( COUNT( * ) ) DIV + + 20 * - 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-1708
SELECT + + 16 - - - ( COUNT ( * ) ) / + + 20 * - 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
16

query I rowsort
SELECT ALL - - col1 * - - col0 + - col2 FROM tab1 AS cor0 WHERE NOT 70 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT col1 DIV col2 * + col1 col1 FROM tab2 cor0
----
102
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT col1 / col2 * + col1 col1 FROM tab2 cor0
----
102
67
77

query II rowsort
SELECT 78 * - 35 AS col0, - col0 FROM tab1 AS cor0
----
-2730
-51
-2730
-85
-2730
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT + COUNT( - 8 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT + COUNT ( - 8 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 11 AS col1 FROM tab2 cor0
----
11
11
11

query I rowsort
SELECT + 93 FROM tab0 AS cor0 WHERE NOT 37 > col2 + + ( + 62 )
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT COUNT( * ) * - 20 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT COUNT ( * ) * - 20 AS col2 FROM tab1
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col0 FROM tab2 WHERE NOT + ( - ( + 49 ) ) + - - 64 IS NULL
----
4
4
4

query II rowsort
SELECT 42 AS col2, col0 + 79 FROM tab2
----
42
125
42
143
42
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT MIN( DISTINCT - 92 ) * 97 AS col2 FROM tab1
----
-8924

skipif mysql # not compatible
query I rowsort label-1718
SELECT MIN ( DISTINCT - 92 ) * 97 AS col2 FROM tab1
----
-8924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1719
SELECT - COUNT( - ( + col0 ) ) col2, ( 39 ) - - - CAST( NULL AS SIGNED ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1719
SELECT - COUNT ( - ( + col0 ) ) col2, ( 39 ) - - - CAST ( NULL AS INTEGER ) FROM tab0
----
-3
NULL

query I rowsort
SELECT ALL 7 + 24 * - 55 - - col0 FROM tab1
----
-1222
-1228
-1262

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL < + - 3 )
----

query I rowsort
SELECT + - col1 + - - col2 + + col1 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + 1 col2 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT ALL + 45 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - - col2 + + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col1, 29 + + col0 AS col1 FROM tab0 AS cor0
----
10
116
47
44
99
126

query I rowsort
SELECT - ( + 16 ) AS col1 FROM tab0 AS cor0 WHERE 82 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 37 ) * + 80 * col2 * - - col0 - + ( - 99 ) + 28 FROM tab0 AS cor0
----
-2086673
-2575073
-28424753

query I rowsort
SELECT DISTINCT 24 * col2 * + col0 * + 27 + + 33 * + + 73 * - 62 AS col0 FROM tab2 cor0
----
1509522
2669442
536226

query I rowsort
SELECT DISTINCT - col1 - + + col0 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT ALL - CAST( 70 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - CAST ( 70 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT ALL + COUNT( * ) * + ( - 60 ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + COUNT ( * ) * + ( - 60 ) FROM tab0 AS cor0
----
-180

query I rowsort
SELECT ALL + col0 + - 37 AS col1 FROM tab1 WHERE NULL < + 82
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / col1 IN ( col2, + col1, - 59 * - 53 / 88 - 10, - + 15 * col2 * + ( - col0 ) - + 53, + col2 + + 25 )
----
97
1
99

query I rowsort
SELECT - col0 - - + 40 * + + 45 * - 38 AS col2 FROM tab0
----
-68415
-68487
-68497

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT SUM( - col1 ) * - + 19 + + - 93 AS col1 FROM tab2
----
3612

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT SUM ( - col1 ) * - + 19 + + - 93 AS col1 FROM tab2
----
3612

query I rowsort
SELECT DISTINCT 39 * + col1 + + col0 AS col2 FROM tab1
----
1924
280
597

query III rowsort
SELECT * FROM tab1 WHERE ( - 16 IS NULL )
----

query I rowsort
SELECT + col2 + + 15 + + + col1 FROM tab0
----
115
143
46

query I rowsort
SELECT - col1 * - - 71 + + 41 AS col1 FROM tab2
----
-3580
-4716
-5426

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT 33 * COUNT( - 36 ) + + - COUNT( * ) - - MAX( ALL 38 ) FROM tab1
----
134

skipif mysql # not compatible
query I rowsort label-1743
SELECT 33 * COUNT ( - 36 ) + + - COUNT ( * ) - - MAX ( ALL 38 ) FROM tab1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT - - 48 * ( - COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT - - 48 * ( - COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT DISTINCT 30 AS col0, COUNT( * ) + - ( + + 74 ) AS col2 FROM tab0
----
30
-71

skipif mysql # not compatible
query II rowsort label-1746
SELECT DISTINCT 30 AS col0, COUNT ( * ) + - ( + + 74 ) AS col2 FROM tab0
----
30
-71

query I rowsort
SELECT ALL + + col1 * - + 40 * - ( - 45 ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 84 * 56 AS col1 FROM tab1
----
-4704

query II rowsort
SELECT ALL - ( - ( + col1 ) ), + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1750
SELECT MIN( - CAST( col0 AS SIGNED ) ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1750
SELECT MIN ( - CAST ( col0 AS INTEGER ) ) FROM tab1 cor0
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col2 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT + 1 DIV col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 1 / col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT 22 DIV - COUNT( * ) AS col2 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1753
SELECT 22 / - COUNT ( * ) AS col2 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT ALL + col1 * + 18 * col1 + + - col0 FROM tab1 AS cor0
----
3477
365
39671

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - col2 = - col1
----

query I rowsort
SELECT ALL - 72 * - 38 FROM tab1 AS cor0
----
2736
2736
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT DISTINCT 40 * + COUNT( * ) * COUNT( * ) FROM tab0, tab0 AS cor0
----
3240

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT 40 * + COUNT ( * ) * COUNT ( * ) FROM tab0, tab0 AS cor0
----
3240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 72 col1 FROM tab0
----
-57
15
25

query I rowsort
SELECT DISTINCT - 1 + + col2 AS col1 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT ALL + col1 + + col1 + + - 65 * + - col1 FROM tab2 AS cor0
----
3417
4489
5159

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT ALL + col1 DIV col0 - 68 FROM tab1 cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + col1 / col0 - 68 FROM tab1 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT + MIN( DISTINCT - + col2 ) * COUNT( * ) + - 3 FROM tab0 AS cor0
----
-300

skipif mysql # not compatible
query I rowsort label-1763
SELECT + MIN ( DISTINCT - + col2 ) * COUNT ( * ) + - 3 FROM tab0 AS cor0
----
-300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN - col0 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL - 28 + ( + COUNT( * ) ) * + + COUNT( * ) col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1765
SELECT ALL - 28 + ( + COUNT ( * ) ) * + + COUNT ( * ) col2 FROM tab0 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT DISTINCT ( + SUM( col0 ) ) - + COUNT( ALL 84 ) + - - COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
199
-3

skipif mysql # not compatible
query II rowsort label-1766
SELECT DISTINCT ( + SUM ( col0 ) ) - + COUNT ( ALL 84 ) + - - COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
199
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT - + ( + + CAST( + - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1767
SELECT - + ( + + CAST ( + - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - + ( - 17 ) FROM tab0 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL MAX( DISTINCT - + 24 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL MAX ( DISTINCT - + 24 ) FROM tab0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 * 6 * + col2 - + 16 col2 FROM tab1
----
-1498192
-2557666
-3378664

query I rowsort
SELECT + col0 * + 24 * ( + ( - + 54 ) ) AS col0 FROM tab0 cor0
----
-112752
-125712
-19440

query II rowsort
SELECT col2 AS col2, col0 - col2 FROM tab1 AS cor0
----
59
26
68
23
96
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1773
SELECT - 33 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1773
SELECT - 33 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT DISTINCT - 68 DIV + - col1 AS col1 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - 68 / + - col1 AS col1 FROM tab1 AS cor0
----
1
13
4

query I rowsort
SELECT 87 FROM tab1 WHERE NOT NULL <= - - 45
----

query I rowsort
SELECT - + 63 * col1 AS col1 FROM tab2 cor0
----
-3213
-4221
-4851

query I rowsort
SELECT + + col2 AS col0 FROM tab2 cor0 WHERE NOT - ( + 18 ) > col0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1778
SELECT ( - + COUNT( * ) ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1778
SELECT ( - + COUNT ( * ) ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT ALL - ( + + col0 ) DIV + 72 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - ( + + col0 ) / + 72 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - 62 * + col0 FROM tab0 AS cor0
----
-5394
-6014
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT DISTINCT col2 DIV - - col2 AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT col2 / - - col2 AS col2 FROM tab2 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 60 * - col1 + col1 col2 FROM tab2 cor0
----
3111
4087
4697

query II rowsort
SELECT DISTINCT - col0, + 54 * + col1 AS col1 FROM tab2
----
-46
2754
-64
4158
-75
3618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 95 col1, + col1 AS col0 FROM tab1
----
-95
14
-95
47
-95
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <> - 23 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT ALL 80 + + col2 + - CAST( + + 78 AS SIGNED ) FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL 80 + + col2 + - CAST ( + + 78 AS INTEGER ) FROM tab0
----
101
12
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1787
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 17 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT CAST ( NULL AS REAL ) + - 17 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 IN ( ( + col0 ), + col1 * + + 10, col1, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 11 FROM tab1
----
16
25
58

query I rowsort
SELECT DISTINCT 89 + 31 * col0 AS col2 FROM tab1
----
1670
2724
2910

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1792
SELECT - col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT - col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1793
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 41 * + col2 AS col1 FROM tab2
----
1640
2378
943

query I rowsort
SELECT 17 + 21 * + col2 AS col1 FROM tab0
----
1004
2096
227

query I rowsort
SELECT + ( - col0 ) FROM tab0 WHERE NOT NULL BETWEEN ( + col1 ) AND + col1 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT + col0 DIV col0 + + ( + col2 ) FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-1797
SELECT + col0 / col0 + + ( + col2 ) FROM tab0
----
100
11
48

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND col2 * 73
----

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND 9
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 4 * + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT SUM( DISTINCT + col0 ) * 2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND 41 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT SUM ( DISTINCT + col0 ) * 2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND 41 * + col2
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT 20 * - COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT 20 * - COUNT ( * ) FROM tab1
----
-60

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 <= col1
----
46
51
23
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT ALL + ( col2 ) DIV col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + ( col2 ) / col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT 79 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT 79 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT + 43 DIV col2 col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1807
SELECT + 43 / col2 col0 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1808
SELECT DISTINCT + 90 DIV + MIN( - ( col1 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT + 90 / + MIN ( - ( col1 ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1809
SELECT 22 DIV - COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1809
SELECT 22 / - COUNT ( * ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1810
SELECT DISTINCT + COUNT( DISTINCT ( - 74 ) ) DIV 13 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + COUNT ( DISTINCT ( - 74 ) ) / 13 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL - MIN( 89 ) * 46 AS col0 FROM tab1
----
-4094

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - MIN ( 89 ) * 46 AS col0 FROM tab1
----
-4094

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT + col0 DIV - 45 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT + col0 / - 45 AS col1 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1813
SELECT * FROM tab1 WHERE - col1 * + col1 + CAST( NULL AS SIGNED ) NOT BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1813
SELECT * FROM tab1 WHERE - col1 * + col1 + CAST ( NULL AS INTEGER ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT - CAST( NULL AS SIGNED ) - MIN( col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT - CAST ( NULL AS INTEGER ) - MIN ( col0 ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT + CAST( NULL AS SIGNED ) - - 65 / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT + CAST ( NULL AS INTEGER ) - - 65 / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - ( - 99 ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col0 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1818
SELECT + MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL COUNT( * ) * + ( - MAX( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL COUNT ( * ) * + ( - MAX ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - ( 35 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT - ( + MAX( ALL CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT - ( + MAX ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( + ( - col0 ) ) NOT BETWEEN col2 + col1 * col0 AND col0 - 22 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - 53 + SUM( DISTINCT ( ( col1 ) ) - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-53

skipif mysql # not compatible
query I rowsort label-1824
SELECT - 53 + SUM ( DISTINCT ( ( col1 ) ) - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT + - COUNT( * ) * + 73 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1825
SELECT + - COUNT ( * ) * + 73 FROM tab0 AS cor0
----
-219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1826
SELECT ALL MIN( DISTINCT - col2 ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL MIN ( DISTINCT - col2 ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT col1 DIV 70 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT col1 / 70 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col1 ) AND ( col2 + + col1 )
----

query I rowsort
SELECT - + col1 * + 92 FROM tab1 AS cor0
----
-1288
-4324
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT - - 31 * - MAX( col2 ) + + 25 FROM tab0 AS cor0
----
-3044

skipif mysql # not compatible
query I rowsort label-1830
SELECT - - 31 * - MAX ( col2 ) + + 25 FROM tab0 AS cor0
----
-3044

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE col1 / + col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1831
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE col1 / + col1 IS NOT NULL
----
3

query I rowsort
SELECT + col1 + - 65 FROM tab0 AS cor0
----
-44
-64
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + ( - 72 ) * 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT 5 DIV - + col1 + col1 col0 FROM tab1
----
14
4
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT 5 / - + col1 + col1 col0 FROM tab1
----
14
4
47

query I rowsort
SELECT + ( + + col2 ) + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT + col2 + + - col1 * - 4 AS col2 FROM tab0
----
103
371
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1837
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) + + SUM( DISTINCT + 87 + - col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) + + SUM ( DISTINCT + 87 + - col0 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 27 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 30 > ( + 36 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab2 WHERE NULL NOT BETWEEN + 93 AND - col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL + MAX( DISTINCT 3 ) / 94 FROM tab2 WHERE ( col2 + col1 * 96 ) IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + MAX ( DISTINCT 3 ) / 94 FROM tab2 WHERE ( col2 + col1 * 96 ) IN ( col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col1 * col1 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - col1 + - ( + 86 ) AS col1 FROM tab1
----
-1430
-3282
-381

query III rowsort
SELECT * FROM tab0 WHERE col1 / - col1 BETWEEN - col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 42 FROM tab2 WHERE + 73 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 90 + - - col0 * - col0 AS col2 FROM tab2
----
-2206
-4186
-5715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE + col0 * + col1 + col0 NOT BETWEEN - col0 * + col1 AND col0
----
59
68
96

query I rowsort
SELECT DISTINCT - + col0 * - col1 - 60 FROM tab2 AS cor0
----
2286
4868
4965

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 18 = + 13 + col0 * - 90
----

query I rowsort
SELECT ALL + 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1852
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT ( col0 = CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT ( col0 = CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1853
SELECT - ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1853
SELECT - ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - 47 + col2 FROM tab0 AS cor0
----
-37
0
52

query I rowsort
SELECT ALL + + col0 + - col1 * + - 70 + - col1 AS col1 FROM tab1 AS cor0
----
1017
3334
430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT ALL + + CAST( - - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1857
SELECT ALL + + CAST ( - - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL 64 AS col0, + 51 AS col1 FROM tab2 AS cor0
----
64
51
64
51
64
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT - - COUNT( DISTINCT col1 ) AS col1 FROM tab2 cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT - - COUNT ( DISTINCT col1 ) AS col1 FROM tab2 cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1860
SELECT - COUNT( * ), - 32 AS col1 FROM tab1 AS cor0
----
-3
-32

skipif mysql # not compatible
query II rowsort label-1860
SELECT - COUNT ( * ), - 32 AS col1 FROM tab1 AS cor0
----
-3
-32

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL + ( - - ( MAX( - 60 ) ) ) FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + ( - - ( MAX ( - 60 ) ) ) FROM tab1 cor0
----
-60

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND ( 68 ) NOT BETWEEN ( + ( - col2 ) ) AND - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col2 + col1 * 0 BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - 51 ) FROM tab2
----
51
51
51

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab0 WHERE NOT + col1 > - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL + COUNT( * ) * - + COUNT( * ) + - AVG ( DISTINCT col1 ) AS col2 FROM tab0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) + - AVG ( DISTINCT col1 ) AS col2 FROM tab0 WHERE NULL < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT - 20 * CAST( - COUNT( * ) AS SIGNED ) * + 98 AS col1 FROM tab0 AS cor0
----
5880

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 20 * CAST ( - COUNT ( * ) AS INTEGER ) * + 98 AS col1 FROM tab0 AS cor0
----
5880

query I rowsort
SELECT ALL - col0 * + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL + - col0 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT + - 98 AS col0 FROM tab2 AS cor0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT + col0 DIV ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 30 IS NOT NULL )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1872
SELECT + col0 / ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 30 IS NOT NULL )
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 col2 FROM tab1 cor0
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + + 95 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 81 * - - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + ( - MIN( - + ( + col0 ) ) ) + + COUNT( * ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1876
SELECT + ( - MIN ( - + ( + col0 ) ) ) + + COUNT ( * ) AS col0 FROM tab1
----
94

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NULL ) >= ( + col1 )
----

query I rowsort
SELECT 12 + - 57 FROM tab2 cor0
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( 30 ) <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT + CAST( 64 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * - col2 / + + 25 )
----

skipif mysql # not compatible
query I rowsort label-1880
SELECT + CAST ( 64 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * - col2 / + + 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT ALL MAX( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( - + ( col2 ) ) ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL MAX ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( - + ( col2 ) ) ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1882
SELECT DISTINCT CAST( MAX( DISTINCT - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT CAST ( MAX ( DISTINCT - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + - 50 * - - COUNT( * ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-1883
SELECT + - 50 * - - COUNT ( * ) FROM tab0 AS cor0
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 28 col1 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT - MAX( DISTINCT + - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT ALL col1 * - 57 FROM tab0 AS cor0
----
-1197
-4617
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - col0 ) + - col0 * - 19 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 - + col1 + col1 + + + col2 * 13 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1889
SELECT DISTINCT - + 43, 40 DIV + + col0 AS col2 FROM tab0 AS cor0
----
-43
0
-43
2

skipif mysql # not compatible
query II rowsort label-1889
SELECT DISTINCT - + 43, 40 / + + col0 AS col2 FROM tab0 AS cor0
----
-43
0
-43
2

query III rowsort
SELECT * FROM tab1 WHERE ( - - col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 + + col0 + + col0 + + col0 + - + 14 * - col2 col0 FROM tab2
----
1088
511
803

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - col0 + + 71 AS col2 FROM tab1
----
-14
-20
20

onlyif mysql # DIV for integer division: 
query II rowsort label-1894
SELECT - 6 DIV - - col0 AS col2, + 77 FROM tab2
----
0
77
0
77
0
77

skipif mysql # not compatible
query II rowsort label-1894
SELECT - 6 / - - col0 AS col2, + 77 FROM tab2
----
0
77
0
77
0
77

query I rowsort
SELECT col0 - + - col2 AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT 73 + - 97 FROM tab1
----
-24
-24
-24

query III rowsort
SELECT * FROM tab0 WHERE + - ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + 56 AS col0 FROM tab1
----
103
61
70

query I rowsort
SELECT col1 + + 17 FROM tab1
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT - 59 + - COUNT( * ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT - 59 + - COUNT ( * ) FROM tab1 AS cor0
----
-62

query I rowsort
SELECT ALL + + 76 + - col1 FROM tab0 AS cor0
----
-5
55
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL 77 * - - 68 + - - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
5239

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL 77 * - - 68 + - - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
5239

query I rowsort
SELECT ALL + col1 - - col0 + + + col2 AS col2 FROM tab2 cor0
----
120
181
200

query I rowsort
SELECT ALL + col0 - + ( col1 ) AS col2 FROM tab1 cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL + COUNT( 40 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL + COUNT ( 40 ) FROM tab0
----
3

query I rowsort
SELECT - 43 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL + + ( - col0 ) AS col0, col2 + - 68 - - col1 AS col2, - col2 * - 15 FROM tab2 AS cor0
----
9 values hashing to 893660240425a5bbed3d8ef68a2876ed

query I rowsort
SELECT ALL - - 48 FROM tab1 cor0
----
48
48
48

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + 36 ) IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 + - col0 + + 46 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + COUNT( ALL - - 71 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1912
SELECT + COUNT ( ALL - - 71 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1913
SELECT ALL - COUNT( * ) AS col2, 43 FROM tab2
----
-3
43

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL - COUNT ( * ) AS col2, 43 FROM tab2
----
-3
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL + MIN( ( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + MIN ( ( + col0 ) ) FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 = - 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col1, 44 AS col0 FROM tab1
----
59
44
68
44
96
44

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col2 + + 26 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + col0, + 69 FROM tab0 WHERE + 34 IS NULL
----

query I rowsort
SELECT ALL - col0 * + + col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - col1 * - col2 * + 21 AS col1 FROM tab2 AS cor0
----
24633
64680
81606

query I rowsort
SELECT + 51 * 27 AS col2 FROM tab1 AS cor0
----
1377
1377
1377

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * col1 * + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT CAST( - 7 AS SIGNED ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT CAST ( - 7 AS INTEGER ) FROM tab1 AS cor0
----
-7

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - 80 < NULL )
----

query I rowsort
SELECT ALL + ( - ( ( - 42 ) ) ) * + col1 FROM tab2
----
2142
2814
3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT + MIN( - col0 ) * - - 97 col0 FROM tab1 WHERE + 3 + - col0 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1929
SELECT + MIN ( - col0 ) * - - 97 col0 FROM tab1 WHERE + 3 + - col0 * + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT - 92 * MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
920

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - 92 * MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT - MIN( + col1 ) + MAX( col0 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1932
SELECT - MIN ( + col1 ) + MAX ( col0 ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + + 64 col1 FROM tab0 AS cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + col2 * 5 + + col0 - 62 AND ( + 31 * 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 38 + + 30 FROM tab2 cor0 WHERE NOT ( + 8 ) <= NULL
----

query I rowsort
SELECT - + col1 + - + col0 + + + ( col1 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT col1 * - CAST( NULL AS SIGNED ) + + 64 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT col1 * - CAST ( NULL AS INTEGER ) + + 64 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 83 * - + col0 AS col0 FROM tab0
----
-1245
-7221
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT + COUNT( - - ( + col1 ) ) FROM tab1 WHERE 51 NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT + COUNT ( - - ( + col1 ) ) FROM tab1 WHERE 51 NOT BETWEEN NULL AND + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT SUM( - 98 ) + + + 25 AS col2 FROM tab2
----
-269

skipif mysql # not compatible
query I rowsort label-1941
SELECT SUM ( - 98 ) + + + 25 AS col2 FROM tab2
----
-269

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL COUNT( * ) + + + 60 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL COUNT ( * ) + + + 60 FROM tab2
----
63

query I rowsort
SELECT DISTINCT col2 * + col0 * - + col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT 43 AS col1 FROM tab0 WHERE NULL IS NULL
----
43
43
43

query I rowsort
SELECT ALL - col0 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-240
-7656
-9506

query I rowsort
SELECT DISTINCT + col2 + 81 AS col1 FROM tab2 cor0
----
104
121
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT ALL - - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1949
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT ( - + col0 ) * 15 - - col0 AS col1 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT + + col2 * 30 AS col1 FROM tab1 AS cor0
----
1770
2040
2880

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + - col1 * col0 AND + ( - 4 ) - - 32
----

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col2 FROM tab2 WHERE + - col1 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1955
SELECT DISTINCT col2 + - 76 - col0 * - 28 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT col2 + - 76 - col0 * - 28 * + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 43 IS NOT NULL
----

query I rowsort
SELECT - col0 * - - 73 AS col0 FROM tab2
----
-3358
-4672
-5475

query I rowsort
SELECT - - 59 * - + 49 FROM tab2 AS cor0
----
-2891
-2891
-2891

query I rowsort
SELECT ALL + col1 * - ( col0 ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 4 + col1 * + + col0 / col2 )
----

query I rowsort
SELECT ALL + + 37 AS col0 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT - - col0 * + col1 + + ( + + col1 ) + + - CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - - col0 * + col1 + + ( + + col1 ) + + - CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 15 AS col1 FROM tab1 WHERE - 62 IS NOT NULL
----
15
15
15

query I rowsort
SELECT 35 * col1 FROM tab1
----
1645
175
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT - CAST( - MAX( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1964
SELECT - CAST ( - MAX ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + - col1 * + col2 + - - col1 AS col2 FROM tab0 cor0
----
-189
-3726
-98

query I rowsort
SELECT ALL + col2 + + + 56 AS col2 FROM tab0 cor0
----
103
155
66

query I rowsort
SELECT DISTINCT - 73 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col0 + - 26 FROM tab1 cor0
----
25
59
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( 76 / + col0, - col0 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1971
SELECT DISTINCT 39 DIV 51 AS col1, - COUNT( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1971
SELECT DISTINCT 39 / 51 AS col1, - COUNT ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0
0

query II rowsort
SELECT col1 - - - 32 AS col0, 81 AS col1 FROM tab2
----
19
81
35
81
45
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1973
SELECT DISTINCT - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * + col2 + - col1 * col1 AS col2 FROM tab0
----
-231
-2754
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1975
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) + + 76 + - + 62 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) + + 76 + - + 62 FROM tab1
----
14

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab2 AS cor0 WHERE 45 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + - + 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1978
SELECT ALL - 2 DIV - 27, ( + - col0 ) AS col2 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-1978
SELECT ALL - 2 / - 27, ( + - col0 ) AS col2 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 44 col2 FROM tab0
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + COUNT( * ) * - ( + 73 ) FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + COUNT ( * ) * - ( + 73 ) FROM tab0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - 3 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1981
SELECT - 3 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 + 15 - col2 * col2 col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col1 * col1 * col1 + col2, - 75 + - col1 + col1, - col2 + col0 )
----

query I rowsort
SELECT ALL + col0 * 83 AS col1 FROM tab1 cor0
----
4233
7055
7553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1984
SELECT + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1984
SELECT + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1985
SELECT ALL COUNT( * ) DIV MIN( ALL - + col0 ) DIV 82 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1985
SELECT ALL COUNT ( * ) / MIN ( ALL - + col0 ) / 82 col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT - CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1986
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT 96 AS col2, ( - col0 ) AS col1 FROM tab1
----
96
-51
96
-85
96
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2 col0, col2 AS col1, col1 FROM tab1
----
9 values hashing to cd741e22fa35c6dfa847666b4267b499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 90 + - col0 col1 FROM tab1
----
135
64
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - 12 + SUM( ALL + + 1 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 12 + SUM ( ALL + + 1 ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + - - col2
----

query I rowsort
SELECT ALL - 10 / - col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT - - CAST( - MIN( DISTINCT - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1993
SELECT - - CAST ( - MIN ( DISTINCT - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - 5 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - 5 IS NOT NULL
----
3

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + - col2, col2 col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT - COUNT( * ) + + + MAX( - 80 ) AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT - COUNT ( * ) + + + MAX ( - 80 ) AS col1 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT ALL + + col2 + + + 90 AS col0 FROM tab0 AS cor0
----
100
137
189

query I rowsort
SELECT + col0 + + + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2000
SELECT ALL CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) - - 8 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) - - 8 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT - COUNT( * ) + 9 AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2001
SELECT - COUNT ( * ) + 9 AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - COUNT( * ) + ( + + 38 ) col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2002
SELECT - COUNT ( * ) + ( + + 38 ) col2 FROM tab0 AS cor0
----
35

query I rowsort
SELECT col2 * + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2004
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - 71 NOT IN ( + CAST( - 49 AS SIGNED ) - - - col0 )
----

skipif mysql # not compatible
query III rowsort label-2004
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - 71 NOT IN ( + CAST ( - 49 AS INTEGER ) - - - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2005
SELECT + col0 * 53 DIV + col2, - 69 - - + 43 col0 FROM tab2
----
106
-26
68
-26
84
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2005
SELECT + col0 * 53 / + col2, - 69 - - + 43 col0 FROM tab2
----
106
-26
68
-26
84
-26

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 74 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT CAST( + col2 AS SIGNED ) - - 98 AS col2 FROM tab0
----
108
145
197

skipif mysql # not compatible
query I rowsort label-2007
SELECT CAST ( + col2 AS INTEGER ) - - 98 AS col2 FROM tab0
----
108
145
197

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT COUNT( * ) + ( + 8 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT COUNT ( * ) + ( + 8 ) FROM tab2
----
11

query I rowsort
SELECT - ( - 93 ) - col1 - 82 * col0 FROM tab2
----
-3730
-5232
-6124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT DISTINCT ( + + col1 ) * - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT ( + + col1 ) * - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2011
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) NOT IN ( - + CAST( + 1 AS SIGNED ), + col0 * - + CAST( NULL AS SIGNED ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2011
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) NOT IN ( - + CAST ( + 1 AS INTEGER ), + col0 * - + CAST ( NULL AS INTEGER ) + + col0 )
----

query I rowsort
SELECT - ( + 68 ) FROM tab2 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ( MIN( DISTINCT - col1 ) ) * SUM( ALL + 2 ) FROM tab2 AS cor0
----
-462

skipif mysql # not compatible
query I rowsort label-2013
SELECT ( MIN ( DISTINCT - col1 ) ) * SUM ( ALL + 2 ) FROM tab2 AS cor0
----
-462

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + 83 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT + - ( - col1 ) DIV - + col0 col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2015
SELECT + - ( - col1 ) / - + col0 col1 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 19 * - + col2 + + col0 * - - ( col2 ) FROM tab1 AS cor0
----
3072
3894
4896

query I rowsort
SELECT DISTINCT - - 39 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
39

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( col2 ) * col2 AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT + col0 DIV - - 62 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2021
SELECT + col0 / - - 62 FROM tab0
----
0
1
1

query II rowsort
SELECT ALL + col1, - 9 FROM tab2
----
51
-9
67
-9
77
-9

query I rowsort
SELECT DISTINCT col2 * - 35 + - col2 AS col1 FROM tab2
----
-1440
-2088
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - MAX( + 52 ) + - CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - MAX ( + 52 ) + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + + col1 * + col2 FROM tab2
----
1196
3120
3944

query II rowsort
SELECT DISTINCT - 31, + col1 AS col1 FROM tab1
----
-31
14
-31
47
-31
5

query I rowsort
SELECT - col1 * + 16 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1072
-1232
-816

query II rowsort
SELECT DISTINCT - col1 * + 4, col2 FROM tab0
----
-324
47
-4
99
-84
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT SUM( DISTINCT + col2 ) + - 83 + + COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-2029
SELECT SUM ( DISTINCT + col2 ) + - 83 + + COUNT ( * ) FROM tab0
----
76

query I rowsort
SELECT + col0 + 20 * + + col1 * + 80 FROM tab2
----
107275
123264
81646

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT + MIN( - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2031
SELECT + MIN ( - - col1 ) FROM tab1
----
5

query II rowsort
SELECT col0 AS col0, 83 AS col2 FROM tab2
----
46
83
64
83
75
83

query II rowsort
SELECT col1, + 10 AS col1 FROM tab0
----
1
10
21
10
81
10

query I rowsort
SELECT ALL + col1 + - 62 AS col2 FROM tab2 AS cor0
----
-11
15
5

query I rowsort
SELECT - 21 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-21
-21
-21

query II rowsort
SELECT + col1, 58 AS col0 FROM tab1 AS cor0
----
14
58
47
58
5
58

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 - + 72 FROM tab0 AS cor0
----
-57
15
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT - 35 - + 34 + + CAST( + - CAST( - 83 AS SIGNED ) AS SIGNED ) * - 78 * + + col0 col1 FROM tab0 cor0
----
-563307
-628047
-97179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2040
SELECT - 35 - + 34 + + CAST ( + - CAST ( - 83 AS INTEGER ) AS INTEGER ) * - 78 * + + col0 col1 FROM tab0 cor0
----
-563307
-628047
-97179

query I rowsort
SELECT DISTINCT ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL > col0
----
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > col0
----
0

query I rowsort
SELECT - 10 - - 66 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT 63 + - + COUNT( * ) AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2044
SELECT 63 + - + COUNT ( * ) AS col0 FROM tab0
----
60

query I rowsort
SELECT + col2 + - ( col1 ) * - col2 AS col1 FROM tab2
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT 55 + col2 DIV + - col2 FROM tab1
----
54
54
54

skipif mysql # not compatible
query I rowsort label-2046
SELECT 55 + col2 / + - col2 FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT ( - MAX( ALL col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT ( - MAX ( ALL col2 ) ) FROM tab2
----
-58

query I rowsort
SELECT ALL 10 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + col0 * col0 IS NULL
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT col1 DIV + 75 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2049
SELECT col1 / + 75 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + MIN( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2050
SELECT + MIN ( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 52 col2 FROM tab1 AS cor0
----
-1
33
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT - COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2052
SELECT - COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + col1 + - - 80 AS col2 FROM tab2
----
131
147
157

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - 7 BETWEEN + col0 AND ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col2 ) + + + col2 * + col1 AS col0, ( + 18 ) col2 FROM tab0
----
198
18
220
18
3854
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL COUNT( * ) * - + 32 AS col0 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL COUNT ( * ) * - + 32 AS col0 FROM tab2
----
-96

query I rowsort
SELECT col0 + col2 + + col0 AS col1 FROM tab1
----
198
229
250

query I rowsort
SELECT + 72 + + 81 FROM tab0
----
153
153
153

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL NOT BETWEEN col1 AND - - ( - - col2 ) + ( - 45 )
----

query II rowsort
SELECT 87 + - col0 + + col0 + col0 - 10, + col2 AS col0 FROM tab1
----
128
96
162
59
168
68

query I rowsort
SELECT ALL - ( + 38 ) + + - col0 FROM tab0
----
-125
-135
-53

query I rowsort
SELECT ALL + col0 + - + 19 AS col0 FROM tab0
----
-4
68
78

query I rowsort
SELECT DISTINCT + col2 + + - col0 + col0 FROM tab2
----
23
40
58

query I rowsort
SELECT 67 * + col1 * col0 FROM tab0 AS cor0
----
122409
6499
81405

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT COUNT( * ) * - + 8 + + - 0 * 27 * 74 * + MIN( ALL + col1 ) * - 18 AS col1 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2066
SELECT COUNT ( * ) * - + 8 + + - 0 * 27 * 74 * + MIN ( ALL + col1 ) * - 18 AS col1 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT ALL - - 54 DIV - COUNT( * ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - - 54 / - COUNT ( * ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - + col2 * - + col0 + col1 AS col2 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - 53 + COUNT( + - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - 53 + COUNT ( + - col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + + col0 * - 67 AS col0 FROM tab2 AS cor0
----
-3105
-4328
-5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT ALL + COUNT( * ) - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + COUNT ( * ) - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + + MIN( + - ( - ( 17 ) ) ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2072
SELECT + + MIN ( + - ( - ( 17 ) ) ) FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT DISTINCT COUNT( DISTINCT - + 49 ) - + ( + 30 ) AS col2 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT COUNT ( DISTINCT - + 49 ) - + ( + 30 ) AS col2 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT ALL - - 55 - + col0 + + - col2 + + col0 + + 50 * col2 * col2 * + + 63 + + col2 AS col0 FROM tab1 AS cor0
----
10965205
14565655
29030455

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 / col0 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col1 * + 54 AS col0, col1 * + 69 FROM tab0
----
1134
1449
4374
5589
54
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2077
SELECT ALL COUNT( * ) AS col0, ( 67 ) col1 FROM tab2
----
3
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2077
SELECT ALL COUNT ( * ) AS col0, ( 67 ) col1 FROM tab2
----
3
67

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col2 * + 92 * - 79, col0 )
----

query II rowsort
SELECT DISTINCT 50, col2 AS col1 FROM tab0
----
50
10
50
47
50
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2080
SELECT CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-2080
SELECT CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT - + CAST( 13 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

skipif mysql # not compatible
query I rowsort label-2081
SELECT - + CAST ( 13 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT - 17 + - col2 * - col0 AS col2 FROM tab1
----
4879
4998
6171

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT + COUNT( - 24 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2083
SELECT + COUNT ( - 24 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT DISTINCT - 75 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT - 75 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT - 17 * + COUNT( * ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 17 * + COUNT ( * ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL MIN( 69 ) + + 21 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL MIN ( 69 ) + + 21 FROM tab1 AS cor0
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 20 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2090
SELECT 8 DIV + 68 DIV COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2090
SELECT 8 / + 68 / COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT col2 * - + 27 FROM tab2
----
-1080
-1566
-621

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( - 39 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - 43 + + ( - 46 ) AS col0 FROM tab1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2094
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT COUNT( * ) + - 45 AS col2 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-2095
SELECT COUNT ( * ) + - 45 AS col2 FROM tab2
----
-42

query II rowsort
SELECT DISTINCT - 36, col1 FROM tab2 AS cor0
----
-36
51
-36
67
-36
77

query I rowsort
SELECT DISTINCT + 27 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
27

query I rowsort
SELECT + - 46 + + col1 FROM tab2 AS cor0
----
21
31
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2099
SELECT ALL + col0 - + 3 DIV + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL + col0 - + 3 / + col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-2101
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0
----
0
3

query I rowsort
SELECT + col0 FROM tab1 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT DISTINCT + SUM( DISTINCT + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT + SUM ( DISTINCT + 76 ) FROM tab0
----
76

query I rowsort
SELECT DISTINCT col0 * - + 48 AS col2 FROM tab1 AS cor0
----
-2448
-4080
-4368

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 IN ( + col2, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT ALL + col2 DIV + 48 + + col0 AS col0 FROM tab1 AS cor0
----
53
86
92

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + col2 / + 48 + + col0 AS col0 FROM tab1 AS cor0
----
53
86
92

query I rowsort
SELECT - 94 * - col0 AS col1 FROM tab0
----
1410
8178
9118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2108
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + - ( - - col0 ) FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT col0 - - col0 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col1 * col0 FROM tab2
----
107916
315392
376875

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT + 1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2113
SELECT - col0 AS col1, + col2 DIV 72 AS col1 FROM tab1 AS cor0
----
-51
1
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-2113
SELECT - col0 AS col1, + col2 / 72 AS col1 FROM tab1 AS cor0
----
-51
1
-85
0
-91
0

query I rowsort
SELECT AVG ( - 0 ) AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > - - col0 + 86
----

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
48

query I rowsort
SELECT ALL + 93 + + + 57 AS col0 FROM tab2
----
150
150
150

query I rowsort
SELECT ALL - col2 + + + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL + 3 + SUM( - col0 ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + 3 + SUM ( - col0 ) FROM tab0 AS cor0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT - + SUM( DISTINCT - + 44 ) + - + MAX( + col1 ) + - - 68 AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - + SUM ( DISTINCT - + 44 ) + - + MAX ( + col1 ) + - - 68 AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ( + - col1 ) + + + col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT DISTINCT MAX( ALL - - 7 ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT MAX ( ALL - - 7 ) FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2123
SELECT DISTINCT - COUNT( * ) AS col1, - 58 AS col2 FROM tab0 AS cor0
----
-3
-58

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT - COUNT ( * ) AS col1, - 58 AS col2 FROM tab0 AS cor0
----
-3
-58

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT 74 - - col1 NOT IN ( 66, ( - 37 ) + col1 - - 91 + - 61 * - 89, - col2 * col2, + - ( - 65 ) - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * + + col1 col2 FROM tab2 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col1 / - 43 * + col0 + + col0 <> - - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NULL BETWEEN 60 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT ALL ( + + ( + + COUNT( * ) ) ) DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL ( + + ( + + COUNT ( * ) ) ) / + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT - 72 DIV col1 AS col1 FROM tab2 WHERE NOT col2 > col1 * + col1 * - - 23 * - - 40
----
-1
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - 72 / col1 AS col1 FROM tab2 WHERE NOT col2 > col1 * + col1 * - - 23 * - - 40
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT + MIN( ALL + 36 ) FROM tab2 AS cor0 JOIN tab0 cor1 ON NOT + - 81 >= + CAST( NULL AS SIGNED ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT + MIN ( ALL + 36 ) FROM tab2 AS cor0 JOIN tab0 cor1 ON NOT + - 81 >= + CAST ( NULL AS INTEGER ) + - 6
----
NULL

query I rowsort
SELECT ALL + + 71 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 57 AND - col2
----

query I rowsort
SELECT + col1 * - 23 * + - 91 FROM tab2 AS cor0
----
106743
140231
161161

query II rowsort
SELECT DISTINCT - - col0 AS col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT - + 81 + + 9 FROM tab1 cor0 WHERE NOT 74 IS NULL
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT DISTINCT - COUNT( * ) AS col1, ( COUNT( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2135
SELECT DISTINCT - COUNT ( * ) AS col1, ( COUNT ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 AS col1, col1 col1 FROM tab1 AS cor0
----
27
14
27
47
27
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT DISTINCT - + col1 * - col0 DIV + - col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT - + col1 * - col0 / + - col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2138
SELECT + col2, + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2138
SELECT + col2, + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT - + col1 * 80 * col1 AS col1 FROM tab0 AS cor0
----
-35280
-524880
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT COUNT( DISTINCT - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2140
SELECT COUNT ( DISTINCT - col0 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT - MAX( DISTINCT - + ( - + 27 ) ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT - MAX ( DISTINCT - + ( - + 27 ) ) FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL 26 AS col1 FROM tab1 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + col2 = + ( col0 ) + + col1 * 66 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 24 * - col1 FROM tab0
----
-1944
-24
-504

query I rowsort
SELECT DISTINCT - 81 * - col1 AS col1 FROM tab1
----
1134
3807
405

query I rowsort
SELECT col0 * 79 FROM tab1
----
4029
6715
7189

query I rowsort
SELECT 65 * 45 AS col1 FROM tab0
----
2925
2925
2925

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT + - 20 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT + - 20 / col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col2 col2, - col1 FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

query I rowsort
SELECT + col0 * - col0 + 91 + + 16 + + 38 AS col1 FROM tab1 AS cor0
----
-2456
-7080
-8136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 + - + 67 col0 FROM tab0 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col0 FROM tab0 AS cor0 WHERE NOT + 49 BETWEEN NULL AND + - 85
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT DISTINCT - MIN( DISTINCT col2 ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT - MIN ( DISTINCT col2 ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - 12 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT - ( + col0 ) DIV + - 67 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2157
SELECT - ( + col0 ) / + - 67 AS col1 FROM tab0 AS cor0
----
0
1
1

query II rowsort
SELECT DISTINCT + 64 AS col0, 90 + - - col2 FROM tab0
----
64
100
64
137
64
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 45 ) col1 FROM tab0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT 15 - ( - 56 ) DIV col1 AS col1 FROM tab0
----
15
17
71

skipif mysql # not compatible
query I rowsort label-2160
SELECT 15 - ( - 56 ) / col1 AS col1 FROM tab0
----
15
17
71

query I rowsort
SELECT DISTINCT ( + ( - 27 ) ) FROM tab2
----
-27

query I rowsort
SELECT ALL ( 77 ) AS col1 FROM tab1
----
77
77
77

query I rowsort
SELECT ALL - 48 + - + 91 - - - 70 + + 33 AS col2 FROM tab0
----
-176
-176
-176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL + col0 * col0 + - 46 * - - col0 FROM tab0
----
-465
3567
4947

query I rowsort
SELECT ALL 20 - 42 AS col1 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT + 27 + + COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 27 + + COUNT ( * ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT col0 + + 38 + - + 32 * + col0 + + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1337
-1869
-2220

query I rowsort
SELECT + 98 + col1 + - 41 - - 43 FROM tab1 cor0
----
105
114
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT + col1 - + CAST( NULL AS SIGNED ) * - + col1 / - col1 / - col2 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2170
SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) * - + col1 / - col1 / - col2 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 74 < + 59 + + 27
----

query I rowsort
SELECT 1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - 92 * - + COUNT( * ) * - 79 AS col0 FROM tab2 AS cor0
----
-21804

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - 92 * - + COUNT ( * ) * - 79 AS col0 FROM tab2 AS cor0
----
-21804

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ALL - ( SUM( ALL col2 ) ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - ( SUM ( ALL col2 ) ) FROM tab1 cor0
----
-223

query I rowsort
SELECT - 59 * 48 * - col1 AS col1 FROM tab0 AS cor0
----
229392
2832
59472

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2176
SELECT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * + + col0 + + col2 FROM tab0 AS cor0
----
752
880
9702

query II rowsort
SELECT col1, col1 + col2 FROM tab0
----
1
100
21
31
81
128

query I rowsort
SELECT DISTINCT 1 * + col2 AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 WHERE 78 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 26 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT DISTINCT + 62 DIV - + 15 AS col1 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + 62 / - + 15 AS col1 FROM tab1 cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT ALL + CAST( + col1 AS SIGNED ) * - 80 FROM tab1 AS cor0
----
-1120
-3760
-400

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + CAST ( + col1 AS INTEGER ) * - 80 FROM tab1 AS cor0
----
-1120
-3760
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT 74 DIV - - col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT 74 / - - col2 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT DISTINCT + - ( - col2 ) + + 85 AS col1 FROM tab0 AS cor0
----
132
184
95

query I rowsort
SELECT ALL + 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL 40 + + ( - MIN( + + col0 ) ) FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL 40 + + ( - MIN ( + + col0 ) ) FROM tab0 cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL MIN( + - 9 ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL MIN ( + - 9 ) AS col1 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT COUNT( * ) * 50 + + - COUNT( * ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT COUNT ( * ) * 50 + + - COUNT ( * ) FROM tab2 AS cor0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT ALL + - col1 DIV - col0 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + - col1 / - col0 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 60 + + 13 AS col2 FROM tab2 AS cor0
----
73
73
73

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col0 FROM tab0 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT 79 * col0 + + col0 FROM tab1 AS cor0
----
4080
6800
7280

query I rowsort
SELECT ALL + 36 * - - col1 + + 48 AS col2 FROM tab1 AS cor0
----
1740
228
552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2196
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2196
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + 30 ) * - 79 * 99 * + col0 + + - col1 FROM tab2
----
10792929
15016243
17597183

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT ALL - col2 DIV + - ( + 54 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - col2 / + - ( + 54 ) FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2199
SELECT DISTINCT CAST( + SUM( col2 ) AS SIGNED ) + COUNT( * ) col0 FROM tab0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2199
SELECT DISTINCT CAST ( + SUM ( col2 ) AS INTEGER ) + COUNT ( * ) col0 FROM tab0
----
159

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NOT - 90 + 30 = - 19
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE 10 + - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL COUNT( + - col2 ) * - ( - 1 ) + + - 41 * COUNT( * ) FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL COUNT ( + - col2 ) * - ( - 1 ) + + - 41 * COUNT ( * ) FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + MAX( DISTINCT - 16 ) + + COUNT( * ) AS col0 FROM tab0 WHERE - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT + MAX ( DISTINCT - 16 ) + + COUNT ( * ) AS col0 FROM tab0 WHERE - - col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 17 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT + CAST( NULL AS SIGNED ) - + col1 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT + CAST ( NULL AS INTEGER ) - + col1 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 96 AS col1, + col0 * - col2 FROM tab0 cor0
----
-96
-705
-96
-870
-96
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2208
SELECT - + 35 AS col1, MIN( - col2 ) FROM tab1 AS cor0
----
-35
-96

skipif mysql # not compatible
query II rowsort label-2208
SELECT - + 35 AS col1, MIN ( - col2 ) FROM tab1 AS cor0
----
-35
-96

query I rowsort
SELECT + + col2 * + - col2 * - 53 AS col2 FROM tab2 cor0
----
178292
28037
84800

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT - COUNT( + 37 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2210
SELECT - COUNT ( + 37 ) FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1, 83 * - - 1 col2 FROM tab0 AS cor0
----
1
83
21
83
81
83

query I rowsort
SELECT DISTINCT - - 23 AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + + COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2213
SELECT + + COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - + ( - 90 ) AS col1 FROM tab0 AS cor0
----
90
90
90

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT + - 16 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT + - 16 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - 42 FROM tab1 AS cor0 WHERE col2 * - + col0 + 88 IS NOT NULL
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + COUNT( - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2218
SELECT + COUNT ( - col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT - 12 * COUNT( * ) * ( - + 61 ) * + MIN( + col2 ) AS col0 FROM tab0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT - 12 * COUNT ( * ) * ( - + 61 ) * + MIN ( + col2 ) AS col0 FROM tab0 WHERE + col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col2 BETWEEN col1 AND col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( ( - - 0 ) ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2222
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1, + 72 FROM tab2
----
-3
72

skipif mysql # not compatible
query II rowsort label-2222
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 72 FROM tab2
----
-3
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - 54 col1 FROM tab2
----
-2484
-3456
-4050

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN - col1 * - - col1 AND - - col1 * - col2 + + + col0
----

query II rowsort
SELECT DISTINCT - 54 + + col1, + col0 FROM tab2
----
-3
46
13
75
23
64

query I rowsort
SELECT DISTINCT 25 + - - col2 AS col2 FROM tab0
----
124
35
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 19 col2, - col2 + - 13 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + 79 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + + 77 AND col2
----
79
79
79

query II rowsort
SELECT 60 AS col0, - 49 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to e4483a85cfa3162e1108e38a4e00d971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT DISTINCT - col2 * + col2 + CAST( NULL AS SIGNED ) * - col1 + - ( + + col1 ) + - col1 + + ( col2 ) * - col2 + - 53 - + + col2 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT DISTINCT - col2 * + col2 + CAST ( NULL AS INTEGER ) * - col1 + - ( + + col1 ) + - col1 + + ( col2 ) * - col2 + - 53 - + + col2 col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 75 + - 24 AS col2 FROM tab2
----
51
51
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2232
SELECT + col2 AS col2, + col0 DIV - col2 FROM tab2
----
23
-2
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-2232
SELECT + col2 AS col2, + col0 / - col2 FROM tab2
----
23
-2
40
-1
58
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 + - 46 * + col2 col0 FROM tab2
----
-1587
-3440
-6032

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT + + col1 * + 15 + 84 DIV + - 3 AS col1 FROM tab0 AS cor0
----
-13
1187
287

skipif mysql # not compatible
query I rowsort label-2234
SELECT + + col1 * + 15 + 84 / + - 3 AS col1 FROM tab0 AS cor0
----
-13
1187
287

query I rowsort
SELECT ALL - 81 + + 43 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT 9 + col1 FROM tab1 AS cor0
----
14
23
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 10 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 10 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 18 * 42 AS col0 FROM tab0 AS cor0
----
-756

query I rowsort
SELECT 15 FROM tab1 WHERE NULL NOT BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT ALL - col0 * + + 85 AS col0 FROM tab0
----
-1275
-7395
-8245

query I rowsort
SELECT col0 - + - col0 FROM tab0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL + 27 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + 27 / - col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - 48 col0 FROM tab2
----
-25
-8
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 54 * - + col1 * col1 >= - 29 + - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * + col0 * - col2 + - - 74 col2 FROM tab1
----
-283894
-290796
-358830

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 81 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 * - col1, col1 AS col0 FROM tab0 AS cor0
----
-210
21
-3807
81
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2249
SELECT DISTINCT + ( col0 ) DIV - 5 AS col2, - 70 + col2 AS col0 FROM tab0
----
-17
-60
-19
29
-3
-23

skipif mysql # not compatible
query II rowsort label-2249
SELECT DISTINCT + ( col0 ) / - 5 AS col2, - 70 + col2 AS col0 FROM tab0
----
-17
-60
-19
29
-3
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT + + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT + + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL - - COUNT( + + 23 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2252
SELECT ALL - - COUNT ( + + 23 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL 21 + - 6 AS col0 FROM tab1
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2255
SELECT ALL + col2 + CAST( NULL AS SIGNED ) + - - col1 * 81, - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) + - - col1 * 81, - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT DISTINCT + 95 * - 87 - - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-8167
-8276
-8299

query I rowsort
SELECT + - col0 FROM tab1 WHERE + + 50 * - - col0 * - 37 + + col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 67 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 67 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + ( + col2 ) + + 17 * - col1 * - col0 AS col1 FROM tab1 AS cor0
----
12234
72777
7284

query I rowsort
SELECT + ( - col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col1 + + 48 + - 68 * + 96 * + + col0
----

query I rowsort
SELECT ALL - col0 - col2 AS col2 FROM tab1 cor0
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + + + col1 * + col1 col2 FROM tab1 WHERE NULL IS NULL
----
108
2292
279

query I rowsort
SELECT ALL + 58 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + 87 - + - 24 FROM tab0, tab2 cor0
----
9 values hashing to 0085b5b605f50e9a12a763af4b7ec627

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL MIN( ALL + 21 ) AS col0 FROM tab1 WHERE NOT + + col2 * col0 IS NULL
----
21

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL MIN ( ALL + 21 ) AS col0 FROM tab1 WHERE NOT + + col2 * col0 IS NULL
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT col1 DIV 73 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2269
SELECT col1 / 73 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col1 <> + - 13
----

query II rowsort
SELECT - 40 AS col1, + 48 AS col0 FROM tab0 AS cor0
----
-40
48
-40
48
-40
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT DISTINCT + 7 * + 77 * - - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
46893
52283
8085

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + 7 * + 77 * - - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
46893
52283
8085

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 20 * 92 NOT IN ( col1 )
----

query I rowsort
SELECT col0 * - col1 + + col0 AS col0 FROM tab2 WHERE NOT ( col1 * 73 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col0 * - 26 + - col0 AS col0 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT ALL 12 / + col0 + + ( CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL 12 / + col0 + + ( CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 + - 72 AS col0 FROM tab0
----
138
27
3735

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + 24 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( col2 + + col0 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 4 > ( 76 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT 89 DIV col2 AS col0 FROM tab0 WHERE - col1 + col0 <> ( col0 )
----
0
1
8

skipif mysql # not compatible
query I rowsort label-2282
SELECT 89 / col2 AS col0 FROM tab0 WHERE - col1 + col0 <> ( col0 )
----
0
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT COUNT( ALL + 97 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2283
SELECT COUNT ( ALL + 97 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL - 39 * - COUNT( * ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - 39 * - COUNT ( * ) FROM tab1
----
117

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <= + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT CAST( - 75 AS SIGNED ) + - col1 AS col0 FROM tab0 WHERE NOT 39 < col1
----
-76
-96

skipif mysql # not compatible
query I rowsort label-2286
SELECT CAST ( - 75 AS INTEGER ) + - col1 AS col0 FROM tab0 WHERE NOT 39 < col1
----
-76
-96

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 * - col1 - - 56 ) NOT BETWEEN 6 + + col0 * - col0 AND + col2
----

query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2290
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( CAST( NULL AS SIGNED ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2290
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) + + col0 )
----

query I rowsort
SELECT - 90 + + 20 AS col0 FROM tab1
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT 51 DIV col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2292
SELECT 51 / col2 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL 36 + 85 AS col1 FROM tab1
----
121
121
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT SUM( 67 ) col2 FROM tab0
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2294
SELECT SUM ( 67 ) col2 FROM tab0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT - col1 DIV - 96 - + 74 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2295
SELECT - col1 / - 96 - + 74 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + 45 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 45 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 - + 49 FROM tab2 AS cor0
----
18
2
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL + + SUM( col1 ) * + MIN( ( + col0 ) ) - 12 FROM tab1 cor0
----
3354

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + + SUM ( col1 ) * + MIN ( ( + col0 ) ) - 12 FROM tab1 cor0
----
3354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL CAST( ( + 75 ) AS SIGNED ) * - ( + col0 ) AS col0 FROM tab0 cor0 WHERE - col1 NOT BETWEEN 1 AND ( ( + col0 ) )
----
-1125
-6525
-7275

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL CAST ( ( + 75 ) AS INTEGER ) * - ( + col0 ) AS col0 FROM tab0 cor0 WHERE - col1 NOT BETWEEN 1 AND ( ( + col0 ) )
----
-1125
-6525
-7275

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL <= ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 55 / 57 NOT IN ( col0 + 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - SUM( - 77 ) FROM tab2 cor0
----
231

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - SUM ( - 77 ) FROM tab2 cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT - 23 * - 68 * + SUM( DISTINCT 65 * - col1 ) FROM tab1
----
-6709560

skipif mysql # not compatible
query I rowsort label-2305
SELECT - 23 * - 68 * + SUM ( DISTINCT 65 * - col1 ) FROM tab1
----
-6709560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT CAST( NULL AS SIGNED ) / - col2 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT CAST ( NULL AS INTEGER ) / - col2 * col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - COUNT( * ) * - ( - COUNT( col0 ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2308
SELECT - COUNT ( * ) * - ( - COUNT ( col0 ) ) FROM tab0
----
-9

query I rowsort
SELECT ALL 9 * - ( col1 ) AS col1 FROM tab2
----
-459
-603
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - ( COUNT( * ) ) * ( + 52 ) AS col2 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2310
SELECT - ( COUNT ( * ) ) * ( + 52 ) AS col2 FROM tab2 AS cor0
----
-156

query I rowsort
SELECT ALL - 73 * + col2 * col2 AS col2 FROM tab0 AS cor0
----
-161257
-715473
-7300

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( + col2 ) )
----

query I rowsort
SELECT DISTINCT - + 17 * + 50 AS col0 FROM tab2 cor0
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + MIN( ALL + - col1 ) col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2314
SELECT DISTINCT + MIN ( ALL + - col1 ) col0 FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT ALL col2 DIV - + col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL col2 / - + col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT + 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT 99 * col2 + col0 FROM tab2 WHERE NOT - CAST( 91 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2317
SELECT 99 * col2 + col0 FROM tab2 WHERE NOT - CAST ( 91 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL - 71 * COUNT( * ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 71 * COUNT ( * ) FROM tab2
----
-213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2319
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( + + 11 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( + + 11 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT ALL + col1 DIV + 42 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + col1 / + 42 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
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-2322
SELECT ALL MIN ( + col2 ) col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - - COUNT( * ) + ( - 61 ) AS col1 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2323
SELECT - - COUNT ( * ) + ( - 61 ) AS col1 FROM tab0 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + ( col2 ) NOT BETWEEN ( NULL ) AND - ( 28 ) / 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - - 52 AS col0 FROM tab1
----
-16
-44
-7

query III rowsort
SELECT * FROM tab1 WHERE 7 BETWEEN ( NULL ) AND col0 AND NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT - COUNT( * ) + ( - MIN( + + col1 ) ) AS col1 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-2327
SELECT - COUNT ( * ) + ( - MIN ( + + col1 ) ) AS col1 FROM tab2
----
-54

query I rowsort
SELECT col2 + - ( 82 ) AS col2 FROM tab0
----
-35
-72
17

query III rowsort
SELECT * FROM tab0 WHERE ( + - col0 * - - col2 + + col0 * - 88 - - col1 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + ( - 71 ) * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col0 * col1 + + + col0 + + col0 FROM tab2 AS cor0
----
-119554
-336525
-379328

query I rowsort
SELECT ALL - - col2 - + 10 + - 23 + col0 * 26 FROM tab1 AS cor0
----
1389
2236
2401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL - 91 * CAST( NULL AS SIGNED ) * - col2 / + 97 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - 91 * CAST ( NULL AS INTEGER ) * - col2 / + 97 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2335
SELECT + - COUNT( ALL + - 21 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT + - COUNT ( ALL + - 21 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 11 * + + col0 FROM tab2 WHERE NULL >= + 68
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT + COUNT( * ) + - 14 AS col0 FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2338
SELECT + COUNT ( * ) + - 14 AS col0 FROM tab1 cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 * + 81 FROM tab0 AS cor0
----
147987
7857
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT MAX( ALL + col0 ) AS col2 FROM tab2 cor0 WHERE NOT 1 + - col0 IN ( + + col0 )
----
75

skipif mysql # not compatible
query I rowsort label-2341
SELECT MAX ( ALL + col0 ) AS col2 FROM tab2 cor0 WHERE NOT 1 + - col0 IN ( + + col0 )
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 56 IS NULL
----

query II rowsort
SELECT ALL 16 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
16
59
16
68
16
96

query II rowsort
SELECT + col1 AS col1, col2 - - + col0 AS col1 FROM tab1
----
14
147
47
159
5
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2346
SELECT COUNT( * ) DIV 4 - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE NOT + col2 * - + CAST( NULL AS SIGNED ) - - col0 + - + col1 + + col0 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT COUNT ( * ) / 4 - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col2 * - + CAST ( NULL AS INTEGER ) - - col0 + - + col1 + + col0 >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT + ( + + MIN( DISTINCT + 31 ) ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + ( + + MIN ( DISTINCT + 31 ) ) FROM tab1
----
31

query III rowsort
SELECT * FROM tab2 WHERE NOT + 65 = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 73 * + + col0 AS col2 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT - 4 AS col0 FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + col0 > - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2352
SELECT - - SUM( - - CAST( NULL AS DECIMAL ) ) * - COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT - - SUM ( - - CAST ( NULL AS REAL ) ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 97 + + col2 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * - + 25 AS col1 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT CAST( - col1 AS SIGNED ) + + 33 + + + col0 AS col0 FROM tab1
----
113
70
77

skipif mysql # not compatible
query I rowsort label-2355
SELECT CAST ( - col1 AS INTEGER ) + + 33 + + + col0 AS col0 FROM tab1
----
113
70
77

query II rowsort
SELECT ALL + - 44 * col2, + 66 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-1012
66
-1760
66
-2552
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT ALL - 81 + - + col1 + - + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-101
-161
-81

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - 81 + - + col1 + - + col1 / - col1 AS col0 FROM tab0 AS cor0
----
-101
-161
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2358
SELECT + CAST( NULL AS SIGNED ) AS col2, col2 * + - col1 * + col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2358
SELECT + CAST ( NULL AS INTEGER ) AS col2, col2 * + - col1 * + col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2359
SELECT + 18 * - 83 AS col2, COUNT( * ) * - 35 * + 74 + - ( - COUNT( ALL col0 ) ) FROM tab1 AS cor0
----
-1494
-7767

skipif mysql # not compatible
query II rowsort label-2359
SELECT + 18 * - 83 AS col2, COUNT ( * ) * - 35 * + 74 + - ( - COUNT ( ALL col0 ) ) FROM tab1 AS cor0
----
-1494
-7767

query I rowsort
SELECT + 23 * - 93 + - + col1 AS col0 FROM tab0 AS cor0
----
-2140
-2160
-2220

query I rowsort
SELECT + ( + + 83 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 98 * - - 93 AS col1 FROM tab0
----
9114
9114
9114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT DISTINCT - col1 * + - CAST( NULL AS SIGNED ) + - 77 - - + col2 / + + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - col1 * + - CAST ( NULL AS INTEGER ) + - 77 - - + col2 / + + col1 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 = ( NULL )
----

query I rowsort
SELECT col1 + - - 35 FROM tab1
----
40
49
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT DISTINCT + COUNT( * ) + + + ( + 7 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT + COUNT ( * ) + + + ( + 7 ) FROM tab2
----
10

query III rowsort
SELECT * FROM tab1 WHERE ( - ( col2 ) + - col1 + + 71 - + 22 + - col2 * - col1 ) IS NULL
----

query I rowsort
SELECT 21 + - + col1 + + col1 AS col2 FROM tab1
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT + col2 + + - col1 DIV + 76 FROM tab2 AS cor0
----
23
39
58

skipif mysql # not compatible
query I rowsort label-2370
SELECT + col2 + + - col1 / + 76 FROM tab2 AS cor0
----
23
39
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL COUNT( * ) - - 75 FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL COUNT ( * ) - - 75 FROM tab0 cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 * - col1 * + 36 col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-7005
-79433
-815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT ( - SUM( - col1 ) ) * - 18 + + SUM( + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0
----
-1957

skipif mysql # not compatible
query I rowsort label-2373
SELECT ( - SUM ( - col1 ) ) * - 18 + + SUM ( + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0
----
-1957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 + - + col2 + col1 * + ( - + col1 ) * + col2 / col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = + - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT + ( - MIN( ALL + 66 ) ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + ( - MIN ( ALL + 66 ) ) FROM tab0 AS cor0
----
-66

query I rowsort
SELECT AVG ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT - + 41 * + col1 BETWEEN - + 51 * 37 + - col2 * - 76 * - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT MIN( DISTINCT 44 ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-2379
SELECT MIN ( DISTINCT 44 ) AS col1 FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT ( - MIN( ALL ( + + col0 ) ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2380
SELECT ( - MIN ( ALL ( + + col0 ) ) ) FROM tab2
----
-46

query I rowsort
SELECT + 1 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ( + - 71 ) FROM tab1
----
-71
-71
-71

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( + + col2 ) IS NOT NULL
----

query I rowsort
SELECT 76 AS col2 FROM tab1 WHERE NOT + - ( 58 ) IS NULL
----
76
76
76

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - 61 ) * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 41 AS col2 FROM tab1 cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT 46 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT 46 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT ALL - COUNT( * ) * + - COUNT( * ) DIV - - 40 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) / - - 40 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT - MIN( - + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2389
SELECT - MIN ( - + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT + + 6 * + MIN( + - col1 ) AS col1 FROM tab2 AS cor0
----
-462

skipif mysql # not compatible
query I rowsort label-2390
SELECT + + 6 * + MIN ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 55 / col2 * col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 55 / col2 * col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT MAX( DISTINCT + - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2392
SELECT MAX ( DISTINCT + - col2 ) FROM tab2
----
-23

query I rowsort
SELECT 8 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 77 * - ( + col0 ) + - col1 + - - col1 * + + col0 + - + col0 * + col0 + - col0, col1 AS col0 FROM tab1 AS cor0
----
-345
5
1975
14
2865
47

query I rowsort
SELECT - + 55 + col0 AS col1 FROM tab1 AS cor0
----
-4
30
36

query I rowsort
SELECT - 47 FROM tab1 AS cor0 WHERE NOT + 3 + col0 * - - ( + col0 ) + + col1 NOT IN ( + + ( - col1 ) ) AND ( NULL IS NULL )
----

query I rowsort
SELECT + col0 + - + col2 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2398
SELECT ALL - + COUNT( * ) * COUNT( CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - + COUNT ( * ) * COUNT ( CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - + col0 + 7 FROM tab2 cor0
----
-39
-57
-68

query I rowsort
SELECT DISTINCT - ( + + col2 ) * + col2 * - col1 * + 46 FROM tab1 AS cor0
----
5935104
800630
9997088

query I rowsort
SELECT DISTINCT - col1 * + - col0 * - ( 34 ) * - col1 AS col2 FROM tab0
----
1304478
3298
3346110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 60 * col1 + 8, - 82 * 40 col2 FROM tab2
----
-3052
-3280
-4012
-3280
-4612
-3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT ALL + SUM( 61 ) DIV MIN( ALL - ( + 89 ) ) - - COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL + SUM ( 61 ) / MIN ( ALL - ( + 89 ) ) - - COUNT ( * ) AS col1 FROM tab2
----
1

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND + col0 / + 66 + + col2 * col2
----

query I rowsort
SELECT - + col1 FROM tab0 WHERE 72 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT + 98 * - - 63 * - + CAST( + 5 AS SIGNED ) AS col2 FROM tab0 WHERE + + CAST( NULL AS SIGNED ) * - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + 98 * - - 63 * - + CAST ( + 5 AS INTEGER ) AS col2 FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) * - col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 75 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT COUNT( + - col2 ) + - + 85 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT COUNT ( + - col2 ) + - + 85 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2409
SELECT ALL CAST( NULL AS SIGNED ) * - + col2 - 72 + col1 * col2 * + col1 * + - col1 AS col0, col0 AS col1 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2409
SELECT ALL CAST ( NULL AS INTEGER ) * - + col2 - 72 + col1 * col2 * + col1 * + - col1 AS col0, col0 AS col1 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT ALL - col1 + - - 59 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-18
77
-8
67
8
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 10 - + col2 col0 FROM tab0 AS cor0
----
-108
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT + + ( MAX( DISTINCT + - col0 ) ) - + 50 FROM tab1 cor0
----
-101

skipif mysql # not compatible
query I rowsort label-2412
SELECT + + ( MAX ( DISTINCT + - col0 ) ) - + 50 FROM tab1 cor0
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 - 97 col0 FROM tab0 AS cor0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 - ( - + col1 ) + col0 + + 24 / 9 * col0 NOT BETWEEN ( NULL ) AND ( 99 + - 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 43 / + col0 IS NULL
----
-59
-68
-96

query I rowsort
SELECT + + 68 - - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL - SUM( ALL - - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT - CAST( - + 41 AS SIGNED ) FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-2418
SELECT - CAST ( - + 41 AS INTEGER ) FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + - COUNT( + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2419
SELECT + - COUNT ( + col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT + 92 DIV + + MAX( DISTINCT 19 ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 92 / + + MAX ( DISTINCT 19 ) AS col1 FROM tab0 AS cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT COUNT( ALL CAST( - - col2 AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2421
SELECT COUNT ( ALL CAST ( - - col2 AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2423
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 74 col1, col0 col2 FROM tab0 AS cor0
----
74
15
74
87
74
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + SUM( col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2425
SELECT + SUM ( col1 ) AS col1 FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT - 32 - - COUNT( * ) * 77 FROM tab2 WHERE NOT + col0 IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-2427
SELECT - 32 - - COUNT ( * ) * 77 FROM tab2 WHERE NOT + col0 IS NULL
----
199

query I rowsort
SELECT DISTINCT 25 * col2 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT col2 * - 40 AS col2 FROM tab0
----
-1880
-3960
-400

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 + + + col2 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT + 34 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2431
SELECT + 34 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 24 / + col0 * col0 >= + + col0 AND NOT - 24 * + col0 > col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col0 AND - col0
----

query I rowsort
SELECT + col1 + + + 10 AS col1 FROM tab0
----
11
31
91

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 WHERE 92 * - 3 * + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - ( - + col1 ) + + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT 85 - - + col1 FROM tab1 cor0
----
132
90
99

query I rowsort
SELECT DISTINCT + 3 * 23 AS col2 FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab2 AS cor0 WHERE NOT NULL > + 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + 68 col0 FROM tab0
----
106
106
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT + COUNT( col1 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + COUNT ( col1 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * 21 * + + col0 + - col0 * col0 * - - col2 AS col0 FROM tab2
----
-208125
-4232
-77824

query II rowsort
SELECT ALL col0, 31 AS col2 FROM tab1
----
51
31
85
31
91
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT col1 * col2 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2445
SELECT ALL - COUNT( * ) DIV 19 * - 30 DIV 25 + 31 * COUNT( * ) * - + 98 + - - COUNT( * ) AS col2 FROM tab0 cor0
----
-9111

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - COUNT ( * ) / 19 * - 30 / 25 + 31 * COUNT ( * ) * - + 98 + - - COUNT ( * ) AS col2 FROM tab0 cor0
----
-9111

query II rowsort
SELECT - 18, col2 + + col1 AS col0 FROM tab2 AS cor0
----
-18
117
-18
125
-18
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + - col1 + col1 + + 50 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT DISTINCT - 14 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - 25 - 28 IS NULL
----
-1386
-140
-658

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT - 14 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - 25 - 28 IS NULL
----
-1386
-140
-658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT - - CAST( MIN( DISTINCT col0 ) AS SIGNED ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2449
SELECT - - CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) FROM tab0 cor0
----
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col2 + - + col1 / - ( - + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col2, + col0 FROM tab2
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 53 col0, col1 AS col2 FROM tab0
----
-53
1
-53
21
-53
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2453
SELECT COUNT( + CAST( - + col0 AS SIGNED ) ) + + 46 col1, 94 AS col0 FROM tab1
----
49
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2453
SELECT COUNT ( + CAST ( - + col0 AS INTEGER ) ) + + 46 col1, 94 AS col0 FROM tab1
----
49
94

query I rowsort
SELECT DISTINCT - ( col1 ) / - col0 * + 81 FROM tab1 WHERE NULL > - 54
----

query I rowsort
SELECT 12 + col0 AS col2 FROM tab0
----
109
27
99

query I rowsort
SELECT 20 + - col1 AS col2 FROM tab1
----
-27
15
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2457
SELECT ALL 24 + + - ( - CAST( NULL AS SIGNED ) ), + col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2457
SELECT ALL 24 + + - ( - CAST ( NULL AS INTEGER ) ), + col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col1 * + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 + - col2 AND - ( ( - col1 ) ) * ( + col2 ) - 28 * + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT - MAX( ALL + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE col1 * - - 60 + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2461
SELECT ALL + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL 46 + + col2 AS col1 FROM tab0 cor0
----
145
56
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT + - 18 * + - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2463
SELECT + - 18 * + - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col2 FROM tab2 AS cor0 WHERE + 1 + - col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = 89 * 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + + col1 col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - 97 * COUNT( * ) col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2467
SELECT - 97 * COUNT ( * ) col1 FROM tab0 AS cor0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT ALL - 66 DIV + - 67 + 72 FROM tab0 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL - 66 / + - 67 + 72 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT + + SUM( - + 71 ) AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2469
SELECT + + SUM ( - + 71 ) AS col2 FROM tab0 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2470
SELECT * FROM tab1 WHERE NOT + - col2 * - CAST( NULL AS SIGNED ) + - 25 >= - CAST( - 60 AS SIGNED ) / - - 27
----

skipif mysql # not compatible
query III rowsort label-2470
SELECT * FROM tab1 WHERE NOT + - col2 * - CAST ( NULL AS INTEGER ) + - 25 >= - CAST ( - 60 AS INTEGER ) / - - 27
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT - + MAX( DISTINCT + + 61 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2472
SELECT - + MAX ( DISTINCT + + 61 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2473
SELECT DISTINCT + 93 col0, - ( col2 ) FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) >= - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2473
SELECT DISTINCT + 93 col0, - ( col2 ) FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT + MAX( - col1 ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT + MAX ( - col1 ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 83 * col0 AS col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT + ( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 2 * + ( col2 ) * col2 + - col2 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * col0 + + 98 AS col1 FROM tab2
----
2214
4194
5723

query I rowsort
SELECT DISTINCT - 83 * - col1 FROM tab0
----
1743
6723
83

query I rowsort
SELECT ALL - ( 5 ) FROM tab1
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT DISTINCT AVG ( DISTINCT - 78 ) + CAST( NULL AS SIGNED ) - 89 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT AVG ( DISTINCT - 78 ) + CAST ( NULL AS INTEGER ) - 89 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - col0 NOT IN ( - ( + + 86 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT DISTINCT + col1 DIV + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + col1 / + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT col2 - - + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT col2 - - + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT ALL + + CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + + CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2486
SELECT ALL - CAST( NULL AS DECIMAL ) + - 97 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - CAST ( NULL AS REAL ) + - 97 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT - col1 * ( col0 ) DIV col0 AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2487
SELECT - col1 * ( col0 ) / col0 AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2488
SELECT ALL - + CAST( NULL AS DECIMAL ) * + col2 - - - CAST( 98 AS SIGNED ) / + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL - + CAST ( NULL AS REAL ) * + col2 - - - CAST ( 98 AS INTEGER ) / + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT DISTINCT - 78 - + + col1 + - col2 * + - CAST( NULL AS SIGNED ) * col0 + - col0 * ( 33 ) - col2 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT - 78 - + + col1 + - col2 * + - CAST ( NULL AS INTEGER ) * col0 + - col0 * ( 33 ) - col2 AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - 18 * ( - col0 ) IS NULL
----

query I rowsort
SELECT ALL 20 + + ( 92 ) AS col2 FROM tab0 cor0
----
112
112
112

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * - - 23, 45, + - 78 * + - col1 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT DISTINCT - - 98 - 89 DIV - col0 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - - 98 - 89 / - col0 FROM tab2 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT + col1 * CAST( NULL AS SIGNED ) + col2 + - col2 - + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT + col1 * CAST ( NULL AS INTEGER ) + col2 + - col2 - + - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT - + 54 - 41 * - - COUNT( * ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - + 54 - 41 * - - COUNT ( * ) FROM tab2 AS cor0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT col2 + - col1 DIV + 9 + 32 AS col1 FROM tab0
----
131
40
70

skipif mysql # not compatible
query I rowsort label-2496
SELECT col2 + - col1 / + 9 + 32 AS col1 FROM tab0
----
131
40
70

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) > col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ( - + SUM( + - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2498
SELECT ( - + SUM ( + - col0 ) ) FROM tab1
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL - CAST( + COUNT( + + ( + 85 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - CAST ( + COUNT ( + + ( + 85 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 93 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - ( - col1 ) AS col0, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT 8 * - 83 FROM tab1
----
-664
-664
-664

query I rowsort
SELECT + col2 * + 44 FROM tab0
----
2068
4356
440

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT + 89 = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT 37 * - COUNT( * ) FROM tab1 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2505
SELECT 37 * - COUNT ( * ) FROM tab1 cor0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2506
SELECT SUM( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT ( + 16 * col0 * + CAST( NULL AS SIGNED ) ) IS NULL )
----
103

skipif mysql # not compatible
query I rowsort label-2506
SELECT SUM ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT ( + 16 * col0 * + CAST ( NULL AS INTEGER ) ) IS NULL )
----
103

query II rowsort
SELECT ALL - col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT 99 AS col1 FROM tab1 AS cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT - - col1 DIV - col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2509
SELECT - - col1 / - col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 66 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT - + COUNT( * ) + - COUNT( * ) + + MAX( ALL - col1 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2511
SELECT - + COUNT ( * ) + - COUNT ( * ) + + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 49 IS NULL
----

query II rowsort
SELECT 23 AS col2, + 24 * - 46 * - + 10 * - col0 AS col0 FROM tab0
----
23
-1070880
23
-165600
23
-960480

query II rowsort
SELECT DISTINCT - - col1, col2 * - - col2 + - col0 FROM tab2 WHERE NULL <= + 85
----

query I rowsort
SELECT DISTINCT 16 + 72 * + col2 FROM tab0
----
3400
7144
736

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL MAX( ALL - 62 ) AS col1 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL MAX ( ALL - 62 ) AS col1 FROM tab1
----
-62

query I rowsort
SELECT ALL 71 * col1 AS col2 FROM tab0 AS cor0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT + 38 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 38 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT ALL + col2 - - + 72 AS col1 FROM tab2 AS cor0
----
112
130
95

query I rowsort
SELECT - + col0 * - - col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 + - - col1 / - + col2 - - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + 61 + + col2 AS col0 FROM tab2 AS cor0
----
101
119
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + + ( + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col1 + - 3 col2 FROM tab0 AS cor0
----
125
28
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2526
SELECT DISTINCT ( - - col1 ) - - + col0 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
141
NULL
142
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2526
SELECT DISTINCT ( - - col1 ) - - + col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
141
NULL
142
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL - - CAST( NULL AS SIGNED ) + + col0 + - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col0 + - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE - 33 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2529
SELECT ALL SUM( ALL - col2 ) + - 76 + + + 93 + - COUNT( * ) DIV + - COUNT( * ) FROM tab1 AS cor0
----
-205

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL SUM ( ALL - col2 ) + - 76 + + + 93 + - COUNT ( * ) / + - COUNT ( * ) FROM tab1 AS cor0
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + - MAX( + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2530
SELECT + - MAX ( + col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - SUM( DISTINCT + - 22 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2532
SELECT - SUM ( DISTINCT + - 22 ) FROM tab2 AS cor0
----
22

query II rowsort
SELECT ALL col1 AS col0, 32 * - - ( - col0 ) FROM tab1
----
14
-1632
47
-2912
5
-2720

query II rowsort
SELECT ALL + col0 AS col0, col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + col0 * - + col2 AS col0 FROM tab0 WHERE NOT + - col0 NOT IN ( + col0 )
----

query I rowsort
SELECT - ( - 87 ) FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - MIN( DISTINCT + ( col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2537
SELECT - MIN ( DISTINCT + ( col0 ) ) FROM tab0
----
-15

query I rowsort
SELECT ( 18 ) AS col2 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT - + col1 DIV - 24 AS col1 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-2539
SELECT - + col1 / - 24 AS col1 FROM tab2 AS cor0
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - SUM( DISTINCT - + 14 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-2540
SELECT - SUM ( DISTINCT - + 14 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * + - col2 * + - 91 AS col1 FROM tab0 AS cor0
----
201019
891891
9100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 * ( - 47 ) >= col2
----

query I rowsort
SELECT ( - col0 ) + ( + col1 ) + - 56 FROM tab2 AS cor0 WHERE ( NULL ) <= col0 * - ( + ( + 47 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + - COUNT( * ) * - COUNT( + + 53 ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2545
SELECT ALL + - COUNT ( * ) * - COUNT ( + + 53 ) col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 66
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - + 51 < + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) + + - col2 / + 40 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) + + - col2 / + 40 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT + 56 * + COUNT( * ) AS col2 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + 56 * + COUNT ( * ) AS col2 FROM tab0
----
168

query I rowsort
SELECT DISTINCT 17 FROM tab2, tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT DISTINCT - col2 * + col0 + - + col1 DIV col0 AS col1 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT - col2 * + col0 + - + col1 / col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - COUNT( * ) + COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2552
SELECT - COUNT ( * ) + COUNT ( * ) col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 5 col0 FROM tab0
----
10
82
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2554
SELECT ALL 25 + + 16 + col1 AS col0, - CAST( col0 AS SIGNED ) FROM tab0
----
122
-15
42
-97
62
-87

skipif mysql # not compatible
query II rowsort label-2554
SELECT ALL 25 + + 16 + col1 AS col0, - CAST ( col0 AS INTEGER ) FROM tab0
----
122
-15
42
-97
62
-87

query I rowsort
SELECT - col2 + + 21 FROM tab1
----
-38
-47
-75

query I rowsort
SELECT DISTINCT + col0 + + 62 AS col0 FROM tab0
----
149
159
77

query I rowsort
SELECT ALL + - col0 + - - 70 AS col0 FROM tab0 AS cor0
----
-17
-27
55

query I rowsort
SELECT col0 + + 78 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT DISTINCT + 26 DIV col1 + - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + 26 / col1 + - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 84 * + col2 + col0 FROM tab1 cor0
----
5041
5803
8115

query I rowsort
SELECT ALL col0 - - 65 FROM tab2
----
111
129
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2562
SELECT ALL + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 79 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 + 34 * - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - col2 col0 FROM tab1 cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + col0 NOT BETWEEN NULL AND - 18 + + 54 - + + col1 + - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col2 * - col1 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL - COUNT( * ) * - MAX( 22 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - COUNT ( * ) * - MAX ( 22 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + 46 * + - col2 col0 FROM tab0 AS cor0
----
10
-460
47
-2162
99
-4554

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT COUNT( ALL - + col1 ), MIN( DISTINCT + + 21 ) AS col1 FROM tab2
----
3
21

skipif mysql # not compatible
query II rowsort label-2571
SELECT COUNT ( ALL - + col1 ), MIN ( DISTINCT + + 21 ) AS col1 FROM tab2
----
3
21

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + - col0 IN ( col1, 63, + col2 - + col2 )
----

query II rowsort
SELECT + col1 * + + col0 AS col1, col0 + - + col2 AS col2 FROM tab1
----
425
26
4277
23
714
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT CAST( - - 46 AS SIGNED ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT CAST ( - - 46 AS INTEGER ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL - MIN( - col1 ) col1 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT ALL - MIN ( - col1 ) col1 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - - 19, + col0 * + 71 col0 FROM tab1
----
266
3621
893
6461
95
6035

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT DISTINCT 98 * + 57 AS col0, + COUNT( * ) AS col1 FROM tab0
----
5586
3

skipif mysql # not compatible
query II rowsort label-2577
SELECT DISTINCT 98 * + 57 AS col0, + COUNT ( * ) AS col1 FROM tab0
----
5586
3

query I rowsort
SELECT DISTINCT AVG ( ALL col0 ) FROM tab2 WHERE NOT 44 + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2579
SELECT DISTINCT ( 83 ) AS col2, CAST( NULL AS DECIMAL ) FROM tab0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-2579
SELECT DISTINCT ( 83 ) AS col2, CAST ( NULL AS REAL ) FROM tab0
----
83
NULL

query II rowsort
SELECT DISTINCT ( col0 ) AS col0, - col0 AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT ALL col0 AS col1, 44 FROM tab0
----
15
44
87
44
97
44

query III rowsort
SELECT * FROM tab1 WHERE NOT 2 + + col0 * + ( + col2 ) * - col2 + - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - + col1 + + 50 + + col2 + + + 36 * - + 50 - - + col2 * col2 - - 41 FROM tab0 AS cor0
----
-1620
466
8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + + col0 + - 28 AS col2 FROM tab2 AS cor0
----
18
36
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT ALL col0 * ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL col0 * ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT 86 + - MIN( + col0 ) * 9 AS col0 FROM tab2
----
-328

skipif mysql # not compatible
query I rowsort label-2589
SELECT 86 + - MIN ( + col0 ) * 9 AS col0 FROM tab2
----
-328

query I rowsort
SELECT + 70 + + col2 + - 67 - + - col0 + col0 * 88 * - col2 * - col1 FROM tab1
----
2206747
25593730
6032022

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT - col1 DIV + 89 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2591
SELECT - col1 / + 89 * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - + 25 ) + + col1 AS col1 FROM tab1
----
30
39
72

query I rowsort
SELECT ALL + col1 - + - col0 - - col2 FROM tab0 AS cor0
----
118
143
197

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) + col1 col2 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2595
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) + col1 col2 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 38 - + col1 = + 39 + + col1 * col1 )
----

query I rowsort
SELECT DISTINCT 4 - + ( + + 94 ) - - col1 AS col0 FROM tab2 AS cor0
----
-13
-23
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT ALL 12 * + COUNT( * ) DIV - 79 * 54 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL 12 * + COUNT ( * ) / - 79 * 54 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT - MIN( col1 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2599
SELECT - MIN ( col1 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 - - - col0 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT DISTINCT + COUNT( * ) - 67 AS col0 FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT + COUNT ( * ) - 67 AS col0 FROM tab0 cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 24 * - ( - col0 ) + + - col1 * + + 66, - col0 + + col1 * col2 AS col0, + 18 col1 FROM tab2
----
9 values hashing to 2a0290f91b5c2315d117973ce0f2315b

query I rowsort
SELECT - 42 AS col2 FROM tab0 WHERE 3 * col2 + - + col0 + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT - COUNT( ALL - col0 ) + - - ( COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - COUNT ( ALL - col0 ) + - - ( COUNT ( * ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL COUNT( * ) * - 88 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL COUNT ( * ) * - 88 FROM tab0
----
-264

query I rowsort
SELECT ALL - - col0 * + 71 + col0 + col2 FROM tab1 AS cor0
----
3768
6179
6620

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT MIN( ALL col2 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2607
SELECT MIN ( ALL col2 ) col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + + AVG ( DISTINCT col0 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT + + AVG ( DISTINCT col0 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT - COUNT( * ) * - 56 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT - COUNT ( * ) * - 56 FROM tab0 AS cor0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT + 53 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT + 53 / - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT ALL + CAST( NULL AS SIGNED ) / - col1 / 97 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-2611
SELECT ALL + CAST ( NULL AS INTEGER ) / - col1 / 97 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 22 + + 52 IN ( - + col2, 4 * col2 * - col0, - + 91 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT ALL + + col0 DIV 69 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + + col0 / 69 AS col2 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT ALL + ( - COUNT( DISTINCT - CAST( - 10 AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + ( - COUNT ( DISTINCT - CAST ( - 10 AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - 26 AS col0 FROM tab2 cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + COUNT( * ) * - - 20 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2616
SELECT + COUNT ( * ) * - - 20 FROM tab1
----
60

query II rowsort
SELECT col1, - 74 FROM tab2
----
51
-74
67
-74
77
-74

query I rowsort
SELECT DISTINCT 95 * + col0 * + + col1 AS col2 FROM tab1
----
40375
406315
67830

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= - col0 / 23 + - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + col2 AS col1 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - 83 * col2 FROM tab0 AS cor0
----
-3901
-8217
-830

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2622
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( 13 AS SIGNED ) - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2622
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( 13 AS INTEGER ) - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - col0 AS col0, - col0 * - - col1 FROM tab0 AS cor0
----
-15
-1215
-87
-1827
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT - MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT + 9 * - col1 * col0 - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 48 + + ( + 11 ) AS col0 FROM tab2
----
59
59
59

query I rowsort
SELECT ( - - ( + 43 ) ) FROM tab2 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - col0 * + 83, col0 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2629
SELECT * FROM tab0 AS cor0 WHERE ( - 87 ) / col2 <= col0 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2629
SELECT * FROM tab0 AS cor0 WHERE ( - 87 ) / col2 <= col0 + + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT ALL - col0 + - 67 - + - col1 DIV 24 FROM tab0 AS cor0
----
-154
-164
-79

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - col0 + - 67 - + - col1 / 24 FROM tab0 AS cor0
----
-154
-164
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 34 NOT BETWEEN - col0 + 88 * - col2 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT + 46 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 46 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT ALL - 20 - 10 + - - col0 DIV 80 FROM tab1 cor0
----
-29
-29
-30

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - 20 - 10 + - - col0 / 80 FROM tab1 cor0
----
-29
-29
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - - col0, + ( - - 45 ) col2 FROM tab2 AS cor0
----
104
45
133
45
69
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT + MIN( 68 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + MIN ( 68 ) FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT COUNT( * ) + + 27 AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT COUNT ( * ) + + 27 AS col0 FROM tab2
----
30

query I rowsort
SELECT - 38 * + - col1 - + col1 * + col0 FROM tab1
----
-182
-235
-2491

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT + - COUNT( * ) * - COUNT( * ) * - 45 FROM tab1 WHERE NULL IS NULL
----
-405

skipif mysql # not compatible
query I rowsort label-2639
SELECT + - COUNT ( * ) * - COUNT ( * ) * - 45 FROM tab1 WHERE NULL IS NULL
----
-405

query I rowsort
SELECT + col1 + 41 FROM tab2
----
108
118
92

query I rowsort
SELECT ALL col0 + + - ( - col1 ) AS col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2642
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2642
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-3

query I rowsort
SELECT col0 + - 50 FROM tab1
----
1
35
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT + 29 DIV + - COUNT( DISTINCT - col2 ) + + 3 AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2644
SELECT + 29 / + - COUNT ( DISTINCT - col2 ) + + 3 AS col0 FROM tab2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT 12 + 68 DIV - 52 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-2645
SELECT 12 + 68 / - 52 FROM tab2
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2646
SELECT * FROM tab1 AS cor0 WHERE + CAST( + + 16 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2646
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + + 16 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + + + col1 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT + + 93 AS col0, 85 AS col2 FROM tab0 cor0
----
93
85
93
85
93
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT - 77 * + - COUNT( DISTINCT + + 74 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - 77 * + - COUNT ( DISTINCT + + 74 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
77

query I rowsort
SELECT ALL - 29 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL - 24 * - col2 AS col0 FROM tab0 AS cor0
----
1128
2376
240

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 45 + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + 21 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 22 * - - ( - 96 ) AS col0 FROM tab0 AS cor0
----
2112
2112
2112

query I rowsort
SELECT DISTINCT - + ( - 97 ) AS col0 FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT + + COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2657
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN col2 AND col2 + - col0
----

query I rowsort
SELECT DISTINCT 93 * - col1 FROM tab0
----
-1953
-7533
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 21 - + col2 - + 91 IS NULL
----

query I rowsort
SELECT ALL + col2 * - + col2 AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT 85 * + - 18 FROM tab0
----
-1530
-1530
-1530

query I rowsort
SELECT DISTINCT + 45 * col1 AS col2 FROM tab0
----
3645
45
945

query I rowsort
SELECT ALL 78 + - 21 - - 36 AS col0 FROM tab2
----
93
93
93

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL AND col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2666
SELECT DISTINCT + col0 + - col0 - CAST( NULL AS SIGNED ) AS col2, col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2666
SELECT DISTINCT + col0 + - col0 - CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 87 FROM tab1 AS cor0
----
-5133
-5916
-8352

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT - col0 DIV 77 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT - col0 / 77 AS col2 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT DISTINCT COUNT( DISTINCT + + 93 ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT COUNT ( DISTINCT + + 93 ) AS col2 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - 61 * SUM( + 26 ) AS col2 FROM tab0 AS cor0
----
-4758

skipif mysql # not compatible
query I rowsort label-2670
SELECT - 61 * SUM ( + 26 ) AS col2 FROM tab0 AS cor0
----
-4758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2671
SELECT DISTINCT - CAST( 73 AS SIGNED ) * - + COUNT( * ) + - 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
608

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT - CAST ( 73 AS INTEGER ) * - + COUNT ( * ) + - 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
608

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2672
SELECT DISTINCT - ( + - COUNT( * ) ) + - - 44 * + CAST( NULL AS DECIMAL ) / COUNT( * ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - ( + - COUNT ( * ) ) + - - 44 * + CAST ( NULL AS REAL ) / COUNT ( * ) * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 * 96 AS col2 FROM tab2
----
-4416
-6144
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT ALL + col1 + - - 29 DIV + - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + col1 + - - 29 / + - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT + col0 + + 20 + + col0 FROM tab1 AS cor0
----
122
190
202

query II rowsort
SELECT DISTINCT col1 AS col1, 20 * - col0 + - + 40 FROM tab2 AS cor0
----
51
-960
67
-1540
77
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT - ( MAX( col0 ) ) + + - 12 + COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2678
SELECT - ( MAX ( col0 ) ) + + - 12 + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT + 7 DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT + 7 / + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + 4 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + 56 ) * + - AVG ( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + ( - col1 ) AS col2, col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 * - col1 * - col2 FROM tab2 WHERE NOT ( - col2 * - 19 / + 44 IS NULL )
----
-23
53958
-40
197120
-58
291450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL 99 * - + SUM( ALL - 49 ) * - 30 + - CAST( + 60 AS SIGNED ) FROM tab1
----
-436650

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL 99 * - + SUM ( ALL - 49 ) * - 30 + - CAST ( + 60 AS INTEGER ) FROM tab1
----
-436650

query I rowsort
SELECT ALL 71 AS col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN - 48 * - col0 * + - col2 + - col2 + 12 + - col1 AND + 98
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT - - 18 + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-2686
SELECT - - 18 + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query II rowsort
SELECT ALL - + col0, col0 * + + 48 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL + - COUNT( ALL + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL + - COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 14 AS col1 FROM tab2 AS cor0
----
23
-14
40
-14
58
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + 89 * + COUNT( * ) + - 3 AS col0 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-2690
SELECT + 89 * + COUNT ( * ) + - 3 AS col0 FROM tab0 AS cor0
----
264

query II rowsort
SELECT + col1 AS col0, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2692
SELECT ALL col0 * col0 * ( - - col2 ), col0 * + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 AS col0 FROM tab0
----
10575
NULL
75690
NULL
931491
NULL

skipif mysql # not compatible
query II rowsort label-2692
SELECT ALL col0 * col0 * ( - - col2 ), col0 * + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 AS col0 FROM tab0
----
10575
NULL
75690
NULL
931491
NULL

query I rowsort
SELECT ALL col2 * - ( + 93 ) FROM tab2
----
-2139
-3720
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE - - col2 > + col1
----
-3

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE - - col2 > + col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT DISTINCT - col1 * - CAST( - col2 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - col1 * - CAST ( - col2 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT COUNT( * ) * 4 AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2696
SELECT COUNT ( * ) * 4 AS col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT + - MAX( ( - + col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2697
SELECT + - MAX ( ( - + col1 ) ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 + + ( col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
144
147
159

query I rowsort
SELECT - - ( + + 36 ) FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + col0 + + col1 + + - col1 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - SUM( - col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-2701
SELECT - SUM ( - col0 ) AS col1 FROM tab0 cor0
----
199

query I rowsort
SELECT col1 * - 70 AS col2 FROM tab0 AS cor0
----
-1470
-5670
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col1 * col0
----

query I rowsort
SELECT DISTINCT - + 85 - - - col1 + + 78 AS col1 FROM tab1 cor0
----
-12
-21
-54

query I rowsort
SELECT ALL + col0 - + 85 - col1 AS col0 FROM tab0
----
-151
-19
11

query II rowsort
SELECT ALL + col1, col2 * - col0 + + col2 FROM tab1
----
14
-4800
47
-6120
5
-4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2707
SELECT - 7 + - COUNT( * ) * + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT - 7 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query II rowsort
SELECT col1 + col2 + - 41 + + col1, col2 FROM tab1
----
121
68
28
59
83
96

query I rowsort
SELECT 49 * + col0 + - col2 AS col0 FROM tab0
----
4253
4654
688

query II rowsort
SELECT ALL + col2, + 18 FROM tab2
----
23
18
40
18
58
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT col0 DIV + ( - col2 ) FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT col0 / + ( - col2 ) FROM tab0
----
-8
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT ALL 79 DIV + + col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL 79 / + + col0 AS col1 FROM tab0
----
0
0
5

query II rowsort
SELECT DISTINCT 38 AS col2, col0 FROM tab2 AS cor0
----
38
46
38
64
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL MIN( DISTINCT - + col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL MIN ( DISTINCT - + col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT - col0 * col2 - + - CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-752
-880
-9702

skipif mysql # not compatible
query I rowsort label-2715
SELECT - col0 * col2 - + - CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-752
-880
-9702

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 80 = ( + - 6 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT - 72 * - MIN( ALL 26 ) FROM tab2 AS cor0
----
1872

skipif mysql # not compatible
query I rowsort label-2718
SELECT - 72 * - MIN ( ALL 26 ) FROM tab2 AS cor0
----
1872

query I rowsort
SELECT + col1 + - 40 FROM tab0
----
-19
-39
41

query I rowsort
SELECT col1 + + 69 AS col0 FROM tab2
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT - MIN( DISTINCT - col1 ) * MAX( DISTINCT + + 46 ) + + COUNT( DISTINCT + + 59 ) AS col1 FROM tab0 WHERE NOT - ( + 89 ) IS NULL
----
3727

skipif mysql # not compatible
query I rowsort label-2721
SELECT - MIN ( DISTINCT - col1 ) * MAX ( DISTINCT + + 46 ) + + COUNT ( DISTINCT + + 59 ) AS col1 FROM tab0 WHERE NOT - ( + 89 ) IS NULL
----
3727

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT 99 * 32 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT ALL + CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + - 99 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - 99 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 + - + 21 col0 FROM tab1
----
-21

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col0 / + col0 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT - 66 + COUNT( * ) col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT DISTINCT - 66 + COUNT ( * ) col1 FROM tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col1 ) + - col0, - col0 col2 FROM tab2 AS cor0
----
-8
-75
13
-64
5
-46

query II rowsort
SELECT + + col1, + col0 * 1 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE - col2 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 <= ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT ( SUM( DISTINCT 48 ) ) + + 37 DIV 42 AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-2730
SELECT ( SUM ( DISTINCT 48 ) ) + + 37 / 42 AS col0 FROM tab0
----
48

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 22 * col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT COUNT( * ) * + 71 + + ( 70 ) * - 85 FROM tab2 WHERE 89 > ( + col0 ) / CAST( NULL AS SIGNED ) + 25
----
-5950

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT COUNT ( * ) * + 71 + + ( 70 ) * - 85 FROM tab2 WHERE 89 > ( + col0 ) / CAST ( NULL AS INTEGER ) + 25
----
-5950

query I rowsort
SELECT col0 - 63 FROM tab1
----
-12
22
28

query I rowsort
SELECT - 35 + col0 AS col1 FROM tab2
----
11
29
40

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE col2 * 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) - - col2 * - 44 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) - - col2 * - 44 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL COUNT( * ) + + 22 * - COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL COUNT ( * ) + + 22 * - COUNT ( * ) FROM tab1
----
-63

query I rowsort
SELECT ALL col0 - 63 AS col1 FROM tab1
----
-12
22
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT - ( - col0 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT - ( - col0 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - 84 AS col0 FROM tab0
----
1764
6804
84

query I rowsort
SELECT ALL col1 + 66 AS col2 FROM tab2
----
117
133
143

query I rowsort
SELECT - 93 + col2 FROM tab2
----
-35
-53
-70

query I rowsort
SELECT 33 + 69 AS col1 FROM tab1
----
102
102
102

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL CAST( col1 AS SIGNED ) * + 71 AS col2 FROM tab1
----
3337
355
994

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL CAST ( col1 AS INTEGER ) * + 71 AS col2 FROM tab1
----
3337
355
994

query I rowsort
SELECT - 32 + col2 AS col1 FROM tab0
----
-22
15
67

query I rowsort
SELECT ALL 16 + col1 * + col0 FROM tab1 WHERE NOT 76 / + col1 > ( NULL )
----

query I rowsort
SELECT + 22 + + col0 AS col2 FROM tab2
----
68
86
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT - col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN NULL AND ( - col0 + col2 )
----

skipif mysql # not compatible
query I rowsort label-2749
SELECT - col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( - col0 + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( col0 * col1 - + col0 ) AND ( ( - col0 ) / - col2 + - 77 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT DISTINCT + 1 DIV ( 42 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT + 1 / ( 42 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT ( + CAST( NULL AS SIGNED ) ) + 82 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT ( + CAST ( NULL AS INTEGER ) ) + 82 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT col2 NOT IN ( col1 )
----

query I rowsort
SELECT - ( + 52 ) FROM tab0
----
-52
-52
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE col2 * col1 + col0 <= 21 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE col2 * col1 + col0 <= 21 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + ( - SUM( DISTINCT 9 ) ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2756
SELECT + ( - SUM ( DISTINCT 9 ) ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col2 - - 8 FROM tab1 WHERE 75 - col0 * - col0 IS NOT NULL
----
104
67
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT ALL + col1 + - col1 DIV - col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + col1 + - col1 / - col1 FROM tab1
----
15
48
6

query III rowsort
SELECT * FROM tab1 WHERE 38 + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT + CAST( - 22 AS SIGNED ) FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-2760
SELECT + CAST ( - 22 AS INTEGER ) FROM tab0
----
-22
-22
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > + 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 56 * + 0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 * 91 col2 FROM tab0 AS cor0
----
8099
8099
8099

query I rowsort
SELECT + ( - col2 ) * - 46 FROM tab1 AS cor0
----
2714
3128
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT DISTINCT - 45 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - 45 / col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab1 WHERE NOT + 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + COUNT( ALL 22 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2767
SELECT + COUNT ( ALL 22 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT DISTINCT - COUNT( * ) + + 2 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - COUNT ( * ) + + 2 AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - + col1 * - 69 FROM tab2 AS cor0
----
3519
4623
5313

query I rowsort
SELECT DISTINCT 41 + 21 FROM tab2
----
62

query I rowsort
SELECT ALL + 34 + + 59 * + col0 FROM tab1 WHERE col2 - - ( col0 ) IS NOT NULL
----
3043
5049
5403

query I rowsort
SELECT + 87 AS col0 FROM tab0 WHERE 85 IS NOT NULL
----
87
87
87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 - 76 NOT IN ( 51 * 53 + ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT + col2 FROM tab1 WHERE ( col1 / CAST( ( 75 ) * + col1 AS SIGNED ) + + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2777
SELECT + col2 FROM tab1 WHERE ( col1 / CAST ( ( 75 ) * + col1 AS INTEGER ) + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT + MAX( col0 ) + 4 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + MAX ( col0 ) + 4 FROM tab0
----
101

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL + col2 * - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-705
-870
-9603

query I rowsort
SELECT ( - + col0 ) + col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL 79 * - ( col1 ) + + col1 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT CAST( + + 9 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
105
68
77

skipif mysql # not compatible
query I rowsort label-2783
SELECT CAST ( + + 9 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
105
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT - - 49 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT - - 49 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT ALL - + CAST( - CAST( 60 AS SIGNED ) AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-25
-31
9

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - + CAST ( - CAST ( 60 AS INTEGER ) AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-25
-31
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2786
SELECT DISTINCT 97 * + - col2 * + 58 + CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT 97 * + - col2 * + 58 + CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT ALL - 45 DIV + + 85 + + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - 45 / + + 85 + + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2788
SELECT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( col2 ) <= - col1 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( col2 ) <= - col1 * col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 46 + ( 60 ) ) = ( - 64 * + 55 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL - 50 AS col0 FROM tab1
----
-50
-50
-50

query I rowsort
SELECT ALL col2 * 44 + - col0 AS col2 FROM tab1 WHERE NOT ( - + col1 ) IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 96 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT + ( COUNT( * ) ) * CAST( NULL AS SIGNED ) + + 64 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2794
SELECT + ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + + 64 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL - ( 86 ) + - ( col2 ) FROM tab2 AS cor0
----
-109
-126
-144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2797
SELECT * FROM tab1 AS cor0 WHERE - 99 > - CAST( + 25 AS SIGNED ) * - ( - col1 + col1 ) + + col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-2797
SELECT * FROM tab1 AS cor0 WHERE - 99 > - CAST ( + 25 AS INTEGER ) * - ( - col1 + col1 ) + + col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT COUNT( * ) + + + COUNT( ALL col2 ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT COUNT ( * ) + + + COUNT ( ALL col2 ) AS col1 FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND ( + col0 * + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - SUM( col2 ) * + 70 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 * 26 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - SUM ( col2 ) * + 70 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 * 26 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 * 80 FROM tab1 cor0 WHERE + col1 * + col1 * 96 - 79 IS NOT NULL
----
1120
3760
400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col0 * 75 AS col0 FROM tab2 AS cor0
----
23
-3450
40
-4800
58
-5625

query I rowsort
SELECT - 14 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-14
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2804
SELECT 6 * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST( - 39 AS DECIMAL ) - - 82 IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-2804
SELECT 6 * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( - 39 AS REAL ) - - 82 IS NULL
----
18

query I rowsort
SELECT 96 FROM tab1 WHERE NOT + col1 IS NULL
----
96
96
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * - - col1 * - col0 - col1 ) <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT - SUM( + 75 ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT - SUM ( + 75 ) FROM tab0
----
-225

query I rowsort
SELECT + ( - + ( col0 ) ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 43 ) NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT + ( - 97 ) DIV 10 + - - ( 8 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2811
SELECT + ( - 97 ) / 10 + - - ( 8 ) FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT col0 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT col0 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col2 * + 64 + - col2 NOT IN ( - ( - ( + col0 ) ) / col0 + + col1 )
----

query I rowsort
SELECT DISTINCT 85 * + col2 AS col2 FROM tab1
----
5015
5780
8160

onlyif mysql # DIV for integer division: 
query II rowsort label-2815
SELECT DISTINCT - 25 DIV + 89 AS col2, col1 AS col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-2815
SELECT DISTINCT - 25 / + 89 AS col2, col1 AS col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + 70 * + 9 + - MIN( DISTINCT + 7 ) * 97 AS col2 FROM tab0 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + 70 * + 9 + - MIN ( DISTINCT + 7 ) * 97 AS col2 FROM tab0 cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT COUNT( col0 ) FROM tab0 AS cor0 WHERE NOT ( + 33 ) <= ( + col1 / + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2817
SELECT COUNT ( col0 ) FROM tab0 AS cor0 WHERE NOT ( + 33 ) <= ( + col1 / + col2 )
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 63, col2 * + + col0 * 65 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col2 ) AND + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col0 + + 65 / - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 >= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 89 + 25 FROM tab1 cor0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 53 ) col2 FROM tab0 AS cor0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT + - 32 + - 82 DIV - + 79 - - - col0 FROM tab2 AS cor0
----
-106
-77
-95

skipif mysql # not compatible
query I rowsort label-2824
SELECT + - 32 + - 82 / - + 79 - - - col0 FROM tab2 AS cor0
----
-106
-77
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT + COUNT( * ) DIV - COUNT( * ) + 94 + - 1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2825
SELECT + COUNT ( * ) / - COUNT ( * ) + 94 + - 1 FROM tab2 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, 16 col0 FROM tab1 AS cor0
----
-14
16
-47
16
-5
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT - COUNT( * ) + + 0 AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2827
SELECT - COUNT ( * ) + + 0 AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT - MIN( col2 ) + - 52 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2829
SELECT - MIN ( col2 ) + - 52 FROM tab1 AS cor0
----
-111

query II rowsort
SELECT ALL - col1, - col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ( - 1 ) * + COUNT( * ) + - SUM( - col0 ) FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-2831
SELECT ( - 1 ) * + COUNT ( * ) + - SUM ( - col0 ) FROM tab1
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + MIN( - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + MIN ( - col1 ) FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 + - + col2 ) BETWEEN NULL AND 33 + - + col0 - 55
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 10 + + - ( 29 ) * - - col2 ) <= ( NULL )
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE - col1 * + 48 + - - 49 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + col0 - + - 75 FROM tab1 AS cor0
----
126
160
166

query II rowsort
SELECT DISTINCT + col0, col0 + col0 FROM tab2 AS cor0
----
46
92
64
128
75
150

query I rowsort
SELECT - 35 FROM tab1 WHERE - col2 + - col1 * - col2 <> - col1
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2839
SELECT * FROM tab2 cor0 WHERE NOT - 88 * - CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2839
SELECT * FROM tab2 cor0 WHERE NOT - 88 * - CAST ( + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT + MIN( ALL + 3 ) * - - MIN( ALL + 68 ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT + MIN ( ALL + 3 ) * - - MIN ( ALL + 68 ) FROM tab0 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL + 48 * COUNT( * ) * - COUNT( * ) * 16 FROM tab0 AS cor0
----
-6912

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + 48 * COUNT ( * ) * - COUNT ( * ) * 16 FROM tab0 AS cor0
----
-6912

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2842
SELECT ALL * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2842
SELECT ALL * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 49 * 35 FROM tab0 AS cor0
----
1715

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2844
SELECT ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( 20, 56, - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - + MAX( - + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2846
SELECT - + MAX ( - + col0 ) FROM tab1 cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + col1 + - - 32 NOT BETWEEN - col2 AND - 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 6 * - - col1 FROM tab1
----
282
30
84

query I rowsort
SELECT 24 * - 43 FROM tab2
----
-1032
-1032
-1032

query II rowsort
SELECT ALL - col1 AS col2, + ( + - col1 ) FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT - 19 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IN ( + col0, 17 * - ( - CAST( NULL AS SIGNED ) ) + + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT - 19 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IN ( + col0, 17 * - ( - CAST ( NULL AS INTEGER ) ) + + + col1 )
----
0

query II rowsort
SELECT DISTINCT - 25 * - 74 * col0 + + + 96 AS col2, col0 FROM tab1 AS cor0
----
157346
85
168446
91
94446
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT ALL ( + 47 ) DIV + col1 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL ( + 47 ) / + col1 FROM tab1
----
1
3
9

query I rowsort
SELECT - 69 + - col1 FROM tab1
----
-116
-74
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ALL + ( - col1 ) DIV - 42 + - col0 * + 71 AS col1 FROM tab0
----
-1064
-6177
-6887

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + ( - col1 ) / - 42 + - col0 * + 71 AS col1 FROM tab0
----
-1064
-6177
-6887

query I rowsort
SELECT DISTINCT col0 * + + col1 + + col2 AS col0 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL MIN( + col1 ) FROM tab2 cor0 WHERE + 9 / + col1 * - + ( - - col0 ) IN ( col1, + 28 * 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL MIN ( + col1 ) FROM tab2 cor0 WHERE + 9 / + col1 * - + ( - - col0 ) IN ( col1, + 28 * 3 )
----
NULL

query II rowsort
SELECT col1 AS col0, 63 AS col2 FROM tab2
----
51
63
67
63
77
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT + 83 + + - CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
19
37
8

skipif mysql # not compatible
query I rowsort label-2859
SELECT + 83 + + - CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
19
37
8

query I rowsort
SELECT 97 + + 23 AS col1 FROM tab0
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT COUNT( * ) + - + 95 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-2861
SELECT COUNT ( * ) + - + 95 FROM tab2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT COUNT( * ) + - AVG ( ALL + + col2 ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT COUNT ( * ) + - AVG ( ALL + + col2 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 39 + + col1 + col1 FROM tab2
----
141
173
193

query I rowsort
SELECT - col0 + - ( col1 ) + - - col1 AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL 2 * COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL 2 * COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - COUNT( * ) * - 24 + - 94 AS col2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - COUNT ( * ) * - 24 + - 94 AS col2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - 71 + - 51 AS col0 FROM tab2 AS cor0
----
-122

query II rowsort
SELECT ALL - 97 * col0 + 70, + 64 * - col1 AS col0 FROM tab2 AS cor0
----
-4392
-3264
-6138
-4928
-7205
-4288

query I rowsort
SELECT - col2 * 82 AS col2 FROM tab2
----
-1886
-3280
-4756

query I rowsort
SELECT ALL AVG ( - 45 ) AS col0 FROM tab0 WHERE NOT + - col2 <> NULL
----
NULL

query II rowsort
SELECT DISTINCT - 60, + 38 + + - col0 + + + col0 AS col2 FROM tab2 AS cor0
----
-60
38

query I rowsort
SELECT DISTINCT - 59 * 18 FROM tab0 AS cor0 WHERE ( col2 ) = + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL + - MIN( + - col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL + - MIN ( + - col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT - + MIN( + + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2874
SELECT - + MIN ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 * - 25 * + 52 + + - 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT ( NOT NULL >= + col2 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2877
SELECT COUNT( * ), 88 AS col1 FROM tab0, tab0 AS cor0
----
9
88

skipif mysql # not compatible
query II rowsort label-2877
SELECT COUNT ( * ), 88 AS col1 FROM tab0, tab0 AS cor0
----
9
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT + COUNT( ALL - - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + COUNT ( ALL - - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ( + + 76 ) FROM tab0
----
76
76
76

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 95 + + 73 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 36 * - 10 + + col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - COUNT( * ) * ( + 4 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2882
SELECT - COUNT ( * ) * ( + 4 ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - MIN( + 62 ) AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2883
SELECT - MIN ( + 62 ) AS col1 FROM tab2 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2884
SELECT * FROM tab0 WHERE CAST( 79 AS SIGNED ) IN ( + col1 / - 4 )
----

skipif mysql # not compatible
query III rowsort label-2884
SELECT * FROM tab0 WHERE CAST ( 79 AS INTEGER ) IN ( + col1 / - 4 )
----

query I rowsort
SELECT DISTINCT + 32 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2886
SELECT DISTINCT - col0 col2, + 82 + + col1 DIV - - col2 col1 FROM tab0 AS cor0
----
-15
83
-87
84
-97
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2886
SELECT DISTINCT - col0 col2, + 82 + + col1 / - - col2 col1 FROM tab0 AS cor0
----
-15
83
-87
84
-97
82

query I rowsort
SELECT DISTINCT - + col2 + + 84 FROM tab2 AS cor0
----
26
44
61

query I rowsort
SELECT DISTINCT + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT 44 DIV + 27 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT 44 / + 27 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + col1 * - 18 AS col2 FROM tab0
----
-1458
-18
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT CAST( - 45 AS SIGNED ) col1 FROM tab2 WHERE + col1 <> ( - + 59 )
----
-45
-45
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT CAST ( - 45 AS INTEGER ) col1 FROM tab2 WHERE + col1 <> ( - + 59 )
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - + COUNT( * ) - + ( AVG ( DISTINCT - col1 ) ) AS col0 FROM tab0 WHERE NULL <> col1 + + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT - + COUNT ( * ) - + ( AVG ( DISTINCT - col1 ) ) AS col0 FROM tab0 WHERE NULL <> col1 + + + 5
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + 87 BETWEEN + 46 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL - 48 * + COUNT( * ) + + 87 * + 82 FROM tab1
----
6990

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - 48 * + COUNT ( * ) + + 87 * + 82 FROM tab1
----
6990

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + col1 ) IS NULL
----

query I rowsort
SELECT ALL 67 * - + 78 AS col2 FROM tab1
----
-5226
-5226
-5226

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL NOT IN ( + col0, col0 + 88 * - 19 + - col1, - col0 + col2 )
----

query I rowsort
SELECT + 33 - col0 AS col1 FROM tab1 AS cor0
----
-18
-52
-58

query I rowsort
SELECT 58 - - col2 AS col0 FROM tab0 AS cor0
----
105
157
68

query I rowsort
SELECT DISTINCT - col1 - + col2 * - ( ( + + col0 ) ) FROM tab0 AS cor0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - 99 - - SUM( + 72 ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - 99 - - SUM ( + 72 ) FROM tab2 AS cor0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT ( + 6 ) * - col0 DIV col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT ( + 6 ) * - col0 / col0 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT col0 * - 75 * + + col2 * - col2 + + ( + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
22191434
31558868
35251296

skipif mysql # not compatible
query I rowsort label-2904
SELECT col0 * - 75 * + + col2 * - col2 + + ( + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
22191434
31558868
35251296

query I rowsort
SELECT col1 * + 47 AS col0 FROM tab0
----
3807
47
987

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2907
SELECT - 22, COUNT( * ) + 93 col2 FROM tab0
----
-22
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2907
SELECT - 22, COUNT ( * ) + 93 col2 FROM tab0
----
-22
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT + COUNT( * ), 12 AS col2 FROM tab0
----
3
12

skipif mysql # not compatible
query II rowsort label-2908
SELECT + COUNT ( * ), 12 AS col2 FROM tab0
----
3
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT - - 40 + + col2 * - - 95 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT - - 40 + + col2 * - - 95 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT DISTINCT - col2 * + CAST( - 90 AS SIGNED ) FROM tab0 AS cor0
----
4230
8910
900

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT - col2 * + CAST ( - 90 AS INTEGER ) FROM tab0 AS cor0
----
4230
8910
900

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - + ( col2 ) = NULL OR col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT - - COUNT( * ) * - SUM( DISTINCT + col1 ) * 5 AS col1 FROM tab2 AS cor0
----
-2925

skipif mysql # not compatible
query I rowsort label-2912
SELECT - - COUNT ( * ) * - SUM ( DISTINCT + col1 ) * 5 AS col1 FROM tab2 AS cor0
----
-2925

query I rowsort
SELECT DISTINCT + + 6 - - col2 AS col1 FROM tab1 AS cor0
----
102
65
74

query II rowsort
SELECT ALL 50 * - ( 10 ) AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-500
-15
-500
-87
-500
-97

query I rowsort
SELECT col1 - - col1 * - col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT DISTINCT + + col0 DIV - col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + + col0 / - col1 FROM tab1 cor0
----
-1
-17
-3

query I rowsort
SELECT DISTINCT ( - ( - 71 ) ) + + - col2 / - col2 FROM tab1 WHERE NOT - ( - + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT 22 * + - COUNT( * ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT 22 * + - COUNT ( * ) FROM tab0
----
-66

query I rowsort
SELECT - col0 + 21 FROM tab0
----
-66
-76
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 87 > NULL
----

query I rowsort
SELECT + 41 + - ( col0 ) FROM tab1
----
-10
-44
-50

query I rowsort
SELECT - 97 AS col2 FROM tab1 WHERE 23 * + 23 IS NOT NULL
----
-97
-97
-97

query I rowsort
SELECT - col2 FROM tab2 WHERE col2 > NULL
----

query I rowsort
SELECT + col2 + + + col2 AS col2 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT + col0 * - - col2 + - col1 FROM tab0
----
624
849
9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - ( + col1 ) col2, 2 * 15 AS col0 FROM tab2
----
-141
30
-142
30
-97
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT DISTINCT - + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT + - col1 AS col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT + + 87 AS col2 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT 73 * + MAX( col1 ) col2 FROM tab0
----
5913

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT 73 * + MAX ( col1 ) col2 FROM tab0
----
5913

query I rowsort
SELECT 23 + - - 50 FROM tab1 WHERE NOT 45 + + 4 > ( NULL )
----

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - 65 FROM tab0 AS cor0 WHERE NOT ( 30 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 67 * - col0 + - ( col0 ) FROM tab1 cor0
----
3366
5610
6006

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT - COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT - COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT ALL COUNT( ALL + 54 ) AS col0, MAX( DISTINCT col0 ) + - COUNT( * ) + - + MAX( ALL - col1 ) FROM tab0 AS cor0
----
3
95

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL COUNT ( ALL + 54 ) AS col0, MAX ( DISTINCT col0 ) + - COUNT ( * ) + - + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
3
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT - SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT - col1 + - - col0 + col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT DISTINCT + col0 DIV + col0 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + col0 / + col0 AS col1 FROM tab0
----
1

query II rowsort
SELECT DISTINCT + col1, + 45 FROM tab2
----
51
45
67
45
77
45

query I rowsort
SELECT col2 + + 2 + - col0 AS col0 FROM tab2
----
-15
-21
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col2 FROM tab1
----
10
28
94

query I rowsort
SELECT + col2 + + 1 * + col0 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 58 > ( + 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT SUM( ALL - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT SUM ( ALL - col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT ALL ( + 79 ) FROM tab2
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT + MIN( - 54 ) + - 27 FROM tab0 cor0 WHERE NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT + MIN ( - 54 ) + - 27 FROM tab0 cor0 WHERE NULL NOT IN ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + COUNT( ALL + - ( - - col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + COUNT ( ALL + - ( - - col2 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - - ( ( + + col1 ) ) + - - col1 FROM tab2
----
2652
4556
6006

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + col0 - - ( 78 ) ) IS NULL
----

query I rowsort
SELECT ALL col2 + - col2 * - 61 AS col2 FROM tab1
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT DISTINCT 31 * - COUNT( * ), + 15 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-93
15

skipif mysql # not compatible
query II rowsort label-2954
SELECT DISTINCT 31 * - COUNT ( * ), + 15 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-93
15

query I rowsort
SELECT - col1 + col0 * - 96 AS col2 FROM tab2 AS cor0
----
-4467
-6221
-7267

query I rowsort
SELECT ALL col1 * - col2 + - ( - + col0 ) + 99 FROM tab2 AS cor0
----
-1028
-2917
-3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT DISTINCT - + col1 * - CAST( 17 AS SIGNED ) - col1 FROM tab1 AS cor0
----
224
752
80

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT - + col1 * - CAST ( 17 AS INTEGER ) - col1 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL - - COUNT( * ) - + + ( + 19 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - - COUNT ( * ) - + + ( + 19 ) FROM tab0 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col1, - 81 FROM tab0 AS cor0
----
-10
-81
-47
-81
-99
-81

query II rowsort
SELECT - 57 AS col0, col1 * - col1 AS col0 FROM tab2 AS cor0
----
-57
-2601
-57
-4489
-57
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - - COUNT( * ) * - COUNT( * ) + + + COUNT( * ) col2 FROM tab1 WHERE col1 - - 43 / + - 50 + col2 IS NOT NULL
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2961
SELECT - - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( * ) col2 FROM tab1 WHERE col1 - - 43 / + - 50 + col2 IS NOT NULL
----
-6

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 43
----

query I rowsort
SELECT ALL 89 * - col2 FROM tab2 AS cor0
----
-2047
-3560
-5162

query I rowsort
SELECT ALL col0 * - - 11 * 97 * 98 FROM tab2
----
4810036
6692224
7842450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * + col2 + + col1 col0 FROM tab0 AS cor0
----
2995
6139
641

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT DISTINCT + col2 DIV + + 93 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + col2 / + + 93 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT + - MIN( - - 81 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2967
SELECT + - MIN ( - - 81 ) AS col1 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL + col1, + col1 + + col1 FROM tab1 AS cor0
----
14
28
47
94
5
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL < - 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + 30 + - ( + COUNT( DISTINCT - + col2 ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2971
SELECT + 30 + - ( + COUNT ( DISTINCT - + col2 ) ) FROM tab2
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 >= col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - 65 + - - 89 * COUNT( * ) FROM tab2 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-2973
SELECT - 65 + - - 89 * COUNT ( * ) FROM tab2 AS cor0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT + col0 + - 98 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2974
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT + col0 + - 98 IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 + + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT MIN( DISTINCT + 51 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2976
SELECT MIN ( DISTINCT + 51 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT ALL - 36 + - col0 * + 84 * col1 * + 13 FROM tab2
----
-2561868
-5381412
-5487336

query I rowsort
SELECT - col1 * - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT ALL - 41 + - col1 AS col2 FROM tab1 AS cor0
----
-46
-55
-88

query I rowsort
SELECT + ( + 80 ) - + + 48 AS col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND - col0 * - + col1 + + 71
----

query I rowsort
SELECT DISTINCT - - 97 AS col1 FROM tab1 cor0
----
97

query I rowsort
SELECT ALL + col1 * - + 86 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( col1 )
----
-1204
-4042
-430

query I rowsort
SELECT + ( - 23 ) FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - 78 + - - MIN( + col0 ) * + 17 col0 FROM tab1 AS cor0
----
789

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2985
SELECT - 78 + - - MIN ( + col0 ) * + 17 col0 FROM tab1 AS cor0
----
789

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT + SUM( + 67 ) AS col0 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + SUM ( + 67 ) AS col0 FROM tab2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0 FROM tab2
----
3

query II rowsort
SELECT - ( + 30 ) * - col2 * col0 AS col2, col2 FROM tab2
----
130500
58
31740
23
76800
40

query I rowsort
SELECT ALL - 25 * col0 AS col1 FROM tab1
----
-1275
-2125
-2275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, ( - col0 ) FROM tab1
----
59
-85
68
-91
96
-51

query III rowsort
SELECT 52, 52, - + ( - - col1 ) AS col1 FROM tab1
----
9 values hashing to 98b99a149b93d97c36e543938cbd2de5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT DISTINCT - ( - - CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - ( - - CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2993
SELECT DISTINCT 83 * - COUNT( * ) DIV - COUNT( * ) FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT 83 * - COUNT ( * ) / - COUNT ( * ) FROM tab0 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + + 19 + - MIN( - 21 ) col2 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2994
SELECT + + 19 + - MIN ( - 21 ) col2 FROM tab0 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - - 51 ) * - + 15 * + - 21 + + col2 col1 FROM tab1 AS cor0
----
16124
16133
16161

query I rowsort
SELECT - 74 + - col2 FROM tab1 cor0
----
-133
-142
-170

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 77 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 19 * - + col2 AS col1 FROM tab1
----
-1121
-1292
-1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL 72 * + MIN( ALL - 65 ) + 22 AS col0 FROM tab2
----
-4658

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL 72 * + MIN ( ALL - 65 ) + 22 AS col0 FROM tab2
----
-4658

query I rowsort
SELECT DISTINCT 53 + 15 FROM tab1
----
68

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL - 2 * + - MAX( ALL - - col1 ) * + - MIN( 69 ) col1 FROM tab0
----
-11178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3003
SELECT ALL - 2 * + - MAX ( ALL - - col1 ) * + - MIN ( 69 ) col1 FROM tab0
----
-11178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + - + col1 + col2 col0 FROM tab1
----
-42
-9
19

query I rowsort
SELECT - col0 * col2 + + col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT ALL - col2 + col1 - - col0 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT - CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3008
SELECT + - col2 DIV col2, - 37 * - + 44 AS col1 FROM tab0 AS cor0
----
-1
1628
-1
1628
-1
1628

skipif mysql # not compatible
query II rowsort label-3008
SELECT + - col2 / col2, - 37 * - + 44 AS col1 FROM tab0 AS cor0
----
-1
1628
-1
1628
-1
1628

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND col2 + + + 82 + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( col2 ) ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( 55 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3012
SELECT * FROM tab2 WHERE NOT + 85 * - - 18 * + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3012
SELECT * FROM tab2 WHERE NOT + 85 * - - 18 * + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col1 > ( + - col1 ) )
----

query I rowsort
SELECT - col0 + + 54 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - 65 NOT IN ( - - col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( 52 ) * - - 22 AS col1 FROM tab0 AS cor0
----
-1144
-1144
-1144

query II rowsort
SELECT col2 AS col1, 20 + - col1 FROM tab2
----
23
-31
40
-57
58
-47

query II rowsort
SELECT ALL + + col0, + 62 AS col2 FROM tab1 AS cor0
----
51
62
85
62
91
62

query II rowsort
SELECT - col2, 24 AS col0 FROM tab0 AS cor0
----
-10
24
-47
24
-99
24

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - col2 * - + col1
----

query II rowsort
SELECT - col1 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL MAX( DISTINCT + 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL MAX ( DISTINCT + 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL 72 * + + 7 AS col1, + col1 + 6 AS col2 FROM tab2
----
504
57
504
73
504
83

query III rowsort
SELECT * FROM tab2 WHERE + 58 NOT BETWEEN NULL AND col1
----
46
51
23

query I rowsort
SELECT 58 AS col1 FROM tab1 WHERE col2 NOT IN ( 10 )
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * 78 * + col0 + - + col0 + + 92 + col2 col2 FROM tab1
----
51851
86256
92343

query I rowsort
SELECT ALL + col0 * + - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + 58 + - col1 AS col2 FROM tab0
----
-23
37
57

query I rowsort
SELECT col0 + 45 + + - ( - 67 ) FROM tab1
----
163
197
203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 - - 51 + col2 * - CAST( NULL AS SIGNED ) + - - 97 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 - - 51 + col2 * - CAST ( NULL AS INTEGER ) + - - 97 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + 57 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3032
SELECT - col0 / + col1 / + CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT - col0 / + col1 / + CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 98 * + - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT - 46 + - + COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT - 46 + - + COUNT ( * ) FROM tab2 AS cor0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3035
SELECT ALL CAST( NULL AS SIGNED ) + 64, MAX( + col2 ) + + COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-3035
SELECT ALL CAST ( NULL AS INTEGER ) + 64, MAX ( + col2 ) + + COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT - 92 * + COUNT( * ) FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT - 92 * + COUNT ( * ) FROM tab0 AS cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT DISTINCT + ( - CAST( - - 3 AS SIGNED ) ) * + 55 FROM tab1 cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT + ( - CAST ( - - 3 AS INTEGER ) ) * + 55 FROM tab1 cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL 96 - COUNT( * ) FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL 96 - COUNT ( * ) FROM tab2 cor0
----
93

query I rowsort
SELECT DISTINCT - 36 * - - col2 * 51 FROM tab1
----
-108324
-124848
-176256

query I rowsort
SELECT - 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3042
SELECT ALL 57, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL 57, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
57
NULL
57
NULL
57
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col0 FROM tab1 AS cor0 WHERE NOT col0 / - ( + 48 ) * - 9 * + + col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * - 97 col1 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-8827

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT 69 * COUNT( - + 57 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT 69 * COUNT ( - + 57 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col1 * + 58 - - 98
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, 58 AS col2 FROM tab0 AS cor0
----
15
58
87
58
97
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT - CAST( - 30 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-3049
SELECT - CAST ( - 30 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query II rowsort label-3050
SELECT ALL + col0 DIV + - col0 AS col0, col1 AS col0 FROM tab2
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-3050
SELECT ALL + col0 / + - col0 AS col0, col1 AS col0 FROM tab2
----
-1
51
-1
67
-1
77

query I rowsort
SELECT 10 * + + 13 FROM tab2
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT - MIN( ALL - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - MIN ( ALL - col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT + SUM( DISTINCT - - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT + SUM ( DISTINCT - - col0 ) AS col2 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT DISTINCT - 7 + + - CAST( - - col2 AS SIGNED ) FROM tab0
----
-106
-17
-54

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - 7 + + - CAST ( - - col2 AS INTEGER ) FROM tab0
----
-106
-17
-54

query I rowsort
SELECT ALL + + col0 + + + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT 75 + col1 FROM tab0 AS cor0
----
156
76
96

query I rowsort
SELECT ALL - 9 + + - 93 AS col1 FROM tab1 AS cor0
----
-102
-102
-102

query II rowsort
SELECT DISTINCT + 47 * col0 + + 36 AS col2, 71 AS col0 FROM tab1 cor0
----
2433
71
4031
71
4313
71

query I rowsort
SELECT col2 + col2 + + col0 + col1 AS col2 FROM tab0 AS cor0
----
128
190
296

query I rowsort
SELECT + col0 + - col0 + 92 * col1 FROM tab1 AS cor0
----
1288
4324
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - - 0 + + 6 AS col2 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT + col0 + + CAST( NULL AS SIGNED ) * + 95, + ( - col1 ) + - - col1 AS col1 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-3063
SELECT + col0 + + CAST ( NULL AS INTEGER ) * + 95, + ( - col1 ) + - - col1 AS col1 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT ALL + col2 + + 61 * - - 79 FROM tab0
----
4829
4866
4918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0
----
1

query I rowsort
SELECT - 26 * - 76 FROM tab2
----
1976
1976
1976

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - + col1 = - - col0 + - col1
----

query II rowsort
SELECT 91, + 60 AS col1 FROM tab0 AS cor0
----
91
60
91
60
91
60

query I rowsort
SELECT - col2 - - 64 AS col1 FROM tab2 AS cor0
----
24
41
6

query I rowsort
SELECT ALL + - 18 * + col0 - - - 96 AS col2 FROM tab2 AS cor0
----
-1248
-1446
-924

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3071
SELECT + + 74 - - 87 DIV CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
74
75
75

skipif mysql # not compatible
query I rowsort label-3071
SELECT + + 74 - - 87 / CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
74
75
75

query III rowsort
SELECT * FROM tab1 WHERE NOT 51 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT ALL + - 77 * + - col0 DIV - ( + col0 ) FROM tab1 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + - 77 * + - col0 / - ( + col0 ) FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT + COUNT( * ) DIV + - COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3074
SELECT + COUNT ( * ) / + - COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT ( ( col1 IS NOT NULL ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3076
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT - COUNT( * ) DIV - 99 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT - COUNT ( * ) / - 99 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT MAX( ALL + - 0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT MAX ( ALL + - 0 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > - col2 * - - 74 * - + col1 + - - 1 - 94 )
----

query I rowsort
SELECT DISTINCT - - 5 AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT DISTINCT + + col1 DIV + col0 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3082
SELECT DISTINCT + + col1 / + col0 col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT - CAST( + 79 AS SIGNED ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - CAST ( + 79 AS INTEGER ) FROM tab0
----
-79

query I rowsort
SELECT ALL - 64 * + col1 FROM tab1
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT COUNT( ALL + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT COUNT ( ALL + col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ( col1 ) FROM tab2 WHERE NOT col0 <> + 22 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT 58 * - + SUM( DISTINCT - col2 ) AS col0 FROM tab2
----
7018

skipif mysql # not compatible
query I rowsort label-3087
SELECT 58 * - + SUM ( DISTINCT - col2 ) AS col0 FROM tab2
----
7018

onlyif mysql # DIV for integer division: 
query II rowsort label-3088
SELECT DISTINCT + - 37 + col0 AS col1, - col2 DIV - 48 FROM tab1 AS cor0
----
14
2
48
1
54
1

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT + - 37 + col0 AS col1, - col2 / - 48 FROM tab1 AS cor0
----
14
2
48
1
54
1

query I rowsort
SELECT ALL col1 + - - col2 + col1 FROM tab0 AS cor0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - + COUNT( ALL - 62 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3090
SELECT - + COUNT ( ALL - 62 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 1 * col1 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT - + COUNT( DISTINCT + col0 ) * + + 73 AS col2 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - + COUNT ( DISTINCT + col0 ) * + + 73 AS col2 FROM tab1 AS cor0
----
-219

query II rowsort
SELECT DISTINCT - + ( + - col2 ), - col2 AS col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT - - col1 - + - col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT + MIN( ALL + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT + MIN ( ALL + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT SUM( + - col0 ) * ( + - CAST( NULL AS SIGNED ) ) + + - MIN( ALL - ( - + 99 ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT SUM ( + - col0 ) * ( + - CAST ( NULL AS INTEGER ) ) + + - MIN ( ALL - ( - + 99 ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NOT col2 >= + ( + ( 47 ) )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3098
SELECT - ( + CAST( NULL AS SIGNED ) ) + + MIN( - col0 ) * + - ( + + 34 ) + + AVG ( + 80 ) - - 14 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT - ( + CAST ( NULL AS INTEGER ) ) + + MIN ( - col0 ) * + - ( + + 34 ) + + AVG ( + 80 ) - - 14 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ( + COUNT( ALL + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3099
SELECT ( + COUNT ( ALL + col0 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 * - + col1 + - col2 * + ( + col1 ) <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3101
SELECT ALL - - CAST( NULL AS SIGNED ) - 19 + col1 AS col0, + ( + + 25 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
-1150
NULL
-1600
NULL
-1875

skipif mysql # not compatible
query II rowsort label-3101
SELECT ALL - - CAST ( NULL AS INTEGER ) - 19 + col1 AS col0, + ( + + 25 ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
-1150
NULL
-1600
NULL
-1875

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - col0 - - - 42 IS NULL
----

query II rowsort
SELECT + col1 AS col0, 38 - + + col0 FROM tab1
----
14
-13
47
-53
5
-47

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + ( + col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT ALL 20, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
20
-3

skipif mysql # not compatible
query II rowsort label-3105
SELECT ALL 20, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
20
-3

query II rowsort
SELECT DISTINCT + col1, col2 + col2 AS col2 FROM tab0 AS cor0
----
1
198
21
20
81
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3107
SELECT + COUNT( ALL + 5 ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3107
SELECT + COUNT ( ALL + 5 ), COUNT ( * ) FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * - + col0 col1 FROM tab1
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - ( - ( COUNT( * ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3109
SELECT - ( - ( COUNT ( * ) ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 73 + - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT MIN( DISTINCT - + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3111
SELECT MIN ( DISTINCT - + col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT DISTINCT + 93 DIV + COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + 93 / + COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
31

query I rowsort
SELECT + col0 + - 67 AS col1 FROM tab2
----
-21
-3
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col1 col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT ( + + 66 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3116
SELECT DISTINCT + MIN( DISTINCT + + 93 ) AS col0, CAST( MAX( + col1 ) AS SIGNED ) + + COUNT( * ) FROM tab2
----
93
80

skipif mysql # not compatible
query II rowsort label-3116
SELECT DISTINCT + MIN ( DISTINCT + + 93 ) AS col0, CAST ( MAX ( + col1 ) AS INTEGER ) + + COUNT ( * ) FROM tab2
----
93
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT DISTINCT - col2 + - - 60 DIV + 11 AS col1 FROM tab1
----
-54
-63
-91

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT - col2 + - - 60 / + 11 AS col1 FROM tab1
----
-54
-63
-91

query III rowsort
SELECT * FROM tab2 WHERE - 33 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 > 80
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3120
SELECT ALL - + 57 DIV - + COUNT( CAST( col1 AS SIGNED ) ) + + ( 26 ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - + 57 / - + COUNT ( CAST ( col1 AS INTEGER ) ) + + ( 26 ) AS col0 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3121
SELECT ( + + CAST( NULL AS DECIMAL ) ) * col1 * col2 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-3121
SELECT ( + + CAST ( NULL AS REAL ) ) * col1 * col2 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT + + COUNT( + - col0 ), 76 AS col2 FROM tab0 AS cor0
----
3
76

skipif mysql # not compatible
query II rowsort label-3122
SELECT + + COUNT ( + - col0 ), 76 AS col2 FROM tab0 AS cor0
----
3
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3123
SELECT ALL - + CAST( + col0 AS SIGNED ) AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-3123
SELECT ALL - + CAST ( + col0 AS INTEGER ) AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3124
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + + 36 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3124
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + + 36 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - ( - - 20 ), + 56, + - col1, - - col1 )
----

query II rowsort
SELECT - 82 AS col0, + col2 AS col1 FROM tab1
----
-82
59
-82
68
-82
96

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 7 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + + COUNT( * ) * 25 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3128
SELECT + + COUNT ( * ) * 25 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - 91 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT DISTINCT + 56 * + - CAST( 39 AS SIGNED ) * + 32 AS col0 FROM tab0 AS cor0
----
-69888

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + 56 * + - CAST ( 39 AS INTEGER ) * + 32 AS col0 FROM tab0 AS cor0
----
-69888

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - + SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3131
SELECT - + SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + col0 * - col0 - + - col0 FROM tab2 cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT COUNT( * ) * - ( COUNT( * ) ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3133
SELECT DISTINCT COUNT ( * ) * - ( COUNT ( * ) ) col1 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 + + col1 > + 61 + + - col0 + - 64
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT ALL + MIN( - - 32 ) AS col1, 28 + + MIN( + col2 ) FROM tab2
----
32
51

skipif mysql # not compatible
query II rowsort label-3135
SELECT ALL + MIN ( - - 32 ) AS col1, 28 + + MIN ( + col2 ) FROM tab2
----
32
51

query II rowsort
SELECT col0 AS col0, col1 * - + 96 FROM tab1
----
51
-1344
85
-480
91
-4512

query I rowsort
SELECT ALL 88 * - 75 + - + col2 AS col1 FROM tab2
----
-6623
-6640
-6658

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT DISTINCT - 16 AS col1, - COUNT( * ) col2 FROM tab1 AS cor0
----
-16
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3138
SELECT DISTINCT - 16 AS col1, - COUNT ( * ) col2 FROM tab1 AS cor0
----
-16
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT DISTINCT COUNT( * ) + + 61 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT COUNT ( * ) + + 61 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT ALL + col0 + + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + col0 + + col2 / - col2 AS col1 FROM tab1 AS cor0
----
50
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT - SUM( + - 38 ) * - - 59 AS col1 FROM tab1
----
6726

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - SUM ( + - 38 ) * - - 59 AS col1 FROM tab1
----
6726

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + ( - SUM( ALL + 47 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-423

skipif mysql # not compatible
query I rowsort label-3142
SELECT + ( - SUM ( ALL + 47 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL + COUNT( * ) + 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
97

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + COUNT ( * ) + 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
97

query I rowsort
SELECT ALL - 96 + - col2 FROM tab0
----
-106
-143
-195

query I rowsort
SELECT - - col0 - + col2 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL 81 + + col2 FROM tab0 AS cor0
----
128
180
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3147
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) + 89 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3147
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) + 89 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 47 * - 21 AS col0 FROM tab0 AS cor0
----
-987
-987
-987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT COUNT( * ) - ( + + CAST( - - COUNT( * ) AS SIGNED ) ) * MAX( ALL col1 ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT COUNT ( * ) - ( + + CAST ( - - COUNT ( * ) AS INTEGER ) ) * MAX ( ALL col1 ) FROM tab2 AS cor0
----
-228

query I rowsort
SELECT + - col1 FROM tab1 WHERE + - col2 * - col1 < + - col0
----

query I rowsort
SELECT col2 + 13 * + ( + + 34 ) + + col2 FROM tab1
----
560
578
634

query I rowsort
SELECT DISTINCT - 41 * - + col2 FROM tab1
----
2419
2788
3936

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT 54 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT 54 / col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT ALL col2 DIV 14 AS col2 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL col2 / 14 AS col2 FROM tab0
----
0
3
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col0 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL - MIN( DISTINCT - + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - MIN ( DISTINCT - + col1 ) FROM tab1
----
47

query I rowsort
SELECT + 63 * ( - 54 ) AS col1 FROM tab1
----
-3402
-3402
-3402

query II rowsort
SELECT - col2, 9 * + col2 AS col1 FROM tab1
----
-59
531
-68
612
-96
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col1 FROM tab0 AS cor0 WHERE ( 17 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL COUNT( DISTINCT + 94 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL COUNT ( DISTINCT + 94 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3162
SELECT DISTINCT + - CAST( NULL AS SIGNED ), + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3162
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 95 * col2 NOT IN ( - 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3164
SELECT * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3164
SELECT * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3165
SELECT ALL - col1 / - CAST( NULL AS DECIMAL ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - col1 / - CAST ( NULL AS REAL ) + - col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col0 - col2
----

query I rowsort
SELECT DISTINCT 92 * - 3 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col0 ) FROM tab2 WHERE NOT + col2 >= NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3169
SELECT - ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT - ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN + col2 AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT NULL IN ( col2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT NULL IN ( col2 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 0 AS col0 FROM tab0 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT 49 - COUNT( * ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3174
SELECT 49 - COUNT ( * ) AS col2 FROM tab0
----
46

query I rowsort
SELECT 92 * ( col1 ) AS col2 FROM tab0
----
1932
7452
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT COUNT( ALL + 51 ) - 92 AS col0 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-3176
SELECT COUNT ( ALL + 51 ) - 92 AS col0 FROM tab1
----
-89

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col1 ) + ( + col2 + 78 ) * + ( col0 ) BETWEEN - 25 + + col1 * 15 AND col2 / - 95 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT DISTINCT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - COUNT( 11 - 30 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - COUNT ( 11 - 30 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col2 = ( - 36 )
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE 56 NOT IN ( 46 )
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3182
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL - 50 * SUM( DISTINCT - ( + 30 ) ) AS col2 FROM tab1
----
1500

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - 50 * SUM ( DISTINCT - ( + 30 ) ) AS col2 FROM tab1
----
1500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3184
SELECT * FROM tab1 WHERE NOT ( + col2 * col0 ) IN ( + ( CAST( NULL AS SIGNED ) ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-3184
SELECT * FROM tab1 WHERE NOT ( + col2 * col0 ) IN ( + ( CAST ( NULL AS INTEGER ) ) * + col0 )
----

query I rowsort
SELECT ALL + col0 * - 22 FROM tab0
----
-1914
-2134
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT ( MAX( - 27 ) ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT ( MAX ( - 27 ) ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT 10 * - col1 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL - 63 + MAX( ALL + 25 + 23 ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - 63 + MAX ( ALL + 25 + 23 ) AS col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT - ( col0 ) * + col2 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + MAX( ALL col0 ) - COUNT( * ) * COUNT( ALL 73 / col1 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3192
SELECT + MAX ( ALL col0 ) - COUNT ( * ) * COUNT ( ALL 73 / col1 ) FROM tab0 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT - col1 + + col0 DIV - col1 FROM tab0
----
-25
-81
-98

skipif mysql # not compatible
query I rowsort label-3193
SELECT - col1 + + col0 / - col1 FROM tab0
----
-25
-81
-98

query I rowsort
SELECT ALL 35 AS col1 FROM tab1 WHERE ( 23 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT ALL + COUNT( * ) DIV - COUNT( col0 ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3195
SELECT ALL + COUNT ( * ) / - COUNT ( col0 ) col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT ( + 78 ) + col0 * - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-347
-4199
-636

query I rowsort
SELECT 26 + col0 * col0 FROM tab2 AS cor0
----
2142
4122
5651

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * 42 + col0 * + 19 col0 FROM tab1 AS cor0
----
-245
1405
381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL 70 * + ( 32 + CAST( 93 AS SIGNED ) ) - + col0 AS col1 FROM tab2 AS cor0
----
8675
8686
8704

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL 70 * + ( 32 + CAST ( 93 AS INTEGER ) ) - + col0 AS col1 FROM tab2 AS cor0
----
8675
8686
8704

query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab0 AS cor0 WHERE + col1 / col0 > col2 + col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3202
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * col0 <= - ( CAST( NULL AS SIGNED ) ) * + col0
----

skipif mysql # not compatible
query III rowsort label-3202
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * col0 <= - ( CAST ( NULL AS INTEGER ) ) * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT DISTINCT + + 73 DIV col1 AS col2 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT + + 73 / col1 AS col2 FROM tab1 AS cor0
----
1
14
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 76 - + col2 col0 FROM tab2 AS cor0
----
-116
-134
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + MAX( - col0 ) AS col2 FROM tab1 cor0 WHERE + col0 + - ( col2 + col2 ) IN ( col0 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT + MAX ( - col0 ) AS col2 FROM tab1 cor0 WHERE + col0 + - ( col2 + col2 ) IN ( col0 + - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3206
SELECT MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL ( col2 ) - + col2 * col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3208
SELECT * FROM tab0 AS cor0 WHERE CAST( 20 AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3208
SELECT * FROM tab0 AS cor0 WHERE CAST ( 20 AS INTEGER ) + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL COUNT( * ) - - 83 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL COUNT ( * ) - - 83 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL 8 * col1 AS col0 FROM tab0
----
168
648
8

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT - 29 * - 38 + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col2 + + 34 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT ALL ( + col1 ) DIV col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL ( + col1 ) / col1 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT col1 DIV + + 46 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3214
SELECT col1 / + + 46 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col1 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 <> col0 + 17 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT 0 * - MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT 0 * - MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 14 FROM tab1 AS cor0 WHERE NOT 97 + + col2 = col2
----
14
14
14

query I rowsort
SELECT DISTINCT col1 - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT - col2 FROM tab1 AS cor0 WHERE NOT CAST( - 59 AS SIGNED ) - - col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-3221
SELECT - col2 FROM tab1 AS cor0 WHERE NOT CAST ( - 59 AS INTEGER ) - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT MAX( ALL + + ( 58 ) ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT MAX ( ALL + + ( 58 ) ) FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + 79 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-3223
SELECT + 79 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT + + 68 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
612

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + + 68 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
612

query I rowsort
SELECT DISTINCT + - col0 + - - col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3226
SELECT 52 * COUNT( * ) * ( + ( 20 ) ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
1040

skipif mysql # not compatible
query I rowsort label-3226
SELECT 52 * COUNT ( * ) * ( + ( 20 ) ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1040

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 65 ) = ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 3 * - 67 + col0 FROM tab2 AS cor0
----
-126
-137
-155

query I rowsort
SELECT col1 * + 42 * + col2 AS col0 FROM tab2 AS cor0
----
129360
163212
49266

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 32 * - col2 = 32 + + 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + col0 FROM tab2 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( 64 ) + + 60 ) <= ( 91 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 98 * col2 AS col1 FROM tab1
----
-5782
-6664
-9408

query I rowsort
SELECT + col0 * + col1 + + col1 FROM tab0
----
1296
1848
98

query III rowsort
SELECT * FROM tab0 WHERE - + col0 + - + 19 IS NULL
----

query I rowsort
SELECT ALL 20 + - col0 FROM tab0
----
-67
-77
5

query I rowsort
SELECT DISTINCT - col2 + 7 * - col2 FROM tab2
----
-184
-320
-464

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT + col1 DIV - col2 + + col1 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-3241
SELECT + col1 / - col2 + + col1 FROM tab2
----
49
66
76

query I rowsort
SELECT - 86 + - + 20 + col2 + - col1 AS col0 FROM tab1
----
-24
-52
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3243
SELECT - col1 + CAST( NULL AS DECIMAL ) * - 40 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT - col1 + CAST ( NULL AS REAL ) * - 40 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + + 76 * - - col2 AS col0 FROM tab0 cor0
----
3619
7623
770

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE + col1 <= ( NULL )
----

query I rowsort
SELECT - - ( - 20 ) + + - 84 * - 45 AS col1 FROM tab0 AS cor0
----
3760
3760
3760

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) - - 29 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT + COUNT( * ) * + SUM( ( + - 14 ) ) FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + COUNT ( * ) * + SUM ( ( + - 14 ) ) FROM tab0 AS cor0
----
-126

query II rowsort
SELECT ALL + 17, - col1 AS col2 FROM tab0
----
17
-1
17
-21
17
-81

query I rowsort
SELECT + col1 * + 65 FROM tab0
----
1365
5265
65

query I rowsort
SELECT 98 - - - 93 AS col2 FROM tab0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT DISTINCT - 38 DIV - - col2 FROM tab0 cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT - 38 / - - col2 FROM tab0 cor0
----
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL + + CAST( NULL AS SIGNED ) / + - AVG ( col0 ) * - CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL + + CAST ( NULL AS INTEGER ) / + - AVG ( col0 ) * - CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 27 * + + 70 FROM tab1 AS cor0
----
1890
1890
1890

query II rowsort
SELECT ALL - col1 AS col2, + 7 AS col0 FROM tab2 AS cor0
----
-51
7
-67
7
-77
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + - SUM( - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3257
SELECT + - SUM ( - col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 56 )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL + col1 AS col0, col0 * - col1 AS col2 FROM tab0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - COUNT( * ) * + 90 AS col1 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-3262
SELECT - COUNT ( * ) * + 90 AS col1 FROM tab1
----
-270

query II rowsort
SELECT DISTINCT - 3 AS col2, col2 FROM tab0
----
-3
10
-3
47
-3
99

query I rowsort
SELECT ALL 11 * - - col2 FROM tab2
----
253
440
638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 42 ) col0 FROM tab2
----
42

query I rowsort
SELECT ALL 38 * + ( + col0 ) FROM tab1
----
1938
3230
3458

query I rowsort
SELECT - 29 FROM tab2 AS cor0 WHERE NOT 48 * col0 NOT BETWEEN ( NULL ) AND ( 83 / 32 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3268
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN CAST( NULL AS DECIMAL ) AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-3268
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN CAST ( NULL AS REAL ) AND ( + col0 )
----

query I rowsort
SELECT ALL + col2 * - 68 + col2 FROM tab0 cor0
----
-3149
-6633
-670

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * 15 FROM tab2
----
1125
690
960

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col2 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT + COUNT( * ) * + 2 * - COUNT( * ) * + 85 col0 FROM tab0 cor0
----
-1530

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3274
SELECT DISTINCT + COUNT ( * ) * + 2 * - COUNT ( * ) * + 85 col0 FROM tab0 cor0
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT COUNT( * ) + ( + 7 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3275
SELECT COUNT ( * ) + ( + 7 ) FROM tab1 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-3276
SELECT ALL 94 DIV - col0 col1, + col0 + col0 AS col1 FROM tab2 AS cor0
----
-1
128
-1
150
-2
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3276
SELECT ALL 94 / - col0 col1, + col0 + col0 AS col1 FROM tab2 AS cor0
----
-1
128
-1
150
-2
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT 76 + + col2 * + CAST( + - col1 AS SIGNED ) - - + col1 + + + col2 FROM tab2 AS cor0
----
-1023
-2887
-3685

skipif mysql # not compatible
query I rowsort label-3277
SELECT 76 + + col2 * + CAST ( + - col1 AS INTEGER ) - - + col1 + + + col2 FROM tab2 AS cor0
----
-1023
-2887
-3685

query I rowsort
SELECT 90 * col2 + - 82 FROM tab1 AS cor0
----
5228
6038
8558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT col1 + + + 97 + - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT col1 + + + 97 + - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT - MAX( - + col0 ) + 78 AS col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-3280
SELECT - MAX ( - + col0 ) + 78 AS col1 FROM tab1 AS cor0
----
129

query I rowsort
SELECT - 82 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - + 74 FROM tab1
----
-23
11
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT col2 * 90 + + col1 AS col1 FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) * + - col2 + col0 NOT BETWEEN 61 AND + - 7
----

skipif mysql # not compatible
query I rowsort label-3283
SELECT col2 * 90 + + col1 AS col1 FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) * + - col2 + col0 NOT BETWEEN 61 AND + - 7
----

query I rowsort
SELECT DISTINCT - col1 + 77 FROM tab2
----
0
10
26

query I rowsort
SELECT ALL + col0 * ( + - col2 ) + + + col1 + col1 AS col2 FROM tab2 AS cor0
----
-2406
-4216
-956

query I rowsort
SELECT + col0 - - + col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3287
SELECT - COUNT( * ) * + COUNT( + - col0 ) * - 30 + - 7 + + 93 DIV + CAST( COUNT( DISTINCT col1 ) AS SIGNED ) + 51 * 54 FROM tab0 AS cor0
----
3048

skipif mysql # not compatible
query I rowsort label-3287
SELECT - COUNT ( * ) * + COUNT ( + - col0 ) * - 30 + - 7 + + 93 / + CAST ( COUNT ( DISTINCT col1 ) AS INTEGER ) + 51 * 54 FROM tab0 AS cor0
----
3048

query I rowsort
SELECT - 15 * + 4 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE + ( - col1 ) + + - col0 IS NULL
----

query I rowsort
SELECT + - ( + 76 ) AS col0 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL - + SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - + SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + + MIN( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3292
SELECT + + MIN ( ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - col2 * + 24 AS col0 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT + COUNT( * ) * - COUNT( ALL 96 ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3294
SELECT DISTINCT + COUNT ( * ) * - COUNT ( ALL 96 ) col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT ( - COUNT( col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT ( - COUNT ( col1 ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT - col2 * + 99 AS col1 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT ALL col2 * + + ( + - col0 ) + - col1 * + col2 + + + 30 FROM tab2 WHERE NOT - + 6 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL ( + + 69 ) * + COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL ( + + 69 ) * + COUNT ( * ) FROM tab2
----
207

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + ( - + col2 ) ) * + col2 FROM tab1 cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT DISTINCT - 74 AS col2, + COUNT( - col0 ) col0 FROM tab1 AS cor0
----
-74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3301
SELECT DISTINCT - 74 AS col2, + COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
-74
3

query I rowsort
SELECT ALL col2 + - + 67 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT 57 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
57
-3

skipif mysql # not compatible
query II rowsort label-3303
SELECT 57 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
57
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3304
SELECT * FROM tab0 cor0 WHERE - CAST( - col2 AS SIGNED ) + - - 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3304
SELECT * FROM tab0 cor0 WHERE - CAST ( - col2 AS INTEGER ) + - - 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL + + COUNT( * ) + + 67 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + + COUNT ( * ) + + 67 FROM tab1 AS cor0
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3306
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * 50 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3306
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * 50 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col1 * 44 + col0 AS col1 FROM tab0 cor0
----
-3549
-837
53

query II rowsort
SELECT DISTINCT + col1, - col2 + + + 14 AS col0 FROM tab2 cor0
----
51
-9
67
-44
77
-26

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 * + - 72
----

query I rowsort
SELECT DISTINCT + col0 * - 87 AS col0 FROM tab0
----
-1305
-7569
-8439

query I rowsort
SELECT + col2 + - 35 + - ( + col0 ) AS col1 FROM tab0
----
-112
-3
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 12 * col1 col0, - 32 col1 FROM tab2
----
612
-32
804
-32
924
-32

query I rowsort
SELECT DISTINCT - 14 + - + 67 AS col1 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT - col2 + - CAST( - + col1 AS SIGNED ) col1 FROM tab2
----
28
37
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3314
SELECT - col2 + - CAST ( - + col1 AS INTEGER ) col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT - ( - - col0 ) + - 2 + CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT - ( - - col0 ) + - 2 + CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 + + col0 * - ( 29 ) AS col0 FROM tab2
----
-1413
-1935
-2254

query I rowsort
SELECT DISTINCT col2 - - col2 + - - col2 * + col2 AS col2 FROM tab2 AS cor0
----
1680
3480
575

query I rowsort
SELECT ALL - 44 - 35 + col1 FROM tab1 AS cor0
----
-32
-65
-74

query II rowsort
SELECT + col0, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query II rowsort
SELECT ALL col1, 26 FROM tab0
----
1
26
21
26
81
26

query I rowsort
SELECT col2 * + 36 FROM tab1
----
2124
2448
3456

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3323
SELECT ALL + + col0, col0 DIV col2 FROM tab2 AS cor0
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL + + col0, col0 / col2 FROM tab2 AS cor0
----
46
2
64
1
75
1

query I rowsort
SELECT DISTINCT + - col2 * - 85 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
1955
3400
4930

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / + col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + ( + 72 ) < ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 - - - col1 + + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT MAX( ALL - + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3328
SELECT MAX ( ALL - + col2 ) AS col2 FROM tab1
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 / + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 56 ) BETWEEN + 35 AND ( + + col1 * + ( - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL + MIN( - 10 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + MIN ( - 10 ) AS col0 FROM tab0
----
-10

query II rowsort
SELECT ALL + col1, - 26 + - 43 AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
51
-69
67
-69
77
-69

query I rowsort
SELECT ALL + 87 AS col2 FROM tab1 WHERE 88 IS NOT NULL
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 72 ), col0 * - col2 - + 19 col0 FROM tab1
----
72
-4915
72
-5034
72
-6207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3335
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 11 - - + col2 <= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT 85 * - - COUNT( * ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-3337
SELECT 85 * - - COUNT ( * ) FROM tab2
----
255

query I rowsort
SELECT ALL - - 4 FROM tab1 cor0
----
4
4
4

query I rowsort
SELECT - col2 * - 85 FROM tab1 AS cor0
----
5015
5780
8160

query II rowsort
SELECT col2 * + - col1, col1 FROM tab2 AS cor0
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT - 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT - - MAX( DISTINCT ( - col1 ) ) DIV + COUNT( * ) + + SUM( + 94 ) * - ( SUM( ALL - 20 ) ) FROM tab0 cor0
----
16920

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - - MAX ( DISTINCT ( - col1 ) ) / + COUNT ( * ) + + SUM ( + 94 ) * - ( SUM ( ALL - 20 ) ) FROM tab0 cor0
----
16920

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL + COUNT( * ) + + 9 AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + COUNT ( * ) + + 9 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL col1 * - ( + col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT + 59 + + 79 AS col1 FROM tab2 AS cor0
----
138
138
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT COUNT( * ) + - - MAX( DISTINCT + 73 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT COUNT ( * ) + - - MAX ( DISTINCT + 73 ) FROM tab2 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + 71 * - COUNT( * ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 71 * - COUNT ( * ) FROM tab0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT - COUNT( * ) * + + 94 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - COUNT ( * ) * + + 94 FROM tab2
----
-282

query I rowsort
SELECT - 37 * - 43 FROM tab0
----
1591
1591
1591

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT SUM( + 33 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3351
SELECT SUM ( + 33 ) AS col2 FROM tab1
----
99

query III rowsort
SELECT ALL * FROM tab2 WHERE 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 46 < + col2
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - col2 * 31 * - + 56 FROM tab2 AS cor0
----
100688
39928
69440

query I rowsort
SELECT - 62 * 81 * col0 FROM tab2
----
-231012
-321408
-376650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT MAX( + ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT MAX ( + ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT - 64 DIV + + 14 + col2 FROM tab1 cor0
----
55
64
92

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 64 / + + 14 + col2 FROM tab1 cor0
----
55
64
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3358
SELECT - + SUM( DISTINCT 99 ) DIV - + 22 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3358
SELECT - + SUM ( DISTINCT 99 ) / - + 22 FROM tab0 AS cor0
----
4

query I rowsort
SELECT ALL - + col0 * - ( + - col1 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + ( 38 ) - + 71 + - col0 * col0 - + 14 AS col1 FROM tab0
----
-1
-9456
-21
-7616
-81
-272

query II rowsort
SELECT ALL col1 AS col2, + col1 AS col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT + col1 + col1 * - col1 AS col0 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT + 68 * + 18 + col2 AS col1 FROM tab1 AS cor0 WHERE - col1 >= - + 1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND - 63
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3365
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col2, 54 AS col1 FROM tab2 AS cor0
----
NULL
54
NULL
54
NULL
54

skipif mysql # not compatible
query II rowsort label-3365
SELECT ALL - - CAST ( NULL AS REAL ) AS col2, 54 AS col1 FROM tab2 AS cor0
----
NULL
54
NULL
54
NULL
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + col0 * - 72 * - col1 - 85 / + 13 + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( + col1 + + 67, 89 / - col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT + SUM( + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + SUM ( + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
69

query II rowsort
SELECT DISTINCT - - col0, col2 AS col2 FROM tab0 AS cor0 WHERE col2 - col1 IS NULL
----

query II rowsort
SELECT + 31 * 38 + 21 - - col1 AS col0, - col2 * + col1 FROM tab0 AS cor0
----
1200
-99
1220
-210
1280
-3807

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 >= NULL )
----

query II rowsort
SELECT ALL + ( - 64 ) * - col2 * col2, - 56 AS col1 FROM tab2 AS cor0
----
102400
-56
215296
-56
33856
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-3373
SELECT DISTINCT - 99 DIV + - 32 AS col0, 18 col2 FROM tab1 AS cor0
----
3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3373
SELECT DISTINCT - 99 / + - 32 AS col0, 18 col2 FROM tab1 AS cor0
----
3
18

query I rowsort
SELECT ALL - col1 * + 53 + 57 + col0 + - col2 * + col2 FROM tab1 AS cor0
----
-3604
-6967
-9850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT 93 + - + CAST( - - 28 AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
-2343
-2623
-327

skipif mysql # not compatible
query I rowsort label-3375
SELECT 93 + - + CAST ( - - 28 AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
-2343
-2623
-327

query I rowsort
SELECT 69 FROM tab2 WHERE NULL IS NULL
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT 37 + - ( + + col0 ) DIV - - col0 AS col1 FROM tab1
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3377
SELECT 37 + - ( + + col0 ) / - - col0 AS col1 FROM tab1
----
36
36
36

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT COUNT( * ) + - + MIN( - col1 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3379
SELECT COUNT ( * ) + - + MIN ( - col1 ) FROM tab2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT ALL + 33 + - + COUNT( * ) + - COUNT( * ) + - + 56 * + + COUNT( * ) * 89 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + 33 + - + COUNT ( * ) + - COUNT ( * ) + - + 56 * + + COUNT ( * ) * 89 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 23 AND NULL
----

query I rowsort
SELECT ALL + col1 * 63 AS col1 FROM tab1 AS cor0
----
2961
315
882

query I rowsort
SELECT + 51 * + + 42 FROM tab2
----
2142
2142
2142

query II rowsort
SELECT + - col1 + - col0 AS col0, + col1 + 86 AS col1 FROM tab0 AS cor0
----
-108
107
-96
167
-98
87

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - - col1 + - - col1 IS NULL
----

query I rowsort
SELECT 65 * + col1 + - col1 AS col0 FROM tab0
----
1344
5184
64

query II rowsort
SELECT - ( col1 ) AS col0, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT ALL col2 DIV - 64 + + - 4 * + col1 FROM tab0
----
-324
-5
-84

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL col2 / - 64 + + - 4 * + col1 FROM tab0
----
-324
-5
-84

query II rowsort
SELECT ALL - col0 + + col0 AS col1, col0 AS col2 FROM tab2
----
0
46
0
64
0
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3391
SELECT - + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + ( 53 ) AS col1 FROM tab1 WHERE col1 BETWEEN - col1 / + col1 + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 19 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL + MAX( ALL - + col1 ) * + MIN( DISTINCT + 82 ) + ( - - COUNT( + + col1 ) ) FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL + MAX ( ALL - + col1 ) * + MIN ( DISTINCT + 82 ) + ( - - COUNT ( + + col1 ) ) FROM tab0 cor0
----
-79

query I rowsort
SELECT ALL col0 + - col1 + - + col2 + 18 FROM tab2 AS cor0
----
-10
-32
-35

query I rowsort
SELECT ALL 23 - - - col1 * + - col1 FROM tab1 cor0
----
219
2232
48

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 - - - 66 AND + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 19 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT + ( + COUNT( * ) ) - 5 * + 56 + 39 FROM tab2 AS cor0
----
-238

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT + ( + COUNT ( * ) ) - 5 * + 56 + 39 FROM tab2 AS cor0
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT 35 - - - ( + + col0 ) FROM tab1
----
-16
-50
-56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 99 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT ALL col0 + + col0 DIV - - col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL col0 + + col0 / - - col2 FROM tab2
----
48
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT ALL + 66 FROM tab1 WHERE - col1 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + 66 FROM tab1 WHERE - col1 <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 12
----

skipif mysql # not compatible
query I rowsort label-3408
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 12
----

query I rowsort
SELECT ALL - + 20 * + 23 * - col2 FROM tab1 AS cor0
----
27140
31280
44160

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT ALL + 87 AS col1, COUNT( * ) FROM tab2 AS cor0
----
87
3

skipif mysql # not compatible
query II rowsort label-3410
SELECT ALL + 87 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
87
3

query I rowsort
SELECT DISTINCT + col0 - + - col2 FROM tab2 WHERE ( - 32 ) IN ( - + ( + + 45 ) )
----

query I rowsort
SELECT DISTINCT 87 + - col1 FROM tab1
----
40
73
82

query I rowsort
SELECT + col2 + - - 36 + + + col2 AS col0 FROM tab1
----
154
172
228

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 >= NULL
----

query I rowsort
SELECT col1 + + col2 - + 88 AS col0 FROM tab0
----
-57
12
40

query I rowsort
SELECT - 20 + + col0 AS col0 FROM tab2
----
26
44
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT DISTINCT COUNT( * ) AS col0, SUM( - ( - col1 ) ) + + COUNT( * ) FROM tab2 AS cor0
----
3
198

skipif mysql # not compatible
query II rowsort label-3417
SELECT DISTINCT COUNT ( * ) AS col0, SUM ( - ( - col1 ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
3
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 + col2 col2, 39 FROM tab2 AS cor0
----
104
39
133
39
69
39

query I rowsort
SELECT DISTINCT + 71 + 9 / col0 / + col1 FROM tab2 AS cor0 WHERE 48 * col2 IS NULL
----

query II rowsort
SELECT ( + 64 ), + 78 AS col1 FROM tab1
----
64
78
64
78
64
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT DISTINCT + ( + col2 ) + - - ( col2 ) - + - col2 DIV - 99 AS col1 FROM tab0 AS cor0
----
197
20
94

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT + ( + col2 ) + - - ( col2 ) - + - col2 / - 99 AS col1 FROM tab0 AS cor0
----
197
20
94

query I rowsort
SELECT ALL - - col2 - - + col1 AS col0 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT 86 * - col0 FROM tab0
----
-1290
-7482
-8342

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 = - 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT MIN( + 91 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT MIN ( + 91 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 27
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL <> 9 + + ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 col0, - 52 AS col1 FROM tab1
----
99
-52
99
-52
99
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL - col1 * - col1 FROM tab1 AS cor0 WHERE NOT NULL <= + CAST( - 2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - col1 * - col1 FROM tab1 AS cor0 WHERE NOT NULL <= + CAST ( - 2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 84 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * - + col2 col0 FROM tab2
----
-1242
-2160
-3132

query I rowsort
SELECT DISTINCT 11 * + 21 * + 55 AS col1 FROM tab2
----
12705

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT COUNT( * ) * + 62, - SUM( + col0 ) AS col0 FROM tab1
----
186
-227

skipif mysql # not compatible
query II rowsort label-3433
SELECT COUNT ( * ) * + 62, - SUM ( + col0 ) AS col0 FROM tab1
----
186
-227

query I rowsort
SELECT 91 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT + + 8 AS col2 FROM tab2 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + - COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + - COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + col2 AND ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3438
SELECT DISTINCT col2 DIV - col2 AS col2, 60 AS col1 FROM tab2 cor0
----
-1
60

skipif mysql # not compatible
query II rowsort label-3438
SELECT DISTINCT col2 / - col2 AS col2, 60 AS col1 FROM tab2 cor0
----
-1
60

query I rowsort
SELECT DISTINCT - + 61 AS col1 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT DISTINCT + + col1 * - col1 + 26 FROM tab2 AS cor0
----
-2575
-4463
-5903

query I rowsort
SELECT + 45 + + col1 FROM tab2
----
112
122
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <> + ( - col2 ) * - 85 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col2, - col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT DISTINCT + ( - + ( + 58 ) ) - + - col0 * ( - ( + + col0 ) ) DIV + col0 AS col1 FROM tab1
----
-109
-143
-149

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + ( - + ( + 58 ) ) - + - col0 * ( - ( + + col0 ) ) / + col0 AS col1 FROM tab1
----
-109
-143
-149

query I rowsort
SELECT - + ( 40 ) FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3446
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * CAST( - + 93 AS SIGNED ) * - 34 ) OR ( NULL ) <> CAST( - - 98 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3446
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * CAST ( - + 93 AS INTEGER ) * - 34 ) OR ( NULL ) <> CAST ( - - 98 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT - + CAST( ( + ( - col1 ) ) AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3448
SELECT - + CAST ( ( + ( - col1 ) ) AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL - MAX( + 86 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - MAX ( + 86 ) FROM tab2 AS cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3450
SELECT + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3451
SELECT + + col0 AS col2, col1 - + 11 / 15 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3451
SELECT + + col0 AS col2, col1 - + 11 / 15 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT ALL + 20 * - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + 20 * - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 21 ) AS col2 FROM tab0 AS cor0
----
-21
-21
-21

query II rowsort
SELECT + - col2, + 56 AS col0 FROM tab2 AS cor0
----
-23
56
-40
56
-58
56

query I rowsort
SELECT DISTINCT - 60 FROM tab0 WHERE NOT + col0 <> + col1 - - + col0
----

query I rowsort
SELECT ALL + 62 AS col0 FROM tab2 WHERE NOT 40 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 82 IN ( + col2 / + col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND + 79
----

query I rowsort
SELECT col2 * 96 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT 88 DIV - 77 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3460
SELECT 88 / - 77 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3461
SELECT col2 * - + CAST( NULL AS DECIMAL ) * + - col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT col2 * - + CAST ( NULL AS REAL ) * + - col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col1 NOT BETWEEN + col1 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 + - - col0 + col0 * - + col1 * - + 29, 47 AS col2 FROM tab1 AS cor0
----
12415
47
124171
47
20771
47

query I rowsort
SELECT DISTINCT col1 * + - 55 AS col1 FROM tab1 cor0
----
-2585
-275
-770

query I rowsort
SELECT - 81 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT COUNT( - 42 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT COUNT ( - 42 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT 90 * - - col1 FROM tab2
----
4590
6030
6930

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0 WHERE - col0 + + - col0 * + - 4 NOT BETWEEN - 10 AND - - 77
----
61
61
61

query II rowsort
SELECT - - col1 * + ( - - col0 ) AS col0, - col0 FROM tab0 AS cor0
----
1215
-15
1827
-87
97
-97

query I rowsort
SELECT DISTINCT - 68 + + - col0 FROM tab0 AS cor0
----
-155
-165
-83

query I rowsort
SELECT 45 * - - col1 * + - col2 AS col0 FROM tab0 AS cor0
----
-171315
-4455
-9450

query II rowsort
SELECT ALL - - col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT ALL + + col0, + col2 + - col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + 19 ) col0 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - - ( - col1 ) AS col2 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT DISTINCT 55 * 73 DIV - col1 FROM tab0
----
-191
-4015
-49

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT 55 * 73 / - col1 FROM tab0
----
-191
-4015
-49

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( col0, col0 + + col2, col0, + col2 + - col1, - 22 )
----

query I rowsort
SELECT col0 + - col0 + + - col0 + + col0 * + 27 FROM tab0
----
2262
2522
390

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT COUNT( * ) * - ( + SUM( DISTINCT - col0 ) ) + - 93 FROM tab2
----
462

skipif mysql # not compatible
query I rowsort label-3480
SELECT COUNT ( * ) * - ( + SUM ( DISTINCT - col0 ) ) + - 93 FROM tab2
----
462

query I rowsort
SELECT + col1 * 79 + + - col0 FROM tab1
----
1055
310
3622

query I rowsort
SELECT + 28 + + + 11 FROM tab0
----
39
39
39

query I rowsort
SELECT DISTINCT + 81 FROM tab0 WHERE NULL >= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT + - COUNT( * ) + - 92 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + - COUNT ( * ) + - 92 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL + 54 + - CAST( NULL AS SIGNED ) + 53 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL + 54 + - CAST ( NULL AS INTEGER ) + 53 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3486
SELECT DISTINCT + col1 * + col2 col0, - CAST( NULL AS SIGNED ) + - - col1 + + col2 + col1 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3486
SELECT DISTINCT + col1 * + col2 col0, - CAST ( NULL AS INTEGER ) + - - col1 + + col2 + col1 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT ALL - MIN( DISTINCT 67 ) DIV ( + 86 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - MIN ( DISTINCT 67 ) / ( + 86 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3488
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3488
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( 15 ) AS col0 FROM tab2 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 94 NOT BETWEEN NULL AND - 5
----

query I rowsort
SELECT - 73 + + 90 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT * FROM tab2 WHERE NOT + 6 * - col1 + - + 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 14 AS col0 FROM tab1, tab1 cor0
----
-14

query II rowsort
SELECT - col1, col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL SUM( DISTINCT - 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL SUM ( DISTINCT - 3 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT - col1 / - 55 + + col2 * - 29 * + + col1 + - ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT - col1 / - 55 + + col2 * - 29 * + + col1 + - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3497
SELECT ALL - - col0 AS col1, CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-3497
SELECT ALL - - col0 AS col1, CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT col0 DIV + + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3498
SELECT col0 / + + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - col2 * + col1 * - - 59 FROM tab0 cor0
----
-12390
-224613
-5841

query I rowsort
SELECT DISTINCT + 22 * col2 * 32 FROM tab0 AS cor0
----
33088
69696
7040

query I rowsort
SELECT + 16 + + col1 AS col2 FROM tab1 WHERE 82 * - ( + ( col0 ) ) + col1 IS NOT NULL
----
21
30
63

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col1 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT + col2 * + col2 + + col2 FROM tab2 cor0
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT + 60 + - 44 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT + 60 + - 44 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT - CAST( - 35 AS SIGNED ) FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-3505
SELECT - CAST ( - 35 AS INTEGER ) FROM tab0
----
35
35
35

query I rowsort
SELECT 49 * col0 FROM tab0
----
4263
4753
735

query I rowsort
SELECT ALL ( 26 ) * - 78 * - + 62 FROM tab0
----
125736
125736
125736

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + + SUM( ALL + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT + + SUM ( ALL + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT ( CAST( NULL AS SIGNED ) ) - - - col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3509
SELECT ( CAST ( NULL AS INTEGER ) ) - - - col0 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT DISTINCT ( - - 13 ) - - - COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT ( - - 13 ) - - - COUNT ( * ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT ALL + col1 - + + col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + + col1 col2 FROM tab0 AS cor0
----
112
172
92

query I rowsort
SELECT ALL + + 57 - - 85 AS col2 FROM tab1 AS cor0
----
142
142
142

query I rowsort
SELECT ALL + 6 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT + - 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT + SUM( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT + SUM ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ( + ( + COUNT( * ) ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3517
SELECT ( + ( + COUNT ( * ) ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT DISTINCT COUNT( - col2 ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3518
SELECT DISTINCT COUNT ( - col2 ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT + 20 * - col0 AS col1 FROM tab0 AS cor0
----
-1740
-1940
-300

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 5 < col0
----

query I rowsort
SELECT ALL - 23 * 88 + - col1 FROM tab2 AS cor0
----
-2075
-2091
-2101

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL + - COUNT( ( - + 86 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + - COUNT ( ( - + 86 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3523
SELECT - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col1 + 80 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT - - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT - col1 + 80 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col2 / - - col0 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3526
SELECT ALL - MIN( DISTINCT 50 ) DIV 27 * + 75 * + 48 * 67 FROM tab0
----
-241200

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL - MIN ( DISTINCT 50 ) / 27 * + 75 * + 48 * 67 FROM tab0
----
-241200

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3527
SELECT * FROM tab1 WHERE NOT col1 + + CAST( + 59 AS DECIMAL ) / + col1 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3527
SELECT * FROM tab1 WHERE NOT col1 + + CAST ( + 59 AS REAL ) / + col1 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + 30 ) AS col0 FROM tab0
----
30

query I rowsort
SELECT DISTINCT + col2 + + col2 + + col1 AS col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - 20 * - COUNT( * ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - 20 * - COUNT ( * ) AS col1 FROM tab2
----
60

query I rowsort
SELECT + 43 * - 34 FROM tab2
----
-1462
-1462
-1462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT + + COUNT( * ) DIV 5 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT + + COUNT ( * ) / 5 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + - MIN( ALL - col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3533
SELECT + - MIN ( ALL - col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
297

query I rowsort
SELECT - - col1 + - 69 AS col1 FROM tab2 cor0
----
-18
-2
8

query I rowsort
SELECT ALL - col2 * + + col0 * - + 6 FROM tab1 AS cor0 WHERE NULL >= 8
----

query I rowsort
SELECT DISTINCT - col2 + - + col2 * + + 60 AS col2 FROM tab0 WHERE col2 <= - 7 + col1
----
-2867
-610

query III rowsort
SELECT * FROM tab1 WHERE - 71 + 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL COUNT( * ) + - COUNT( - col2 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL COUNT ( * ) + - COUNT ( - col2 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - 22 + + + col0 FROM tab1
----
29
63
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3540
SELECT DISTINCT CAST( - AVG ( + col1 ) AS SIGNED ) + - + COUNT( * ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT CAST ( - AVG ( + col1 ) AS INTEGER ) + - + COUNT ( * ) FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT - COUNT( * ) AS col1, MIN( + + 65 ) FROM tab2 AS cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-3541
SELECT - COUNT ( * ) AS col1, MIN ( + + 65 ) FROM tab2 AS cor0
----
-3
65

query I rowsort
SELECT DISTINCT - - col0 * + 77 + + 13 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3940
6558
7020

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT DISTINCT MAX( DISTINCT + 85 ) + 6 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT MAX ( DISTINCT + 85 ) + 6 FROM tab2 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 + 71 col1 FROM tab1
----
215
218
230

query I rowsort
SELECT + 23 AS col2 FROM tab1 WHERE 50 IS NOT NULL
----
23
23
23

query I rowsort
SELECT col1 + + 31 AS col2 FROM tab0
----
112
32
52

query I rowsort
SELECT - col0 + col2 * - - col2 FROM tab1
----
3396
4533
9165

query II rowsort
SELECT + col1 + - - col1, + col0 FROM tab2
----
102
46
134
75
154
64

query I rowsort
SELECT + col2 * col0 * - col1 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - - col2 > + col1
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3551
SELECT ALL 66 / + 54 + + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL 66 / + 54 + + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + 63 IS NOT NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT + MAX( + 1 ) AS col1, - 92 FROM tab2 cor0
----
1
-92

skipif mysql # not compatible
query II rowsort label-3554
SELECT + MAX ( + 1 ) AS col1, - 92 FROM tab2 cor0
----
1
-92

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
87

query II rowsort
SELECT col0 AS col1, - col1 FROM tab2
----
46
-51
64
-77
75
-67

query II rowsort
SELECT + col2 AS col2, - 65 * + 19 AS col0 FROM tab2
----
23
-1235
40
-1235
58
-1235

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT 55 DIV + col1 AS col1 FROM tab0
----
0
2
55

skipif mysql # not compatible
query I rowsort label-3558
SELECT 55 / + col1 AS col1 FROM tab0
----
0
2
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT COUNT( * ) * + + 14 FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-3559
SELECT COUNT ( * ) * + + 14 FROM tab1 cor0
----
42

query II rowsort
SELECT ALL col2 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT ALL ( - 45 ) FROM tab1
----
-45
-45
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3562
SELECT - AVG ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT - AVG ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * - 3 AS col1 FROM tab0 WHERE NOT - col2 + + col1 <> + col0
----

query I rowsort
SELECT ALL + - col1 + 71 AS col2 FROM tab2 AS cor0
----
-6
20
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3565
SELECT ALL - COUNT( - col2 ) DIV 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL - COUNT ( - col2 ) / 63 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 25 / - col2 + ( col0 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT + - 82 * - + ( - - col0 ) + + ( 86 ) DIV - col1 + + - ( + + col1 ) FROM tab2 cor0
----
3720
5170
6082

skipif mysql # not compatible
query I rowsort label-3568
SELECT + - 82 * - + ( - - col0 ) + + ( 86 ) / - col1 + + - ( + + col1 ) FROM tab2 cor0
----
3720
5170
6082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3569
SELECT + + COUNT( * ) DIV - - COUNT( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3569
SELECT + + COUNT ( * ) / - - COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - + ( - 14 ) FROM tab2 AS cor0
----
14
14
14

query II rowsort
SELECT DISTINCT col1, 79 AS col1 FROM tab2
----
51
79
67
79
77
79

query II rowsort
SELECT ALL - col2, 98 AS col1 FROM tab2
----
-23
98
-40
98
-58
98

query I rowsort
SELECT col0 + 45 AS col2 FROM tab1
----
130
136
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT COUNT( + col1 ) + + SUM( DISTINCT - - 5 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT COUNT ( + col1 ) + + SUM ( DISTINCT - - 5 ) FROM tab1
----
8

query I rowsort
SELECT DISTINCT ( - - 27 ) + + 98 AS col0 FROM tab2
----
125

query I rowsort
SELECT ALL - + 95 + - col2 AS col2 FROM tab0 AS cor0
----
-105
-142
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT DISTINCT - col1 - - + col0 * CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-2397
-5005
-5092

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - col1 - - + col0 * CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-2397
-5005
-5092

query II rowsort
SELECT + col0 AS col0, + col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT - 74 * + 68 FROM tab1 cor0
----
-5032
-5032
-5032

query I rowsort
SELECT + ( - 69 ) AS col1 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT col2 * + col2 - + + 0 AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT + CAST( col2 AS SIGNED ) - - - col1 AS col0 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3582
SELECT + CAST ( col2 AS INTEGER ) - - - col1 AS col0 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT ( + 81 ) FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT COUNT( * ), + 98 AS col2 FROM tab2
----
3
98

skipif mysql # not compatible
query II rowsort label-3584
SELECT COUNT ( * ), + 98 AS col2 FROM tab2
----
3
98

query II rowsort
SELECT + - col1, + col0 * + col2 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-51
-115
-67
464
-77
-520

query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + - ( - + MIN( + ( + col0 ) ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3587
SELECT + - ( - + MIN ( + ( + col0 ) ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT SUM( ALL + - 21 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT SUM ( ALL + - 21 ) FROM tab0
----
-63

query II rowsort
SELECT DISTINCT ( col2 ), col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT 24 DIV - col1 AS col0 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT 24 / - col1 AS col0 FROM tab1
----
-1
-4
0

query I rowsort
SELECT 16 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * 13 + + - col0 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-1467
-3187
-4583

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 * - col1 IS NULL
----

query I rowsort
SELECT ALL + col1 * + col0 + - col2 * - - col0 AS col0 FROM tab2 AS cor0
----
1288
2368
675

query I rowsort
SELECT DISTINCT - col2 * + - col1 + 95 FROM tab1
----
1439
3291
390

query II rowsort
SELECT DISTINCT 70, - col0 AS col0 FROM tab1
----
70
-51
70
-85
70
-91

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + 54 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL + MIN( ALL 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + MIN ( ALL 66 ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - 95 + + col0 col1, col0 * + + col1 * - col1 AS col1 FROM tab2
----
4416
-119646
6144
-379456
7200
-336675

query I rowsort
SELECT 0 * - + col2 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - ( - + 58 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 31 <= - col1 * col1 + - col0 / 84
----

query I rowsort
SELECT col2 - 28 AS col2 FROM tab2
----
-5
12
30

query I rowsort
SELECT ALL 54 * 52 AS col0 FROM tab1
----
2808
2808
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT COUNT( * ) + 84 AS col2 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3606
SELECT COUNT ( * ) + 84 AS col2 FROM tab1
----
87

query III rowsort
SELECT * FROM tab1 WHERE col0 <> ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 6 + - ( ( - col1 ) + col0 * + col2 ) AS col1 FROM tab0
----
-618
-843
-9596

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col0 + col2 ) AND + ( col1 )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE - ( - ( - 13 ) ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 1 * - ( - col0 * - ( - ( ( + col0 ) ) ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT + 23 DIV - ( - COUNT( ALL - col2 ) ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3612
SELECT + 23 / - ( - COUNT ( ALL - col2 ) ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL COUNT( * ) - 19 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL COUNT ( * ) - 19 FROM tab2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT 61 DIV 38 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3614
SELECT 61 / 38 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 38 + + 95 FROM tab1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL < + 97 * col1 + - 99
----
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL < + 97 * col1 + - 99
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL - ( col0 ) DIV 9 AS col2 FROM tab0
----
-1
-10
-9

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - ( col0 ) / 9 AS col2 FROM tab0
----
-1
-10
-9

query I rowsort
SELECT col1 * 73 AS col1 FROM tab1
----
1022
3431
365

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT 72 * + COUNT( * ) AS col1 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-3620
SELECT 72 * + COUNT ( * ) AS col1 FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - 20 * - COUNT( * ) col2 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3621
SELECT - 20 * - COUNT ( * ) col2 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * - 67 col0 FROM tab0
----
-2479
-2479
-2479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 4 col2 FROM tab2
----
-160
-232
-92

query III rowsort
SELECT * FROM tab2 WHERE + 30 * 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 17 FROM tab2 WHERE - col1 * - col2 - + col1 NOT IN ( - col1 )
----
17
17
17

query III rowsort
SELECT * FROM tab0 WHERE 46 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 49 - col0 IS NULL
----
10
47
99

query I rowsort
SELECT - col1 * col1 - - 44 AS col0 FROM tab1
----
-152
-2165
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND - 75
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND ( col0 )
----

query I rowsort
SELECT DISTINCT - 96 * + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT - MIN( - 55 ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - MIN ( - 55 ) FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT MIN( DISTINCT CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3633
SELECT MIN ( DISTINCT CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) ) FROM tab2
----
-77

query I rowsort
SELECT 47 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT COUNT( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL CAST( + MIN( ALL + 21 ) AS SIGNED ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL CAST ( + MIN ( ALL + 21 ) AS INTEGER ) AS col0 FROM tab2
----
21

query I rowsort
SELECT col0 * 74 FROM tab1
----
3774
6290
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + COUNT( 11 ) FROM tab1 AS cor0 WHERE NOT ( col2 ) >= + col2 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + COUNT ( 11 ) FROM tab1 AS cor0 WHERE NOT ( col2 ) >= + col2 + - col2
----
0

query I rowsort
SELECT 41 * + ( - 26 ) + 87 FROM tab1 AS cor0
----
-979
-979
-979

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3640
SELECT ALL CAST( NULL AS DECIMAL ) * ( ( col0 ) * ( ( ( 12 ) ) + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE + col0 + - ( + 49 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL CAST ( NULL AS REAL ) * ( ( col0 ) * ( ( ( 12 ) ) + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE + col0 + - ( + 49 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * + 47 FROM tab2 AS cor0
----
2397
3149
3619

query I rowsort
SELECT - + col2 + + 35 FROM tab1 AS cor0
----
-24
-33
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 + + 15 col0 FROM tab2 AS cor0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 > + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT + COUNT( DISTINCT 92 ) * - SUM( ALL + col2 - + 47 ) + + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + COUNT ( DISTINCT 92 ) * - SUM ( ALL + col2 - + 47 ) + + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
184

query III rowsort
SELECT * FROM tab0 WHERE ( col2 + + col1 ) NOT BETWEEN - col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 61 col2 FROM tab0
----
1281
4941
61

query I rowsort
SELECT - 14 * ( col1 ) * 45 AS col1 FROM tab2
----
-32130
-42210
-48510

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col1 + - col1 AND 55
----

query I rowsort
SELECT ALL + ( 17 ) FROM tab2 WHERE col2 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3652
SELECT * FROM tab1 WHERE NULL NOT IN ( CAST( col2 AS SIGNED ) - + col2 )
----

skipif mysql # not compatible
query III rowsort label-3652
SELECT * FROM tab1 WHERE NULL NOT IN ( CAST ( col2 AS INTEGER ) - + col2 )
----

query I rowsort
SELECT DISTINCT 99 + + 6 FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT DISTINCT + 20 * + CAST( NULL AS SIGNED ) * 10 + + 99 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + 20 * + CAST ( NULL AS INTEGER ) * 10 + + 99 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( - 36 ) IS NOT NULL
----

query I rowsort
SELECT - 66 + + col1 AS col0 FROM tab0 AS cor0
----
-45
-65
15

query I rowsort
SELECT + 25 * + 43 AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1e5ea47701e0ab3595529de6f4e7c322

query I rowsort
SELECT col1 * + col1 AS col0 FROM tab0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT ALL 47 DIV + SUM( col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL 47 / + SUM ( col1 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - 48 col1 FROM tab0
----
-1
-38
51

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 * col1 = NULL )
----

query I rowsort
SELECT + - 43 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT - col2 + + 78 AS col0 FROM tab1 AS cor0
----
-18
10
19

query I rowsort
SELECT ALL - - 26 * + col1 - col1 AS col2 FROM tab0 cor0
----
2025
25
525

query II rowsort
SELECT col1 AS col0, + 69 FROM tab2 AS cor0
----
51
69
67
69
77
69

query I rowsort
SELECT DISTINCT - col2 * 52 - + col0 * col0 FROM tab2 AS cor0
----
-3312
-6176
-8641

query II rowsort
SELECT + - 86 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-86
15
-86
87
-86
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col2 FROM tab0 AS cor0 WHERE ( NULL ) <> ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT COUNT( * ) + + MIN( col2 ) * MAX( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT COUNT ( * ) + + MIN ( col2 ) * MAX ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 1 * col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 64 * ( - - col0 ) - col2 * col1 AS col0 FROM tab0 AS cor0
----
-4767
-5778
-6307

query I rowsort
SELECT 56 * + col1 AS col2 FROM tab1 cor0
----
2632
280
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT ALL - col0 DIV 84 * 98 * - + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL - col0 / 84 * 98 * - + col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 / 97 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT - MIN( DISTINCT - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab0
----
99

query I rowsort
SELECT ALL + 59 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND + 83 + - 8
----

query I rowsort
SELECT DISTINCT 93 + col0 * 66 FROM tab2 WHERE NOT + - 97 + - col1 + - ( ( + 92 ) + + col1 ) IS NULL
----
3129
4317
5043

query I rowsort
SELECT + 58 * col1 AS col2 FROM tab1
----
2726
290
812

query II rowsort
SELECT DISTINCT 6 * + col2, col1 AS col0 FROM tab1
----
354
5
408
47
576
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 / - col1 + + col1 col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 NOT BETWEEN NULL AND ( + 57 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3686
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - + col2 ) ) IN ( CAST( - col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3686
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - + col2 ) ) IN ( CAST ( - col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT DISTINCT 91 DIV + 14 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT 91 / + 14 FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 WHERE NOT + 55 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - col0 ) + - col1 AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT - CAST( NULL AS SIGNED ) * col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT - CAST ( NULL AS INTEGER ) * col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT - - col2 DIV - col1 + 23 * + - ( + col2 ) * - col0 FROM tab1 AS cor0
----
112602
115334
142323

skipif mysql # not compatible
query I rowsort label-3691
SELECT - - col2 / - col1 + 23 * + - ( + col2 ) * - col0 FROM tab1 AS cor0
----
112602
115334
142323

query I rowsort
SELECT - 16 * + 94 FROM tab0 AS cor0
----
-1504
-1504
-1504

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT - 18 DIV - + col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 18 / - + col1 FROM tab1 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT SUM( + - col2 ) * ( 7 + - 44 * 90 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 = - - col2
----
478310

skipif mysql # not compatible
query I rowsort label-3694
SELECT SUM ( + - col2 ) * ( 7 + - 44 * 90 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 = - - col2
----
478310

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + - col1 + col0 BETWEEN - + col1 AND ( + ( + 90 ) / col0 + col2 )
----
85
5
59
91
47
68

query II rowsort
SELECT DISTINCT 13, col2 FROM tab0 AS cor0
----
13
10
13
47
13
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT - COUNT( * ) * 34 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3697
SELECT - COUNT ( * ) * 34 FROM tab1 AS cor0
----
-102

query I rowsort
SELECT + - col0 * 68 AS col1 FROM tab0 cor0
----
-1020
-5916
-6596

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( 65 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + 23 FROM tab1 AS cor0 WHERE NULL IS NULL
----
23
23
23

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT + SUM( ALL col1 ) * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + SUM ( ALL col1 ) * COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT col1 FROM tab0 WHERE NULL IN ( - - col2, - 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 52 AS col1, + 3 col0 FROM tab0
----
-52
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT + 49 + - 96 DIV + ( 3 ) + col1 AS col2 FROM tab1
----
22
31
64

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + 49 + - 96 / + ( 3 ) + col1 AS col2 FROM tab1
----
22
31
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT ALL col1 DIV + - 75 FROM tab1 WHERE col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL col1 / + - 75 FROM tab1 WHERE col0 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3707
SELECT - 97 + + 59 DIV - + col1 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-30
-49
-5

skipif mysql # not compatible
query I rowsort label-3707
SELECT - 97 + + 59 / - + col1 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-30
-49
-5

query I rowsort
SELECT + + 14 + - 74 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + + 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
35

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT ( NOT NULL IS NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col1 * + 95 * + col2 - col2 FROM tab0
----
19940
361618
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - 70 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - 70 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3713
SELECT DISTINCT + + 59 DIV + 68 col2, MIN( ALL - 30 ) FROM tab1 AS cor0
----
0
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3713
SELECT DISTINCT + + 59 / + 68 col2, MIN ( ALL - 30 ) FROM tab1 AS cor0
----
0
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT DISTINCT + MAX( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE ( col1 * col0 ) = - 94 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE ( col1 * col0 ) = - 94 * + 51
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 3 < ( + 7 )
----

query I rowsort
SELECT + col0 - col1 * - + 90 * + 41 FROM tab1 AS cor0 WHERE NOT 30 - col1 IS NULL
----
173521
18535
51711

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 + - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL col1 * - + CAST( + - 91 AS SIGNED ) AS col0 FROM tab0 cor0
----
1911
7371
91

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL col1 * - + CAST ( + - 91 AS INTEGER ) AS col0 FROM tab0 cor0
----
1911
7371
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT DISTINCT 3 DIV + col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT 3 / + col2 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT - col1 DIV + col2 + + 84 - + 14 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - col1 / + col2 + + 84 - + 14 FROM tab1 cor0
----
70

query III rowsort
SELECT * FROM tab0 WHERE NOT - 46 * - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 AS col2, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

query II rowsort
SELECT ALL + col2, col1 + + col0 AS col0 FROM tab2
----
23
97
40
141
58
142

query I rowsort
SELECT ALL - - 51 AS col2 FROM tab0 WHERE + - col0 > - col1 - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3726
SELECT - 49 AS col1, 87 * - ( CAST( NULL AS DECIMAL ) ) + col1 FROM tab0
----
-49
NULL
-49
NULL
-49
NULL

skipif mysql # not compatible
query II rowsort label-3726
SELECT - 49 AS col1, 87 * - ( CAST ( NULL AS REAL ) ) + col1 FROM tab0
----
-49
NULL
-49
NULL
-49
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 83 ) col0 FROM tab0
----
83

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + - 3
----

query I rowsort
SELECT DISTINCT - 5 FROM tab1 WHERE NOT + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT 69 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT 69 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col1, col2 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT + col2, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - MIN( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL > + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT - MIN ( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL > + col0
----
NULL

query I rowsort
SELECT ( + col0 ) * - col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT 10 * - - 40 FROM tab1
----
400
400
400

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT col2 * + + col0 * col2 * col0 * + - col2 DIV - + col2 AS col0 FROM tab0 AS cor0
----
497025
756900
92217609

skipif mysql # not compatible
skipif postgresql # PostgreSQL does not promote INTEGER (32-bit) results
query I rowsort label-3738
SELECT col2 * + + col0 * col2 * col0 * + - col2 / - + col2 AS col0 FROM tab0 AS cor0
----
497025
756900
92217609

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT COUNT( ALL + + 19 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT COUNT ( ALL + + 19 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3741
SELECT * FROM tab0 WHERE NOT - col2 + - - 33 - col1 - + - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3741
SELECT * FROM tab0 WHERE NOT - col2 + - - 33 - col1 - + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
45
45
45

query I rowsort
SELECT DISTINCT + + 61 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
61

query I rowsort
SELECT ALL + col2 + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + 82 + MAX( - 27 ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3745
SELECT + 82 + MAX ( - 27 ) AS col2 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT COUNT( * ) * SUM( ALL + col1 ) FROM tab0 cor0 WHERE ( NULL ) <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT COUNT ( * ) * SUM ( ALL + col1 ) FROM tab0 cor0 WHERE ( NULL ) <= + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3747
SELECT * FROM tab0 AS cor0 WHERE - 21 - - CAST( + 32 AS SIGNED ) - + col2 * - 74 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3747
SELECT * FROM tab0 AS cor0 WHERE - 21 - - CAST ( + 32 AS INTEGER ) - + col2 * - 74 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col1 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT + SUM( + + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + SUM ( + + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT + 80 * + MIN( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3760

skipif mysql # not compatible
query I rowsort label-3750
SELECT + 80 * + MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3760

query I rowsort
SELECT DISTINCT 6 * + - col2 AS col0 FROM tab0
----
-282
-594
-60

query I rowsort
SELECT 18 * col2 AS col0 FROM tab1 WHERE + - 63 IS NOT NULL
----
1062
1224
1728

query I rowsort
SELECT ALL + ( + + ( - col2 ) ) + + col1 * - + 86 * col1 AS col2 FROM tab2
----
-223709
-386112
-509934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 33 ) * + - col2 col2, - 23 - - col1 FROM tab2
----
-1320
54
-1914
44
-759
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT - COUNT( * ) AS col1, ( + 47 ) AS col2 FROM tab1
----
-3
47

skipif mysql # not compatible
query II rowsort label-3755
SELECT - COUNT ( * ) AS col1, ( + 47 ) AS col2 FROM tab1
----
-3
47

query I rowsort
SELECT col2 * ( - col1 ) * + 41 * - col2 * + 13 FROM tab0
----
1119300
5223933
95369157

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE ( - 23 * - - col1 * ( - - col1 ) ) <= ( + col1 )
----
15
87
97

query I rowsort
SELECT ALL col2 + + + 90 AS col0 FROM tab2
----
113
130
148

query I rowsort
SELECT - col0 + 19 + - col1 * + + ( - 5 ) AS col1 FROM tab2 AS cor0
----
228
279
340

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE 60 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT MAX( 94 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
94

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT MAX ( 94 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL + 8 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + 8 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT + MAX( DISTINCT + + col2 ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + MAX ( DISTINCT + + col2 ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col2 col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT - + COUNT( * ) * + SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-3765
SELECT - + COUNT ( * ) * + SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 54 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL + - 40 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + - 40 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + SUM( + + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3769
SELECT + SUM ( + + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT ALL ( + 44 ) / + CAST( NULL AS SIGNED ) 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-3770
SELECT ALL ( + 44 ) / + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) * + ( col0 ) + - ( + - col0 ) col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - col0 + + - col1 < col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT ( NULL BETWEEN ( NULL ) AND + col0 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col0 BETWEEN + - 21 AND NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( NULL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 31 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3780
SELECT CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( 53 ) * - - 52 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT + 55 * col2 + + CAST( NULL AS SIGNED ) + 40 * - - col2 * - col1 * + + 84 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3782
SELECT + 55 * col2 + + CAST ( NULL AS INTEGER ) + 40 * - - col2 * - col1 * + + 84 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NOT - col1 + - + 31 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( 64 ) AS col2 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT + ( + col1 ) - + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + ( + col1 ) - + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + - col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-117
-125
-74

query II rowsort
SELECT DISTINCT + 11 AS col1, - col0 FROM tab1 AS cor0
----
11
-51
11
-85
11
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL + SUM( - - col0 ) + + 12 FROM tab0
----
211

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + SUM ( - - col0 ) + + 12 FROM tab0
----
211

query I rowsort
SELECT DISTINCT col2 * + ( - 81 ) AS col1 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT 52 + + 84 + + col1 FROM tab0
----
137
157
217

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col2 col2, ( col2 ) AS col1 FROM tab1
----
118
59
136
68
192
96

query III rowsort
SELECT * FROM tab0 WHERE - + col0 NOT BETWEEN NULL AND + + col2 + 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT DISTINCT col2 DIV col2 + - 62 col0 FROM tab0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3796
SELECT DISTINCT col2 / col2 + - 62 col0 FROM tab0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT col0 * - col2 + + col2 * col0 * - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3797
SELECT col0 * - col2 + + col2 * col0 * - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 99 * - + 4 * col2 AS col1 FROM tab1 AS cor0
----
-23364
-26928
-38016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE NOT ( ( NOT 24 IS NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 18 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 col2, - ( - + col2 ) AS col2, - col2 AS col1 FROM tab1
----
9 values hashing to 97bbd07d456aa509eb4a4faaa87864cc

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT col2 AS col0, 13 AS col2 FROM tab2 AS cor0
----
23
13
40
13
58
13

onlyif mysql # DIV for integer division: 
query II rowsort label-3804
SELECT - col0 AS col1, - col2 DIV - - col0 AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-3804
SELECT - col0 AS col1, - col2 / - - col0 AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

query I rowsort
SELECT ALL - col2 * + col2 + col1 AS col1 FROM tab0 cor0
----
-2128
-79
-9800

query I rowsort
SELECT ALL 46 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT + COUNT( - - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + COUNT ( - - col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3808
SELECT ALL COUNT( * ), - 66 col2 FROM tab1 AS cor0
----
3
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3808
SELECT ALL COUNT ( * ), - 66 col2 FROM tab1 AS cor0
----
3
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < NULL
----

query I rowsort
SELECT - + 73 * + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT + - ( - - 79 ) AS col2 FROM tab2 AS cor0
----
-79
-79
-79

query II rowsort
SELECT DISTINCT col1, col1 - + col0 * - - 44 FROM tab2
----
51
-1973
67
-3233
77
-2739

query I rowsort
SELECT ALL ( - + ( - col2 ) ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col2 col1, col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 79 * + col0 AS col0 FROM tab0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT 72, COUNT( * ) AS col2 FROM tab0
----
72
3

skipif mysql # not compatible
query II rowsort label-3818
SELECT 72, COUNT ( * ) AS col2 FROM tab0
----
72
3

query I rowsort
SELECT + 55 * - - col2 AS col2 FROM tab0
----
2585
5445
550

query I rowsort
SELECT + 28 + + col2 FROM tab2
----
51
68
86

query II rowsort
SELECT DISTINCT + col0 - col2, col0 FROM tab2 AS cor0
----
17
75
23
46
24
64

query I rowsort
SELECT DISTINCT - 47 + - 50 - 25 AS col0 FROM tab2 AS cor0
----
-122

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 * + - col0, col2 * + + 31 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT - COUNT( DISTINCT + col2 ) DIV + + 31 FROM tab1 AS cor0 WHERE NOT ( col0 - CAST( - col1 AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) / + + 31 FROM tab1 AS cor0 WHERE NOT ( col0 - CAST ( - col1 AS INTEGER ) ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT ALL + 44 + + col1 DIV - - ( - - 98 ) * + col1 + - col2 FROM tab1 AS cor0
----
-15
-24
-52

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 44 + + col1 / - - ( - - 98 ) * + col1 + - col2 FROM tab1 AS cor0
----
-15
-24
-52

query I rowsort
SELECT + ( - col2 ) * + ( 41 ) * + col0 FROM tab1 AS cor0
----
-200736
-205615
-253708

query I rowsort
SELECT DISTINCT col1 - - col1 + - - 20 AS col0 FROM tab0 AS cor0
----
182
22
62

query I rowsort
SELECT 29 * + - ( col0 ) + - 52 AS col0 FROM tab1 AS cor0
----
-1531
-2517
-2691

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT DISTINCT - col2 * + + 6 DIV 3 * + - 90 AS col2 FROM tab2
----
10440
4140
7200

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - col2 * + + 6 / 3 * + - 90 AS col2 FROM tab2
----
10440
4140
7200

query I rowsort
SELECT DISTINCT + + 12 FROM tab1 WHERE NOT NULL IS NOT NULL
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT COUNT( * ) AS col2, COUNT( * ) * + COUNT( * ) + + SUM( ALL col1 ) FROM tab0
----
3
112

skipif mysql # not compatible
query II rowsort label-3831
SELECT COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) + + SUM ( ALL col1 ) FROM tab0
----
3
112

query I rowsort
SELECT + 60 * - + 56 FROM tab2
----
-3360
-3360
-3360

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE 89 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 17 BETWEEN NULL AND + - 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + ( - 64 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT CAST( - col2 AS SIGNED ) * col2 / + - col0 + - CAST( NULL AS SIGNED ) * + - col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT CAST ( - col2 AS INTEGER ) * col2 / + - col0 + - CAST ( NULL AS INTEGER ) * + - col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL - COUNT( * ) * MIN( + col1 ) FROM tab1 AS cor0 WHERE + col2 + + + col0 IN ( + col0 + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - COUNT ( * ) * MIN ( + col1 ) FROM tab1 AS cor0 WHERE + col2 + + + col0 IN ( + col0 + + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT DISTINCT + MAX( DISTINCT - ( + col2 ) ), + 30 AS col2 FROM tab0 AS cor0
----
-10
30

skipif mysql # not compatible
query II rowsort label-3838
SELECT DISTINCT + MAX ( DISTINCT - ( + col2 ) ), + 30 AS col2 FROM tab0 AS cor0
----
-10
30

query I rowsort
SELECT 10 * - 63 FROM tab1
----
-630
-630
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT + col0 * col0 DIV 88 FROM tab1 AS cor0
----
29
82
94

skipif mysql # not compatible
query I rowsort label-3840
SELECT + col0 * col0 / 88 FROM tab1 AS cor0
----
29
82
94

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL = NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT 52 * - - col1 FROM tab0 AS cor0 WHERE NOT 72 * - col1 * + col1 + + 43 <= + col1 * - col0 * - col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3842
SELECT 52 * - - col1 FROM tab0 AS cor0 WHERE NOT 72 * - col1 * + col1 + + 43 <= + col1 * - col0 * - col0 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab0 AS cor0 WHERE ( NULL BETWEEN - - 68 AND col2 )
----

query I rowsort
SELECT 72 * col0 - + col0 FROM tab2 AS cor0
----
3266
4544
5325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT - - CAST( - COUNT( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3845
SELECT - - CAST ( - COUNT ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) * + ( + 38 ) AS col2 FROM tab0
----
-3306
-3686
-570

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 83 + - + 82 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT + MAX( DISTINCT 90 ) col0 FROM tab0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3849
SELECT + MAX ( DISTINCT 90 ) col0 FROM tab0
----
90

query I rowsort
SELECT + 93 + + col2 AS col2 FROM tab0 cor0
----
103
140
192

query I rowsort
SELECT - 68 + col2 - - col1 AS col0 FROM tab0 AS cor0
----
-37
32
60

query I rowsort
SELECT + 31 FROM tab0 AS cor0 WHERE - col1 >= col2 + + col2 * col0
----

query I rowsort
SELECT ALL col2 * + col1 + 66 + + - col0 AS col1 FROM tab0 cor0
----
189
3858
68

query I rowsort
SELECT 2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - MIN( ALL + + 46 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-3855
SELECT - MIN ( ALL + + 46 ) FROM tab1
----
-46

query I rowsort
SELECT - - 20 - - - col2 AS col1 FROM tab2 AS cor0
----
-20
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 > + 86
----
3

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 > + 86
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3858
SELECT - MAX( ALL - - col1 ) - - + 87 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-3858
SELECT - MAX ( ALL - - col1 ) - - + 87 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-106

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 67 = col2 - 39
----

query I rowsort
SELECT DISTINCT + - col1 * - col1 - + 91 * - 57 * - col2 FROM tab2 AS cor0
----
-116700
-201551
-296357

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + 36 + MAX( - 55 ) * + 85 col2 FROM tab2 AS cor0
----
-4639

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3861
SELECT + 36 + MAX ( - 55 ) * + 85 col2 FROM tab2 AS cor0
----
-4639

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT ALL - - ( - col1 ) DIV - - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - - ( - col1 ) / - - col2 FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT + - 17 + col2 AS col1, 54 * + col2 FROM tab2 cor0
----
23
2160
41
3132
6
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL COUNT( DISTINCT + ( + col1 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL COUNT ( DISTINCT + ( + col1 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + 86 + - + 70 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT COUNT( DISTINCT - - 22 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT COUNT ( DISTINCT - - 22 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL + + 4 * + ( - - 77 ) FROM tab1 AS cor0
----
308
308
308

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT - COUNT( * ) * ( + 49 ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - COUNT ( * ) * ( + 49 ) FROM tab1 AS cor0
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT DISTINCT - - 3 + - COUNT( * ) + + COUNT( * ) * - MAX( CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - - 3 + - COUNT ( * ) + + COUNT ( * ) * - MAX ( CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 80 * - col0 + - + col1 * + 97 > - - col2 / + - ( + col1 ) * + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + - 54 * + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) - COUNT( DISTINCT col1 ) AS col0 FROM tab1
----
3
-6

skipif mysql # not compatible
query II rowsort label-3873
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) - COUNT ( DISTINCT col1 ) AS col0 FROM tab1
----
3
-6

query II rowsort
SELECT ALL col2, 53 FROM tab0
----
10
53
47
53
99
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 4 IS NULL OR NOT - col1 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 42 * + + 9 AS col1 FROM tab2 AS cor0
----
-378
-378
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT COUNT( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 69 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT COUNT ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 69 ) = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3878
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col2 * - 68 <> 51 * col2
----

skipif mysql # not compatible
query III rowsort label-3878
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col2 * - 68 <> 51 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 76 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 76 IS NOT NULL
----
0

query II rowsort
SELECT ALL + + col2 AS col1, - 85 FROM tab2 AS cor0
----
23
-85
40
-85
58
-85

query I rowsort
SELECT col2 + + 79 FROM tab0 WHERE NOT NULL IS NOT NULL
----
126
178
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3882
SELECT 74 * - 61, COUNT( - col1 ) DIV - + 41 - - 6 - - - COUNT( * ) AS col0 FROM tab0
----
-4514
3

skipif mysql # not compatible
query II rowsort label-3882
SELECT 74 * - 61, COUNT ( - col1 ) / - + 41 - - 6 - - - COUNT ( * ) AS col0 FROM tab0
----
-4514
3

query III rowsort
SELECT * FROM tab2 WHERE + - col2 <= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT DISTINCT + 10 DIV + - MIN( col0 ) + + 32 + 36 AS col2 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + 10 / + - MIN ( col0 ) + + 32 + 36 AS col2 FROM tab2
----
68

query I rowsort
SELECT DISTINCT col2 + + - 39 + 76 AS col1 FROM tab1 AS cor0
----
105
133
96

query I rowsort
SELECT ALL + + 64 + - col2 FROM tab0 AS cor0
----
-35
17
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + col0 ) BETWEEN - 14 AND + col2
----

query I rowsort
SELECT ALL 49 * 98 + - col0 FROM tab2 AS cor0
----
4727
4738
4756

query II rowsort
SELECT col0, - 81 FROM tab0 WHERE - + col0 + - col1 IS NOT NULL
----
15
-81
87
-81
97
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - MIN( 24 ) + 44 AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3891
SELECT - MIN ( 24 ) + 44 AS col0 FROM tab0
----
20

query I rowsort
SELECT 29 + + + col0 + + col0 * col0 + col2 - - + 45 AS col0 FROM tab2
----
2259
4274
5832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT - 47 + + col1 + col2 + + + CAST( - + col2 AS SIGNED ) AS col0 FROM tab1
----
-33
-42
0

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 47 + + col1 + col2 + + + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1
----
-33
-42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - COUNT( * ) + - + 63 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3894
SELECT - COUNT ( * ) + - + 63 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT 2 + + - 62 AS col1 FROM tab0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3896
SELECT DISTINCT AVG ( + - col1 ) + + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT AVG ( + - col1 ) + + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT + - ( - 95 ) + - 18 * MIN( DISTINCT + + 25 ) FROM tab2 AS cor0 WHERE - 85 IS NOT NULL
----
-355

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT + - ( - 95 ) + - 18 * MIN ( DISTINCT + + 25 ) FROM tab2 AS cor0 WHERE - 85 IS NOT NULL
----
-355

query I rowsort
SELECT DISTINCT - - ( + + ( - - 19 ) ) - 9 FROM tab1 cor0
----
10

query I rowsort
SELECT DISTINCT - col0 * + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 * col0, 51, + 59, - 90, - - col1 / 26 / - col1 )
----

query I rowsort
SELECT ALL - 89 - col1 FROM tab0 AS cor0
----
-110
-170
-90

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN + 15 * - + col0 AND NULL
----

query I rowsort
SELECT - 71 * col1 AS col2 FROM tab1 AS cor0
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT + + 36 - + COUNT( * ) col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3903
SELECT DISTINCT + + 36 - + COUNT ( * ) col2 FROM tab2 AS cor0
----
33

query I rowsort
SELECT - + 20 * - col1 + + + col2 AS col2 FROM tab1 AS cor0
----
1008
159
376

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT 81 - - ( - COUNT( * ) ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT 81 - - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT ( + col2 ) * col1 - + col0 FROM tab0
----
123
2
3792

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT DISTINCT - 24 AS col1, + COUNT( * ) AS col1 FROM tab1
----
-24
3

skipif mysql # not compatible
query II rowsort label-3907
SELECT DISTINCT - 24 AS col1, + COUNT ( * ) AS col1 FROM tab1
----
-24
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT - CAST( NULL AS SIGNED ) * col0 * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT - CAST ( NULL AS INTEGER ) * col0 * - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - + COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NOT + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT - + COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NOT + col0 <> NULL
----
0

query II rowsort
SELECT ALL col0, + 15 FROM tab1
----
51
15
85
15
91
15

query II rowsort
SELECT 87 AS col1, + col0 AS col0 FROM tab1
----
87
51
87
85
87
91

query I rowsort
SELECT ALL + col1 * col0 * - - 43 FROM tab0
----
4171
52245
78561

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL 60 * - 8 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1440

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL 60 * - 8 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1440

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3916
SELECT col2, + col1 + - - col2 DIV - col0 FROM tab0 AS cor0
----
10
21
47
78
99
0

skipif mysql # not compatible
query II rowsort label-3916
SELECT col2, + col1 + - - col2 / - col0 FROM tab0 AS cor0
----
10
21
47
78
99
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT col0 * + ( + - col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 / 5
----

query II rowsort
SELECT col1 * 50 + - + 52 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-2
1
3998
81
998
21

query I rowsort
SELECT - + ( - 91 ) AS col2 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT DISTINCT - ( col0 ) DIV + + col1 + 37 AS col0 FROM tab2 AS cor0
----
36
37

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT - ( col0 ) / + + col1 + 37 AS col0 FROM tab2 AS cor0
----
36
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - col1 ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 46 * + col1 * + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + + COUNT( + + ( + col2 ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3926
SELECT + + COUNT ( + + ( + col2 ) ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL + COUNT( * ) + + - 96 AS col1 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + COUNT ( * ) + + - 96 AS col1 FROM tab2
----
-93

query I rowsort
SELECT 3 * + col0 * col1 + col1 AS col2 FROM tab2
----
14861
15142
7089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL - CAST( NULL AS SIGNED ) + + - AVG ( ALL + + col0 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - CAST ( NULL AS INTEGER ) + + - AVG ( ALL + + col0 ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3930
SELECT * FROM tab2 WHERE + ( + 41 ) * + 50 * - CAST( NULL AS SIGNED ) + 33 + col2 - - - col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-3930
SELECT * FROM tab2 WHERE + ( + 41 ) * + 50 * - CAST ( NULL AS INTEGER ) + 33 + col2 - - - col2 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT + COUNT( * ) DIV COUNT( ALL ( - 83 ) ) + - 59 + - 47 + + COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + COUNT ( * ) / COUNT ( ALL ( - 83 ) ) + - 59 + - 47 + + COUNT ( * ) FROM tab1 AS cor0
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT + 64 DIV - COUNT( * ) AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 64 / - COUNT ( * ) AS col0 FROM tab1
----
-21

query I rowsort
SELECT + col2 - col0 + col0 + - col1 AS col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT + ( - CAST( NULL AS SIGNED ) ) + - - 76 * + col1 * 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - - 76 * + col1 * 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL MAX( + col2 ) - 35 AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL MAX ( + col2 ) - 35 AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + 52 + + MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + 52 + + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT 17 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT - - COUNT( * ) * + COUNT( DISTINCT - col2 ) DIV + + 84 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT - - COUNT ( * ) * + COUNT ( DISTINCT - col2 ) / + + 84 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( + + ( ( + col2 ) ) ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT - 85 * + col1 FROM tab2
----
-4335
-5695
-6545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT CAST( COUNT( * ) AS SIGNED ) * - + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3941
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT ALL - CAST( NULL AS SIGNED ) * - 95 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL - CAST ( NULL AS INTEGER ) * - 95 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 * - col1 FROM tab0
----
-1071
-4131
-51

query II rowsort
SELECT col2, + 30 AS col1 FROM tab2
----
23
30
40
30
58
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL - col1 * + col2 DIV + - col2 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - col1 * + col2 / + - col2 AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL + 86 + col1 FROM tab1
----
100
133
91

query I rowsort
SELECT DISTINCT + - 95 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * 50 * - 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL SUM( col1 ) col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3948
SELECT ALL SUM ( col1 ) col1 FROM tab0 cor0
----
103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + - 69 IS NULL )
----

query I rowsort
SELECT - 41 + + 17 AS col1 FROM tab2 AS cor0
----
-24
-24
-24

query II rowsort
SELECT DISTINCT + 90, + col1 * + col2 * - 48 AS col2 FROM tab2 AS cor0
----
90
-147840
90
-186528
90
-56304

onlyif mysql # DIV for integer division: 
query II rowsort label-3952
SELECT 66 DIV + + col0 AS col1, col2 * + col0 AS col2 FROM tab0
----
0
870
0
9603
4
705

skipif mysql # not compatible
query II rowsort label-3952
SELECT 66 / + + col0 AS col1, col2 * + col0 AS col2 FROM tab0
----
0
870
0
9603
4
705

query I rowsort
SELECT ALL col1 + 57 * - col2 AS col2 FROM tab2
----
-1260
-2203
-3239

query II rowsort
SELECT DISTINCT 76 * + 52 AS col0, col1 FROM tab0
----
3952
1
3952
21
3952
81

query I rowsort
SELECT ALL - 80 + - col2 * + 11 FROM tab0
----
-1169
-190
-597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT col1 * - - col0 - + 95 / + + col2 * - 28 * - CAST( NULL AS SIGNED ) + 66 * 99 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT col1 * - - col0 - + 95 / + + col2 * - 28 * - CAST ( NULL AS INTEGER ) + 66 * 99 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( NOT ( NOT - col0 + + col1 IS NULL ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL COUNT( * ) + + 84 - 59 col1 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3958
SELECT ALL COUNT ( * ) + + 84 - 59 col1 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT DISTINCT - COUNT( * ) AS col2, SUM( + + col0 ) - + 30 FROM tab0 AS cor0
----
-3
169

skipif mysql # not compatible
query II rowsort label-3959
SELECT DISTINCT - COUNT ( * ) AS col2, SUM ( + + col0 ) - + 30 FROM tab0 AS cor0
----
-3
169

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 FROM tab0 AS cor0 WHERE + 97 + - 96 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 + - 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3962
SELECT ( + 79 ) * + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3962
SELECT ( + 79 ) * + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT + col1 * CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT + col1 * CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1, col2 - - col2 - + col0 AS col0 FROM tab1 AS cor0
----
-14
141
-47
45
-5
33

query II rowsort
SELECT - - col2, col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3966
SELECT - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL - COUNT( + + 19 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - COUNT ( + + 19 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-3968
SELECT col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT + ( - 33 ) AS col0 FROM tab0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - - 61 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL COUNT( * ) * 66 * + COUNT( + col1 ) FROM tab0
----
594

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL COUNT ( * ) * 66 * + COUNT ( + col1 ) FROM tab0
----
594

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT - - col0 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 * - + 63 col1, col1 FROM tab0
----
3276
1
3276
21
3276
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3975
SELECT ALL - COUNT( DISTINCT - + col2 ), - 13 DIV 87 AS col0 FROM tab0
----
-3
0

skipif mysql # not compatible
query II rowsort label-3975
SELECT ALL - COUNT ( DISTINCT - + col2 ), - 13 / 87 AS col0 FROM tab0
----
-3
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3976
SELECT + - 44 DIV + col0 col1, ( col1 ) FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3976
SELECT + - 44 / + col0 col1, ( col1 ) FROM tab1 AS cor0
----
0
14
0
47
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT - + 75 DIV - + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3977
SELECT - + 75 / - + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT COUNT( + - col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3978
SELECT COUNT ( + - col1 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3979
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE col0 * col1 / + col1 - ( + + col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE col0 * col1 / + col1 - ( + + col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 col2 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL + - 36 + - + col2 FROM tab0 AS cor0
----
-135
-46
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT 26 DIV - MAX( col1 ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT 26 / - MAX ( col1 ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL + + COUNT( * ) * + + 79 AS col1 FROM tab2 cor0
----
237

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + + COUNT ( * ) * + + 79 AS col1 FROM tab2 cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL - - MIN( 62 ) AS col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - - MIN ( 62 ) AS col2 FROM tab0 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + - + 65 col0 FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT - 36 * - ( - COUNT( * ) ) * - 86 - + 51 FROM tab1
----
9237

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT - 36 * - ( - COUNT ( * ) ) * - 86 - + 51 FROM tab1
----
9237

query I rowsort
SELECT col2 * - 99 + col0 FROM tab1
----
-5756
-6641
-9453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT ALL + COUNT( DISTINCT + + ( col2 ) ) DIV - COUNT( * ) + + ( - + MIN( + 12 ) ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + COUNT ( DISTINCT + + ( col2 ) ) / - COUNT ( * ) + + ( - + MIN ( + 12 ) ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - 81 * + - 8 + - MAX( ALL + col2 ) FROM tab2
----
590

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 81 * + - 8 + - MAX ( ALL + col2 ) FROM tab2
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + 34 * - 20 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-683

skipif mysql # not compatible
query I rowsort label-3990
SELECT + 34 * - 20 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT ALL - COUNT( * ) DIV + + 51 AS col0 FROM tab1 AS cor0 WHERE 97 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - COUNT ( * ) / + + 51 AS col0 FROM tab1 AS cor0 WHERE 97 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT ( COUNT( * ) ) - - + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT ( COUNT ( * ) ) - - + COUNT ( * ) FROM tab0 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 - + col0 col0 FROM tab2 AS cor0
----
-15
-4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT + 50 * SUM( DISTINCT col0 ) * + MIN( col1 ) AS col1 FROM tab0
----
9950

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + 50 * SUM ( DISTINCT col0 ) * + MIN ( col1 ) AS col1 FROM tab0
----
9950

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( col0 ) AND - col0
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE 13 <> + - col1
----
1
21
81

query I rowsort
SELECT + 18 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 0 AS col1, col2 + - col1 FROM tab1
----
0
21
0
54
0
82

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 66
----

query I rowsort
SELECT col1 * 95 AS col2 FROM tab2
----
4845
6365
7315

query I rowsort
SELECT DISTINCT 24 * + - col1 AS col0 FROM tab0
----
-1944
-24
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT - ( + COUNT( + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4002
SELECT - ( + COUNT ( + col2 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL MAX( ALL + 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL MAX ( ALL + 74 ) AS col0 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL + + 68 * - MIN( ALL + + col1 ) AS col0 FROM tab1 cor0
----
-340

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL + + 68 * - MIN ( ALL + + col1 ) AS col0 FROM tab1 cor0
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT 22 + + COUNT( * ) + + 98 AS col2 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT 22 + + COUNT ( * ) + + 98 AS col2 FROM tab1
----
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + 86 col1, - 51 FROM tab0
----
107
-51
167
-51
87
-51

query II rowsort
SELECT col2 + 54 - + 3 * - 43 AS col0, + col0 * col0 - - - 58 FROM tab0
----
193
7511
230
167
282
9351

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT + COUNT( * ) + - 99 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT + COUNT ( * ) + - 99 FROM tab0 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT - - col0 * - col1 * + + col1 DIV - - col1 col2 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT - - col0 * - col1 * + + col1 / - - col1 col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + col2 * - 51 * - + col2 FROM tab1
----
177531
235824
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL + COUNT( * ) * + 27 * 75 FROM tab1
----
6075

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + COUNT ( * ) * + 27 * 75 FROM tab1
----
6075

query I rowsort
SELECT - col0 * - 67 FROM tab1
----
3417
5695
6097

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4014
SELECT ALL CAST( col0 AS SIGNED ) DIV - - 11 AS col1 FROM tab0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL CAST ( col0 AS INTEGER ) / - - 11 AS col1 FROM tab0
----
1
7
8

query III rowsort
SELECT * FROM tab1 WHERE + 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + 76 * - MAX( ALL + - 81 ) FROM tab1
----
6156

skipif mysql # not compatible
query I rowsort label-4016
SELECT + 76 * - MAX ( ALL + - 81 ) FROM tab1
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - COUNT( - + 96 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4017
SELECT - COUNT ( - + 96 ) FROM tab0
----
-3

query I rowsort
SELECT col2 * - col1 - col2 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT ALL col0 + + + ( col0 ) AS col0 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT + 18 + - col2 AS col2 FROM tab0
----
-29
-81
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 90
----

query I rowsort
SELECT + + 86 + - 13 - - - col0 AS col1 FROM tab0 AS cor0
----
-14
-24
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4023
SELECT col1 col1, - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4023
SELECT col1 col1, - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT COUNT( DISTINCT + + col0 ) DIV - 44 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4024
SELECT COUNT ( DISTINCT + + col0 ) / - 44 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 * col0 * + + 16 FROM tab2 AS cor0
----
33856
65536
90000

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT COUNT( * ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4026
SELECT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT + SUM( - 73 ) * - COUNT( * ) FROM tab2 AS cor0
----
657

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + SUM ( - 73 ) * - COUNT ( * ) FROM tab2 AS cor0
----
657

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT - 95 DIV + + col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT - 95 / + + col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT 93 / COUNT( - - 25 ) * - COUNT( * ) + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT 93 / COUNT ( - - 25 ) * - COUNT ( * ) + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( + col2 ) * - 35 AS col2 FROM tab2 AS cor0
----
1400
2030
805

query II rowsort
SELECT - col0 AS col0, 28 + + - 94 AS col1 FROM tab1 AS cor0
----
-51
-66
-85
-66
-91
-66

query II rowsort
SELECT DISTINCT - 73 AS col0, + col2 AS col0 FROM tab0 AS cor0
----
-73
10
-73
47
-73
99

query I rowsort
SELECT DISTINCT + col1 + 45 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4034
SELECT CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT MIN( DISTINCT - ( - col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT MIN ( DISTINCT - ( - col2 ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT + - 52 * + COUNT( * ) FROM tab2 WHERE ( NOT ( NOT NULL IS NULL ) )
----
-156

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT + - 52 * + COUNT ( * ) FROM tab2 WHERE ( NOT ( NOT NULL IS NULL ) )
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT DISTINCT + 17 DIV - ( + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + 17 / - ( + col1 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 78 * - ( - 86 ) FROM tab0
----
6708

query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - 2 AS col2 FROM tab1
----
49
83
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT 98 AS col2, MIN( ALL - ( - + col1 ) ) FROM tab0
----
98
1

skipif mysql # not compatible
query II rowsort label-4042
SELECT 98 AS col2, MIN ( ALL - ( - + col1 ) ) FROM tab0
----
98
1

query I rowsort
SELECT ALL 7 + col2 FROM tab0
----
106
17
54

query I rowsort
SELECT DISTINCT col1 * col0 + + 34 AS col0 FROM tab0
----
1249
131
1861

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 15 IS NOT NULL
----

query I rowsort
SELECT ALL + 87 * - - col0 + - + 27 + + col2 FROM tab0 AS cor0
----
1325
7552
8511

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL MIN( - + ( - col0 ) ) + - 43 AS col0 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL MIN ( - + ( - col0 ) ) + - 43 AS col0 FROM tab1 AS cor0
----
8

query II rowsort
SELECT DISTINCT - ( - col1 ) - + + 6 AS col2, + 50 AS col2 FROM tab1 AS cor0
----
-1
50
41
50
8
50

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * + col1 + - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL - CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + - 28 + - col2 * - col1 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT + col1 + + col0 + - - CAST( + col1 AS SIGNED ) * + 81 FROM tab2
----
4228
5569
6378

skipif mysql # not compatible
query I rowsort label-4053
SELECT + col1 + + col0 + - - CAST ( + col1 AS INTEGER ) * + 81 FROM tab2
----
4228
5569
6378

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col1 + - col2 AS col1 FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT ALL - col2 + - - ( - col2 ) AS col0 FROM tab1
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT 27 * + - SUM( ALL + 23 ) FROM tab0
----
-1863

skipif mysql # not compatible
query I rowsort label-4056
SELECT 27 * + - SUM ( ALL + 23 ) FROM tab0
----
-1863

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ( MAX( ALL 69 ) ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4058
SELECT ( MAX ( ALL 69 ) ) FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT + + 46 + - ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + + 46 + - ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT - CAST( - 17 AS SIGNED ) * 87 * - ( COUNT( * ) ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-13311

skipif mysql # not compatible
query I rowsort label-4060
SELECT - CAST ( - 17 AS INTEGER ) * 87 * - ( COUNT ( * ) ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-13311

query I rowsort
SELECT DISTINCT - 85 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 17 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT - col2 DIV col0 * - - 16 FROM tab0 AS cor0
----
-16
-48
0

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - col2 / col0 * - - 16 FROM tab0 AS cor0
----
-16
-48
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT - - CAST( + - 89 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-4065
SELECT - - CAST ( + - 89 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL + CAST( - + 35 AS SIGNED ) col2 FROM tab0
----
-35
-35
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4066
SELECT ALL + CAST ( - + 35 AS INTEGER ) col2 FROM tab0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4067
SELECT * FROM tab2 WHERE NOT - - col0 / - + 68 * + ( col1 ) NOT BETWEEN + col1 * CAST( + - col1 AS SIGNED ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4067
SELECT * FROM tab2 WHERE NOT - - col0 / - + 68 * + ( col1 ) NOT BETWEEN + col1 * CAST ( + - col1 AS INTEGER ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 33 AS col1 FROM tab1 WHERE col1 = - 49 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT + CAST( + 52 AS SIGNED ) FROM tab2
----
52
52
52

skipif mysql # not compatible
query I rowsort label-4069
SELECT + CAST ( + 52 AS INTEGER ) FROM tab2
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT ALL 96 DIV + col1 AS col0 FROM tab1
----
19
2
6

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL 96 / + col1 AS col0 FROM tab1
----
19
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT - COUNT( * ) + + 51 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - COUNT ( * ) + + 51 FROM tab1
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 8 BETWEEN - col0 / + col1 * + 92 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col0 + + col2 AS col0 FROM tab1
----
59
144
68
159
96
147

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 51 >= col2 * + 95 / + 25 * + col1
----

query I rowsort
SELECT DISTINCT - col1 + - - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 18
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 17 + col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT col0 DIV - - 89 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4077
SELECT col0 / - - 89 AS col0 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL CAST( - col2 AS SIGNED ) + + col1 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL CAST ( - col2 AS INTEGER ) + + col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT + 12 + - ( COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT + 12 + - ( COUNT ( * ) ) FROM tab1
----
9

query I rowsort
SELECT - - 15 * - col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE col0 + + 3 + - col0 + - + col2 IS NULL
----

query I rowsort
SELECT 34 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-3

query II rowsort
SELECT ALL - 45 - + 41 AS col0, - 53 FROM tab2 AS cor0
----
-86
-53
-86
-53
-86
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT - + col1 * CAST( - - 99 AS SIGNED ) col1 FROM tab2 AS cor0
----
-5049
-6633
-7623

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4085
SELECT - + col1 * CAST ( - - 99 AS INTEGER ) col1 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT SUM( - + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT SUM ( - + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT 47 - col1 FROM tab0 AS cor0
----
-34
26
46

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( 58 ) + - col0 * - ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - SUM( + col1 ) col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4091
SELECT ALL - SUM ( + col1 ) col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + 18 IS NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab0 WHERE NOT ( ( + 44 ) * 21 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 - + 79 FROM tab2
----
-102
-119
-137

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4095
SELECT DISTINCT * FROM tab1 WHERE ( + ( - col1 ) ) IN ( 21 + - CAST( NULL AS DECIMAL ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-4095
SELECT DISTINCT * FROM tab1 WHERE ( + ( - col1 ) ) IN ( 21 + - CAST ( NULL AS REAL ) * + col0 )
----

query I rowsort
SELECT col0 * 30 + col2 * col0 FROM tab0
----
1155
12513
3480

query III rowsort
SELECT * FROM tab2 WHERE NOT 66 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4098
SELECT * FROM tab0 WHERE + col0 / - 67 + ( - ( + CAST( NULL AS SIGNED ) ) ) / 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4098
SELECT * FROM tab0 WHERE + col0 / - 67 + ( - ( + CAST ( NULL AS INTEGER ) ) ) / 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + 2 <> ( 42 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - MIN( + 43 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4101
SELECT - MIN ( + 43 ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + COUNT( * ) - 47 AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-4102
SELECT + COUNT ( * ) - 47 AS col0 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + COUNT( DISTINCT - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4103
SELECT + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 85 - col2 AS col2 FROM tab2
----
27
45
62

query III rowsort
SELECT * FROM tab1 WHERE ( ( + col0 ) ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + 33 + - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4106
SELECT + 33 + - COUNT ( * ) FROM tab0
----
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT - col0 + - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT - col0 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE col1 / col0 + col2 NOT IN ( col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT 26 * COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4110
SELECT 26 * COUNT ( * ) FROM tab0
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4111
SELECT DISTINCT - col0 / + ( - CAST( NULL AS DECIMAL ) * CAST( 62 * - col2 AS DECIMAL ) ) - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - col0 / + ( - CAST ( NULL AS REAL ) * CAST ( 62 * - col2 AS REAL ) ) - col1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4112
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 38 - col0 FROM tab0
----
-49
-59
23

query I rowsort
SELECT ALL 47 * - col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-2162
-3008
-3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + - col2 IS NULL
----

query I rowsort
SELECT col1 + 99 FROM tab2 cor0
----
150
166
176

query I rowsort
SELECT + col0 + col2 AS col0 FROM tab0 AS cor0 WHERE col1 + - col0 * + 74 IS NOT NULL
----
196
62
97

query I rowsort
SELECT DISTINCT 27 + col0 AS col1 FROM tab2 AS cor0
----
102
73
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 + - col2 ) <= ( NULL )
----

query I rowsort
SELECT 90 FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + ( + col1 ) FROM tab0 WHERE ( - col0 ) IN ( col0 )
----

query I rowsort
SELECT - col2 - 12 AS col1 FROM tab1 AS cor0
----
-108
-71
-80

query I rowsort
SELECT DISTINCT + col2 - + col0 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT ALL 50 + col0 * + 29 FROM tab2 cor0
----
1384
1906
2225

query I rowsort
SELECT + col2 - - ( - 72 ) AS col2 FROM tab2 cor0
----
-14
-32
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT + CAST( NULL AS SIGNED ) * - col2 + + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT + CAST ( NULL AS INTEGER ) * - col2 + + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col2 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT + 28 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT + 28 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 73 - - 52 AS col1 FROM tab2 AS cor0
----
125

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT col2 + 52 + CAST( col2 AS SIGNED ) FROM tab0
----
146
250
72

skipif mysql # not compatible
query I rowsort label-4133
SELECT col2 + 52 + CAST ( col2 AS INTEGER ) FROM tab0
----
146
250
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > col2 * col2 OR NOT NULL IN ( col1 * 49 )
----

query I rowsort
SELECT DISTINCT - 59 * - col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3009
3953
4543

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT ALL SUM( DISTINCT - col0 ) DIV ( COUNT( * ) ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL SUM ( DISTINCT - col0 ) / ( COUNT ( * ) ) FROM tab1
----
-75

query I rowsort
SELECT + col2 * + - 3 FROM tab0
----
-141
-297
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4139
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4139
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT + CAST( col1 AS SIGNED ) * - 62 FROM tab1 AS cor0 WHERE NOT + col2 / + col0 IS NULL
----
-2914
-310
-868

skipif mysql # not compatible
query I rowsort label-4140
SELECT + CAST ( col1 AS INTEGER ) * - 62 FROM tab1 AS cor0 WHERE NOT + col2 / + col0 IS NULL
----
-2914
-310
-868

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) BETWEEN col1 AND ( ( CAST( + col1 AS SIGNED ) ) * - 56 + col0 )
----

skipif mysql # not compatible
query III rowsort label-4143
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) BETWEEN col1 AND ( ( CAST ( + col1 AS INTEGER ) ) * - 56 + col0 )
----

query I rowsort
SELECT col0 * - col0 AS col1 FROM tab1 WHERE NOT - col0 IN ( + 85 / col2 )
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT ( - - CAST( - - 74 AS SIGNED ) ) FROM tab0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4145
SELECT ( - - CAST ( - - 74 AS INTEGER ) ) FROM tab0
----
74
74
74

query II rowsort
SELECT - 69, + 61 AS col1 FROM tab2 AS cor0
----
-69
61
-69
61
-69
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, 82 * col2 col2 FROM tab2 AS cor0
----
-23
1886
-40
3280
-58
4756

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( ( + col0 ) ) + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL = ( CAST( col0 AS SIGNED ) + + CAST( + 29 AS SIGNED ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4149
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL = ( CAST ( col0 AS INTEGER ) + + CAST ( + 29 AS INTEGER ) )
----
0

query I rowsort
SELECT + - col1 + - 91 * + ( col2 ) FROM tab1 AS cor0
----
-5374
-6235
-8750

query I rowsort
SELECT - 6 + - col2 FROM tab0 cor0
----
-105
-16
-53

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 <> ( NULL )
----

query II rowsort
SELECT ALL col1 AS col0, col2 - + col0 AS col1 FROM tab1 cor0
----
14
45
47
-23
5
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT + COUNT( * ) AS col1, 62 * + 39 FROM tab1 AS cor0
----
3
2418

skipif mysql # not compatible
query II rowsort label-4154
SELECT + COUNT ( * ) AS col1, 62 * + 39 FROM tab1 AS cor0
----
3
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ( + COUNT( * ) ) * - - MAX( ALL 9 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4155
SELECT ( + COUNT ( * ) ) * - - MAX ( ALL 9 ) FROM tab0
----
27

query III rowsort
SELECT * FROM tab1 WHERE + 8 = ( NULL )
----

query II rowsort
SELECT DISTINCT col0 * - col0 AS col0, - col1 AS col0 FROM tab0
----
-225
-81
-7569
-21
-9409
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4158
SELECT MAX( ALL CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT MAX ( ALL CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL COUNT( * ) * 47 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL COUNT ( * ) * 47 FROM tab2
----
141

query I rowsort
SELECT DISTINCT + col2 * + 15 FROM tab2
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL - COUNT( * ) + 56 AS col0 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - COUNT ( * ) + 56 AS col0 FROM tab1
----
53

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE + col1 NOT BETWEEN 16 AND + 51 * - col1
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL 37 + ( - + 93 ) - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL 37 + ( - + 93 ) - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - - 56 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4165
SELECT DISTINCT CAST( MAX( ALL + CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT CAST ( MAX ( ALL + CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( 30 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col0 IS NULL
----

query I rowsort
SELECT + 14 * - 92 + col2 FROM tab0 AS cor0
----
-1189
-1241
-1278

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT 46 + - col0 FROM tab1
----
-39
-45
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT - COUNT( - - 9 ) + - CAST( 68 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-77

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - COUNT ( - - 9 ) + - CAST ( 68 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4172
SELECT * FROM tab1 cor0 WHERE - 97 * - CAST( NULL AS SIGNED ) + - 6 + + - 7 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4172
SELECT * FROM tab1 cor0 WHERE - 97 * - CAST ( NULL AS INTEGER ) + - 6 + + - 7 IS NOT NULL
----

query II rowsort
SELECT - - col1 AS col0, - col0 + col1 FROM tab0 AS cor0
----
1
-96
21
-66
81
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL + - 59 + + COUNT( * ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + - 59 + + COUNT ( * ) FROM tab2 AS cor0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 46 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT ALL col1 * col0 + - col0 + + - 32 DIV col2 FROM tab0 AS cor0
----
0
1200
1737

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL col1 * col0 + - col0 + + - 32 / col2 FROM tab0 AS cor0
----
0
1200
1737

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MAX( DISTINCT ( + - col1 ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4177
SELECT MAX ( DISTINCT ( + - col1 ) ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT 69 * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT DISTINCT col0 / + col2 * + CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT col0 / + col2 * + CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - + 91 * COUNT( * ) FROM tab2 WHERE NOT + 26 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - + 91 * COUNT ( * ) FROM tab2 WHERE NOT + 26 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - ( + - col0 ) FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - ( + - col0 ) FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 + - - col1 * 15 * 65 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - COUNT( - 86 ) * 59 AS col1 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-4184
SELECT - COUNT ( - 86 ) * 59 AS col1 FROM tab0
----
-177

query I rowsort
SELECT 7 * ( col1 ) FROM tab0 AS cor0
----
147
567
7

query I rowsort
SELECT ALL - + 76 AS col0 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT MAX( ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4187
SELECT MAX ( ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT 75 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 * - - ( 36 ) - - col2 + - + col2 * col2 ) <= NULL
----

query I rowsort
SELECT - ( + - 63 ) AS col2 FROM tab0 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT - SUM( DISTINCT 84 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-84

skipif mysql # not compatible
query I rowsort label-4190
SELECT - SUM ( DISTINCT 84 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL COUNT( ALL - CAST( - - 1 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL COUNT ( ALL - CAST ( - - 1 AS INTEGER ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + ( + 12 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
12

query I rowsort
SELECT DISTINCT col2 * + col1 * + col2 + col0 + - 34 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 - + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL COUNT( * ) * + SUM( + 62 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL COUNT ( * ) * + SUM ( + 62 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT MAX( ALL + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - - col1 * + 35 AS col2 FROM tab2 AS cor0
----
1785
2345
2695

query I rowsort
SELECT + - ( - - col0 ) * - 45 FROM tab0 AS cor0
----
3915
4365
675

query I rowsort
SELECT DISTINCT - col2 * - 60 + col1 * - col1 AS col1 FROM tab1 cor0
----
1871
3515
5564

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + 57 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + MIN( - 76 ) + + COUNT( 84 ) FROM tab1 WHERE + - 85 IS NOT NULL
----
-73

skipif mysql # not compatible
query I rowsort label-4200
SELECT + MIN ( - 76 ) + + COUNT ( 84 ) FROM tab1 WHERE + - 85 IS NOT NULL
----
-73

query II rowsort
SELECT ALL - col0 * - col1 + + col2 AS col0, col2 AS col0 FROM tab0
----
1262
47
1837
10
196
99

query I rowsort
SELECT col1 * - + col0 + - - 53 AS col1 FROM tab2
----
-2293
-4875
-4972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL - + col1 + col0 - - - col1 - - + col0 + + + col0 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - + col1 + col0 - - - col1 - - + col0 + + + col0 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 53 + - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * col2 + - - 93 AS col2 FROM tab1
----
1437
3289
388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT DISTINCT col2 + + col1 * col0 + + CAST( + 65 AS SIGNED ) AS col2 FROM tab1
----
4410
549
875

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT col2 + + col1 * col0 + + CAST ( + 65 AS INTEGER ) AS col2 FROM tab1
----
4410
549
875

query I rowsort
SELECT - 12 * col1 + + 82 FROM tab2
----
-530
-722
-842

query I rowsort
SELECT - 34 + - - col2 AS col0 FROM tab2 AS cor0
----
-11
24
6

query I rowsort
SELECT + col2 + + 46 + + col0 - + 1 * ( + ( 49 ) ) AS col1 FROM tab1 AS cor0 WHERE ( col0 ) <> NULL
----

query II rowsort
SELECT + 89, ( col1 ) AS col1 FROM tab0 AS cor0
----
89
1
89
21
89
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT - 64 DIV + col1 - col0 + 44 FROM tab1
----
-11
-48
-53

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 64 / + col1 - col0 + 44 FROM tab1
----
-11
-48
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 19 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT col2 * + - 86 - col1 FROM tab1
----
-5079
-5895
-8270

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( col2 ) + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 * col1 + + 45 FROM tab2 AS cor0
----
1218
3125
3931

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT DISTINCT - col1 DIV - + ( + + col1 ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - col1 / - + ( + + col1 ) AS col2 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT - CAST( NULL AS SIGNED ) * - + 31 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT - CAST ( NULL AS INTEGER ) * - + 31 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 19 AS col1 FROM tab0
----
1539
19
399

onlyif mysql # aggregate syntax: 
query II rowsort label-4221
SELECT ALL ( 30 ) * - + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab0
----
-90
3

skipif mysql # not compatible
query II rowsort label-4221
SELECT ALL ( 30 ) * - + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
-90
3

query I rowsort
SELECT ALL + col0 + - ( 54 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + SUM( - col2 ) / - 51 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN + col2 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT + SUM ( - col2 ) / - 51 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN + col2 AND - col2
----
NULL

query I rowsort
SELECT ALL - 31 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ALL col2 + col2 * - - col1 FROM tab1
----
1440
3264
354

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col2 + - + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 96 + + 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab1 AS cor0 WHERE NOT - 29 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT ( - MIN( ALL + 4 ) ) * - 48 + + 23 FROM tab1 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT ( - MIN ( ALL + 4 ) ) * - 48 + + 23 FROM tab1 AS cor0
----
215

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col0 * 11 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4232
SELECT DISTINCT + COUNT( * ) AS col1, - CAST( NULL AS DECIMAL ) / - 77 AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4232
SELECT DISTINCT + COUNT ( * ) AS col1, - CAST ( NULL AS REAL ) / - 77 AS col1 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 53 * + col1 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT SUM( DISTINCT - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4234
SELECT SUM ( DISTINCT - col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT ALL - ( - - col0 ) + 2 FROM tab2
----
-44
-62
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4236
SELECT DISTINCT * FROM tab2 WHERE + col2 * + + 47 - CAST( - + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4236
SELECT DISTINCT * FROM tab2 WHERE + col2 * + + 47 - CAST ( - + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 52 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 52 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT - - 46 + + MAX( + - col0 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - - 46 + + MAX ( + - col0 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - 12 + + COUNT( * ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 12 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT col0 * + 53 AS col2 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4241
SELECT + COUNT( * ) AS col0, COUNT( * ) DIV + 77 FROM tab0 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4241
SELECT + COUNT ( * ) AS col0, COUNT ( * ) / + 77 FROM tab0 cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + 1 * + ( + COUNT( * ) ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + 1 * + ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT - col0 AS col2, 57 + - - col0 + - col0 * + 50 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT DISTINCT - - COUNT( * ) * - 94 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - - COUNT ( * ) * - 94 FROM tab1 AS cor0
----
-282

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT IN ( + ( col2 ), - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL - MAX( ALL + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - MAX ( ALL + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4247
SELECT ALL - COUNT( * ) / + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4247
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 33 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT + + 32 DIV COUNT( * ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4249
SELECT + + 32 / COUNT ( * ) FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + - MIN( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col1 - 79 NOT IN ( - col0, col1, - - col1, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT + - MIN ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col1 - 79 NOT IN ( - col0, col1, - - col1, - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4251
SELECT + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - 89 * + + COUNT( * ) AS col2 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-4252
SELECT - 89 * + + COUNT ( * ) AS col2 FROM tab2
----
-267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4253
SELECT ALL MAX( - col1 ) DIV + + 88 * - MIN( + - 21 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL MAX ( - col1 ) / + + 88 * - MIN ( + - 21 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) * - 86 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) * - 86 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4255
SELECT - COUNT( + 31 ) DIV + CAST( - - 68 AS SIGNED ), 30 AS col0 FROM tab2
----
0
30

skipif mysql # not compatible
query II rowsort label-4255
SELECT - COUNT ( + 31 ) / + CAST ( - - 68 AS INTEGER ), 30 AS col0 FROM tab2
----
0
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 74 * + col0 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT ( - MIN( ALL - + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT ( - MIN ( ALL - + col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT MIN( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT COUNT( col0 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4259
SELECT COUNT ( col0 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT MIN( + - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT MIN ( + - col2 ) FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT + col0 * - col0 + + + 19 - - + 51 * + + col2 AS col2 FROM tab0 AS cor0
----
-4341
-7040
2191

query I rowsort
SELECT + col1 + - 52 AS col1 FROM tab2
----
-1
15
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4263
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col2 ) NOT IN ( col2 + + + 30 + + col1, + CAST( - col2 AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-4263
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col2 ) NOT IN ( col2 + + + 30 + + col1, + CAST ( - col2 AS INTEGER ) * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 13 * + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 13 * + col1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4265
SELECT - col1 + - 38 + - ( - col0 ) + - 31 * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT - col1 + - 38 + - ( - col0 ) + - 31 * + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 70 + + - col0 AS col0 FROM tab1
----
-10
26
33

query I rowsort
SELECT + 28 + - 98 AS col2 FROM tab2
----
-70
-70
-70

query I rowsort
SELECT ALL 7 + + 38 AS col0 FROM tab1
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab0 WHERE + col1 / - col2 - + col0 BETWEEN - - 79 AND CAST( NULL AS SIGNED ) / col0 + 82 + + 20
----

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col1 / - col2 - + col0 BETWEEN - - 79 AND CAST ( NULL AS INTEGER ) / col0 + 82 + + 20
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4270
SELECT 18 DIV - col0 AS col1, 73 + - + col1 FROM tab2
----
0
-4
0
22
0
6

skipif mysql # not compatible
query II rowsort label-4270
SELECT 18 / - col0 AS col1, 73 + - + col1 FROM tab2
----
0
-4
0
22
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL MIN( ALL + + 4 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL MIN ( ALL + + 4 ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT ALL + 3 * + + col1 - - col0 FROM tab0 cor0
----
100
150
258

query I rowsort
SELECT ALL col2 / + col1 - + - 79 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * - 91 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT + CAST( + 79 AS SIGNED ) * - col1 * 3 FROM tab0 AS cor0
----
-19197
-237
-4977

skipif mysql # not compatible
query I rowsort label-4274
SELECT + CAST ( + 79 AS INTEGER ) * - col1 * 3 FROM tab0 AS cor0
----
-19197
-237
-4977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT DISTINCT 41 * - CAST( - 16 AS SIGNED ) AS col2 FROM tab0
----
656

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT 41 * - CAST ( - 16 AS INTEGER ) AS col2 FROM tab0
----
656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col2 FROM tab1
----
42
42
42

query I rowsort
SELECT DISTINCT ( + + ( + col1 ) ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - ( + ( + 62 ) ) FROM tab2
----
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4279
SELECT ALL - col2 DIV + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - col2 / + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT DISTINCT ( COUNT( * ) ) AS col0, 34 AS col2 FROM tab2 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-4280
SELECT DISTINCT ( COUNT ( * ) ) AS col0, 34 AS col2 FROM tab2 AS cor0
----
3
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 35 col1 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT - + 12 AS col1 FROM tab1 cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ( SUM( + 4 ) ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4283
SELECT ( SUM ( + 4 ) ) FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - SUM( + col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - SUM ( + col0 ) AS col1 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT SUM( 81 ) col0 FROM tab1
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4286
SELECT SUM ( 81 ) col0 FROM tab1
----
243

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 54 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 * ( + 2 ) AS col1, - col2 FROM tab1
----
-10
-59
-28
-96
-94
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL <> col1 ) )
----

query II rowsort
SELECT col2 AS col0, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT 60 * col0 AS col2 FROM tab1
----
3060
5100
5460

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT ALL col0 DIV - 67 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL col0 / - 67 AS col2 FROM tab2
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( ( 53 ) )
----

query I rowsort
SELECT 39 * + 64 AS col1 FROM tab2
----
2496
2496
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - + MAX( DISTINCT + 0 ) * - + ( COUNT( * ) ) col1 FROM tab2 WHERE NOT + 75 IN ( + 73, ( col2 ), + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4295
SELECT - + MAX ( DISTINCT + 0 ) * - + ( COUNT ( * ) ) col1 FROM tab2 WHERE NOT + 75 IN ( + 73, ( col2 ), + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
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-4296
SELECT ALL - ( + + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - ( - - col1 ) AND - col2 - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT - ( - + col1 ) + + col1 DIV col0 * col2 FROM tab2
----
117
67
74

skipif mysql # not compatible
query I rowsort label-4298
SELECT - ( - + col1 ) + + col1 / col0 * col2 FROM tab2
----
117
67
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4299
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col1, 36 AS col0 FROM tab0
----
NULL
36
NULL
36
NULL
36

skipif mysql # not compatible
query II rowsort label-4299
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col1, 36 AS col0 FROM tab0
----
NULL
36
NULL
36
NULL
36

query I rowsort
SELECT col2 + + col1 + - + col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col2 + col2 + + - col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 * + col1 + + + col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query II rowsort label-4303
SELECT 57 * ( + - 72 ) DIV + col0, - col2 AS col0 FROM tab2 AS cor0
----
-54
-58
-64
-40
-89
-23

skipif mysql # not compatible
query II rowsort label-4303
SELECT 57 * ( + - 72 ) / + col0, - col2 AS col0 FROM tab2 AS cor0
----
-54
-58
-64
-40
-89
-23

query I rowsort
SELECT ALL - - 1 * col0 - - - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT ALL MIN( + + col0 ), + COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
15
0

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL MIN ( + + col0 ), + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
15
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT 29 DIV COUNT( DISTINCT + 73 ) * - + 25 * 17 FROM tab2 AS cor0
----
-12325

skipif mysql # not compatible
query I rowsort label-4306
SELECT 29 / COUNT ( DISTINCT + 73 ) * - + 25 * 17 FROM tab2 AS cor0
----
-12325

query I rowsort
SELECT ALL - - col1 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + - col2 * + + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - ( col2 ) AS col2, + 71 col2 FROM tab0
----
100
71
2209
71
9801
71

query I rowsort
SELECT 90 - - col1 FROM tab2
----
141
157
167

query III rowsort
SELECT * FROM tab2 WHERE ( 87 ) NOT IN ( + col2, + col2 * col1, col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - + 84 col0 FROM tab2
----
107
124
142

query I rowsort
SELECT + + 92 AS col1 FROM tab1 WHERE NULL NOT IN ( ( + col1 ) * - col2, + col2 / - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT IN ( + col0, ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 13 >= - + ( - - col1 )
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4316
SELECT DISTINCT ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + COUNT( + 61 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4317
SELECT + COUNT ( + 61 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL - ( - SUM( DISTINCT - CAST( - col2 AS SIGNED ) ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - ( - SUM ( DISTINCT - CAST ( - col2 AS INTEGER ) ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT + + ( - 18 ) FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - ( - + MAX( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4321
SELECT - ( - + MAX ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * 11 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4322
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * 11 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4324
SELECT + col1 DIV + 43 AS col2, + 86 FROM tab0 AS cor0
----
0
86
0
86
1
86

skipif mysql # not compatible
query II rowsort label-4324
SELECT + col1 / + 43 AS col2, + 86 FROM tab0 AS cor0
----
0
86
0
86
1
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 9 < NULL
----

query I rowsort
SELECT ALL - + 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > - ( + 64 )
----

query II rowsort
SELECT - 60 AS col0, 62 + col2 FROM tab2 AS cor0
----
-60
102
-60
120
-60
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL - 76 * COUNT( * ) FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - 76 * COUNT ( * ) FROM tab0
----
-228

query I rowsort
SELECT ALL 11 * - col1 AS col2 FROM tab2
----
-561
-737
-847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 68 + + col2 col0 FROM tab2
----
-22
12
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT col2 * - - col1 * col1 + col2 DIV - - 55 FROM tab2
----
237160
260363
59823

skipif mysql # not compatible
query I rowsort label-4332
SELECT col2 * - - col1 * col1 + col2 / - - 55 FROM tab2
----
237160
260363
59823

query I rowsort
SELECT ALL 42 + + - col2 AS col1 FROM tab0
----
-5
-57
32

query III rowsort
SELECT * FROM tab2 WHERE + - 99 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT ( + col2 ) * - + CAST( - - col2 AS SIGNED ) * - col1 + + col2 AS col2 FROM tab0
----
178976
2110
9900

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT ( + col2 ) * - + CAST ( - - col2 AS INTEGER ) * - col1 + + col2 AS col2 FROM tab0
----
178976
2110
9900

query I rowsort
SELECT 68 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - ( - - col1 ) - - 66 + + + 21 AS col1 FROM tab0 cor0
----
6
66
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT - 64 * - CAST( NULL AS SIGNED ) - + 32 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT - 64 * - CAST ( NULL AS INTEGER ) - + 32 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 69 + - col0 + + col1 + - - col2 / - - 67 / - col2 * - ( col0 ) - - - col1 FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT ( NOT + - 74 IS NULL )
----

query I rowsort
SELECT + 99 + 42 + - col2 FROM tab0 AS cor0
----
131
42
94

query II rowsort
SELECT ALL + 69 - - + col1 * col2, ( + col2 ) AS col2 FROM tab1 AS cor0
----
1413
96
3265
68
364
59

query I rowsort
SELECT ALL + col2 * - + 83 FROM tab0 AS cor0
----
-3901
-8217
-830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT col2 + + 35 + - - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT col2 + + 35 + - - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT 81 + + + col2 AS col2 FROM tab0 cor0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE + ( + 0 ) IN ( + 29, - col2 / + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE + ( + 0 ) IN ( + 29, - col2 / + col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT DISTINCT - COUNT( * ) + + 30 col2, - 65 AS col2 FROM tab0
----
27
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4347
SELECT DISTINCT - COUNT ( * ) + + 30 col2, - 65 AS col2 FROM tab0
----
27
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT COUNT( * ) * + 57 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-4348
SELECT COUNT ( * ) * + 57 FROM tab0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT MIN( + + ( - 68 ) ) AS col0 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT MIN ( + + ( - 68 ) ) AS col0 FROM tab0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT DISTINCT 0 / 86 * ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT 0 / 86 * ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT + 48 DIV + - 31 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4351
SELECT + 48 / + - 31 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL + MAX( ALL + + 3 ) AS col1 FROM tab1 WHERE NULL >= + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + MAX ( ALL + + 3 ) AS col1 FROM tab1 WHERE NULL >= + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT DISTINCT - ( + 21 ) * + + MIN( ALL + + col0 ) col2, 34 + + COUNT( * ) col0 FROM tab1
----
-1071
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4353
SELECT DISTINCT - ( + 21 ) * + + MIN ( ALL + + col0 ) col2, 34 + + COUNT ( * ) col0 FROM tab1
----
-1071
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + SUM( + col2 ) * - 29 FROM tab0 cor0
----
-4524

skipif mysql # not compatible
query I rowsort label-4354
SELECT + SUM ( + col2 ) * - 29 FROM tab0 cor0
----
-4524

query I rowsort
SELECT ALL - + 22 AS col1 FROM tab1 WHERE NOT + - col1 + - col1 + + 23 + + + col2 * + col1 * + - 95 IS NULL
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT - col0 <> - 92
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * + + col2 col2 FROM tab2
----
-345
-600
-870

query II rowsort
SELECT ALL + col1 + + col1 AS col2, + 63 - - col2 + - col0 FROM tab0
----
162
95
2
65
42
-14

query I rowsort
SELECT ALL + 41 + - 3 FROM tab2
----
38
38
38

query II rowsort
SELECT + col2 AS col1, 15 FROM tab0
----
10
15
47
15
99
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL COUNT( col0 ) + 8 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL COUNT ( col0 ) + 8 FROM tab2
----
11

query I rowsort
SELECT + + col1 AS col1 FROM tab0 WHERE - 57 + - col0 IS NULL
----

query I rowsort
SELECT + + col2 * 65 + - col1 - col1 * col0 FROM tab2 AS cor0
----
-1322
-2405
-902

query I rowsort
SELECT - - 83 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL + 4 + + + col1 FROM tab0
----
25
5
85

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 83 AND 40 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT + + 52 * + ( + MAX( + - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT + + 52 * + ( + MAX ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT ALL CAST( NULL AS SIGNED ) - 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-4370
SELECT ALL CAST ( NULL AS INTEGER ) - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col0 - + 66 AS col2, + col1 FROM tab0 AS cor0
----
-51
81
21
21
31
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * 90 * 23 NOT BETWEEN - + col0 AND NULL
----

query II rowsort
SELECT - - ( col0 ), + 38 + + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
15
-1177
87
-1789
97
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 81 col0 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col1 >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 89 * - ( - - col1 ) AS col2 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT 41 * - col0 AS col1 FROM tab2 WHERE NOT - 61 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT ALL - 61 DIV + + 88 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - 61 / + + 88 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT + 3 DIV + 80 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + 3 / + 80 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL COUNT( * ) * - 39 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL COUNT ( * ) * - 39 FROM tab1 AS cor0
----
-117

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4382
SELECT - 84 * CAST( - col1 AS SIGNED ) * + - CAST( NULL AS SIGNED ) - - CAST( col0 AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 84 * CAST ( - col1 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) - - CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + col1 ) * + 61 AS col0 FROM tab2 AS cor0
----
-3111
-4087
-4697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4384
SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL MAX( ALL - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + - 50 + - - 52 + + 14 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + + MAX( + col2 ) FROM tab0 WHERE ( ( NULL ) IS NULL )
----
99

skipif mysql # not compatible
query I rowsort label-4387
SELECT + + MAX ( + col2 ) FROM tab0 WHERE ( ( NULL ) IS NULL )
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) + + col1 + - col1 * - col1 + - col2 col2 FROM tab1
----
-24
128
2235

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - - col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - 3 + col0 AS col1 FROM tab1
----
48
82
88

query I rowsort
SELECT ALL col0 + + col0 * - col1 AS col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - + COUNT( * ) + 55 AS col1 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-4392
SELECT - + COUNT ( * ) + 55 AS col1 FROM tab2 cor0
----
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 17 * - 29 * 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT + MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-4395
SELECT MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4396
SELECT * FROM tab1 cor0 JOIN tab2 AS cor1 ON NOT - CAST( NULL AS SIGNED ) + 82 IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4396
SELECT * FROM tab1 cor0 JOIN tab2 AS cor1 ON NOT - CAST ( NULL AS INTEGER ) + 82 IS NULL
----

query I rowsort
SELECT 67 - + col1 FROM tab0
----
-14
46
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT ALL 89 + + + COUNT( * ), - 82 AS col2 FROM tab1
----
92
-82

skipif mysql # not compatible
query II rowsort label-4398
SELECT ALL 89 + + + COUNT ( * ), - 82 AS col2 FROM tab1
----
92
-82

query I rowsort
SELECT ALL + 75 + col0 FROM tab0
----
162
172
90

query I rowsort
SELECT + 75 * - + 88 - + col1 FROM tab2
----
-6651
-6667
-6677

query I rowsort
SELECT + 78 + + - 71 FROM tab0 cor0
----
7
7
7

query I rowsort
SELECT ALL - col1 - col0 + - 92 + + col1 FROM tab2 AS cor0
----
-138
-156
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4403
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT 22 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - + 23 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - + 23 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col2, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + + ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + + ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL col0, - col2 + + 3 AS col2 FROM tab2 AS cor0
----
46
-20
64
-37
75
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - COUNT( DISTINCT - + 29 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - COUNT ( DISTINCT - + 29 ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col1 * - - col2 * col2 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT ALL - col1 * 82 AS col1 FROM tab2
----
-4182
-5494
-6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT CAST( - ( + - col0 ) AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4412
SELECT CAST ( - ( + - col0 ) AS INTEGER ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT 51 * - col2 AS col0 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) * + SUM( ALL + + col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + SUM ( ALL + + col2 ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT + - 24 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT + - 24 / col1 AS col2 FROM tab1 AS cor0
----
-1
-4
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 5 + - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT ALL + ( 50 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL + ( 50 ) / + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4419
SELECT - CAST( NULL AS SIGNED ) col2, CAST( - + col2 AS SIGNED ) FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4419
SELECT - CAST ( NULL AS INTEGER ) col2, CAST ( - + col2 AS INTEGER ) FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query II rowsort
SELECT col0 AS col2, 30 AS col2 FROM tab0
----
15
30
87
30
97
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4421
SELECT ALL + 92 DIV col2 DIV - - col0, col0 AS col1 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-4421
SELECT ALL + 92 / col2 / - - col0, col0 AS col1 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT + MAX( col0 ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4422
SELECT DISTINCT + MAX ( col0 ) col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + col1 / - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 - 14 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 47 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 93 ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT COUNT( * ) * 2 DIV + 63 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT COUNT ( * ) * 2 / + 63 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 29 < NULL
----

query I rowsort
SELECT + + col0 + - 64 FROM tab1 AS cor0
----
-13
21
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT + + col2 / + col2 * - ( + + col1 ) + + col1 * + CAST( NULL AS SIGNED ) * + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT + + col2 / + col2 * - ( + + col1 ) + + col1 * + CAST ( NULL AS INTEGER ) * + 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + col0 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4431
SELECT DISTINCT col1 AS col1, + CAST( + col1 AS SIGNED ) FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-4431
SELECT DISTINCT col1 AS col1, + CAST ( + col1 AS INTEGER ) FROM tab1
----
14
14
47
47
5
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 97 IN ( - 48, ( + - col0 ) * + 26 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT + 79 + 49 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
128
128
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL - + MIN( DISTINCT + + 42 ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - + MIN ( DISTINCT + + 42 ) FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4436
SELECT + + 43 AS col2, MAX( + col1 ) FROM tab2 AS cor0
----
43
77

skipif mysql # not compatible
query II rowsort label-4436
SELECT + + 43 AS col2, MAX ( + col1 ) FROM tab2 AS cor0
----
43
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT - COUNT( * ) * + COUNT( - col1 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4437
SELECT - COUNT ( * ) * + COUNT ( - col1 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4438
SELECT ALL + 11 col1, + COUNT( * ) FROM tab1 AS cor0 WHERE 90 IS NULL
----
11
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4438
SELECT ALL + 11 col1, + COUNT ( * ) FROM tab1 AS cor0 WHERE 90 IS NULL
----
11
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4439
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 85 - - 98 AS col2, - col0 FROM tab2 WHERE NULL NOT BETWEEN - col2 AND - 66
----

skipif mysql # not compatible
query II rowsort label-4439
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 85 - - 98 AS col2, - col0 FROM tab2 WHERE NULL NOT BETWEEN - col2 AND - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL - COUNT( * ) * + SUM( + + col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - COUNT ( * ) * + SUM ( + + col2 ) FROM tab1
----
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT ALL CAST( 50 AS SIGNED ) FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL CAST ( 50 AS INTEGER ) FROM tab1
----
50
50
50

query I rowsort
SELECT - 12 AS col2 FROM tab2 WHERE NOT ( + col2 / - - col2 * + col0 IS NULL )
----
-12
-12
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4443
SELECT MIN( col2 ) DIV + + MIN( ALL - col2 ), 0 * + - COUNT( * ) * - 7 AS col0 FROM tab1
----
0
0

skipif mysql # not compatible
query II rowsort label-4443
SELECT MIN ( col2 ) / + + MIN ( ALL - col2 ), 0 * + - COUNT ( * ) * - 7 AS col0 FROM tab1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + MAX( DISTINCT + + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4444
SELECT + MAX ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - col0 * - col1 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT 65 * - CAST( + col0 AS SIGNED ) FROM tab1
----
-3315
-5525
-5915

skipif mysql # not compatible
query I rowsort label-4446
SELECT 65 * - CAST ( + col0 AS INTEGER ) FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT 87 * col0 FROM tab2 AS cor0
----
4002
5568
6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 col0 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT + 24 * + 85 + + + 99 FROM tab0 AS cor0
----
2139
2139
2139

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4450
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - AVG ( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT CAST ( NULL AS REAL ) + - AVG ( + col2 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 15 * - col2 + + - 94 AS col0 FROM tab2 AS cor0
----
-439
-694
-964

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col2 + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT - col1 BETWEEN 86 AND 17
----
-3

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT - col1 BETWEEN 86 AND 17
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT + 28 + + COUNT( * ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4454
SELECT + 28 + + COUNT ( * ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT COUNT( * ) * + SUM( + 83 ) * + COUNT( * ) FROM tab2
----
2241

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT COUNT ( * ) * + SUM ( + 83 ) * + COUNT ( * ) FROM tab2
----
2241

query I rowsort
SELECT 3 + col0 * - - col1 FROM tab1
----
428
4280
717

query I rowsort
SELECT DISTINCT + 36 + - col1 - - - col0 * - col0 AS col1 FROM tab0
----
180
7584
9444

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - 96 + + 20 + ( COUNT( * ) ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 96 + + 20 + ( COUNT ( * ) ) FROM tab0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - col0 + - 48 < - col1 * col1
----
85
5
59

query I rowsort
SELECT DISTINCT - 9 + + + col1 + - col0 * 6 + + col0 AS col1 FROM tab1
----
-250
-417
-429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 72 ) col2 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query II rowsort label-4462
SELECT ( - col2 ) col0, + col0 DIV col1 FROM tab2
----
-23
0
-40
0
-58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4462
SELECT ( - col2 ) col0, + col0 / col1 FROM tab2
----
-23
0
-40
0
-58
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + + col2 BETWEEN ( NULL ) AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4464
SELECT DISTINCT + + COUNT( * ), 93 AS col1 FROM tab2 AS cor0 WHERE NOT + 14 - - col0 = NULL
----
0
93

skipif mysql # not compatible
query II rowsort label-4464
SELECT DISTINCT + + COUNT ( * ), 93 AS col1 FROM tab2 AS cor0 WHERE NOT + 14 - - col0 = NULL
----
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - SUM( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4465
SELECT - SUM ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + - col0 * + + col2 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + col1 + - col2 AS col1, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT + ( + COUNT( DISTINCT - 65 ) ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + ( + COUNT ( DISTINCT - 65 ) ) AS col0 FROM tab2 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT DISTINCT - CAST( - 51 AS SIGNED ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4470
SELECT ALL - SUM( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( + 44 ) + - - 32 > - ( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - SUM ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( + 44 ) + - - 32 > - ( - - CAST ( NULL AS REAL ) )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col0 - + col1 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT MAX( - + 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4472
SELECT MAX ( - + 46 ) FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col2 - - col0 + 65 * - - col2 * - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT 25 * + MIN( - - col2 ) col1 FROM tab1
----
1475

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4474
SELECT 25 * + MIN ( - - col2 ) col1 FROM tab1
----
1475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 col1, + col0 AS col1 FROM tab0
----
-5
15
-5
87
-5
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col2 * ( ( - col2 ) ) FROM tab2 WHERE + 33 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col2 * ( ( - col2 ) ) FROM tab2 WHERE + 33 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - - col0 ) * - col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - + col1 * - col2 FROM tab1 WHERE + col0 + + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col2 FROM tab0
----
15
87
97

query II rowsort
SELECT ALL - col0 AS col2, col1 * 67 AS col2 FROM tab2 AS cor0
----
-46
3417
-64
5159
-75
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + - COUNT( * ) * + 31 * + 87 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-24273

skipif mysql # not compatible
query I rowsort label-4481
SELECT + - COUNT ( * ) * + 31 * + 87 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-24273

query II rowsort
SELECT DISTINCT ( + col1 ) * - 44 * + col1 + col0 * + 67, + col1 AS col2 FROM tab1
----
-5207
14
-91099
47
4595
5

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN + ( col0 ) AND col0
----

query II rowsort
SELECT DISTINCT + + col0 AS col0, + col2 + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
15
272
87
7579
97
9508

query I rowsort
SELECT - col2 + col1 * + col2 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL + 62 * - MIN( ALL + col0 ) FROM tab2 AS cor0
----
-2852

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + 62 * - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
-2852

onlyif mysql # aggregate syntax: 
query II rowsort label-4487
SELECT - - COUNT( * ), + COUNT( * ) col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4487
SELECT - - COUNT ( * ), + COUNT ( * ) col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4488
SELECT ALL - CAST( NULL AS DECIMAL ) / - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - CAST ( NULL AS REAL ) / - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT COUNT( * ) * + COUNT( + col2 ) + - - MIN( DISTINCT 58 ) AS col2 FROM tab2 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4489
SELECT COUNT ( * ) * + COUNT ( + col2 ) + - - MIN ( DISTINCT 58 ) AS col2 FROM tab2 cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT 16 DIV - col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4490
SELECT 16 / - col1 FROM tab1
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT + SUM( ALL - 67 ) AS col0 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-4491
SELECT + SUM ( ALL - 67 ) AS col0 FROM tab2
----
-201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + + 64 + + col2 + + col2 - 33 * - col2 col1 FROM tab1
----
2059
2374
3354

query III rowsort
SELECT * FROM tab0 WHERE ( 4 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4494
SELECT ALL COUNT( * ) + - CAST( + - 38 AS SIGNED ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL COUNT ( * ) + - CAST ( + - 38 AS INTEGER ) FROM tab2 AS cor0
----
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < + + col1 / - col2
----

query I rowsort
SELECT + 18 + ( + col0 ) FROM tab0 cor0
----
105
115
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + 44 FROM tab2 AS cor0
----
-2244
-2948
-3388

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + 44 FROM tab2 AS cor0
----
-2244
-2948
-3388

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4498
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - ( + 75 ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4498
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - ( + 75 ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 64 * col1 * - 22 AS col2 FROM tab0
----
-114048
-1408
-29568

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT 52 IS NULL
----
59
68
96

query I rowsort
SELECT ALL - ( + 96 ) * 11 * + + col0 FROM tab2 AS cor0
----
-48576
-67584
-79200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT + + MAX( DISTINCT - 90 ) / - CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + + MAX ( DISTINCT - 90 ) / - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 84 * col0 * + col2 + + col1 AS col1 FROM tab2 cor0
----
-214963
-365333
-88821

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 11 NOT BETWEEN + col0 AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT CAST( - 5 AS SIGNED ) FROM tab2 cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4505
SELECT CAST ( - 5 AS INTEGER ) FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT - col0 - - CAST( NULL AS SIGNED ) + + 47 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - col0 - - CAST ( NULL AS INTEGER ) + + 47 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + col1 - 15 FROM tab0 cor0 WHERE NOT ( - 97 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT ALL - 42 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - 42 / col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 21 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT ALL SUM( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL SUM ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 15 + + + 82 FROM tab2 WHERE NOT + col1 + 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + + 50 * - + col0 + col2 AS col1 FROM tab2
----
-2254
-3120
-3634

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT col1 DIV 47 + + col1 FROM tab1
----
14
48
5

skipif mysql # not compatible
query I rowsort label-4514
SELECT col1 / 47 + + col1 FROM tab1
----
14
48
5

query I rowsort
SELECT + col0 + + ( - 37 ) FROM tab2 AS cor0
----
27
38
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + COUNT( * ) * + 37 + - 25 AS col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4516
SELECT + COUNT ( * ) * + 37 + - 25 AS col0 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + + COUNT( * ) + 90 AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4517
SELECT + + COUNT ( * ) + 90 AS col2 FROM tab1 AS cor0
----
93

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE + 98 * + - col0 * + - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + col1 - - col2 + 25 FROM tab2 AS cor0
----
142
150
99

query I rowsort
SELECT - + 49 - col2 - - + col0 * 64 FROM tab0 AS cor0
----
5509
6060
864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 * + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 * + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT + CAST( + col1 AS SIGNED ) FROM tab0 cor0 WHERE col0 BETWEEN col1 AND + col0 + col2
----
1
21

skipif mysql # not compatible
query I rowsort label-4522
SELECT + CAST ( + col1 AS INTEGER ) FROM tab0 cor0 WHERE col0 BETWEEN col1 AND + col0 + col2
----
1
21

query I rowsort
SELECT ALL col2 - + 86 FROM tab2 AS cor0
----
-28
-46
-63

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab1 cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4525
SELECT + col1 * + 16, ( CAST( + col2 AS SIGNED ) ) DIV - col2 AS col1 FROM tab1
----
224
-1
752
-1
80
-1

skipif mysql # not compatible
query II rowsort label-4525
SELECT + col1 * + 16, ( CAST ( + col2 AS INTEGER ) ) / - col2 AS col1 FROM tab1
----
224
-1
752
-1
80
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT COUNT( * ) * + 5 * - - COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4526
SELECT COUNT ( * ) * + 5 * - - COUNT ( * ) FROM tab0
----
45

query I rowsort
SELECT ALL 61 * 3 * - 85 + - col0 FROM tab1
----
-15606
-15640
-15646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT CAST( col1 AS SIGNED ) * - 71 FROM tab1
----
-3337
-355
-994

skipif mysql # not compatible
query I rowsort label-4528
SELECT CAST ( col1 AS INTEGER ) * - 71 FROM tab1
----
-3337
-355
-994

query I rowsort
SELECT DISTINCT col2 + + - 45 AS col1 FROM tab0
----
-35
2
54

query I rowsort
SELECT DISTINCT + col0 * - - 76 AS col2 FROM tab1 AS cor0
----
3876
6460
6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT DISTINCT - CAST( - 55 AS SIGNED ) AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT - CAST ( - 55 AS INTEGER ) AS col2 FROM tab0
----
55

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + 29 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 20 NOT IN ( + ( + col0 ), - 35 )
----

query I rowsort
SELECT DISTINCT + + col0 * - ( - 73 ) * + + ( 8 ) AS col0 FROM tab2 cor0
----
26864
37376
43800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4536
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4537
SELECT - - CAST( - - col0 AS SIGNED ) AS col0, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4537
SELECT - - CAST ( - - col0 AS INTEGER ) AS col0, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT + 9, + col0 AS col0 FROM tab0
----
9
15
9
87
9
97

query II rowsort
SELECT - col1 AS col1, 89 FROM tab1
----
-14
89
-47
89
-5
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - COUNT( * ) + ( + - COUNT( * ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - COUNT ( * ) + ( + - COUNT ( * ) ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT + SUM( ALL 32 ) + - - COUNT( ALL - col0 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT + SUM ( ALL 32 ) + - - COUNT ( ALL - col0 ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + + col2 AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * col0 IN ( + col2 * ( + 8 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT - 21 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT - 21 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL - COUNT( + col1 ) + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL - COUNT ( + col1 ) + + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 54 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * 48 FROM tab0
----
4176
4656
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( col2 - - col0 * col2 ) AND ( + ( 69 ) )
----

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( col2 - - col0 * col2 ) AND ( + ( 69 ) )
----

query I rowsort
SELECT col0 * - 33 FROM tab1
----
-1683
-2805
-3003

query I rowsort
SELECT ALL + 93 + - col0 FROM tab1
----
2
42
8

query I rowsort
SELECT DISTINCT col1 * 37 AS col0 FROM tab1
----
1739
185
518

query I rowsort
SELECT DISTINCT col2 * 12 AS col0 FROM tab1
----
1152
708
816

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT 7 * - MIN( 84 ) AS col0 FROM tab1
----
-588

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT 7 * - MIN ( 84 ) AS col0 FROM tab1
----
-588

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 80 + - 49
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 58 FROM tab2 WHERE NULL > col1 + + 84 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT 50 * ( - 50 ) - + COUNT( * ) FROM tab1
----
-2503

skipif mysql # not compatible
query I rowsort label-4557
SELECT 50 * ( - 50 ) - + COUNT ( * ) FROM tab1
----
-2503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT - col0 + col0 IN ( 89 )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 83 > ( col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 55 + - 40 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT + COUNT( * ) + - 35 * 48 AS col1 FROM tab0
----
-1677

skipif mysql # not compatible
query I rowsort label-4562
SELECT + COUNT ( * ) + - 35 * 48 AS col1 FROM tab0
----
-1677

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT DISTINCT + 50 DIV - 5 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + 50 / - 5 FROM tab1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL - col2 DIV - 6 FROM tab1
----
11
16
9

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - col2 / - 6 FROM tab1
----
11
16
9

query I rowsort
SELECT ALL + 53 + - col1 * + 35 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-122
-1592
-437

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4567
SELECT * FROM tab2 WHERE NOT ( col1 + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4567
SELECT * FROM tab2 WHERE NOT ( col1 + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4568
SELECT + 94 DIV + COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4568
SELECT + 94 / + COUNT ( * ) FROM tab0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT DISTINCT 55 + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT 55 + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( ( col2 ) + 86 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT + 84 DIV COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4571
SELECT + 84 / COUNT ( * ) FROM tab0
----
28

query I rowsort
SELECT DISTINCT + 98 + - ( col0 ) FROM tab0
----
1
11
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT + ( col1 ) DIV + col0 + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + ( col1 ) / + col0 + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT MAX( ALL - 23 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4574
SELECT MAX ( ALL - 23 ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL 16 FROM tab2 WHERE ( ( col0 ) ) BETWEEN ( col0 + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / 45 <> 57
----

query I rowsort
SELECT 56 * - 45 FROM tab2
----
-2520
-2520
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT ALL col1 DIV + col1 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL col1 / + col1 AS col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT 91 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4579
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT 91 IS NULL
----
-9

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT col0 + col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - 33 * COUNT( * ) AS col2 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 33 * COUNT ( * ) AS col2 FROM tab1 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT + + ( MAX( DISTINCT + 87 ) ) AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + + ( MAX ( DISTINCT + 87 ) ) AS col2 FROM tab0 AS cor0
----
87

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 12 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * 9 AS col1 FROM tab0 AS cor0
----
-189
-729
-9

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + MIN( + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + MIN ( + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT + 37 + col0 * col1 AS col2 FROM tab2
----
2383
4965
5062

query III rowsort
SELECT * FROM tab2 WHERE - col1 / 20 = - 83 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + - 67 col1 FROM tab2
----
2279
4861
4958

query I rowsort
SELECT col0 + + 37 + col2 FROM tab1
----
181
184
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + 70 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4592
SELECT + 70 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
67

query I rowsort
SELECT - 74 + + col2 * + 45 FROM tab2 AS cor0
----
1726
2536
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 59 col2 FROM tab0 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - COUNT( * ) * - - 87 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-4595
SELECT - COUNT ( * ) * - - 87 FROM tab0 AS cor0
----
-261

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL >= NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) < 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 26 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # DIV for integer division: 
query II rowsort label-4599
SELECT ALL col0 AS col1, + 4 DIV + col1 + - col1 * col1 FROM tab0
----
15
-6561
87
-441
97
3

skipif mysql # not compatible
query II rowsort label-4599
SELECT ALL col0 AS col1, + 4 / + col1 + - col1 * col1 FROM tab0
----
15
-6561
87
-441
97
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4600
SELECT DISTINCT - 12 * - + col0 * - col2 + + col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT - 12 * - + col0 * - col2 + + col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 80 + - col0 FROM tab2 cor0
----
16
34
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 >= - 74 + - col1 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 75 - col2 FROM tab2 AS cor0
----
17
35
52

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 52 > ( col2 )
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT - + col1 NOT BETWEEN + col2 AND - col2 / col1
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE + col1 / - + col1 > ( col0 )
----

query I rowsort
SELECT + col2 * + ( + col0 ) * - col2 * + 98 + col0 * col0 AS col0 FROM tab0
----
-3247005
-845031
-93158897

query I rowsort
SELECT DISTINCT ( + + ( - col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4611
SELECT - MIN( - col0 ) AS col0, COUNT( * ) AS col2 FROM tab1
----
91
3

skipif mysql # not compatible
query II rowsort label-4611
SELECT - MIN ( - col0 ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
91
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= 47 / - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT SUM( ALL - col1 ) * + 20 * - 68 FROM tab1
----
89760

skipif mysql # not compatible
query I rowsort label-4613
SELECT SUM ( ALL - col1 ) * + 20 * - 68 FROM tab1
----
89760

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab1 WHERE NOT + + 78 BETWEEN ( NULL ) AND col0
----
94

query II rowsort
SELECT DISTINCT ( - + col0 ) AS col0, - 82 + + + ( + col0 ) + 93 * - col1 AS col2 FROM tab0
----
-15
-7600
-87
-1948
-97
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col1 ) IS NOT NULL
----

query I rowsort
SELECT + 57 * + - ( + + 6 ) AS col2 FROM tab1
----
-342
-342
-342

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4618
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + + col2 AS SIGNED ) * + - col1 * 50 IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4618
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) * + - col1 * 50 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT + MIN( - 2 ) FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + MIN ( - 2 ) FROM tab2 cor0
----
-2

query II rowsort
SELECT DISTINCT - ( - col0 ), + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 16 * - col0 col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND ( + + ( + + col2 ) / col0 )
----

query I rowsort
SELECT - 42 FROM tab1 WHERE NOT + 56 > + 1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 57, 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL 82 + + COUNT( DISTINCT col2 ) + + MAX( - col1 ) * + - COUNT( * ) FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL 82 + + COUNT ( DISTINCT col2 ) + + MAX ( - col1 ) * + - COUNT ( * ) FROM tab2
----
238

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - COUNT( * ) * - SUM( + - 38 ) FROM tab2
----
-342

skipif mysql # not compatible
query I rowsort label-4627
SELECT - COUNT ( * ) * - SUM ( + - 38 ) FROM tab2
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - MAX( ALL + + 60 ) FROM tab2, tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4628
SELECT - MAX ( ALL + + 60 ) FROM tab2, tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4629
SELECT MIN( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT MIN ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 98 + ( + - col0 ) FROM tab0
----
-113
-185
-195

query III rowsort
SELECT * FROM tab1 WHERE 24 + + 52 * - - col0 + - col0 NOT IN ( + col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL SUM( ALL + 64 ) + + + COUNT( * ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL SUM ( ALL + 64 ) + + + COUNT ( * ) AS col1 FROM tab2
----
195

query I rowsort
SELECT DISTINCT + col0 + - 65 - - col1 FROM tab1 AS cor0
----
0
25
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - 31 col1 FROM tab2 AS cor0
----
108
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT - COUNT( * ) * 72 AS col0 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT - COUNT ( * ) * 72 AS col0 FROM tab1 AS cor0
----
-216

query III rowsort
SELECT * FROM tab1 WHERE - col0 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 28 * + ( col1 ) FROM tab0
----
2268
28
588

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT DISTINCT + col0 DIV + 94 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT + col0 / + 94 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 93 * + + col2 + + col2 col2 FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT - - 30 / + 70 + - col1 + + col1 / col2 + 46 / 91 AS col2 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4641
SELECT + + SUM( - - 39 ) AS col0, - 59 FROM tab0 cor0
----
117
-59

skipif mysql # not compatible
query II rowsort label-4641
SELECT + + SUM ( - - 39 ) AS col0, - 59 FROM tab0 cor0
----
117
-59

query I rowsort
SELECT DISTINCT - - ( - - 82 ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL - 3 * + COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - 3 * + COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4644
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT DISTINCT 96, COUNT( * ) AS col2 FROM tab2
----
96
3

skipif mysql # not compatible
query II rowsort label-4645
SELECT DISTINCT 96, COUNT ( * ) AS col2 FROM tab2
----
96
3

query II rowsort
SELECT ALL col1 AS col2, col2 * + col0 FROM tab0
----
1
9603
21
870
81
705

query II rowsort
SELECT ALL 86 AS col2, - col0 * - - col2 FROM tab1
----
86
-4896
86
-5015
86
-6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, 63 * - col1 col0 FROM tab2 AS cor0
----
-23
-3213
-40
-4851
-58
-4221

query I rowsort
SELECT DISTINCT + ( ( + + col0 ) ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL + COUNT( * ) - - 69 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + COUNT ( * ) - - 69 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
78

query I rowsort
SELECT DISTINCT - 94 FROM tab0, tab2 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 15 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 cor0 WHERE 77 - - + ( - col0 ) BETWEEN NULL AND ( - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT - 85 DIV - 50 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4656
SELECT - 85 / - 50 AS col2 FROM tab1 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 66 + 82 IN ( + col1 + - col1, + 99, 36 * + col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 88 * + 14 FROM tab0 cor0
----
-1232
-1232
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT + - COUNT( DISTINCT - 35 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + - COUNT ( DISTINCT - 35 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 15 * - + col0 <> NULL
----

query I rowsort
SELECT col1 * + col1 - - col2 AS col1 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT SUM( ALL + 51 ) AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4662
SELECT SUM ( ALL + 51 ) AS col1 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + + COUNT( DISTINCT - 55 ) * + 40 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4663
SELECT + + COUNT ( DISTINCT - 55 ) * + 40 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - 73 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 73 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-219

query I rowsort
SELECT - col1 * - - 7 FROM tab0 AS cor0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT COUNT( * ) + ( 72 ) + + - 84 * + - MAX( - 15 ) AS col0 FROM tab1
----
-1185

skipif mysql # not compatible
query I rowsort label-4666
SELECT COUNT ( * ) + ( 72 ) + + - 84 * + - MAX ( - 15 ) AS col0 FROM tab1
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL COUNT( * ) + + 5 AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL COUNT ( * ) + + 5 AS col1 FROM tab2
----
8

query I rowsort
SELECT col1 + + 7 AS col0 FROM tab0
----
28
8
88

query I rowsort
SELECT DISTINCT col2 + + 50 FROM tab1
----
109
118
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 67 * - 70 - - - col0 FROM tab2
----
51
-4736
67
-4765
77
-4754

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) > + col2 * + + 78
----

query I rowsort
SELECT ALL - + 68 FROM tab2 AS cor0 WHERE + col0 + col1 IS NOT NULL
----
-68
-68
-68

query I rowsort
SELECT + - 6 FROM tab2 AS cor0 WHERE col2 * - + 64 + + col2 * - col2 IN ( - + col1, - col0 + - - 97 )
----

query I rowsort
SELECT + col1 - col0 + col1 * - col2 * - col0 AS col0 FROM tab0
----
18204
57171
9507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 - - col0 col2, - col1 FROM tab1
----
-11
-5
-45
-14
-5
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 28 <= NULL
----

query II rowsort
SELECT DISTINCT col1, ( - 15 ) FROM tab2
----
51
-15
67
-15
77
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + MIN( + col2 ) * + - 12 AS col2 FROM tab1
----
-708

skipif mysql # not compatible
query I rowsort label-4679
SELECT + MIN ( + col2 ) * + - 12 AS col2 FROM tab1
----
-708

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 81 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col1 FROM tab1 cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2, 59 col1 FROM tab0 AS cor0
----
-10
59
-47
59
-99
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT DISTINCT CAST( + 15 AS SIGNED ) col1 FROM tab1 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4685
SELECT DISTINCT CAST ( + 15 AS INTEGER ) col1 FROM tab1 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * + 15 FROM tab0
----
1485
150
705

query II rowsort
SELECT 16 * - - col1 AS col0, 5 + 11 FROM tab2
----
1072
16
1232
16
816
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT MIN( DISTINCT col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT MIN( ALL - 50 ) * + 78 + + 94 + 71 FROM tab0
----
-3735

skipif mysql # not compatible
query I rowsort label-4691
SELECT MIN ( ALL - 50 ) * + 78 + + 94 + 71 FROM tab0
----
-3735

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * 91 * + - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - + 73 FROM tab2 AS cor0
----
-1679
-2920
-4234

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 15 * - col1 + - - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL - - COUNT( col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - - COUNT ( col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + 36 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + ( ( + 59 ) ) FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query II rowsort
SELECT ALL col0, - 5 + + ( - col0 ) AS col2 FROM tab2
----
46
-51
64
-69
75
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL COUNT( * ) + + - 97 AS col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL COUNT ( * ) + + - 97 AS col1 FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT + - COUNT( * ) + MAX( col0 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + - COUNT ( * ) + MAX ( col0 ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL 67 * - + 39 + + + 78 FROM tab1 AS cor0
----
-2535
-2535
-2535

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 * - + 91 IN ( col0, - 36 )
----

query I rowsort
SELECT ALL - + 39 AS col0 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT - col0 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT - - col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT col2 * 43 AS col2, + col1 + - col1 FROM tab0
----
2021
0
4257
0
430
0

query I rowsort
SELECT 47 FROM tab1 WHERE NULL IS NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT - SUM( ALL + 19 ) AS col2 FROM tab0 WHERE + 7 / col0 + + col1 + - - col1 > + + col2
----
-38

skipif mysql # not compatible
query I rowsort label-4711
SELECT - SUM ( ALL + 19 ) AS col2 FROM tab0 WHERE + 7 / col0 + + col1 + - - col1 > + + col2
----
-38

query III rowsort
SELECT * FROM tab1 WHERE col2 + + col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 12 * col0 * - col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
5100
51324
8568

query I rowsort
SELECT - col0 + col2 + col2 AS col2 FROM tab2 AS cor0
----
0
16
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4715
SELECT + col1 * - - col2 + + CAST( 22 AS SIGNED ) AS col1, + col2 FROM tab0 AS cor0
----
121
99
232
10
3829
47

skipif mysql # not compatible
query II rowsort label-4715
SELECT + col1 * - - col2 + + CAST ( 22 AS INTEGER ) AS col1, + col2 FROM tab0 AS cor0
----
121
99
232
10
3829
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < + 5
----

query I rowsort
SELECT DISTINCT 8 - - 33 * + col2 FROM tab0
----
1559
3275
338

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT DISTINCT col2 DIV + - col0 - - 80 + - - 19 AS col0 FROM tab0 cor0
----
96
98
99

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT col2 / + - col0 - - 80 + - - 19 AS col0 FROM tab0 cor0
----
96
98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL 26 * + COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL 26 * + COUNT ( * ) FROM tab1 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT ALL - 34 DIV + 66 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - 34 / + 66 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - 65 * col0 * + col0 )
----

query I rowsort
SELECT DISTINCT - ( 55 ) * - col2 AS col1 FROM tab0
----
2585
5445
550

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( - col2 ) * col1 * - col0 ) >= + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 83 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT - MAX( 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-4727
SELECT - MAX ( 52 ) FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT - - AVG ( - - 0 ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT - - AVG ( - - 0 ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT - MIN( ALL col2 ) * - 19 AS col2 FROM tab1
----
1121

skipif mysql # not compatible
query I rowsort label-4729
SELECT - MIN ( ALL col2 ) * - 19 AS col2 FROM tab1
----
1121

query I rowsort
SELECT + - 4 + - - ( + 82 ) FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT 91 + + 70 + + col1 FROM tab2 AS cor0
----
212
228
238

query II rowsort
SELECT ALL + + col0 AS col1, + 95 AS col1 FROM tab0 AS cor0
----
15
95
87
95
97
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT COUNT( * ), + SUM( DISTINCT - - col1 ) AS col2 FROM tab2 cor0
----
3
195

skipif mysql # not compatible
query II rowsort label-4733
SELECT COUNT ( * ), + SUM ( DISTINCT - - col1 ) AS col2 FROM tab2 cor0
----
3
195

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 < + + col1 * col0 + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - 73 ) + + 38 AS col0 FROM tab0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 0 * + 21 + + col1 col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + COUNT( * ) * + + SUM( + col2 ) col1 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4737
SELECT + COUNT ( * ) * + + SUM ( + col2 ) col1 FROM tab0 AS cor0
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT - 54 - - - CAST( col0 AS SIGNED ) + 83 AS col1 FROM tab2 cor0
----
-17
-35
-46

skipif mysql # not compatible
query I rowsort label-4738
SELECT - 54 - - - CAST ( col0 AS INTEGER ) + 83 AS col1 FROM tab2 cor0
----
-17
-35
-46

query I rowsort
SELECT - - col0 / col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 79 AND - ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT ( + - CAST( - 42 AS SIGNED ) ) + + col2 + ( col2 ) FROM tab0 AS cor0
----
136
240
62

skipif mysql # not compatible
query I rowsort label-4740
SELECT ( + - CAST ( - 42 AS INTEGER ) ) + + col2 + ( col2 ) FROM tab0 AS cor0
----
136
240
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT - COUNT( DISTINCT ( + - 50 ) ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - COUNT ( DISTINCT ( + - 50 ) ) FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - MIN( ALL col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - MIN ( ALL col2 ) FROM tab1 cor0
----
-59

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 88 + - 42 > + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col0 + ( col0 ) AS col0 FROM tab0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT CAST( + col2 AS SIGNED ) col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4745
SELECT CAST ( + col2 AS INTEGER ) col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT + MIN( ALL ( - - 72 ) ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN + + 7 AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT + MIN ( ALL ( - - 72 ) ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN + + 7 AND ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL COUNT( * ) + - MAX( ALL + ( col1 ) ) * 64 FROM tab2
----
-4925

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL COUNT ( * ) + - MAX ( ALL + ( col1 ) ) * 64 FROM tab2
----
-4925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 - + 38 / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 - + 38 / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 61 + - col1 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-20
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - COUNT( * ) - + 82 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4750
SELECT - COUNT ( * ) - + 82 FROM tab2 AS cor0
----
-85

query II rowsort
SELECT ALL col0 * + 66 + - col0 AS col0, + 56 * + col0 + 41 + + - col0 * - col2 FROM tab1 AS cor0
----
3315
7793
5525
9816
5915
11325

query I rowsort
SELECT - 81 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-13
-22
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT COUNT( ALL - col0 ) * - 28 AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4754
SELECT COUNT ( ALL - col0 ) * - 28 AS col2 FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4755
SELECT ALL * FROM tab2 WHERE NOT - - 54 NOT IN ( + col2 / 62, col1, - - col1 * CAST( NULL AS SIGNED ) / col1 + - col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-4755
SELECT ALL * FROM tab2 WHERE NOT - - 54 NOT IN ( + col2 / 62, col1, - - col1 * CAST ( NULL AS INTEGER ) / col1 + - col0 * + col2 )
----

query I rowsort
SELECT DISTINCT - 28 + 26 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4757
SELECT ALL CAST( - 70 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL CAST ( - 70 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + + ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 18 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT ( NOT - 71 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4761
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - + CAST( NULL AS SIGNED ) + - 35 * - col1 + 5 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4761
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - + CAST ( NULL AS INTEGER ) + - 35 * - col1 + 5 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 63 * 64 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - 95 + - COUNT( * ) + - 3 FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - 95 + - COUNT ( * ) + - 3 FROM tab1
----
-101

query I rowsort
SELECT + ( - + 93 ) FROM tab2
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT COUNT( DISTINCT - 9 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4765
SELECT COUNT ( DISTINCT - 9 ) AS col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col1 ) * + col0 NOT IN ( - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT + SUM( ALL + col0 ) + + COUNT( * ) AS col1 FROM tab2 WHERE NOT - - 32 >= 70
----
188

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + SUM ( ALL + col0 ) + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - - 32 >= 70
----
188

query I rowsort
SELECT + 67 + - - col0 FROM tab2 AS cor0
----
113
131
142

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + col0 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 0 AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col1 + + - col2 + + - 46 AS col2 FROM tab2 AS cor0
----
1104
2994
3782

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE + 91 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL col1 + - col1 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT ALL + COUNT( * ) - COUNT( * ) AS col1, 32 AS col0 FROM tab1 AS cor0
----
0
32

skipif mysql # not compatible
query II rowsort label-4775
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col1, 32 AS col0 FROM tab1 AS cor0
----
0
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + + 56 col2 FROM tab0 AS cor0
----
-35
-55
25

query II rowsort
SELECT + 42, 87 + 97 + 14 AS col2 FROM tab2 AS cor0
----
42
198
42
198
42
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT - MIN( - - ( 36 ) ) - 80 AS col2 FROM tab2
----
-116

skipif mysql # not compatible
query I rowsort label-4778
SELECT - MIN ( - - ( 36 ) ) - 80 AS col2 FROM tab2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + SUM( DISTINCT + col0 ) - 42 AS col0 FROM tab0
----
157

skipif mysql # not compatible
query I rowsort label-4779
SELECT + SUM ( DISTINCT + col0 ) - 42 AS col0 FROM tab0
----
157

query I rowsort
SELECT ALL 43 * + + 9 * + col1 AS col0 FROM tab2
----
19737
25929
29799

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 + - - col0 AS col1 FROM tab1 WHERE NULL <= NULL AND 68 NOT IN ( + col2, 62, + 36 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col2 * - ( + 38 ) - + col1 - + + col2, - col0, col2 * - col2 )
----

query I rowsort
SELECT + col2 * + - 25 AS col1 FROM tab0 AS cor0
----
-1175
-2475
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) AS col2, 69 col0 FROM tab2 cor0
----
46
69
64
69
75
69

query I rowsort
SELECT - - 81 AS col2 FROM tab0 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + SUM( ALL + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4786
SELECT + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT + + MAX( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + + MAX ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + + ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + ( + - 17 ) AS col1 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4790
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) < ( NULL )
----
0

query I rowsort
SELECT + AVG ( ALL + + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * + col2 NOT BETWEEN NULL AND ( + col1 * 46 + col2 / - 84 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT CAST( NULL AS SIGNED ) - - 51 * + - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT CAST ( NULL AS INTEGER ) - - 51 * + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * col0 + + - 32 FROM tab2
----
2084
4064
5593

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + COUNT( * ) + + 24 - + 55 * + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-4794
SELECT + COUNT ( * ) + + 24 - + 55 * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-468

query I rowsort
SELECT + col0 * col1 + - col1 + + col0 * ( - 77 ) FROM tab0 AS cor0
----
-21
-4893
-7373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4796
SELECT DISTINCT 64 DIV 4 * + COUNT( ALL - ( col0 ) ) + - 73 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT 64 / 4 * + COUNT ( ALL - ( col0 ) ) + - 73 FROM tab0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT col0 * - - 71 - - col1 DIV - + 41 AS col1 FROM tab1
----
3621
6035
6460

skipif mysql # not compatible
query I rowsort label-4797
SELECT col0 * - - 71 - - col1 / - + 41 AS col1 FROM tab1
----
3621
6035
6460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT ALL + CAST( + + 9 AS SIGNED ) + + 11 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4798
SELECT ALL + CAST ( + + 9 AS INTEGER ) + + 11 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL + + col2 * - 59 + col2 + col2 + - + CAST( NULL AS SIGNED ) * ( + col1 ) * + 15 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL + + col2 * - 59 + col2 + col2 + - + CAST ( NULL AS INTEGER ) * ( + col1 ) * + 15 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - - col0 + 97 + - col1 AS col1 FROM tab0 AS cor0
----
1231
1903
193

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 >= ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - ( 90 ) + - ( - col0 ) * col2 AS col1 FROM tab2 AS cor0
----
11100
5198
8320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4803
SELECT ( COUNT( * ) ) DIV - 36 * + COUNT( * ) * + COUNT( * ) + - + ( - ( + + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4803
SELECT ( COUNT ( * ) ) / - 36 * + COUNT ( * ) * + COUNT ( * ) + - + ( - ( + + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + 32 + col2 FROM tab2 cor0
----
-9
26
8

query I rowsort
SELECT ALL + col1 - + 47 FROM tab1 AS cor0
----
-33
-42
0

query I rowsort
SELECT + col0 + + col0 + - - col1 AS col0 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL COUNT( + 36 ) FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND 75
----
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL COUNT ( + 36 ) FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND 75
----
0

query I rowsort
SELECT ALL col0 * - 64 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4809
SELECT DISTINCT - 32 DIV - COUNT( * ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - 32 / - COUNT ( * ) AS col0 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT ALL ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4810
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT 92 DIV + col2 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT 92 / + col2 FROM tab0
----
0
1
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL col0 DIV 88 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL col0 / 88 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT - col2 * - - ( col2 ) AS col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - COUNT( * ) * ( + + 75 ) AS col0 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-4814
SELECT - COUNT ( * ) * ( + + 75 ) AS col0 FROM tab0
----
-225

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 49 / col1 + col0 ) >= NULL
----

query I rowsort
SELECT ALL - 87 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * + - 94 FROM tab2 cor0
----
-4794
-6298
-7238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * col2 * col2 col2 FROM tab0
----
-107811
-1100
-24299

query I rowsort
SELECT ALL 1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - col0 * - ( col1 ) AS col0 FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col2 FROM tab1 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 59 * col1 col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT + COUNT( * ) - + MAX( - 11 ) + 7 FROM tab1 AS cor0 WHERE NOT - 47 NOT IN ( + col1 + - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT + COUNT ( * ) - + MAX ( - 11 ) + 7 FROM tab1 AS cor0 WHERE NOT - 47 NOT IN ( + col1 + - - col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 cor0 WHERE NOT + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4825
SELECT - 73 DIV - col1, + col1 AS col1 FROM tab2 AS cor0
----
0
77
1
51
1
67

skipif mysql # not compatible
query II rowsort label-4825
SELECT - 73 / - col1, + col1 AS col1 FROM tab2 AS cor0
----
0
77
1
51
1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + COUNT( DISTINCT 15 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4826
SELECT + COUNT ( DISTINCT 15 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 * + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 * + + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT MIN( ALL + - col2 ) AS col1, COUNT( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-58
3

skipif mysql # not compatible
query II rowsort label-4829
SELECT MIN ( ALL + - col2 ) AS col1, COUNT ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-58
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT - + MIN( DISTINCT col0 ) AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT - + MIN ( DISTINCT col0 ) AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query II rowsort
SELECT 83 AS col0, - col2 * col2 * + col2 AS col1 FROM tab2
----
83
-12167
83
-195112
83
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT COUNT( * ) + - 1 AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT COUNT ( * ) + - 1 AS col1 FROM tab2
----
2

query I rowsort
SELECT ALL - 43 + + - col2 FROM tab0 AS cor0
----
-142
-53
-90

query I rowsort
SELECT ALL - 4 * + - col2 AS col1 FROM tab0 cor0
----
188
396
40

query I rowsort
SELECT ( - + 41 ) + - col2 AS col2 FROM tab0 AS cor0
----
-140
-51
-88

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 34
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 BETWEEN - col0 AND col1 / + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + col1 ) + + 29 * 56 + col1 AS col1 FROM tab2
----
1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT ALL - + 9 * + 32 * - - col2 - - CAST( - + 32 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-13568
-28544
-2912

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - + 9 * + 32 * - - col2 - - CAST ( - + 32 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-13568
-28544
-2912

query I rowsort
SELECT ALL ( col2 ) + + - 86 FROM tab0 AS cor0
----
-39
-76
13

query I rowsort
SELECT + + col2 - ( - - col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT DISTINCT col2 * - ( - 21 ) - + 45 DIV col1 FROM tab2 AS cor0
----
1218
483
840

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT col2 * - ( - 21 ) - + 45 / col1 FROM tab2 AS cor0
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 48 + ( - + 92 ) * + 23 * + 63 * - col0 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 48 + ( - + 92 ) * + 23 * + 63 * - col0 <= ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT - CAST( - AVG ( ALL + 30 ) AS SIGNED ) - - + SUM( 9 ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4844
SELECT - CAST ( - AVG ( ALL + 30 ) AS INTEGER ) - - + SUM ( 9 ) AS col1 FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT ALL - 15 / col2 * - CAST( NULL AS SIGNED ) + + col1 - - 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL - 15 / col2 * - CAST ( NULL AS INTEGER ) + + col1 - - 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT - 72 * + - COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - 72 * + - COUNT ( * ) FROM tab0
----
216

query I rowsort
SELECT ALL - - 77 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
77
77
77

query II rowsort
SELECT DISTINCT col1 AS col0, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL - 0 * - COUNT( * ) + 62 AS col0 FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - 0 * - COUNT ( * ) + 62 AS col0 FROM tab1 cor0
----
62

query II rowsort
SELECT col0, - col1 * 98 FROM tab1 AS cor0
----
51
-1372
85
-490
91
-4606

onlyif mysql # aggregate syntax: 
query II rowsort label-4851
SELECT DISTINCT 51 AS col2, - 78 * COUNT( * ) FROM tab0
----
51
-234

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT 51 AS col2, - 78 * COUNT ( * ) FROM tab0
----
51
-234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT DISTINCT - col2, CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-4852
SELECT DISTINCT - col2, CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT DISTINCT - 66 + + - col1 FROM tab2
----
-117
-133
-143

query I rowsort
SELECT - ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + + 16 * + 80 AS col0 FROM tab2 AS cor0
----
1280
1280
1280

query I rowsort
SELECT col2 * col1 * + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT 20 DIV - + 97 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT 20 / - + 97 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT col0 AS col1, - col2, - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to dbdbb0d6a4a378552ce7526f2e458a42

query I rowsort
SELECT + 87 FROM tab1 AS cor0 WHERE - 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT MIN( - 73 ) FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT MIN ( - 73 ) FROM tab0 cor0
----
-73

query III rowsort
SELECT * FROM tab1 WHERE + 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4862
SELECT COUNT( * ) + 57 AS col1, - MIN( - ( 62 ) ) AS col0 FROM tab0
----
60
62

skipif mysql # not compatible
query II rowsort label-4862
SELECT COUNT ( * ) + 57 AS col1, - MIN ( - ( 62 ) ) AS col0 FROM tab0
----
60
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT DISTINCT col0 + col0 DIV - col2 AS col2 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT col0 + col0 / - col2 AS col2 FROM tab2
----
44
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT col2 + - + col0 / + col2 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4864
SELECT col2 + - + col0 / + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 43 + - + col2 AS col1 FROM tab2
----
-101
-66
-83

query I rowsort
SELECT ALL - + 62 FROM tab2 WHERE NULL < - 31
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - col1 + + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 * - + 14 + - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4869
SELECT col0 DIV + - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4869
SELECT col0 / + - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT + - SUM( DISTINCT - + col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + - SUM ( DISTINCT - + col2 ) AS col1 FROM tab0 cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - - 84 ), 22 col2 FROM tab1 AS cor0
----
84
22
84
22
84
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT + ( + 20 ) + MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT + ( + 20 ) + MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-55

query I rowsort
SELECT DISTINCT + ( - + 38 ) - col2 FROM tab2 AS cor0
----
-61
-78
-96

query I rowsort
SELECT 64 + - col1 FROM tab1 AS cor0
----
17
50
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT - COUNT( * ), + 62 AS col2 FROM tab0 AS cor0
----
-3
62

skipif mysql # not compatible
query II rowsort label-4876
SELECT - COUNT ( * ), + 62 AS col2 FROM tab0 AS cor0
----
-3
62

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

query I rowsort
SELECT 19 * + 59 + + + col1 FROM tab2 AS cor0
----
1172
1188
1198

query I rowsort
SELECT - + 69 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + - + col2 IS NULL
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT + COUNT( + 48 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + COUNT ( + 48 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT ( 0 ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) / MIN( ALL col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ( 0 ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / MIN ( ALL col1 ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 31 * + - 46 AS col1, + 46 AS col1 FROM tab2
----
-1426
46

query II rowsort
SELECT col1 * col2, col1 AS col2 FROM tab2
----
1173
51
3080
77
3886
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + - MAX( + - 4 ) col0 FROM tab1 WHERE NOT col1 + + - ( + + col0 ) >= 32
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4884
SELECT + - MAX ( + - 4 ) col0 FROM tab1 WHERE NOT col1 + + - ( + + col0 ) >= 32
----
4

query I rowsort
SELECT + 19 * + 57 FROM tab2
----
1083
1083
1083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * col1 col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL 99 * + ( + + 77 ) AS col1 FROM tab0
----
7623
7623
7623

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT DISTINCT col0 DIV col2 * - col1 FROM tab2 AS cor0
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT col0 / col2 * - col1 FROM tab2 AS cor0
----
-102
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT + - col0 / - col0 + col1 / + + 39 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT + - col0 / - col0 + col1 / + + 39 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL COUNT( + ( col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL COUNT ( + ( col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4891
SELECT ALL - + col1 DIV - 86 * + ( col1 ), + col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-4891
SELECT ALL - + col1 / - 86 * + ( col1 ), + col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 8 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 40 ) AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT - col0 + + 94 + + col1 AS col1 FROM tab2
----
107
86
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT CAST( + - CAST( - col2 AS SIGNED ) AS SIGNED ) + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
120
174
69

skipif mysql # not compatible
query I rowsort label-4895
SELECT CAST ( + - CAST ( - col2 AS INTEGER ) AS INTEGER ) + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
120
174
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT DISTINCT col2 DIV + + col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT col2 / + + col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - col1 * col1 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT DISTINCT - 29 DIV col2 FROM tab0 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - 29 / col2 FROM tab0 cor0
----
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT 63 DIV + - SUM( + + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4900
SELECT 63 / + - SUM ( + + col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL MIN( ALL 13 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL MIN ( ALL 13 ) FROM tab0
----
13

query I rowsort
SELECT col2 * - - col0 * + 29 * ( 81 ) AS col0 FROM tab1
----
11500704
11780235
14535612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL col2 AS col1 FROM tab1 WHERE 54 + 9 + - + CAST( NULL AS SIGNED ) * - + col1 / + col2 * + 84 = col0
----

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL col2 AS col1 FROM tab1 WHERE 54 + 9 + - + CAST ( NULL AS INTEGER ) * - + col1 / + col2 * + 84 = col0
----

query I rowsort
SELECT ( col0 ) - + + 95 FROM tab0
----
-8
-80
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL + COUNT( * ) + + COUNT( + - col0 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + COUNT ( * ) + + COUNT ( + - col0 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT ( 52 ) * - COUNT( * ) - - - 13 FROM tab2 cor0
----
-169

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT ( 52 ) * - COUNT ( * ) - - - 13 FROM tab2 cor0
----
-169

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + 83 + COUNT( + - col1 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4909
SELECT + 83 + COUNT ( + - col1 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + ( - MIN( - 4 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + ( - MIN ( - 4 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT - 54 + - col2 + col2 AS col2 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL 58 - 92 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT - col2 + + col1 * + CAST( 24 AS SIGNED ) * - + col2 * + col1 + + col0 * + col2 FROM tab2 AS cor0
----
-1434717
-5689320
-6244396

skipif mysql # not compatible
query I rowsort label-4913
SELECT - col2 + + col1 * + CAST ( 24 AS INTEGER ) * - + col2 * + col1 + + col0 * + col2 FROM tab2 AS cor0
----
-1434717
-5689320
-6244396

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT col1 DIV ( col1 ) * col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4914
SELECT col1 / ( col1 ) * col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL - COUNT( 11 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - COUNT ( 11 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * + 25 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * + 25 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - col1 + + 13 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT 78 * + CAST( + 83 AS SIGNED ) AS col0 FROM tab1
----
6474
6474
6474

skipif mysql # not compatible
query I rowsort label-4918
SELECT 78 * + CAST ( + 83 AS INTEGER ) AS col0 FROM tab1
----
6474
6474
6474

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4919
SELECT ALL * FROM tab1 WHERE NULL <= + CAST( NULL AS DECIMAL ) * - col0 * - col0 + - col2
----

skipif mysql # not compatible
query III rowsort label-4919
SELECT ALL * FROM tab1 WHERE NULL <= + CAST ( NULL AS REAL ) * - col0 * - col0 + - col2
----

query I rowsort
SELECT DISTINCT - col2 * + - col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL - col1 * col2 + + col1 AS col1 FROM tab2 WHERE NOT - 57 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - COUNT( * ) + + 88 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4922
SELECT - COUNT ( * ) + + 88 FROM tab0 AS cor0
----
85

query I rowsort
SELECT - 42 + + 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL - 39 * + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - 39 * + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT + 87 * col1 DIV + col2 FROM tab1 cor0
----
12
60
7

skipif mysql # not compatible
query I rowsort label-4926
SELECT + 87 * col1 / + col2 FROM tab1 cor0
----
12
60
7

query I rowsort
SELECT col2 * + 64 AS col0 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT 83 + + - col0 + + + col0 * col0 * - - ( + - col1 ) FROM tab0 AS cor0
----
-158953
-18157
-9423

query I rowsort
SELECT 19 + - col0 AS col0 FROM tab2 AS cor0
----
-27
-45
-56

query III rowsort
SELECT * FROM tab2 WHERE + col0 < + - 92 + - 30 * - 82 * + + col1 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT DISTINCT + 61 + - - col0 DIV + col0 + col1 * + col1 DIV - col1 AS col0 FROM tab0
----
-19
41
61

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + 61 + - - col0 / + col0 + col1 * + col1 / - col1 AS col0 FROM tab0
----
-19
41
61

query I rowsort
SELECT ALL 15 * col0 AS col0 FROM tab0
----
1305
1455
225

query I rowsort
SELECT + 34 * - - col0 AS col0 FROM tab0
----
2958
3298
510

query I rowsort
SELECT DISTINCT 66 * - 60 * + + 21 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col2 * - + col1 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + + col2 - - col0 * - col2 + - + col1 AS col0 FROM tab1 AS cor0
----
-4814
-4961
-6167

query I rowsort
SELECT ALL 32 - 12 * col0 FROM tab0 cor0
----
-1012
-1132
-148

query II rowsort
SELECT DISTINCT ( 14 ), col1 AS col1 FROM tab1
----
14
14
14
47
14
5

query II rowsort
SELECT col0 AS col2, col1 * ( + 96 ) AS col0 FROM tab1
----
51
1344
85
480
91
4512

query I rowsort
SELECT DISTINCT + + 24 * + ( - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4942
SELECT 4 DIV - COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4942
SELECT 4 / - COUNT ( * ) AS col0 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT ( + + 80 ) DIV + col1 + + 25 AS col0 FROM tab2
----
26
26
26

skipif mysql # not compatible
query I rowsort label-4943
SELECT ( + + 80 ) / + col1 + + 25 AS col0 FROM tab2
----
26
26
26

query I rowsort
SELECT ALL 50 FROM tab2 cor0 WHERE NOT 62 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4945
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - + 29 AS SIGNED ) < + - col1
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-4945
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - + 29 AS INTEGER ) < + - col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL - + MAX( DISTINCT - - col1 ) col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4946
SELECT ALL - + MAX ( DISTINCT - - col1 ) col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4947
SELECT DISTINCT - col2 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-4947
SELECT DISTINCT - col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col2 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4949
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 66 FROM tab2 cor0
----
NULL
66
NULL
66
NULL
66

skipif mysql # not compatible
query II rowsort label-4949
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 66 FROM tab2 cor0
----
NULL
66
NULL
66
NULL
66

query I rowsort
SELECT DISTINCT - 63 FROM tab1 AS cor0 WHERE + 19 IS NULL
----

query II rowsort
SELECT + col1 * - 0 AS col0, - 51 FROM tab2
----
0
-51
0
-51
0
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 < ( + col2 )
----

query II rowsort
SELECT col2 * - col2, col2 * 68 AS col0 FROM tab2
----
-1600
2720
-3364
3944
-529
1564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4954
SELECT - COUNT( * ) DIV - 85 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT - COUNT ( * ) / - 85 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT - MIN( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT - MIN ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 * col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL - SUM( - + 54 ) * - 25 AS col0 FROM tab1
----
-4050

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - SUM ( - + 54 ) * - 25 AS col0 FROM tab1
----
-4050

query II rowsort
SELECT - 78 + col1 - 67 + + col0 * col2 * 69 AS col1, 39 + col1 * + 12 AS col0 FROM tab0
----
48581
1011
59906
291
662463
51

query II rowsort
SELECT ALL + 24 + + - col2 + col0, 84 * - + 97 AS col0 FROM tab2 cor0
----
41
-8148
47
-8148
48
-8148

query I rowsort
SELECT + 48 * + 86 FROM tab0 cor0
----
4128
4128
4128

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT + + col0 DIV - - 71 col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4961
SELECT + + col0 / - - 71 col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + COUNT( * ) * + COUNT( * ) * - - 83 FROM tab1 AS cor0
----
747

skipif mysql # not compatible
query I rowsort label-4962
SELECT + COUNT ( * ) * + COUNT ( * ) * - - 83 FROM tab1 AS cor0
----
747

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT DISTINCT + COUNT( * ) * - - 4, + SUM( - col0 ) AS col0 FROM tab0
----
12
-199

skipif mysql # not compatible
query II rowsort label-4963
SELECT DISTINCT + COUNT ( * ) * - - 4, + SUM ( - col0 ) AS col0 FROM tab0
----
12
-199

query I rowsort
SELECT DISTINCT 97 * + col2 AS col1 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT ALL - col1 + - 57 AS col1 FROM tab1
----
-104
-62
-71

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NULL < + col1
----

query I rowsort
SELECT ALL col1 + - ( - col1 ) + - col1 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT col1 + col2 * + 48 + - + col1 FROM tab0 cor0
----
2256
4752
480

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - col1 * + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4971
SELECT DISTINCT MAX( DISTINCT 55 ) DIV + - COUNT( * ) - 45 FROM tab1, tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT MAX ( DISTINCT 55 ) / + - COUNT ( * ) - 45 FROM tab1, tab1 cor0
----
-51

query I rowsort
SELECT ALL + + 61 FROM tab1 cor0 WHERE 21 * col0 IS NOT NULL
----
61
61
61

query I rowsort
SELECT ( - ( - 12 ) ) AS col1 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - + MIN( ALL - + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 92 - - 7 * + 92 * 90, col0 * 19 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT - + MIN ( ALL - + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 92 - - 7 * + 92 * 90, col0 * 19 * - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT DISTINCT - - col2 DIV col1 + + ( + col2 ) FROM tab0 AS cor0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - - col2 / col1 + + ( + col2 ) FROM tab0 AS cor0
----
10
198
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT - SUM( col1 ) * + + 62 col2 FROM tab0 AS cor0
----
-6386

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4976
SELECT DISTINCT - SUM ( col1 ) * + + 62 col2 FROM tab0 AS cor0
----
-6386

onlyif mysql # DIV for integer division: 
query II rowsort label-4977
SELECT ALL + 7 DIV + + col1 * - + col2 col1, + col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4977
SELECT ALL + 7 / + + col1 * - + col2 col1, + col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - col0 * - col2 / + col1 + + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - col0 * - col2 / + col1 + + col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL - MIN( DISTINCT - - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - MIN ( DISTINCT - - col2 ) FROM tab0
----
-10

query I rowsort
SELECT - 85 * - + col1 * - col0 * 64 + col1 * - + col1 FROM tab2 AS cor0
----
-12764841
-26814249
-27340489

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT ALL MIN( DISTINCT + - 50 ), + 90 AS col2 FROM tab2
----
-50
90

skipif mysql # not compatible
query II rowsort label-4981
SELECT ALL MIN ( DISTINCT + - 50 ), + 90 AS col2 FROM tab2
----
-50
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL - COUNT( * ) + 35 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - COUNT ( * ) + 35 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

query I rowsort
SELECT - - col0 + + - 38 + - col1 * - col1 FROM tab2 AS cor0
----
2609
4526
5955

query I rowsort
SELECT ALL - 57 + - ( 47 ) AS col1 FROM tab1 AS cor0
----
-104
-104
-104

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) >= - 31 * + col0 / - col1 * - col1 + + + col1
----

query I rowsort
SELECT DISTINCT col2 - + ( + col0 ) + col2 AS col1 FROM tab1 AS cor0
----
141
33
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT + col0 + - 4 + - col0 DIV - ( + col0 ) FROM tab1 AS cor0
----
48
82
88

skipif mysql # not compatible
query I rowsort label-4987
SELECT + col0 + - 4 + - col0 / - ( + col0 ) FROM tab1 AS cor0
----
48
82
88

query II rowsort
SELECT ALL ( + - col2 ), col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT 36 - + + col0 + - 8 * + + col0 FROM tab0 AS cor0
----
-747
-837
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 81 ) AS col1 FROM tab0
----
81
81
81

query III rowsort
SELECT * FROM tab0 WHERE - + 14 * ( col1 ) / - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4994
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4994
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - ( + 90 ) AS col1, - 98 FROM tab0 WHERE ( NOT - col1 IS NULL )
----
-90
-98
-90
-98
-90
-98

query I rowsort
SELECT 33 * - + ( col2 ) FROM tab2
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT ( MAX( - 12 ) ) AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT ( MAX ( - 12 ) ) AS col0 FROM tab2
----
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 27 + 9 + + 55 * + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL ( + + COUNT( * ) ) AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL ( + + COUNT ( * ) ) AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT ALL - + 45 DIV + SUM( + 20 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - + 45 / + SUM ( + 20 ) FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + 93 - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 16 / col2 >= col0 - - 9 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + - col1 * - col1 FROM tab0 WHERE ( - col2 + + col2 ) IS NULL
----

query I rowsort
SELECT - 79 * col2 FROM tab2 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT col2 * - 13 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1248
-767
-884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT 96 + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5007
SELECT 96 + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + COUNT( 20 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5008
SELECT + COUNT ( 20 ) col0 FROM tab0
----
3

query I rowsort
SELECT - 49 + col2 AS col1 FROM tab0
----
-2
-39
50

query I rowsort
SELECT - 83 + col1 AS col1 FROM tab1
----
-36
-69
-78

query I rowsort
SELECT + col0 + ( col2 ) AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL col0 * col1 FROM tab0 WHERE NOT ( - col0 ) <> NULL
----

query I rowsort
SELECT ALL + col0 + 39 FROM tab0 WHERE NOT NULL IS NOT NULL
----
126
136
54

query I rowsort
SELECT ALL 71 + AVG ( ALL col1 ) FROM tab0 WHERE NOT + col0 + + col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT DISTINCT - col0 * + col2 + col2 DIV + col1 FROM tab0
----
-705
-870
-9504

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - col0 * + col2 + col2 / + col1 FROM tab0
----
-705
-870
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT 62 - SUM( 90 ) FROM tab1
----
-208

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT 62 - SUM ( 90 ) FROM tab1
----
-208

query I rowsort
SELECT DISTINCT + col0 + - col1 * 25 AS col1 FROM tab2
----
-1229
-1600
-1861

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT MIN( - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5019
SELECT MIN ( - col1 ) AS col1 FROM tab2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT ALL col2 DIV 5 + col1 FROM tab0
----
20
23
90

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL col2 / 5 + col1 FROM tab0
----
20
23
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + 87 * - CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + 87 * - CAST ( NULL AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE 43 / col1 + 71 = + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 51 = ( 45 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 * col0 ) NOT IN ( ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 68 + + ( col1 ) AS col2 FROM tab1
----
115
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT COUNT( ALL - col0 ) AS col0 FROM tab2 WHERE col1 / col0 + 6 NOT BETWEEN - col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT COUNT ( ALL - col0 ) AS col0 FROM tab2 WHERE col1 / col0 + 6 NOT BETWEEN - col1 AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT DISTINCT MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col1 * 90 AS col0 FROM tab0
----
-1890
-7290
-90

query I rowsort
SELECT DISTINCT ( ( 13 ) ) FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 * 12 BETWEEN + 91 * col1 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 * 12 BETWEEN + 91 * col1 AND NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > ( col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE + 84 IS NULL
----

query I rowsort
SELECT + col1 + - 14 AS col0 FROM tab0
----
-13
67
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL 19 + COUNT( * ) AS col0 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL 19 + COUNT ( * ) AS col0 FROM tab2
----
22

query I rowsort
SELECT ALL + col2 - + 20 AS col0 FROM tab2 AS cor0 WHERE 7 >= - col2
----
20
3
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 - 32 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT ALL - 20 DIV 2 + 26 * COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - 20 / 2 + 26 * COUNT ( * ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT - 85 + col2 FROM tab2 AS cor0
----
-27
-45
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 55 / 64 IS NULL
----

query I rowsort
SELECT 86 - col1 FROM tab1 cor0 WHERE + 65 IS NOT NULL
----
39
72
81

query I rowsort
SELECT ALL ( col2 ) - 5 * - col2 AS col2 FROM tab1 AS cor0
----
354
408
576

query I rowsort
SELECT - AVG ( DISTINCT - 69 ) AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE 60 IS NULL
----

query I rowsort
SELECT col2 - - 62 AS col1 FROM tab1 AS cor0
----
121
130
158

query I rowsort
SELECT DISTINCT - 71 + 68 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 20 * 40 IN ( + 13 )
----
-3539
-4627
-5307

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL - + COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - + COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 26 * + col1 - col0 FROM tab1 AS cor0
----
1131
313
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT 31 - COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5051
SELECT 31 - COUNT ( * ) FROM tab0 AS cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT - + col1 DIV + col2 - - col0 * col2 AS col1 FROM tab0 AS cor0
----
704
868
9603

skipif mysql # not compatible
query I rowsort label-5052
SELECT - + col1 / + col2 - - col0 * col2 AS col1 FROM tab0 AS cor0
----
704
868
9603

query I rowsort
SELECT 76 * col2 * 89 - + ( 57 ) AS col1 FROM tab1
----
399019
459895
649287

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT MAX( DISTINCT col0 ) * COUNT( * ) - + 23 FROM tab2
----
202

skipif mysql # not compatible
query I rowsort label-5054
SELECT MAX ( DISTINCT col0 ) * COUNT ( * ) - + 23 FROM tab2
----
202

query I rowsort
SELECT ALL + ( + - col1 ) - col0 AS col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT - col0 * col0 <= + col1 - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT 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-5058
SELECT col2 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 17 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT col1 * + 84 * CAST( col2 AS SIGNED ) FROM tab1
----
112896
24780
268464

skipif mysql # not compatible
query I rowsort label-5060
SELECT col1 * + 84 * CAST ( col2 AS INTEGER ) FROM tab1
----
112896
24780
268464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT SUM( ALL CAST( col0 AS SIGNED ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT SUM ( ALL CAST ( col0 AS INTEGER ) ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( 45 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL col2 * + col2 AS col0 FROM tab2 WHERE NOT col2 + - col0 * - CAST( col1 AS SIGNED ) <> ( + 44 )
----

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL col2 * + col2 AS col0 FROM tab2 WHERE NOT col2 + - col0 * - CAST ( col1 AS INTEGER ) <> ( + 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL + COUNT( * ) col0 FROM tab2 AS cor0 WHERE + col2 * + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5064
SELECT ALL + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE + col2 * + col0 IS NULL
----
0

query I rowsort
SELECT ALL col2 * + + 17 AS col0 FROM tab2 AS cor0
----
391
680
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT - CAST( 29 AS SIGNED ) FROM tab2
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-5066
SELECT - CAST ( 29 AS INTEGER ) FROM tab2
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL - col1 AS col2, 13 FROM tab2
----
-51
13
-67
13
-77
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5069
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5069
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - COUNT( DISTINCT 57 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5070
SELECT - COUNT ( DISTINCT 57 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT ALL - - col0 * - ( + col0 ) * + col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) + - - 9 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) + - - 9 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT col1 - - + col1 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + col0 * - col0 * - 68 FROM tab1 AS cor0
----
176868
491300
563108

query I rowsort
SELECT + col2 * - - col1 - + col0 * - 66 FROM tab2 AS cor0
----
4209
7304
8836

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - + MIN( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5076
SELECT - + MIN ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - ( - 53 ) AS col2 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT + - col0 DIV - 85 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5078
SELECT + - col0 / - 85 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 4 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 * - col2 + - col1 col2 FROM tab1 AS cor0
----
-3132
-3651
-5102

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + COUNT( * ) * ( + 53 ) + COUNT( + col0 ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5082
SELECT + COUNT ( * ) * ( + 53 ) + COUNT ( + col0 ) FROM tab0 AS cor0
----
162

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + ( - col2 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT 91 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT 91 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 39 AS col2 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5086
SELECT ALL * FROM tab0 WHERE + CAST( 21 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5086
SELECT ALL * FROM tab0 WHERE + CAST ( 21 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT DISTINCT col2 / CAST( col1 AS SIGNED ) FROM tab2 WHERE - col0 <> + - col0
----

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT col2 / CAST ( col1 AS INTEGER ) FROM tab2 WHERE - col0 <> + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + SUM( DISTINCT col0 ) col0 FROM tab0 WHERE ( + col0 ) BETWEEN NULL AND ( + col1 * col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5088
SELECT + SUM ( DISTINCT col0 ) col0 FROM tab0 WHERE ( + col0 ) BETWEEN NULL AND ( + col1 * col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT DISTINCT 54 * CAST( NULL AS SIGNED ) * + - 82 + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT 54 * CAST ( NULL AS INTEGER ) * + - 82 + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + 38 FROM tab2 WHERE - col1 BETWEEN NULL AND - + col0 - col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 95 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT ALL CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - 66 + + 32 * + 38 AS col1 FROM tab2 AS cor0
----
1150
1150
1150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 < + + col1
----

query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 55 ) IS NULL
----
100
128
31

query I rowsort
SELECT DISTINCT + - ( + + 67 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

query I rowsort
SELECT ( 55 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - 82 + + col1 FROM tab2
----
-15
-31
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5101
SELECT ALL * FROM tab1 AS cor0 WHERE - + col0 + col0 + col0 IS NOT NULL AND NOT 41 BETWEEN + col0 AND - col1 / CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5101
SELECT ALL * FROM tab1 AS cor0 WHERE - + col0 + col0 + col0 IS NOT NULL AND NOT 41 BETWEEN + col0 AND - col1 / CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT - - AVG ( - 20 ) * + 65 * + - 5 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - - AVG ( - 20 ) * + 65 * + - 5 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL + 87 - - COUNT( * ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + 87 - - COUNT ( * ) FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT + 92 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5104
SELECT + 92 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
92
92
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5105
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( - + col2 AS DECIMAL ) AND col0
----

skipif mysql # not compatible
query III rowsort label-5105
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( - + col2 AS REAL ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 * - + col0 FROM tab0
----
15
-1215
87
-1827
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5107
SELECT ALL * FROM tab1 WHERE NOT ( NOT - CAST( - col2 AS SIGNED ) * - 48 * - 95 NOT IN ( + col0 / - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5107
SELECT ALL * FROM tab1 WHERE NOT ( NOT - CAST ( - col2 AS INTEGER ) * - 48 * - 95 NOT IN ( + col0 / - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT + SUM( ALL + col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5108
SELECT DISTINCT + SUM ( ALL + col2 ) col0 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27, - 26 col2 FROM tab0
----
27
-26
27
-26
27
-26

query II rowsort
SELECT - col0 AS col1, - ( + ( - - 69 ) ) FROM tab1
----
-51
-69
-85
-69
-91
-69

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( 1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + col2 + col2 + col2 * col2 * + col0 * + col0 FROM tab1 cor0
----
23975808
25155299
38297600

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT + MIN( ( + + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + MIN ( ( + + col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) + + + MAX( + - col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + + MAX ( + - col1 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT - - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT MAX( ALL - - col0 ) * - - SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-6006

skipif mysql # not compatible
query I rowsort label-5117
SELECT MAX ( ALL - - col0 ) * - - SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-6006

onlyif mysql # aggregate syntax: 
query II rowsort label-5118
SELECT ALL + 98, - MIN( + col0 ) * 88 + 49 AS col1 FROM tab2
----
98
-3999

skipif mysql # not compatible
query II rowsort label-5118
SELECT ALL + 98, - MIN ( + col0 ) * 88 + 49 AS col1 FROM tab2
----
98
-3999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT CAST( + 63 AS SIGNED ) AS col0 FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-5119
SELECT CAST ( + 63 AS INTEGER ) AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT DISTINCT col2 + - ( col2 ) + - col2 + 33 FROM tab0
----
-14
-66
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 col0, - 16 FROM tab0
----
78
-16
78
-16
78
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5122
SELECT CAST( NULL AS SIGNED ), ( - col2 ) AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-5122
SELECT CAST ( NULL AS INTEGER ), ( - col2 ) AS col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT 90 AS col0, + COUNT( * ) * - 77 AS col1 FROM tab0
----
90
-231

skipif mysql # not compatible
query II rowsort label-5123
SELECT 90 AS col0, + COUNT ( * ) * - 77 AS col1 FROM tab0
----
90
-231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5124
SELECT ALL * FROM tab2 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5124
SELECT ALL * FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5125
SELECT ALL col0 * - - CAST( NULL AS SIGNED ) + - 79, - 37 DIV + col0 AS col1 FROM tab1
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-5125
SELECT ALL col0 * - - CAST ( NULL AS INTEGER ) + - 79, - 37 / + col0 AS col1 FROM tab1
----
NULL
0
NULL
0
NULL
0

query II rowsort
SELECT DISTINCT + - col2, + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-23
-529
-40
-1600
-58
-3364

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - - ( + - col2 ) / - + col0 AND - - col0 AND NOT - 1 <> ( col1 )
----

query I rowsort
SELECT ALL + + 97 * + 28 * - - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-11814600
-2873528
-6952960

query I rowsort
SELECT + 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL NOT IN ( + - 20 )
----

query I rowsort
SELECT ALL - col1 * + 60 - col2 FROM tab2
----
-3083
-4078
-4660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5133
SELECT ALL + + CAST( - - CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL + + CAST ( - - CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5134
SELECT ALL - + AVG ( - CAST( NULL AS SIGNED ) ) AS col0, 69 AS col0 FROM tab0 AS cor0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-5134
SELECT ALL - + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0, 69 AS col0 FROM tab0 AS cor0
----
NULL
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5135
SELECT * FROM tab2 cor0 WHERE + col0 * - col0 / 1 IN ( + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + - ( + + col1 ) * col2 ) OR - 83 * CAST( - col1 * - ( - 4 ) AS SIGNED ) + + col2 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5135
SELECT * FROM tab2 cor0 WHERE + col0 * - col0 / 1 IN ( + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + - ( + + col1 ) * col2 ) OR - 83 * CAST ( - col1 * - ( - 4 ) AS INTEGER ) + + col2 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col2 * + col1, col1 AS col2 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL + MIN( + 40 ) AS col0 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + MIN ( + 40 ) AS col0 FROM tab2
----
40

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 * + col1 / + 14 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 + + 81 AS col1 FROM tab1 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 AS col2, + col2 AS col0 FROM tab2 cor0
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 83 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT MIN( DISTINCT col1 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-5143
SELECT MIN ( DISTINCT col1 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - 80 * COUNT( * ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-5144
SELECT - 80 * COUNT ( * ) FROM tab1 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-5145
SELECT ALL - - COUNT( * ) AS col0, - 39 AS col0 FROM tab0 AS cor0
----
3
-39

skipif mysql # not compatible
query II rowsort label-5145
SELECT ALL - - COUNT ( * ) AS col0, - 39 AS col0 FROM tab0 AS cor0
----
3
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL + - SUM( DISTINCT - + ( - - col1 ) ) FROM tab1 AS cor0 WHERE + col1 - + col2 / col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + - SUM ( DISTINCT - + ( - - col1 ) ) FROM tab1 AS cor0 WHERE + col1 - + col2 / col0 IS NULL
----
NULL

query I rowsort
SELECT + + col0 * + 4 * - 37 * + col1 AS col1 FROM tab2 AS cor0
----
-347208
-729344
-743700

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT - 83 AS col1, 3 - - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-83
6

skipif mysql # not compatible
query II rowsort label-5148
SELECT - 83 AS col1, 3 - - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-83
6

query II rowsort
SELECT ALL - 32 AS col0, col1 * + col0 FROM tab0 AS cor0
----
-32
1215
-32
1827
-32
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT - ( + - col1 ) BETWEEN + 69 * + + col0 - + ( + - col1 ) AND - col0 + - CAST( NULL AS SIGNED )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT - ( + - col1 ) BETWEEN + 69 * + + col0 - + ( + - col1 ) AND - col0 + - CAST ( NULL AS INTEGER )
----
51
67
77

query I rowsort
SELECT - col0 + - - col0 * col0 FROM tab0 AS cor0
----
210
7482
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT MIN( DISTINCT 63 ) + - COUNT( * ) + - + MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5152
SELECT MIN ( DISTINCT 63 ) + - COUNT ( * ) + - + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col1 IS NOT NULL AND NOT ( ( - 6 ) + + + 19 * + 11 - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 45 + - col0 AS col0 FROM tab0 cor0
----
-42
-52
30

query III rowsort
SELECT * FROM tab2 WHERE ( ( + ( - col1 ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * - col1 + - col1 col2 FROM tab1 WHERE col2 + col0 IS NOT NULL
----
-1400
-4700
-500

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE - 64 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab1 WHERE + ( + 48 ) * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT DISTINCT ( + 69 ) * - col1 + 72 DIV + - col0 + + col2 AS col1 FROM tab1
----
-286
-3175
-871

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT ( + 69 ) * - col1 + 72 / + - col0 + + col2 AS col1 FROM tab1
----
-286
-3175
-871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + - col2 col0 FROM tab1
----
-24
-33
-61

query I rowsort
SELECT col0 * - 8 + - 15 AS col0 FROM tab0
----
-135
-711
-791

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL - COUNT( * ) + + COUNT( * ) + - SUM( - col0 ) + + - 42 FROM tab2 WHERE - col1 IS NOT NULL
----
143

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - COUNT ( * ) + + COUNT ( * ) + - SUM ( - col0 ) + + - 42 FROM tab2 WHERE - col1 IS NOT NULL
----
143

query I rowsort
SELECT ALL col2 * + col2 + - - col1 AS col1 FROM tab0
----
121
2290
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5164
SELECT - - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 22 + - + col2 FROM tab2 AS cor0
----
-1
-18
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5166
SELECT SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT ALL - - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL MIN( + ( - ( + - 90 ) ) ) AS col2 FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL MIN ( + ( - ( + - 90 ) ) ) AS col2 FROM tab2 cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * - col0 * + col2 + col1 col0 FROM tab1 AS cor0
----
435758
446340
550779

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT - COUNT( 72 ) * 95 AS col0 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - COUNT ( 72 ) * 95 AS col0 FROM tab0 AS cor0
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT DISTINCT col2 DIV col1 + 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-5171
SELECT DISTINCT col2 / col1 + col2 col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + 82 * - col1 FROM tab0 WHERE NOT 50 IS NOT NULL
----

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT + col0 + + ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * + + col0 col2 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT ALL - MIN( DISTINCT - col0 ) AS col0, COUNT( ALL col0 ) FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-5175
SELECT ALL - MIN ( DISTINCT - col0 ) AS col0, COUNT ( ALL col0 ) FROM tab0
----
97
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT ALL col1 * + - CAST( - - 28 AS SIGNED ) FROM tab1
----
-1316
-140
-392

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL col1 * + - CAST ( - - 28 AS INTEGER ) FROM tab1
----
-1316
-140
-392

query I rowsort
SELECT - 6 * + + 84 FROM tab2
----
-504
-504
-504

query I rowsort
SELECT ALL col2 * + 19 AS col2 FROM tab1
----
1121
1292
1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 2 col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT DISTINCT 69 + - - col1 FROM tab0 AS cor0
----
150
70
90

query I rowsort
SELECT DISTINCT - 70 FROM tab1 WHERE - 83 BETWEEN - col2 AND col2 + + - col1
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5182
SELECT ALL + CAST( NULL AS DECIMAL ) * 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + CAST ( NULL AS REAL ) * 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 / - + col0 + - col1 AS col2 FROM tab0 AS cor0 WHERE - 7 * - + col2 - - + col1 + col2 = - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL - 85 + COUNT( * ) col2 FROM tab1 cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5185
SELECT ALL - 85 + COUNT ( * ) col2 FROM tab1 cor0
----
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 37 NOT BETWEEN + col0 + + - col0 AND - 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 8 + - - col2 ) NOT BETWEEN NULL AND ( 58 + + + col0 + - col1 )
----

query I rowsort
SELECT - col0 * col2 FROM tab0 AS cor0 WHERE - col0 * + 16 <> - - col1
----
-705
-870
-9603

query I rowsort
SELECT + ( + + 3 ) * + 33 FROM tab2 AS cor0
----
99
99
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < col1
----

query I rowsort
SELECT - ( - 22 ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 + - + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 + - + col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL col2 AS col2, + 91 + 12 AS col0 FROM tab1
----
59
103
68
103
96
103

query I rowsort
SELECT - col0 * 57 * - 38 FROM tab1
----
110466
184110
197106

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + ( - col2 ) IS NOT NULL AND NULL IN ( col0 + - 97 - - + 71, - col0 + + col0, + col0, 51 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - 60, - 78 col1 FROM tab2
----
-14
-78
15
-78
4
-78

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE 90 + col1 - + col1 * - 31 >= - - 51
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + - 74 * + 12 col0 FROM tab1 AS cor0
----
-813
-813
-813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT - - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT - - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT ALL + MAX( DISTINCT - 4 ) AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL + MAX ( DISTINCT - 4 ) AS col0 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT ALL + COUNT( * ) AS col1, 37 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
37

skipif mysql # not compatible
query II rowsort label-5201
SELECT ALL + COUNT ( * ) AS col1, 37 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT - - 26 DIV col1 + col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5202
SELECT - - 26 / col1 + col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT + col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + ( + MAX( - 81 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5204
SELECT + ( + MAX ( - 81 ) ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + MIN( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT 50 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5205
SELECT + MIN ( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT 50 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT - 32 * - COUNT( * ) * + + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-864

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - 32 * - COUNT ( * ) * + + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT ALL ( - - col0 ) DIV - 28 AS col1 FROM tab1 cor0
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL ( - - col0 ) / - 28 AS col1 FROM tab1 cor0
----
-1
-3
-3

query I rowsort
SELECT ALL 59 * + 45 * 55 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f8e4164781446083eca748fd7552fc49

query I rowsort
SELECT DISTINCT 81 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 98 * + + 36 + - col1
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 * + col0 + - 42 * col1 FROM tab1
----
-51
4308
-85
4805
-91
4214

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1, tab1 cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT 94 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT 94 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 + + 18 + + + ( + 89 ) FROM tab0 AS cor0
----
-334
-6454
106

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5215
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 41 + + 75 + - - col0 col1, + col2 AS col1 FROM tab0 WHERE ( 6 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - col2 + - 37 AS col1, - 21 AS col1 FROM tab0 AS cor0
----
-27
-21
10
-21
62
-21

query II rowsort
SELECT - 21 + + col2 AS col0, - 3 AS col1 FROM tab1 AS cor0
----
38
-3
47
-3
75
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT + 31 + + col0 * + + CAST( NULL AS SIGNED ) - 56 * - col0 - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT + 31 + + col0 * + + CAST ( NULL AS INTEGER ) - 56 * - col0 - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT + - col1 + - 73 + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5221
SELECT + - col1 + - 73 + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5222
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 * + + col2 + - - ( + CAST( - col0 AS SIGNED ) ) + col1 BETWEEN col0 AND col2 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5222
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 * + + col2 + - - ( + CAST ( - col0 AS INTEGER ) ) + col1 BETWEEN col0 AND col2 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT ( + - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + 84 + + + col1 + - + col2 + + ( 89 ) * col1 AS col0 FROM tab0
----
1964
7327
75

query I rowsort
SELECT ( - + ( + 25 ) ) AS col0 FROM tab2
----
-25
-25
-25

query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( - 8, + ( + + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT col2 DIV 64 DIV + + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5227
SELECT col2 / 64 / + + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5228
SELECT DISTINCT - MAX( ALL - 18 ) DIV + COUNT( * ) - + CAST( - COUNT( * ) AS SIGNED ) * + 21 AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT - MAX ( ALL - 18 ) / + COUNT ( * ) - + CAST ( - COUNT ( * ) AS INTEGER ) * + 21 AS col0 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL 39 - + col0 - + - col0 AS col2 FROM tab0 AS cor0
----
39
39
39

query II rowsort
SELECT ALL 70 AS col2, col1 AS col1 FROM tab2
----
70
51
70
67
70
77

query I rowsort
SELECT ALL + 47 * + col0 FROM tab0
----
4089
4559
705

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + 84
----

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 8 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 / + + 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - 26 ) AS col0 FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT - ( + MAX( 56 ) ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-5236
SELECT - ( + MAX ( 56 ) ) FROM tab1
----
-56

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + + + col0 AS col0 FROM tab2
----
128
150
92

query I rowsort
SELECT 92 * col1 * - 70 FROM tab2
----
-328440
-431480
-495880

query I rowsort
SELECT ALL col0 + col1 * col2 AS col2 FROM tab1 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5241
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT CAST ( NULL AS REAL ) * - + col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 54 * 67 / 22 + + + col2 / + 23 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5243
SELECT ALL - 24 DIV ( + 24 ) * 7 * + - 86 + - col0 * - col2 AS col2, col0 AS col1 FROM tab0
----
10205
97
1307
15
1472
87

skipif mysql # not compatible
query II rowsort label-5243
SELECT ALL - 24 / ( + 24 ) * 7 * + - 86 + - col0 * - col2 AS col2, col0 AS col1 FROM tab0
----
10205
97
1307
15
1472
87

query I rowsort
SELECT + 30 + + - 41 + + col1 * + 68 * col2 AS col2 FROM tab0 AS cor0
----
14269
258865
6721

query II rowsort
SELECT ALL + ( 50 ), col2 AS col1 FROM tab0 AS cor0
----
50
10
50
47
50
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT - SUM( ALL - + col2 ) FROM tab0 AS cor0 WHERE NOT col0 * + 41 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT - SUM ( ALL - + col2 ) FROM tab0 AS cor0 WHERE NOT col0 * + 41 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - col0 > NULL
----

query I rowsort
SELECT + 65 + + + col0 AS col2 FROM tab0
----
152
162
80

query II rowsort
SELECT DISTINCT + 34 AS col0, col0 * col0 FROM tab1
----
34
2601
34
7225
34
8281

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + - col2, + 49, + col1, + 67 - 8 )
----

query I rowsort
SELECT - col1 + - + 59 FROM tab0 AS cor0 WHERE + 97 IS NULL
----

query II rowsort
SELECT DISTINCT - col1, col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT ALL + 80, + 43 AS col0 FROM tab1 AS cor0
----
80
43
80
43
80
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT DISTINCT + 22 - - 1 DIV col0 AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT + 22 - - 1 / col0 AS col2 FROM tab2 AS cor0
----
22

query II rowsort
SELECT + + 15, - col2 * col1 AS col0 FROM tab1 AS cor0
----
15
-1344
15
-295
15
-3196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 - - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - + - ( - 16 ) col0, + col2 * 93 col1 FROM tab0 cor0
----
-1
4371
71
930
81
9207

query I rowsort
SELECT - col0 - + - 32 FROM tab1 AS cor0
----
-19
-53
-59

query I rowsort
SELECT DISTINCT + col1 - - 16 AS col0 FROM tab1 AS cor0
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT + 38 - COUNT( DISTINCT + col1 ) + COUNT( - col1 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5260
SELECT + 38 - COUNT ( DISTINCT + col1 ) + COUNT ( - col1 ) FROM tab2
----
38

query I rowsort
SELECT + col0 * + 59 - + - 8 FROM tab1
----
3017
5023
5377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - col2, 81 col2 FROM tab2
----
28
81
37
81
9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT + SUM( ALL 45 ) AS col2 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + SUM ( ALL 45 ) AS col2 FROM tab0
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT DISTINCT + 33, COUNT( * ) AS col2 FROM tab1
----
33
3

skipif mysql # not compatible
query II rowsort label-5264
SELECT DISTINCT + 33, COUNT ( * ) AS col2 FROM tab1
----
33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT - MAX( 47 ) col2 FROM tab0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5265
SELECT DISTINCT - MAX ( 47 ) col2 FROM tab0
----
-47

query I rowsort
SELECT + col0 * + - col0 AS col1 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT + col0 AS col2, col2 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 63 + + 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - + COUNT( * ) * - 51 FROM tab1 cor0
----
153

skipif mysql # not compatible
query I rowsort label-5269
SELECT - + COUNT ( * ) * - 51 FROM tab1 cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5270
SELECT - CAST( NULL AS SIGNED ) * + - 31 * 84, 23 AS col0 FROM tab1 AS cor0
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
query II rowsort label-5270
SELECT - CAST ( NULL AS INTEGER ) * + - 31 * 84, 23 AS col0 FROM tab1 AS cor0
----
NULL
23
NULL
23
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT - MIN( ALL - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5271
SELECT - MIN ( ALL - col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT ALL - col1 + - 82 FROM tab1
----
-129
-87
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL + 97 + - COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + 97 + - COUNT ( * ) FROM tab0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5274
SELECT * FROM tab0 WHERE + + 25 / col0 / - col2 + + CAST( - + col1 AS SIGNED ) + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5274
SELECT * FROM tab0 WHERE + + 25 / col0 / - col2 + + CAST ( - + col1 AS INTEGER ) + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - 64 + + + COUNT( 42 ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - 64 + + + COUNT ( 42 ) FROM tab0
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-5276
SELECT col0 + + + col2 + + - 71 DIV + 36 AS col0, col0 col2 FROM tab2
----
103
64
132
75
68
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5276
SELECT col0 + + + col2 + + - 71 / + 36 AS col0, col0 col2 FROM tab2
----
103
64
132
75
68
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT + col1 + CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT + col1 + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT ALL + col0 + - + col0 + CAST( + 75 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL + col0 + - + col0 + CAST ( + 75 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT ALL - 14 + - CAST( - 54 AS SIGNED ) FROM tab0 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - 14 + - CAST ( - 54 AS INTEGER ) FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT + - 67 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN + 49 AND - col0 + - - col1
----

query I rowsort
SELECT - 22 AS col0 FROM tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col2 * + col1 * - col0 - col0 + col2 * col2 + - col1 * - col1 * + + col1 AS col0 FROM tab1 AS cor0
----
28596
399192
80453

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 AS cor0 WHERE ( - col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT - + col2 * - 58 * - col2 FROM tab2 cor0
----
-195112
-30682
-92800

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT 44 * col1 AS col2 FROM tab1
----
2068
220
616

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - MIN( DISTINCT - 45 ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5288
SELECT - MIN ( DISTINCT - 45 ) AS col0 FROM tab1
----
45

query I rowsort
SELECT - col0 * col0 * - + ( - 94 ) AS col2 FROM tab2
----
-198904
-385024
-528750

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT col1 < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 5 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, - ( + col0 ), col1, + col0 )
----

query II rowsort
SELECT DISTINCT ( - 81 ) AS col1, + col0 FROM tab1 cor0
----
-81
51
-81
85
-81
91

query I rowsort
SELECT ALL 69 AS col0 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 + col0 )
----

query I rowsort
SELECT DISTINCT 20 + + col1 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + COUNT( + 27 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5298
SELECT + COUNT ( + 27 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= + - 60
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + 86 * - + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT 16 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5302
SELECT 16 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
19

query I rowsort
SELECT + 61 + - col1 + - - 43 FROM tab2 AS cor0
----
27
37
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5304
SELECT DISTINCT * FROM tab1 WHERE - col2 - - - col0 * + CAST( - 98 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5304
SELECT DISTINCT * FROM tab1 WHERE - col2 - - - col0 * + CAST ( - 98 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col1, - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT ALL - 52 + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - 52 + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT 28 * + CAST( NULL AS SIGNED ) * + col1 + - + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT 28 * + CAST ( NULL AS INTEGER ) * + col1 + - + col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT DISTINCT - CAST( + 75 AS SIGNED ) * + - SUM( DISTINCT + col1 ) col1 FROM tab0 AS cor0 WHERE ( + - 76 / col1 < - - col2 )
----
7725

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5309
SELECT DISTINCT - CAST ( + 75 AS INTEGER ) * + - SUM ( DISTINCT + col1 ) col1 FROM tab0 AS cor0 WHERE ( + - 76 / col1 < - - col2 )
----
7725

query I rowsort
SELECT ALL + 76 - + col2 FROM tab2 AS cor0
----
18
36
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL - COUNT( * ) + - MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - COUNT ( * ) + - MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL + 78 * + ( + col0 ) + + + 15 * col0 FROM tab0 cor0
----
1395
8091
9021

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT + col2 DIV + col1 - - col2 AS col2 FROM tab0 AS cor0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-5313
SELECT + col2 / + col1 - - col2 AS col2 FROM tab0 AS cor0
----
10
198
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 60 + + col1 * - - 28 BETWEEN - col0 + col1 AND col1
----

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT + + col1 - CAST( NULL AS SIGNED ) * + + col2 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5316
SELECT + + col1 - CAST ( NULL AS INTEGER ) * + + col2 col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT COUNT( * ) * - 61 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT COUNT ( * ) * - 61 FROM tab2 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT ( - MIN( DISTINCT - col1 ) ) * 20 + + ( - 12 ) FROM tab1 AS cor0
----
928

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT ( - MIN ( DISTINCT - col1 ) ) * 20 + + ( - 12 ) FROM tab1 AS cor0
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT + - 0 * - COUNT( DISTINCT 13 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + - 0 * - COUNT ( DISTINCT 13 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL + - MAX( - CAST( NULL AS SIGNED ) ) col0 FROM tab0 cor0 WHERE ( NOT + + 49 NOT BETWEEN ( - col2 ) AND col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5320
SELECT ALL + - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 cor0 WHERE ( NOT + + 49 NOT BETWEEN ( - col2 ) AND col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT col2 * - + col0 * ( + CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
102400
24334
252300

skipif mysql # not compatible
query I rowsort label-5321
SELECT col2 * - + col0 * ( + CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT - ( + ( + COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5323
SELECT - ( + ( + COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + ( + MIN( DISTINCT + - col2 ) ) * - 6 FROM tab1
----
576

skipif mysql # not compatible
query I rowsort label-5324
SELECT + ( + MIN ( DISTINCT + - col2 ) ) * - 6 FROM tab1
----
576

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 / + col1 NOT BETWEEN col2 AND 0 / + ( + + col0 ) / 76 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT col2 DIV - col2 + + 4 + - col1 AS col0 FROM tab0 AS cor0
----
-18
-78
2

skipif mysql # not compatible
query I rowsort label-5327
SELECT col2 / - col2 + + 4 + - col1 AS col0 FROM tab0 AS cor0
----
-18
-78
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN + 46 AND 57
----
51
14
96
85
5
59

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT 99 * - - col0 AS col2 FROM tab2
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ALL - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT col2, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT DISTINCT - - 47 DIV ( 32 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - - 47 / ( 32 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + - 11 AS col0 FROM tab1 AS cor0 WHERE NOT 11 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL + - col1 + - 47 + - col2 FROM tab0 AS cor0 WHERE NOT NULL < 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - + 54 ) col0 FROM tab1 AS cor0
----
54

query II rowsort
SELECT ALL col0, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT - col1 + - col2 + - - 69 + col1 AS col1 FROM tab1 AS cor0
----
-27
1
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT col2 + + col1 * col2 DIV + col0 + + + 15 + + ( + col1 ) AS col0 FROM tab0
----
116
396
48

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT col2 + + col1 * col2 / + col0 + + + 15 + + ( + col1 ) AS col0 FROM tab0
----
116
396
48

query I rowsort
SELECT DISTINCT + 55 FROM tab0 WHERE NULL < 93
----

query III rowsort
SELECT * FROM tab0 WHERE - + 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL + 60 - - - MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL + 60 - - - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( * ) * + SUM( DISTINCT - col0 ) - + SUM( DISTINCT - col0 ) FROM tab2
----
-370

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( * ) * + SUM ( DISTINCT - col0 ) - + SUM ( DISTINCT - col0 ) FROM tab2
----
-370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5345
SELECT ALL - CAST( NULL AS SIGNED ), ( + 30 ) AS col0 FROM tab0
----
NULL
30
NULL
30
NULL
30

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL - CAST ( NULL AS INTEGER ), ( + 30 ) AS col0 FROM tab0
----
NULL
30
NULL
30
NULL
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT DISTINCT 64 * + col1 + + - col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT 64 * + col1 + + - col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col2 + - - col2 * 37 FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL + COUNT( ALL + col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5348
SELECT ALL + COUNT ( ALL + col1 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + 23 AS col0 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE col1 = NULL
----

query I rowsort
SELECT DISTINCT + 65 * col0 AS col1 FROM tab1 AS cor0
----
3315
5525
5915

query II rowsort
SELECT ALL + 35 * + col1 * - 4 * - col1 + + col2, col0 FROM tab0 AS cor0
----
239
97
61750
87
918587
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + - col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5354
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-5354
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1
----
3
-3

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab0, tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT - 9 * - SUM( ALL + col0 ) AS col0 FROM tab2
----
1665

skipif mysql # not compatible
query I rowsort label-5357
SELECT - 9 * - SUM ( ALL + col0 ) AS col0 FROM tab2
----
1665

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5358
SELECT * FROM tab0 WHERE NOT ( ( CAST( col1 AS SIGNED ) = NULL ) )
----

skipif mysql # not compatible
query III rowsort label-5358
SELECT * FROM tab0 WHERE NOT ( ( CAST ( col1 AS INTEGER ) = NULL ) )
----

query I rowsort
SELECT ALL - 86 * col2 FROM tab0
----
-4042
-8514
-860

query I rowsort
SELECT DISTINCT - + col0 * - col1 * 82 FROM tab2 AS cor0
----
192372
404096
412050

query I rowsort
SELECT - 76 * - - 97 FROM tab2 AS cor0
----
-7372
-7372
-7372

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + col2 )
----

query I rowsort
SELECT ALL col1 + + - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + COUNT( DISTINCT - 36 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5364
SELECT + COUNT ( DISTINCT - 36 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT - - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5365
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT - - col1 IS NULL
----
3

query II rowsort
SELECT + 42 * - + col1, col0 FROM tab1
----
-1974
91
-210
85
-588
51

query I rowsort
SELECT - 9 + - col2 AS col1 FROM tab1
----
-105
-68
-77

query I rowsort
SELECT ( col2 ) + - 68 AS col0 FROM tab0
----
-21
-58
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT - col0 / - 3 + - col1 * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - col0 / - 3 + - col1 * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5370
SELECT DISTINCT - 7 DIV - col2, col0 AS col2 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-5370
SELECT DISTINCT - 7 / - col2, col0 AS col2 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT - 17 + + col2 FROM tab1 cor0
----
42
51
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5372
SELECT ALL + - MAX( DISTINCT - - col1 ) * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + - MAX ( DISTINCT - - col1 ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( 27 ) IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 col1 FROM tab0 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT COUNT( * ) * + + 30 AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5375
SELECT COUNT ( * ) * + + 30 AS col1 FROM tab2 AS cor0
----
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) * - col2 + - col1 AS col1 FROM tab2
----
-1677
-3431
-580

query II rowsort
SELECT col2 AS col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5379
SELECT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5380
SELECT - col2 DIV - 74 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5380
SELECT - col2 / - 74 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab1 WHERE - col0 IN ( 29 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT ALL - col2 DIV col2 + col0 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - col2 / col2 + col0 FROM tab1
----
50
84
90

query I rowsort
SELECT 7 * - - col1 AS col1 FROM tab1
----
329
35
98

query III rowsort
SELECT * FROM tab2 WHERE - ( col1 ) NOT BETWEEN ( + 73 ) AND 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT SUM( DISTINCT + col2 ) - - 71 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-5385
SELECT SUM ( DISTINCT + col2 ) - - 71 FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT 66 - - COUNT( * ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT 66 - - COUNT ( * ) AS col2 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - MAX( + 51 ) - COUNT( * ) FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - MAX ( + 51 ) - COUNT ( * ) FROM tab0 cor0
----
-54

query I rowsort
SELECT 29 + col2 AS col0 FROM tab1 AS cor0
----
125
88
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + 61 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + 61 IS NULL
----
-1
-21
-81

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5391
SELECT DISTINCT - - 34 * + + CAST( + + COUNT( * ) AS SIGNED ) col2 FROM tab2 cor0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5391
SELECT DISTINCT - - 34 * + + CAST ( + + COUNT ( * ) AS INTEGER ) col2 FROM tab2 cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + + MAX( DISTINCT - 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5392
SELECT + + MAX ( DISTINCT - 97 ) FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT MIN( - col2 ) * ( COUNT( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5393
SELECT MIN ( - col2 ) * ( COUNT ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-174

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + - - 53 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - - 75 >= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT + MIN( DISTINCT - + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + MIN ( DISTINCT - + col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT NULL <> - 12
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT 6 DIV - CAST( 16 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT 6 / - CAST ( 16 AS INTEGER ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 84 ) * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT - ( + 80 ) DIV 6 FROM tab0 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-5401
SELECT - ( + 80 ) / 6 FROM tab0 AS cor0
----
-13
-13
-13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 < 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 - + - col1 * + 31 * - + col2 * - 87 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - 6
----

query I rowsort
SELECT + 51 * - col1 + - col2 FROM tab1 cor0
----
-2465
-314
-810

query I rowsort
SELECT DISTINCT 25 * - - 95 FROM tab0
----
2375

query I rowsort
SELECT DISTINCT ( - col2 ) + + ( 31 ) AS col1 FROM tab2
----
-27
-9
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT - MIN( - col2 ) + - 41 + + COUNT( * ) * + - COUNT( * ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - MIN ( - col2 ) + - 41 + + COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT COUNT( * ) * + 23 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5408
SELECT COUNT ( * ) * + 23 AS col1 FROM tab1
----
69

query I rowsort
SELECT DISTINCT + ( 65 ) - - ( - + col2 ) FROM tab0 AS cor0 WHERE NULL <= col1
----

query I rowsort
SELECT - col2 * + 28 * - + col2 FROM tab0 AS cor0
----
274428
2800
61852

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5411
SELECT * FROM tab0 WHERE NOT CAST( - ( - col0 ) AS SIGNED ) - + + col1 + - + ( - + 79 ) NOT IN ( col2 + - ( + - col2 ) + CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-5411
SELECT * FROM tab0 WHERE NOT CAST ( - ( - col0 ) AS INTEGER ) - + + col1 + - + ( - + 79 ) NOT IN ( col2 + - ( + - col2 ) + CAST ( NULL AS INTEGER ), - col0 )
----

query I rowsort
SELECT + 82 * - + 42 AS col0 FROM tab2 AS cor0
----
-3444
-3444
-3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT DISTINCT ( CAST( + 45 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE 39 * + col1 >= 78
----
45

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT ( CAST ( + 45 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE 39 * + col1 >= 78
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / - + col0 BETWEEN - - col2 + - - col2 + + col2 / col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT - MIN( ALL 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - MIN ( ALL 94 ) FROM tab2
----
-94

query II rowsort
SELECT ALL - col2 * 56, + col1 FROM tab1
----
-3304
5
-3808
47
-5376
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL - COUNT( * ) * + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - 83 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT COUNT( * ) + 74 AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5419
SELECT COUNT ( * ) + 74 AS col2 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT + 80 + + COUNT( * ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + 80 + + COUNT ( * ) FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT + COUNT( * ) + - 85 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-76

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT + COUNT ( * ) + - 85 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT - ( MIN( ALL - + col2 ) ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5422
SELECT - ( MIN ( ALL - + col2 ) ) AS col0 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0 WHERE NOT + 33 <= col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT ALL + 66, COUNT( * ) AS col1 FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-5424
SELECT ALL + 66, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66
3

query I rowsort
SELECT ALL col2 * col2 - - 46 FROM tab1 cor0
----
3527
4670
9262

query I rowsort
SELECT ALL + 43 * + - col0 AS col0 FROM tab0 AS cor0
----
-3741
-4171
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - 74 * - col1 FROM tab2 AS cor0
----
3774
4958
5698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT ALL CAST( NULL AS SIGNED ) + + - 79 * col1 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL CAST ( NULL AS INTEGER ) + + - 79 * col1 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 84 * col1 + + col2 AS col1 FROM tab0
----
1774
183
6851

query III rowsort
SELECT * FROM tab1 WHERE 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT + col1 * 40 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT + col1 * 40 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + + 27 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT ALL CAST( - COUNT( 22 ) AS SIGNED ) + + 58 AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL CAST ( - COUNT ( 22 ) AS INTEGER ) + + 58 AS col1 FROM tab2
----
55

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 >= - col1 / + + 85 + - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 + + col1 col2 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT ALL - col1 - - + col2 + col2 AS col1 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT CAST( - + 79 AS SIGNED ) * - + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1185
6873
7663

skipif mysql # not compatible
query I rowsort label-5438
SELECT CAST ( - + 79 AS INTEGER ) * - + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1185
6873
7663

query I rowsort
SELECT ALL + 88 / + 2 + AVG ( 34 ) + - - 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL + - SUM( ALL + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + - SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND col0
----

query II rowsort
SELECT + col2 AS col2, col0 + - col1 AS col1 FROM tab1 WHERE NOT + - ( col1 ) IS NULL
----
59
80
68
44
96
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT COUNT( ALL - 49 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5443
SELECT COUNT ( ALL - 49 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 83 * 86 AS col0 FROM tab2
----
7138
7138
7138

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT ALL COUNT( * ), - COUNT( * ) AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-5445
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 16 ) col2 FROM tab1
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT COUNT( + 41 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5447
SELECT COUNT ( + 41 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col0 + ( + col2 ) + col0 FROM tab0 AS cor0
----
184
293
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT + col0 DIV col1 + + 85 FROM tab2 AS cor0
----
85
85
86

skipif mysql # not compatible
query I rowsort label-5449
SELECT + col0 / col1 + + 85 FROM tab2 AS cor0
----
85
85
86

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 + - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-204
-924
603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5451
SELECT + col1 DIV + ( col2 * + CAST( col1 AS SIGNED ) ) + col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5451
SELECT + col1 / + ( col2 * + CAST ( col1 AS INTEGER ) ) + col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5452
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT col0 - + CAST( NULL AS SIGNED ) / - 39 AS col1 FROM tab2 WHERE NOT ( - col1 ) BETWEEN ( - ( - 42 ) ) AND ( 26 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT col0 - + CAST ( NULL AS INTEGER ) / - 39 AS col1 FROM tab2 WHERE NOT ( - col1 ) BETWEEN ( - ( - 42 ) ) AND ( 26 )
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE NOT 62 >= ( + col2 )
----
97

query I rowsort
SELECT ALL + 56 - - col0 AS col2 FROM tab1
----
107
141
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 WHERE 61 * col2 <= NULL
----

query I rowsort
SELECT - col0 - - 69 AS col0 FROM tab0
----
-18
-28
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE 74 + 64 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE 74 + 64 IS NULL
----
0

query I rowsort
SELECT DISTINCT ( 50 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( 34 ) + col2 * - 53 AS col0 FROM tab1
----
-3093
-3570
-5054

query III rowsort
SELECT ALL * FROM tab1 WHERE 44 NOT BETWEEN - 25 AND ( - 63 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT - CAST( NULL AS SIGNED ) + ( COUNT( * ) ) / - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) / - COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT IN ( ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 5 col1 FROM tab0
----
26
6
86

query I rowsort
SELECT ( + col0 ) * ( - col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE ( 75 ) NOT IN ( - col1 * + col0 )
----
46
64
75

query I rowsort
SELECT col1 * 80 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - COUNT( * ) * 52 + - 77 FROM tab0
----
-233

skipif mysql # not compatible
query I rowsort label-5468
SELECT - COUNT ( * ) * 52 + - 77 FROM tab0
----
-233

query I rowsort
SELECT 55 + - 19 FROM tab1
----
36
36
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5470
SELECT COUNT( ALL col0 ) + - 83 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT COUNT ( ALL col0 ) + - 83 * CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 / col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 39 + col2 * - 41 AS col2 FROM tab0
----
-1888
-371
-4020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT - 53 + + col1 * col1 col1 FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) * col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5473
SELECT - 53 + + col1 * col1 col1 FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL + COUNT( ALL 89 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + COUNT ( ALL 89 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col0 - col1 * + col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ( COUNT( ALL col0 ) ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5476
SELECT ( COUNT ( ALL col0 ) ) FROM tab1 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL - 68 * + COUNT( * ) AS col1 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL - 68 * + COUNT ( * ) AS col1 FROM tab1
----
-204

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE - col0 < - 13
----
1
21
81

query I rowsort
SELECT ALL 16 FROM tab0 WHERE NULL <= ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT DISTINCT - col1 - col1 DIV + col0 FROM tab0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - col1 - col1 / + col0 FROM tab0
----
-1
-21
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL - MAX( ALL 75 ) * - 51 FROM tab2 AS cor0
----
3825

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - MAX ( ALL 75 ) * - 51 FROM tab2 AS cor0
----
3825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5483
SELECT ALL + COUNT( * ) DIV + 66 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + COUNT ( * ) / + 66 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 * col0 <> NULL
----

query I rowsort
SELECT ALL - 52 * + 32 AS col0 FROM tab0 AS cor0
----
-1664
-1664
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT + ( + COUNT( col1 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5486
SELECT + ( + COUNT ( col1 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5487
SELECT DISTINCT 17 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT 17 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT ALL COUNT( * ) DIV - ( - 80 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL COUNT ( * ) / - ( - 80 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT + col2 * - 32 FROM tab2
----
-1280
-1856
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN + col2 AND 30
----
-1

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN + col2 AND 30
----
-1

query I rowsort
SELECT DISTINCT col1 + col0 * 29 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 95 * - col1 AS col2 FROM tab1 AS cor0
----
-1330
-4465
-475

query I rowsort
SELECT ALL + + 52 * + 2 FROM tab0 AS cor0
----
104
104
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT ALL + 71 * - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + 71 * - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - COUNT( - col1 ) FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COUNT ( - col1 ) FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND + col0 * col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT DISTINCT 22 DIV + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT 22 / + col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5498
SELECT ALL + SUM( DISTINCT - col1 ) DIV 75 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + SUM ( DISTINCT - col1 ) / 75 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab0 AS cor0 WHERE - 98 + col1 NOT IN ( - col0 * - col2 )
----
-18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 24 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5501
SELECT DISTINCT CAST( - col0 AS DECIMAL ) + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT CAST ( - col0 AS REAL ) + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * + col0 col0 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT ALL 35 + - + ( + col1 ) DIV col2 AS col1 FROM tab0
----
33
34
35

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL 35 + - + ( + col1 ) / col2 AS col1 FROM tab0
----
33
34
35

query III rowsort
SELECT * FROM tab0 WHERE 8 + + col2 >= ( + ( col2 ) + - 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 6 * + - col1 + col0 AS col1 FROM tab2
----
-260
-327
-398

query I rowsort
SELECT DISTINCT AVG ( + 65 ) + 16 AS col2 FROM tab2 WHERE NULL NOT IN ( col0 / + 23 - col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5508
SELECT DISTINCT * FROM tab2 WHERE ( 51 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5508
SELECT DISTINCT * FROM tab2 WHERE ( 51 ) IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 * - col0 + - col2 FROM tab2 WHERE 77 * col0 >= - ( col0 )
----
-2139
-4136
-5683

query I rowsort
SELECT ALL - ( + 3 ) AS col1 FROM tab0 cor0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 2 * ( 4 ) AND ( - 78 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT ALL - COUNT( * ) DIV + MAX( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - COUNT ( * ) / + MAX ( - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5513
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 + CAST( NULL AS DECIMAL ) ) < NULL AND - 44 + - 28 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5513
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 + CAST ( NULL AS REAL ) ) < NULL AND - 44 + - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT 38 + MAX( DISTINCT col2 ) * 75 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
7238

skipif mysql # not compatible
query I rowsort label-5514
SELECT 38 + MAX ( DISTINCT col2 ) * 75 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
7238

query I rowsort
SELECT DISTINCT + 17 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
17

query I rowsort
SELECT 43 * - - 33 AS col0 FROM tab1
----
1419
1419
1419

query I rowsort
SELECT ALL + col2 + + 74 FROM tab1
----
133
142
170

query I rowsort
SELECT ALL + 10 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT 75 * ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-675

skipif mysql # not compatible
query I rowsort label-5519
SELECT 75 * ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT ALL - col1 * 32 + - - col0 + 44 DIV - 8 FROM tab2 cor0
----
-1591
-2074
-2405

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - col1 * 32 + - - col0 + 44 / - 8 FROM tab2 cor0
----
-1591
-2074
-2405

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + col2 + - + col1 + 27 FROM tab1 AS cor0
----
139
160
166

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NULL NOT IN ( 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 26 col1 FROM tab0 AS cor0
----
-16
21
73

query I rowsort
SELECT col2 - 93 + + + ( col1 ) AS col0 FROM tab2 AS cor0
----
-19
24
32

query I rowsort
SELECT + + col0 * - 48 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-4176
-4656
-720

query I rowsort
SELECT + - 89 - + col1 AS col2 FROM tab0 cor0
----
-110
-170
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT + - 74 - + 82 - - SUM( 75 ) * COUNT( * ) FROM tab2 AS cor0
----
519

skipif mysql # not compatible
query I rowsort label-5528
SELECT + - 74 - + 82 - - SUM ( 75 ) * COUNT ( * ) FROM tab2 AS cor0
----
519

query I rowsort
SELECT - - col0 - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL MAX( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL MAX ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT 9 - COUNT( col1 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5531
SELECT 9 - COUNT ( col1 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT col0 * + ( - 43 ) - + + col0 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT - MAX( - 61 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - MAX ( - 61 ) FROM tab1
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT COUNT( * ) * - 30 AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( * ) * - 30 AS col2 FROM tab2
----
-90

query I rowsort
SELECT ALL col2 + - 79 AS col0 FROM tab0 WHERE NOT + + col2 NOT IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 <= ( col0 - - col0 )
----

query I rowsort
SELECT col0 * - - 64 AS col1 FROM tab0
----
5568
6208
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT + col1 / - CAST( NULL AS SIGNED ) * col2 * col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5539
SELECT + col1 / - CAST ( NULL AS INTEGER ) * col2 * col1 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( col1 ) >= + col0
----
10
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= ( - 67 * - col2 )
----

query I rowsort
SELECT DISTINCT - 17 + col0 FROM tab2 WHERE NOT ( + 75 ) * - 13 NOT IN ( - 51 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 87 * ( 7 ) <= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col0 >= ( + col2 )
----
14
47
5

query I rowsort
SELECT col2 / 61 FROM tab0 WHERE NOT - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT MAX( - 37 ) AS col2 FROM tab2 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT MAX ( - 37 ) AS col2 FROM tab2 cor0
----
-37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - 49 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5548
SELECT 62 DIV col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5548
SELECT 62 / col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + - 74 * - col1 FROM tab0 AS cor0
----
1554
5994
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col2 FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE NULL IN ( 65 )
----

query I rowsort
SELECT 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 51 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT DISTINCT + 10 DIV - 41 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + 10 / - 41 FROM tab2
----
0

query I rowsort
SELECT ALL + 52 * + 35 AS col0 FROM tab2
----
1820
1820
1820

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT DISTINCT MAX( ALL 56 ) + - 82 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT ( CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT MAX ( ALL 56 ) + - 82 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT ( CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) = ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT ALL + 54 DIV + - col1 AS col1 FROM tab0 AS cor0
----
-2
-54
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + 54 / + - col1 AS col1 FROM tab0 AS cor0
----
-2
-54
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT - - CAST( col0 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-5558
SELECT - - CAST ( col0 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + + SUM( + - 91 ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-5559
SELECT + + SUM ( + - 91 ) FROM tab0 AS cor0
----
-273

query II rowsort
SELECT + col0, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + ( - COUNT( * ) ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT + ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col0 ) * + 57 + - col1 col2, - col0 AS col1 FROM tab1
----
-2921
-51
-4850
-85
-5234
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT COUNT( * ) + + + MAX( DISTINCT 24 ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT COUNT ( * ) + + + MAX ( DISTINCT 24 ) AS col2 FROM tab1
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 + - - col0 FROM tab0
----
-3
-364
-6593

query III rowsort
SELECT * FROM tab0 WHERE - 86 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL + ( + ( + MAX( + col0 ) ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + ( + ( + MAX ( + col0 ) ) ) FROM tab2
----
75

query I rowsort
SELECT ALL - col0 + - 75 AS col1 FROM tab0 WHERE + - 38 >= col1
----

query II rowsort
SELECT + col2 * - col1 AS col0, - ( - 97 ) AS col1 FROM tab1 AS cor0
----
-1344
97
-295
97
-3196
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5570
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE 44 IS NULL
----

query II rowsort
SELECT DISTINCT - + 31 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-31
14
-31
47
-31
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - ( MAX( DISTINCT - col2 ) ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5573
SELECT ALL - ( MAX ( DISTINCT - col2 ) ) col1 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5574
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) - + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) - + - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5575
SELECT - col0 + 82 DIV - col1 AS col1 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-5575
SELECT - col0 + 82 / - col1 AS col1 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT DISTINCT - + 49 * COUNT( DISTINCT + col0 ) * + + 75 AS col1 FROM tab2 AS cor0
----
-11025

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT - + 49 * COUNT ( DISTINCT + col0 ) * + + 75 AS col1 FROM tab2 AS cor0
----
-11025

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE col1 * - col2 + col1 BETWEEN + - col2 AND - 29 + + 14 + + col0 * - col2 * + 52
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT ALL - COUNT( * ), - COUNT( ALL - col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5578
SELECT ALL - COUNT ( * ), - COUNT ( ALL - col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT DISTINCT 58, MAX( DISTINCT + + 5 ) AS col2 FROM tab2
----
58
5

skipif mysql # not compatible
query II rowsort label-5579
SELECT DISTINCT 58, MAX ( DISTINCT + + 5 ) AS col2 FROM tab2
----
58
5

query II rowsort
SELECT DISTINCT col2 AS col0, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5581
SELECT - 92 / CAST( NULL AS DECIMAL ) * + 14 AS col1, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-5581
SELECT - 92 / CAST ( NULL AS REAL ) * + 14 AS col1, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT - CAST( COUNT( DISTINCT col2 ) AS SIGNED ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 52
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT - CAST ( COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 52
----
0

query I rowsort
SELECT 9 * col2 FROM tab1
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT + SUM( 11 ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + SUM ( 11 ) AS col0 FROM tab0
----
33

query I rowsort
SELECT col2 * 62 AS col1 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT ALL - 6, COUNT( * ) col2 FROM tab2
----
-6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5587
SELECT ALL - 6, COUNT ( * ) col2 FROM tab2
----
-6
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - col1 IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 78 * - 4 AS col1 FROM tab2
----
-312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL CAST( col1 AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT col1 * - 83 AS col0 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5592
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 78 + CAST( + 81 AS SIGNED ) / col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5592
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 78 + CAST ( + 81 AS INTEGER ) / col1 IS NULL
----

query I rowsort
SELECT ALL + 82 * - 26 * + + 0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5594
SELECT + COUNT( * ) DIV 38 * + COUNT( * ) FROM tab2, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT + COUNT ( * ) / 38 * + COUNT ( * ) FROM tab2, tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT - 88 DIV + col1 AS col1 FROM tab1 cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-5596
SELECT - 88 / + col1 AS col1 FROM tab1 cor0
----
-1
-17
-6

query II rowsort
SELECT + + 87 * + col0 AS col0, - col1 * + 72 FROM tab2 AS cor0
----
4002
-3672
5568
-5544
6525
-4824

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT ALL - ( + - col2 ) DIV + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - ( + - col2 ) / + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 - - col0 AS col2 FROM tab0 AS cor0 WHERE col0 - - col2 NOT IN ( 95, - col0 + 29 )
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT + + CAST( + col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-5600
SELECT + + CAST ( + col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab1 WHERE col0 * - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT MIN( - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5602
SELECT MIN ( - - col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL + col1 * - 23 FROM tab1
----
-1081
-115
-322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT COUNT( * ) DIV MAX( - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT COUNT ( * ) / MAX ( - col2 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + 91 col1 FROM tab0
----
-6
4
76

query II rowsort
SELECT col1 AS col1, 87 AS col1 FROM tab2
----
51
87
67
87
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT + MAX( DISTINCT + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5607
SELECT + MAX ( DISTINCT + col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 AND + - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) col2 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5609
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) col2 FROM tab0
----
-9

query I rowsort
SELECT ALL - 27 + - + col0 FROM tab2
----
-102
-73
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT + + AVG ( col0 ) * - COUNT( CAST( + + col2 AS SIGNED ) ) FROM tab0 WHERE NULL NOT BETWEEN + - 79 * 76 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT + + AVG ( col0 ) * - COUNT ( CAST ( + + col2 AS INTEGER ) ) FROM tab0 WHERE NULL NOT BETWEEN + - 79 * 76 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5612
SELECT DISTINCT - 77 + - col1 - + 45 AS col0, col2 * - + 74 * CAST( + - col1 AS SIGNED ) FROM tab1
----
-127
21830
-136
99456
-169
236504

skipif mysql # not compatible
query II rowsort label-5612
SELECT DISTINCT - 77 + - col1 - + 45 AS col0, col2 * - + 74 * CAST ( + - col1 AS INTEGER ) FROM tab1
----
-127
21830
-136
99456
-169
236504

query I rowsort
SELECT ALL ( - - col1 ) * + + 15 + - col2 + + + col0 + - 44 * 40 AS col1 FROM tab0
----
-1368
-1747
-577

query I rowsort
SELECT col1 * + - 3 * col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 56 + + + col1 AS col1 FROM tab1 cor0
----
103
61
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 68 NOT IN ( + col1, 40 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL CAST( NULL AS SIGNED ) * + 99 * - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5617
SELECT ALL CAST ( NULL AS INTEGER ) * + 99 * - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 + - col1 AS col2 FROM tab2 AS cor0 WHERE col1 * - - 77 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT + col0 + col0 DIV - 15 AS col1 FROM tab2 cor0
----
43
60
70

skipif mysql # not compatible
query I rowsort label-5619
SELECT + col0 + col0 / - 15 AS col1 FROM tab2 cor0
----
43
60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT SUM( 55 ) + + 21 + - 97 AS col1 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5620
SELECT SUM ( 55 ) + + 21 + - 97 AS col1 FROM tab0 AS cor0
----
89

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - - 20 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT - + COUNT( * ) + - COUNT( - + col1 ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5622
SELECT - + COUNT ( * ) + - COUNT ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT + COUNT( * ) * - - 53 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5623
SELECT + COUNT ( * ) * - - 53 FROM tab0
----
159

query II rowsort
SELECT ALL col1, - 75 FROM tab2 cor0
----
51
-75
67
-75
77
-75

query II rowsort
SELECT - + col0 AS col1, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT 68 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NULL >= col2 * - + col2 * + + col2 * + - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT ALL CAST( + col0 AS SIGNED ) * 90 AS col1 FROM tab1 AS cor0
----
4590
7650
8190

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL CAST ( + col0 AS INTEGER ) * 90 AS col1 FROM tab1 AS cor0
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT - - COUNT( - + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5629
SELECT - - COUNT ( - + col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col0 * - col1 + - 96 + - col0 + col2 AND + - 45 * + col1
----

query I rowsort
SELECT ALL 15 * + col0 AS col2 FROM tab2
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + MIN( ALL + - 19 ) * COUNT( * ) col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT + MIN ( ALL + - 19 ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL + + 86 AS col1 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - - SUM( 43 ) AS col1 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5634
SELECT - - SUM ( 43 ) AS col1 FROM tab2 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL MIN( ALL - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL MIN ( ALL - col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + + COUNT( * ) FROM tab1 WHERE NOT ( - + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5636
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT ( - + col2 ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 21 BETWEEN col0 AND - col1 * + col1 * - - ( + 8 )
----

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT - 57 * - 70 FROM tab2 AS cor0
----
3990
3990
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT - MAX( DISTINCT 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT - MAX ( DISTINCT 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT col0 + + + 97 AS col0 FROM tab1 AS cor0
----
148
182
188

query I rowsort
SELECT - + col2 + 22 AS col1 FROM tab2 AS cor0
----
-1
-18
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT + COUNT( ALL + col2 ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT + COUNT ( ALL + col2 ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - col2, ( - 38 ), + 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 * + col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 * + col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL ( - 51 ) FROM tab0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT DISTINCT col2 + + col1 - - CAST( + col2 AS SIGNED ) - + - col1 AS col1 FROM tab0
----
200
256
62

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT col2 + + col1 - - CAST ( + col2 AS INTEGER ) - + - col1 AS col1 FROM tab0
----
200
256
62

query I rowsort
SELECT ALL - col2 + + 73 AS col0 FROM tab2
----
15
33
50

query I rowsort
SELECT ALL ( - + col1 ) + + 2 FROM tab2
----
-49
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + MIN( ALL + - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5651
SELECT + MIN ( ALL + - col0 ) FROM tab2 cor0
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-5652
SELECT DISTINCT - col1 DIV - col1 AS col0, - col0 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
1
-262144
1
-421875
1
-97336

skipif mysql # not compatible
query II rowsort label-5652
SELECT DISTINCT - col1 / - col1 AS col0, - col0 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
1
-262144
1
-421875
1
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT - MIN( DISTINCT - - col2 ) * ( - ( + 6 ) ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5653
SELECT - MIN ( DISTINCT - - col2 ) * ( - ( + 6 ) ) FROM tab0
----
60

query I rowsort
SELECT ALL + - 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT - 14 * col1 FROM tab0
----
-1134
-14
-294

query I rowsort
SELECT DISTINCT + - 48 * - col2 AS col0 FROM tab1 AS cor0
----
2832
3264
4608

query I rowsort
SELECT ALL - 62 * + col2 AS col2 FROM tab0 AS cor0
----
-2914
-6138
-620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT ALL CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0 AS cor0 WHERE 50 = NULL
----

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0 AS cor0 WHERE 50 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT - + SUM( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - + SUM ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col1 )
----

query II rowsort
SELECT col2 AS col2, 40 FROM tab1
----
59
40
68
40
96
40

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 94 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT DISTINCT - SUM( - col2 ) DIV - COUNT( ALL 25 ) AS col2 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - SUM ( - col2 ) / - COUNT ( ALL 25 ) AS col2 FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL COUNT( * ) * - 18 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL COUNT ( * ) * - 18 FROM tab2
----
-54

query II rowsort
SELECT ALL col0 AS col0, - 92 FROM tab2
----
46
-92
64
-92
75
-92

query I rowsort
SELECT + col1 * - 28 AS col2 FROM tab1
----
-1316
-140
-392

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT col2 DIV + 41 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5668
SELECT col2 / + 41 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ( 34 ) * - COUNT( * ) AS col2 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-5669
SELECT ( 34 ) * - COUNT ( * ) AS col2 FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - SUM( + - 28 ) * - COUNT( * ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-5670
SELECT - SUM ( + - 28 ) * - COUNT ( * ) FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT - - MIN( + + 53 ) AS col0 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT - - MIN ( + + 53 ) AS col0 FROM tab2 AS cor0
----
53

query I rowsort
SELECT 77 + + - col2 * - col1 FROM tab2
----
1250
3157
3963

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT 1 * + + MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5673
SELECT 1 * + + MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col0 FROM tab0 AS cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col0 - - 80, col0, - 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND - ( 99 ) )
----

query I rowsort
SELECT ALL 50 + - + 11 AS col1 FROM tab2
----
39
39
39

query I rowsort
SELECT ALL 22 - col2 * - 93 + + + col1 AS col1 FROM tab2
----
2212
3819
5483

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NULL ) > NULL OR NOT - col0 + + col2 >= col2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 + + + col0 + - 73 + + col0 * + 47 col1 FROM tab2 cor0
----
3193
5559
7877

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT - - 58 AS col1, 6 AS col2 FROM tab0 AS cor0
----
58
6
58
6
58
6

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col1 + col1 <= NULL
----

query I rowsort
SELECT ALL + + ( 36 ) * 36 * col1 - + - col1 AS col2 FROM tab0 AS cor0
----
105057
1297
27237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT + + SUM( ( - 17 ) ) DIV - 57 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT + + SUM ( ( - 17 ) ) / - 57 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT ALL - - col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - - col2 / + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL - COUNT( - + col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL - COUNT ( - + col2 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT NULL <> col2 * - col2 / + - col1
----

query II rowsort
SELECT DISTINCT col0 AS col2, 45 AS col2 FROM tab2
----
46
45
64
45
75
45

query I rowsort
SELECT + ( - col1 ) + + + col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 53 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - ( - col2 ) FROM tab2 WHERE ( NULL ) IS NULL
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5694
SELECT ALL + - COUNT( * ) * 16, 15 * 8 + - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-144
NULL

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL + - COUNT ( * ) * 16, 15 * 8 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-144
NULL

query I rowsort
SELECT - col0 + - col0 * - col2 AS col0 FROM tab2
----
1012
2496
4275

query I rowsort
SELECT ALL col2 + + 24 * - col2 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT 55 + - COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5697
SELECT 55 + - COUNT ( * ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT + 40 + + col1 FROM tab0 AS cor0
----
121
41
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT + + SUM( - + col2 ) + - COUNT( * ) + 37 * COUNT( * ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5699
SELECT + + SUM ( - + col2 ) + - COUNT ( * ) + 37 * COUNT ( * ) FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + 88 + + COUNT( * ) - - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5700
SELECT + 88 + + COUNT ( * ) - - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT + 10 - + - col1 FROM tab2 AS cor0
----
61
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - 93 + MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5702
SELECT - 93 + MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 57 IS NULL
----

query I rowsort
SELECT - - col0 + + 99 - - - 24 AS col2 FROM tab1 AS cor0
----
126
160
166

query I rowsort
SELECT + 97 + - 1 * - - col1 AS col2 FROM tab2 AS cor0
----
20
30
46

query I rowsort
SELECT - ( + - 68 ) + - col2 FROM tab0 AS cor0
----
-31
21
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 32 ) + + ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL + 82 + + COUNT( * ) - + - ( + MAX( + 72 ) ) AS col1 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + 82 + + COUNT ( * ) - + - ( + MAX ( + 72 ) ) AS col1 FROM tab1
----
157

query I rowsort
SELECT DISTINCT col2 * + col2 + - + 34 AS col2 FROM tab1
----
3447
4590
9182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT ALL - + CAST( - - col2 AS SIGNED ) * + + col0 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL - + CAST ( - - col2 AS INTEGER ) * + + col0 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col0 + + ( - - col2 ) AS col2 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 35 + - - 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT - col2 * + - CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT - col2 * + - CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5716
SELECT - col0 FROM tab2 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) * + col2 * - CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5716
SELECT - col0 FROM tab2 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) * + col2 * - CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT + 97 * - - COUNT( * ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT + 97 * - - COUNT ( * ) FROM tab1 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT ALL 69 DIV + - 10 FROM tab0 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL 69 / + - 10 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT + - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT + - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT - + MIN( - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5722
SELECT - + MIN ( - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT COUNT( * ) AS col0 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5723
SELECT COUNT ( * ) AS col0 FROM tab0, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT COUNT( ALL + + col0 ) * + + COUNT( * ) * ( ( - - 30 ) ) FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-5724
SELECT COUNT ( ALL + + col0 ) * + + COUNT ( * ) * ( ( - - 30 ) ) FROM tab1
----
270

query I rowsort
SELECT DISTINCT + 88 + + col0 AS col0 FROM tab2
----
134
152
163

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - + col2 * - col2 * + col1 * - 48 + 32 NOT BETWEEN NULL AND 25
----

query I rowsort
SELECT DISTINCT ( - + col1 ) + 90 AS col0 FROM tab1
----
43
76
85

query I rowsort
SELECT DISTINCT - 2 + - + col1 FROM tab0 AS cor0
----
-23
-3
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL + MIN( ALL - col0 ) * + - SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-14625

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + MIN ( ALL - col0 ) * + - SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-14625

query I rowsort
SELECT ALL 24 * col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5731
SELECT - CAST( NULL AS SIGNED ) + + col0 + + ( - + col0 ) AS col1, col0 + + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
NULL
16
NULL
89
NULL
97

skipif mysql # not compatible
query II rowsort label-5731
SELECT - CAST ( NULL AS INTEGER ) + + col0 + + ( - + col0 ) AS col1, col0 + + col1 / + col2 AS col1 FROM tab0 AS cor0
----
NULL
16
NULL
89
NULL
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5732
SELECT CAST( NULL AS DECIMAL ) + 97 * - - col1 AS col2, col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5732
SELECT CAST ( NULL AS REAL ) + 97 * - - col1 AS col2, col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL + col0 + + ( - col0 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ( + - CAST( + + 50 AS SIGNED ) ) + - col2 * - + col2 AS col0 FROM tab1 cor0 WHERE col1 * + 99 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5734
SELECT ( + - CAST ( + + 50 AS INTEGER ) ) + - col2 * - + col2 AS col0 FROM tab1 cor0 WHERE col1 * + 99 IS NULL
----

query I rowsort
SELECT ALL + 54 - + col2 FROM tab0 AS cor0
----
-45
44
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT + + 99 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5736
SELECT + + 99 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
297

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 37 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 * - col2 col1 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col2 - + 38 * + - col2 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT + col0 * + col2 - col2 * col2 DIV col1 FROM tab0 cor0
----
-198
678
866

skipif mysql # not compatible
query I rowsort label-5741
SELECT + col0 * + col2 - col2 * col2 / col1 FROM tab0 cor0
----
-198
678
866

query I rowsort
SELECT col0 AS col2 FROM tab1 cor0 WHERE ( col1 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5743
SELECT + - 75 - - - col0 + col0 DIV + col2 DIV CAST( NULL AS DECIMAL ) AS col2, 12 DIV col0 * + 37 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-5743
SELECT + - 75 - - - col0 + col0 / + col2 / CAST ( NULL AS REAL ) AS col2, 12 / col0 * + 37 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 - - + 33 * + - col1 col2 FROM tab0
----
-2668
-28
-688

query I rowsort
SELECT - ( - col2 ) - col1 AS col2 FROM tab0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 89, + ( - + col1 ) col1 FROM tab2
----
89
-51
89
-67
89
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL + COUNT( * ) * MAX( - 58 ) FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL + COUNT ( * ) * MAX ( - 58 ) FROM tab0
----
-174

query II rowsort
SELECT ALL - 20 AS col2, - col2 FROM tab2
----
-20
-23
-20
-40
-20
-58

query II rowsort
SELECT DISTINCT - col2, col2 AS col2 FROM tab1
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 * - 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 85 - 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 316f49c8327df0eb83342f1d4ad1cdc4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5754
SELECT - CAST( MAX( 92 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5754
SELECT - CAST ( MAX ( 92 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT + - SUM( - 83 ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5755
SELECT + - SUM ( - 83 ) FROM tab1 AS cor0
----
249

query II rowsort
SELECT - 66 * col0, 77 AS col2 FROM tab2 AS cor0
----
-3036
77
-4224
77
-4950
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - - SUM( - 3 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5757
SELECT - - SUM ( - 3 ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT - + ( + col0 ) DIV - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5758
SELECT - + ( + col0 ) / - col1 FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT + col2 + + - 66, - col1 AS col2 FROM tab2 AS cor0
----
-26
-77
-43
-51
-8
-67

query I rowsort
SELECT ALL - 48 * - col1 FROM tab2
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT DISTINCT + COUNT( - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT + COUNT ( - - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5762
SELECT ALL 2 * - + COUNT( * ) DIV - 1 col2, 85 FROM tab1
----
6
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5762
SELECT ALL 2 * - + COUNT ( * ) / - 1 col2, 85 FROM tab1
----
6
85

query I rowsort
SELECT DISTINCT 47 + - col1 AS col2 FROM tab0
----
-34
26
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <> 17 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT 5 - - COUNT( * ) * - + 99 AS col2 FROM tab1
----
-292

skipif mysql # not compatible
query I rowsort label-5765
SELECT 5 - - COUNT ( * ) * - + 99 AS col2 FROM tab1
----
-292

query I rowsort
SELECT ALL col2 * + 97 AS col2 FROM tab1 WHERE NOT + + 60 / - col2 + + col0 IS NULL
----
5723
6596
9312

query I rowsort
SELECT DISTINCT + col2 * + 31 FROM tab1 WHERE NULL BETWEEN + + 77 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT + 43 + + SUM( - 1 ) + - 67 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + 43 + + SUM ( - 1 ) + - 67 FROM tab0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT + CAST( NULL AS SIGNED ) * + 51 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT + CAST ( NULL AS INTEGER ) * + 51 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT + CAST( - - col1 AS SIGNED ) + 20 AS col0 FROM tab2 AS cor0
----
71
87
97

skipif mysql # not compatible
query I rowsort label-5770
SELECT + CAST ( - - col1 AS INTEGER ) + 20 AS col0 FROM tab2 AS cor0
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT - SUM( ALL - 85 ) - 8 FROM tab1 AS cor0
----
247

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT - SUM ( ALL - 85 ) - 8 FROM tab1 AS cor0
----
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT + + col2 + CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-5772
SELECT + + col2 + CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
116
46
80

query II rowsort
SELECT - 33 + + - col2 AS col0, col2 FROM tab0 cor0
----
-132
99
-43
10
-80
47

query I rowsort
SELECT - + col0 + - + 84 AS col1 FROM tab2 AS cor0
----
-130
-148
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT + + CAST( + + 25 AS SIGNED ) * col1 * col2 FROM tab0 AS cor0
----
2475
5250
95175

skipif mysql # not compatible
query I rowsort label-5775
SELECT + + CAST ( + + 25 AS INTEGER ) * col1 * col2 FROM tab0 AS cor0
----
2475
5250
95175

query I rowsort
SELECT ALL + col0 * 54 AS col0 FROM tab1 AS cor0
----
2754
4590
4914

query I rowsort
SELECT DISTINCT + + 23 AS col1 FROM tab0 AS cor0
----
23

query I rowsort
SELECT + ( - col1 ) * + col2 * - 92 + - + col0 AS col2 FROM tab2
----
107870
283296
357437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 51 col0, + col1 + - 61 - + + col1 * col2 * 44 + + col1 FROM tab1
----
51
-13031
51
-140591
51
-59169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5780
SELECT ALL COUNT( DISTINCT - 94 ) DIV + 67 * + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL COUNT ( DISTINCT - 94 ) / + 67 * + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab2 WHERE NOT + 49 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT DISTINCT col0 DIV - 81 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT col0 / - 81 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT - SUM( DISTINCT - + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5783
SELECT - SUM ( DISTINCT - + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5784
SELECT DISTINCT COUNT( * ) AS col0, 59 col2 FROM tab0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5784
SELECT DISTINCT COUNT ( * ) AS col0, 59 col2 FROM tab0
----
3
59

query II rowsort
SELECT ALL + col1 AS col2, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + col0 ) - col0 <= 16 * - - 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT col0 * - 86 * - col1 + + col2 DIV + col2 AS col2 FROM tab2
----
201757
423809
432151

skipif mysql # not compatible
query I rowsort label-5788
SELECT col0 * - 86 * - col1 + + col2 / + col2 AS col2 FROM tab2
----
201757
423809
432151

query I rowsort
SELECT - col2 * - 52 AS col2 FROM tab1 AS cor0
----
3068
3536
4992

query II rowsort
SELECT DISTINCT 78, col1 FROM tab1 AS cor0
----
78
14
78
47
78
5

query II rowsort
SELECT DISTINCT - - 21, col2 * - ( + 76 ) AS col0 FROM tab0 AS cor0
----
21
-3572
21
-7524
21
-760

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT DISTINCT - - COUNT( * ) AS col2, 69 FROM tab2 cor0
----
3
69

skipif mysql # not compatible
query II rowsort label-5793
SELECT DISTINCT - - COUNT ( * ) AS col2, 69 FROM tab2 cor0
----
3
69

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE ( NOT NULL > NULL )
----

query I rowsort
SELECT 87 AS col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 73 FROM tab2
----
-27
-9
2

query I rowsort
SELECT + + 28 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 85 ) + - col0 FROM tab1 AS cor0
----
-136
-170
-176

query I rowsort
SELECT col2 + + - col1 - + col2 * col2 FROM tab2 AS cor0
----
-1637
-3373
-557

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / col1 * col2 NOT BETWEEN NULL AND + 88
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT - 17 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT + COUNT( * ) * + 70 * 83 FROM tab0
----
17430

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT + COUNT ( * ) * + 70 * 83 FROM tab0
----
17430

query I rowsort
SELECT ALL + 45 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT 17 + + col1 AS col0 FROM tab0 AS cor0
----
18
38
98

query I rowsort
SELECT ALL - 27 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-27
-27
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 16 + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 94 - - 99 AS col1 FROM tab2 AS cor0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT - MIN( + 3 ) AS col2 FROM tab2 AS cor0 WHERE 56 < col2
----
-3

skipif mysql # not compatible
query I rowsort label-5808
SELECT - MIN ( + 3 ) AS col2 FROM tab2 AS cor0 WHERE 56 < col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5809
SELECT col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5809
SELECT col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT COUNT( DISTINCT + 7 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( DISTINCT + 7 ) FROM tab0
----
1

query I rowsort
SELECT col2 * 28 AS col1 FROM tab2
----
1120
1624
644

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT col2 * 48 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col0 + col1 AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
141
142
97

query I rowsort
SELECT ALL - ( ( - + col2 ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + 81 * + col1 * - 94 AS col1 FROM tab2 AS cor0
----
-388314
-510138
-586278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT DISTINCT - ( ( - - col2 ) ) * + CAST( - 73 AS SIGNED ) * + + col2 + + + col2 + + 84 AS col0 FROM tab0
----
161388
715656
7394

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT - ( ( - - col2 ) ) * + CAST ( - 73 AS INTEGER ) * + + col2 + + + col2 + + 84 AS col0 FROM tab0
----
161388
715656
7394

query I rowsort
SELECT DISTINCT + 40 + - - ( + - col2 ) FROM tab0 AS cor0
----
-59
-7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT + + SUM( - + 99 ) AS col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT + + SUM ( - + 99 ) AS col2 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT + col0 + - col2 + + 50 + - + 29 * - - 75 * + col0 FROM tab2 AS cor0
----
-139126
-163058
-99977

query I rowsort
SELECT 13 + - ( - 3 ) FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT col2 * - - 87 FROM tab2 AS cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5822
SELECT DISTINCT COUNT( + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT COUNT ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 83 + + col2 FROM tab0
----
130
182
93

query I rowsort
SELECT - 36 * - + 39 + - 11 + - 42 * col2 FROM tab0
----
-2765
-581
973

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL + 44 + + COUNT( DISTINCT + col2 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL + 44 + + COUNT ( DISTINCT + col2 ) FROM tab1
----
47

query II rowsort
SELECT - 80 AS col2, col0 AS col0 FROM tab0
----
-80
15
-80
87
-80
97

query I rowsort
SELECT DISTINCT col1 * - 56 + + col1 FROM tab1
----
-2585
-275
-770

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE 1 + - col0 NOT BETWEEN - + col1 AND NULL
----
1
21

query I rowsort
SELECT - 43 * col2 AS col0 FROM tab2 AS cor0
----
-1720
-2494
-989

query I rowsort
SELECT ( - ( 4 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND - 10 * + 9 AND NOT col2 >= NULL
----

query I rowsort
SELECT + 21 AS col1 FROM tab0 WHERE + 58 IS NULL
----

query I rowsort
SELECT ALL - 17 * + + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-116
-1424
-367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL - - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - + SUM( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + SUM ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT ( + - col0 ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 8 col0 FROM tab1 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT + MIN( DISTINCT col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT + MIN ( DISTINCT col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + MAX( - - col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5838
SELECT + MAX ( - - col0 ) col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT + COUNT( * ) * - 55 * COUNT( * ) col0 FROM tab0
----
-495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5839
SELECT DISTINCT + COUNT ( * ) * - 55 * COUNT ( * ) col0 FROM tab0
----
-495

query I rowsort
SELECT ALL + 11 * - 49 FROM tab0
----
-539
-539
-539

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 74 * - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL COUNT( * ) * - + 56 AS col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL COUNT ( * ) * - + 56 AS col2 FROM tab2 AS cor0
----
-168

query II rowsort
SELECT DISTINCT + - 30, + col1 AS col2 FROM tab2 AS cor0
----
-30
51
-30
67
-30
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 63 IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

query II rowsort
SELECT DISTINCT + ( + 41 ), + col0 FROM tab1 AS cor0
----
41
51
41
85
41
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT + col2 DIV - ( - col1 ) col2 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5847
SELECT + col2 / - ( - col1 ) col2 FROM tab0 cor0
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT - col2 DIV - - 63 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT - col2 / - - 63 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT DISTINCT col2 * - col2 + ( + col1 ) FROM tab1 WHERE col1 + + + col1 DIV 8 NOT IN ( col1 )
----
-4577
-9202

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT col2 * - col2 + ( + col1 ) FROM tab1 WHERE col1 + + + col1 / 8 NOT IN ( col1 )
----
-4577
-9202

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + 51 * + + COUNT( * ) col2 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5850
SELECT + 51 * + + COUNT ( * ) col2 FROM tab2
----
153

query I rowsort
SELECT 14 - + 61 AS col1 FROM tab0
----
-47
-47
-47

query I rowsort
SELECT - 19 + - col2 FROM tab2
----
-42
-59
-77

query I rowsort
SELECT DISTINCT col2 + 70 AS col2 FROM tab0
----
117
169
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT DISTINCT col0 DIV + col2 + - col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT col0 / + col2 + - col0 FROM tab2
----
-44
-63
-74

query II rowsort
SELECT DISTINCT + 38, 2 * - 42 AS col0 FROM tab0 AS cor0
----
38
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5856
SELECT CAST( + + col2 AS SIGNED ) * col2 / + col2 AS col2, + col1 + - ( - 26 ) + col2 * - - col1 + + 0 FROM tab0 AS cor0 WHERE ( - - 52 <= NULL )
----

skipif mysql # not compatible
query II rowsort label-5856
SELECT CAST ( + + col2 AS INTEGER ) * col2 / + col2 AS col2, + col1 + - ( - 26 ) + col2 * - - col1 + + 0 FROM tab0 AS cor0 WHERE ( - - 52 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT DISTINCT - 91 - + ( - CAST( 31 AS SIGNED ) ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - 91 - + ( - CAST ( 31 AS INTEGER ) ) FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT DISTINCT - - CAST( - 23 AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5858
SELECT DISTINCT - - CAST ( - 23 AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

query I rowsort
SELECT + 58 * - col1 AS col0 FROM tab1
----
-2726
-290
-812

query I rowsort
SELECT DISTINCT - + 97 * - col1 AS col2 FROM tab2 AS cor0
----
4947
6499
7469

query II rowsort
SELECT ALL col0 AS col0, - col0 + + col2 FROM tab0 AS cor0
----
15
32
87
-77
97
2

onlyif mysql # DIV for integer division: 
query II rowsort label-5862
SELECT DISTINCT col0 DIV + col0 AS col0, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-5862
SELECT DISTINCT col0 / + col0 AS col0, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5863
SELECT ALL - + 81, 36 + - + ( + MIN( - + col0 ) ) col2 FROM tab2 AS cor0
----
-81
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5863
SELECT ALL - + 81, 36 + - + ( + MIN ( - + col0 ) ) col2 FROM tab2 AS cor0
----
-81
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, + col0 - col1 col0 FROM tab0 AS cor0
----
-10
66
-47
-66
-99
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col0 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT col0 * + + col1 * + + 65 AS col2 FROM tab0
----
118755
6305
78975

query III rowsort
SELECT ALL * FROM tab0 WHERE 56 NOT IN ( + 59 * - col0 * col0 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 * - - col0 AS col0, col2 FROM tab2
----
1058
23
2560
40
4350
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT DISTINCT col0 DIV + 88 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT col0 / + 88 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT ALL + col2 * - 94 AS col1 FROM tab1
----
-5546
-6392
-9024

query I rowsort
SELECT DISTINCT ( - 52 ) FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT ALL SUM( - col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5872
SELECT ALL SUM ( - col0 ) col2 FROM tab2
----
-185

query I rowsort
SELECT - col2 + 85 AS col0 FROM tab1 AS cor0
----
-11
17
26

query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - ( + col1 ) + 49 col2, ( col1 ) * + col1 col2 FROM tab1 AS cor0
----
2
2209
35
196
44
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * col0 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT + col2 DIV + col0 + - col2 DIV col2 + col0 FROM tab0 AS cor0
----
17
86
97

skipif mysql # not compatible
query I rowsort label-5877
SELECT + col2 / + col0 + - col2 / col2 + col0 FROM tab0 AS cor0
----
17
86
97

query I rowsort
SELECT ALL + ( + 97 ) FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT - + col2 * 4 + - - col2 FROM tab2 AS cor0
----
-120
-174
-69

query I rowsort
SELECT DISTINCT 2 + col0 AS col1 FROM tab0
----
17
89
99

query I rowsort
SELECT ALL + 48 * col0 + - 58 FROM tab2 AS cor0
----
2150
3014
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT + + MAX( - - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5882
SELECT + + MAX ( - - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5883
SELECT DISTINCT + AVG ( - 60 ) / + CAST( NULL AS SIGNED ), - SUM( DISTINCT - 44 ) AS col2 FROM tab1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-5883
SELECT DISTINCT + AVG ( - 60 ) / + CAST ( NULL AS INTEGER ), - SUM ( DISTINCT - 44 ) AS col2 FROM tab1
----
NULL
44

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 61 IS NOT NULL )
----

query I rowsort
SELECT - 21 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5886
SELECT DISTINCT + col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5888
SELECT DISTINCT - 85, + MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-85
51

skipif mysql # not compatible
query II rowsort label-5888
SELECT DISTINCT - 85, + MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-85
51

onlyif mysql # DIV for integer division: 
query II rowsort label-5889
SELECT DISTINCT - col1 AS col1, + col0 DIV - col0 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-5889
SELECT DISTINCT - col1 AS col1, + col0 / - col0 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

query II rowsort
SELECT col0 AS col2, col2 + - - col1 - - + col2 * - 38 FROM tab1
----
51
-3538
85
-2178
91
-2469

query I rowsort
SELECT ALL col2 * + 4 AS col2 FROM tab1
----
236
272
384

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 5 - + 39 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5893
SELECT - ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT - ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + 65 AS col0, 30 * - col0 FROM tab0
----
65
-2610
65
-2910
65
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT DISTINCT - COUNT( * ) AS col2, 96 - COUNT( * ) AS col0 FROM tab2
----
-3
93

skipif mysql # not compatible
query II rowsort label-5895
SELECT DISTINCT - COUNT ( * ) AS col2, 96 - COUNT ( * ) AS col0 FROM tab2
----
-3
93

query II rowsort
SELECT ALL + col1 AS col1, + 58 FROM tab0 AS cor0
----
1
58
21
58
81
58

query I rowsort
SELECT ( - 18 ) + + 38 AS col1 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + + 95 * + - ( + 98 ) FROM tab1 AS cor0
----
-9310

query I rowsort
SELECT col0 * - 70 + + - 73 FROM tab0 AS cor0
----
-1123
-6163
-6863

query II rowsort
SELECT ALL + 24 AS col1, - 63 FROM tab1 AS cor0
----
24
-63
24
-63
24
-63

query I rowsort
SELECT + 40 + - col0 FROM tab2
----
-24
-35
-6

query I rowsort
SELECT ALL - 44 * + 64 FROM tab2
----
-2816
-2816
-2816

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - - 87 ) + col2 NOT BETWEEN 93 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL - - SUM( - + col2 ) * + 1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL - - SUM ( - + col2 ) * + 1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT - 94 - + + COUNT( * ) FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT - 94 - + + COUNT ( * ) FROM tab1 cor0
----
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - 6
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT ALL - col2 DIV + col0 - - 75 FROM tab0 AS cor0
----
72
74
75

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - col2 / + col0 - - 75 FROM tab0 AS cor0
----
72
74
75

query I rowsort
SELECT ALL - - col1 * - col0 * + + col1 - col0 AS col1 FROM tab2 AS cor0
----
-119692
-336750
-379520

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT + MIN( - col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + MIN ( - col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
243

query I rowsort
SELECT - - 36 - - col0 AS col1 FROM tab0 AS cor0
----
123
133
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 * - 91 + + col2 + + 96 + 10 * + col1 - - col0 col0, col0 FROM tab2 AS cor0
----
-4308
64
-4379
75
-4603
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5912
SELECT + MAX( DISTINCT + 28 ) - + 81 AS col0, 83 DIV + COUNT( * ) AS col0 FROM tab0
----
-53
27

skipif mysql # not compatible
query II rowsort label-5912
SELECT + MAX ( DISTINCT + 28 ) - + 81 AS col0, 83 / + COUNT ( * ) AS col0 FROM tab0
----
-53
27

query I rowsort
SELECT DISTINCT 26 + + col0 AS col0 FROM tab0
----
113
123
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * + 88 + - col0 + + 28 + + col0 / - col2 IS NOT NULL )
----

query I rowsort
SELECT col1 + 83 + + col2 * col1 AS col2 FROM tab2
----
1307
3240
4036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5916
SELECT MAX( + col1 ) * CAST( 29 AS SIGNED ) * - + SUM( + 35 ) + - - 94 * + COUNT( * ) FROM tab0
----
-246363

skipif mysql # not compatible
query I rowsort label-5916
SELECT MAX ( + col1 ) * CAST ( 29 AS INTEGER ) * - + SUM ( + 35 ) + - - 94 * + COUNT ( * ) FROM tab0
----
-246363

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + 63 * col1 AS col0 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5919
SELECT + ( + col1 ) * + CAST( NULL AS DECIMAL ) - + col1 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT + ( + col1 ) * + CAST ( NULL AS REAL ) - + col1 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT MIN( ALL col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT MIN ( ALL col2 ) AS col1 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT 57 + + col1 DIV - col0 FROM tab2
----
56
56
57

skipif mysql # not compatible
query I rowsort label-5921
SELECT 57 + + col1 / - col0 FROM tab2
----
56
56
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT ALL + CAST( + 44 AS SIGNED ) AS col2 FROM tab2 WHERE ( NULL ) IN ( ( - 99 ) )
----

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL + CAST ( + 44 AS INTEGER ) AS col2 FROM tab2 WHERE ( NULL ) IN ( ( - 99 ) )
----

query I rowsort
SELECT 95 + - col0 FROM tab0
----
-2
8
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT ALL - col0 + CAST( 77 AS SIGNED ) AS col1 FROM tab2
----
13
2
31

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - col0 + CAST ( 77 AS INTEGER ) AS col1 FROM tab2
----
13
2
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT ALL + CAST( NULL AS SIGNED ) * + 22 - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + CAST ( NULL AS INTEGER ) * + 22 - - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 89 + - col0 * + 22 FROM tab1 WHERE NULL IS NULL
----
-1033
-1781
-1913

query I rowsort
SELECT col1 * - col1 + + col0 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT ALL + col1 + - 28 * - col1 FROM tab2
----
1479
1943
2233

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT - col0 DIV col1 + col2 * 1 FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-5929
SELECT - col0 / col1 + col2 * 1 FROM tab1
----
42
67
93

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT + 48 / - col0 IN ( col1 * - col2 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + ( COUNT( * ) ) * + COUNT( * ) + + 41 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-5931
SELECT + ( COUNT ( * ) ) * + COUNT ( * ) + + 41 AS col1 FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) < CAST( col1 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) < CAST ( col1 AS INTEGER ) * - col1
----

query I rowsort
SELECT ALL - col0 * col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 31 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5935
SELECT ALL 9 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) > + 19
----

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL 9 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) > + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + ( ( COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5936
SELECT + ( ( COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT col0 DIV col0 - + ( 94 + + col2 ) FROM tab2
----
-116
-133
-151

skipif mysql # not compatible
query I rowsort label-5937
SELECT col0 / col0 - + ( 94 + + col2 ) FROM tab2
----
-116
-133
-151

query III rowsort
SELECT * FROM tab2 WHERE col1 / - col0 + 26 NOT BETWEEN ( NULL ) AND 20 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0 + + col0 * col0 )
----

query I rowsort
SELECT DISTINCT col1 - + 76 * col0 FROM tab0
----
-1059
-6591
-7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 12 col0 FROM tab1
----
-1020
-1092
-612

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL <> col0 + - col1
----

query I rowsort
SELECT ( - 19 ) * - 89 FROM tab1
----
1691
1691
1691

query I rowsort
SELECT DISTINCT - col1 * - col1 - col1 AS col0 FROM tab2
----
2550
4422
5852

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5945
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN ( col1 / col2 + + CAST( col1 AS SIGNED ) * 60 ) AND - 92
----

skipif mysql # not compatible
query III rowsort label-5945
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN ( col1 / col2 + + CAST ( col1 AS INTEGER ) * 60 ) AND - 92
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT 42 * - SUM( col2 DIV + ( - col0 ) ) - + COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 + col2 DIV + col2 IN ( - col1 * - col1 )
----
165

skipif mysql # not compatible
query I rowsort label-5947
SELECT 42 * - SUM ( col2 / + ( - col0 ) ) - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 + col2 / + col2 IN ( - col1 * - col1 )
----
165

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / - ( + 80 ) + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 53
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE ( col0 ) <= + ( + col0 ) * - col2
----

query I rowsort
SELECT 91 * - col0 FROM tab1 cor0
----
-4641
-7735
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL MIN( 50 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( 41 - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL MIN ( 50 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( 41 - 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT SUM( ALL col0 ) * - 31 + 79 FROM tab2
----
-5656

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT SUM ( ALL col0 ) * - 31 + 79 FROM tab2
----
-5656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col2 FROM tab2 WHERE col2 IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT + 23 + + col2 FROM tab1
----
119
82
91

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE - col0 < + col1
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 <= ( col0 )
----
75
67
58

query I rowsort
SELECT - - col0 + - 69 AS col1 FROM tab2 AS cor0
----
-23
-5
6

query I rowsort
SELECT DISTINCT + col1 + - 26 FROM tab0 AS cor0
----
-25
-5
55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <> NULL
----

query I rowsort
SELECT ALL col1 - - 39 AS col1 FROM tab2 AS cor0
----
106
116
90

query I rowsort
SELECT - col1 + + 89 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT ALL 4 + + ( - 16 ) * + col2 AS col0 FROM tab2 AS cor0
----
-364
-636
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT - + ( 86 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - + ( 86 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-258

query I rowsort
SELECT ALL + ( - col2 ) FROM tab2 WHERE NOT ( NULL ) = + col0 * - col1
----

query I rowsort
SELECT - 72 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT col0 * ( - col2 ) FROM tab2 WHERE - CAST( + col0 AS SIGNED ) + col1 IS NOT NULL
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-5967
SELECT col0 * ( - col2 ) FROM tab2 WHERE - CAST ( + col0 AS INTEGER ) + col1 IS NOT NULL
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT COUNT( * ) * + - 67 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-5968
SELECT COUNT ( * ) * + - 67 FROM tab2
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT col2 DIV - 77 col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5969
SELECT col2 / - 77 col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT 8 * MAX( col0 ) * - 6 AS col0 FROM tab2
----
-3600

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT 8 * MAX ( col0 ) * - 6 AS col0 FROM tab2
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT COUNT( + col0 ) AS col2 FROM tab2 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT COUNT ( + col0 ) AS col2 FROM tab2 WHERE NOT NULL > ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT CAST( - ( col0 ) AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5972
SELECT CAST ( - ( col0 ) AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL + - COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL + - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5976
SELECT ALL - + 17 * AVG ( 71 + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - + 17 * AVG ( 71 + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5977
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( * ) DIV + + 86 AS col2 FROM tab2
----
-3
0

skipif mysql # not compatible
query II rowsort label-5977
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( * ) / + + 86 AS col2 FROM tab2
----
-3
0

query I rowsort
SELECT DISTINCT + 91 - 96 * + 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-7589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + col0 col0 FROM tab0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL - + MIN( + + 88 ) AS col2 FROM tab2 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - + MIN ( + + 88 ) AS col2 FROM tab2 cor0
----
-88

query I rowsort
SELECT + col2 * + - 15 FROM tab1 AS cor0
----
-1020
-1440
-885

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( col1 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 * + 69 IS NULL OR 71 + + 85 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 * + 69 IS NULL OR 71 + + 85 IS NULL
----
0

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( + - 54 * - 16 ) AND + col0 * col1 + + col2
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT ALL - col0 * - 16 FROM tab0 AS cor0
----
1392
1552
240

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col2 * 54 NOT BETWEEN - col0 - col2 / - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( 23 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( 23 * - col1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5989
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + ( - CAST( NULL AS DECIMAL ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5989
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + ( - CAST ( NULL AS REAL ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT + - ( + 7 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * col2 + + ( - col0 ) FROM tab1
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - MIN( ALL - 5 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5992
SELECT - MIN ( ALL - 5 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT 28 FROM tab0 WHERE NULL IS NULL
----
28
28
28

query I rowsort
SELECT col2 FROM tab0 WHERE - + 80 - + + 86 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT + MAX( 96 ) + - COUNT( * ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT + MAX ( 96 ) + - COUNT ( * ) AS col1 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT ALL - COUNT( * ) + + 7 AS col0, COUNT( * ) AS col1 FROM tab1
----
4
3

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL - COUNT ( * ) + + 7 AS col0, COUNT ( * ) AS col1 FROM tab1
----
4
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT 53 * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 50 AND + - col2 / col1
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT 53 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 50 AND + - col2 / col1
----
0

query I rowsort
SELECT DISTINCT + 67 / + 68 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + 44 * 45 + + col1 AS col1 FROM tab2 AS cor0
----
2031
2047
2057

query I rowsort
SELECT ALL 71 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
71
71
71

query I rowsort
SELECT - 23 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ALL - col1 + 48 + col0 + - col1 * + col1 AS col2 FROM tab0
----
-327
-6579
143

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 / col2 + - col2 NOT BETWEEN col2 AND + col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 87 ) * + - col0 * - 51 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + 11 + + 49 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 44 * + 89 - - ( - col0 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 44 * + 89 - - ( - col0 ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) >= + col0 + + 15 * - + col0 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT - - 69 * + SUM( + 12 ) - - ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
2481

skipif mysql # not compatible
query I rowsort label-6009
SELECT - - 69 * + SUM ( + 12 ) - - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
2481

query II rowsort
SELECT - + 46, ( - + ( + 0 ) ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-46
0
-46
0
-46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT COUNT( * ) * 53 FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-6011
SELECT COUNT ( * ) * 53 FROM tab0 cor0
----
159

query I rowsort
SELECT + 65 * - - col1 * + ( - 76 ) FROM tab1
----
-232180
-24700
-69160

query I rowsort
SELECT - col1 * + 10 FROM tab1
----
-140
-470
-50

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + + col1 + 70
----

query I rowsort
SELECT col1 * + ( - 16 ) FROM tab1
----
-224
-752
-80

query I rowsort
SELECT ALL col0 * + col1 * + 47 FROM tab1
----
19975
201019
33558

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT 44 * + COUNT( * ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-6017
SELECT 44 * + COUNT ( * ) FROM tab2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT DISTINCT + 96 DIV - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + 96 / - col1 FROM tab2
----
-1

query I rowsort
SELECT - - 6 * - col1 * + 62 + + col0 + + + 86 AS col1 FROM tab2 AS cor0
----
-18840
-24763
-28494

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE NOT NULL IN ( 22 + col2 * + - 23 + col2 )
----

query I rowsort
SELECT DISTINCT + col1 * 41 AS col2 FROM tab1 AS cor0
----
1927
205
574

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6022
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN + CAST( col1 AS SIGNED ) AND + 44
----

skipif mysql # not compatible
query III rowsort label-6022
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN + CAST ( col1 AS INTEGER ) AND + 44
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + 86 ) AND ( col2 / col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT - 53 + - - 64 <> + CAST( col1 AS SIGNED ) * - col0
----
-9

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT - 53 + - - 64 <> + CAST ( col1 AS INTEGER ) * - col0
----
-9

query I rowsort
SELECT - - col2 * + col2 - - col2 AS col0 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 WHERE NOT + col1 < ( + 78 * + col2 - - col1 - + - col1 + col1 * + 62 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6026
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 WHERE NOT + col1 < ( + 78 * + col2 - - col1 - + - col1 + col1 * + 62 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col0 * + - col1 + + col1 + - 55 )
----

query I rowsort
SELECT DISTINCT 3 * - ( + 62 ) FROM tab1
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT DISTINCT - col0 DIV col2 + col0 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT - col0 / col2 + col0 FROM tab0 AS cor0
----
15
79
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + 36 + 38 + + + col2 ) <= + col1 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT - col0 DIV col2 + + + col0 FROM tab2 cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-6031
SELECT - col0 / col2 + + + col0 FROM tab2 cor0
----
44
63
74

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT + + MAX( ALL - - 66 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6033
SELECT + + MAX ( ALL - - 66 ) AS col0 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 68 * 59 col1, - col0 FROM tab2 AS cor0
----
-4012
-46
-4012
-64
-4012
-75

query I rowsort
SELECT DISTINCT 91 + - col2 + ( - 47 ) FROM tab2
----
-14
21
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 46 col0 FROM tab1
----
-1
32
41

query I rowsort
SELECT ALL + col0 * - col0 + - 75 FROM tab2
----
-2191
-4171
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) + - - 4 + + ( - COUNT( ALL ( 71 ) ) ) / AVG ( ALL 2 + + 68 ) * - MIN( DISTINCT col2 * col1 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) + - - 4 + + ( - COUNT ( ALL ( 71 ) ) ) / AVG ( ALL 2 + + 68 ) * - MIN ( DISTINCT col2 * col1 ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ( - 82 ) FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT + + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT + + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6042
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 - + - 2 NOT IN ( - CAST( - + 13 AS DECIMAL ) - - ( - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6042
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 - + - 2 NOT IN ( - CAST ( - + 13 AS REAL ) - - ( - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + + ( 30 ) FROM tab2 AS cor0
----
1530
2010
2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT ALL - col2 * - 45 + + - col0 + + CAST( + 55 AS SIGNED ) AS col1 FROM tab0
----
2155
418
4413

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - col2 * - 45 + + - col0 + + CAST ( + 55 AS INTEGER ) AS col1 FROM tab0
----
2155
418
4413

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT COUNT( * ) + + - 45 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6045
SELECT COUNT ( * ) + + - 45 FROM tab2
----
-42

query II rowsort
SELECT 27 + - + col2, 23 AS col2 FROM tab2 AS cor0
----
-13
23
-31
23
4
23

query I rowsort
SELECT ALL - col0 - col0 - - - col1 AS col1 FROM tab2 AS cor0
----
-143
-205
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT MIN( - + 78 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6048
SELECT MIN ( - + 78 ) FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT + MAX( - + col0 ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6049
SELECT + MAX ( - + col0 ) AS col0 FROM tab2 cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NULL OR NOT + 19 BETWEEN NULL AND + col2
----
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6051
SELECT ALL col0 AS col1, 27 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + 31 * ( - col1 ) * CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
51
27
85
27
91
27

skipif mysql # not compatible
query II rowsort label-6051
SELECT ALL col0 AS col1, 27 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + 31 * ( - col1 ) * CAST ( NULL AS REAL ) ) IS NOT NULL
----
51
27
85
27
91
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col0 FROM tab2
----
23

query I rowsort
SELECT + col1 * + - 57 * + col2 FROM tab2
----
-175560
-221502
-66861

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( 12, + col0 / + col0 / - col1 + + - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT - + col0 * - + col0 * - col1 * - + col2 * - - col2 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT - + col0 * - + col0 * - col1 * - + col2 * - - col2 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT + + col1 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-6056
SELECT + + col1 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - + - col2 + - col0 * - 65 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3360
5499
5892

query I rowsort
SELECT col1 + + ( + + 36 ) FROM tab0
----
117
37
57

query II rowsort
SELECT ALL + 21, - col1 + 56 + col1 - + col2 AS col2 FROM tab1 AS cor0
----
21
-12
21
-3
21
-40

query I rowsort
SELECT - col0 * - 80 * - - col0 FROM tab0 AS cor0
----
18000
605520
752720

query II rowsort
SELECT ALL - - col1 AS col2, col1 AS col2 FROM tab0 cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 40, col0 + - col2 col1 FROM tab0 AS cor0
----
40
-2
40
-32
40
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6064
SELECT ALL + 72 AS col2, COUNT( * ) FROM tab2 cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-6064
SELECT ALL + 72 AS col2, COUNT ( * ) FROM tab2 cor0
----
72
3

query II rowsort
SELECT DISTINCT + - col1 + 48 AS col1, + 40 FROM tab1 AS cor0
----
1
40
34
40
43
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT - ( - + COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6066
SELECT - ( - + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 46 * 41 FROM tab1 AS cor0
----
-1886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) * - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) * - + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT DISTINCT + col0 DIV - + col0 + - col1 DIV + 68 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT + col0 / - + col0 + - col1 / + 68 AS col2 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT + 85 + - MIN( ALL + col2 ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT + 85 + - MIN ( ALL + col2 ) AS col2 FROM tab0
----
75

query I rowsort
SELECT ALL col1 + - 56 + - col2 * col0 FROM tab2
----
-1063
-2539
-4339

query I rowsort
SELECT - col0 - + - 78 AS col2 FROM tab0
----
-19
-9
63

query III rowsort
SELECT * FROM tab1 WHERE - - col2 + + ( + col2 ) IS NULL
----

query I rowsort
SELECT - 35 + + col0 FROM tab1
----
16
50
56

query I rowsort
SELECT ALL + 51 * + 35 + + col2 FROM tab0 AS cor0
----
1795
1832
1884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT + COUNT( * ) * - 77 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT + COUNT ( * ) * - 77 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 76 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 78 + - + 18 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL - COUNT( + + col1 ) + + - ( COUNT( * ) ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL - COUNT ( + + col1 ) + + - ( COUNT ( * ) ) AS col1 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6080
SELECT * FROM tab0 AS cor0 WHERE NOT 86 * + CAST( NULL AS SIGNED ) NOT IN ( - - 51, - col1 + col1 )
----

skipif mysql # not compatible
query III rowsort label-6080
SELECT * FROM tab0 AS cor0 WHERE NOT 86 * + CAST ( NULL AS INTEGER ) NOT IN ( - - 51, - col1 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT - col0 + - col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-6081
SELECT - col0 + - col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL 28 * + MAX( col1 ) col1 FROM tab2 cor0
----
2156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6082
SELECT ALL 28 * + MAX ( col1 ) col1 FROM tab2 cor0
----
2156

query I rowsort
SELECT ALL + - ( - + 30 ) FROM tab2 AS cor0
----
30
30
30

query II rowsort
SELECT col2 AS col0, - ( - + 53 ) AS col1 FROM tab2 AS cor0
----
23
53
40
53
58
53

query II rowsort
SELECT DISTINCT - 31 AS col1, - col0 FROM tab2 AS cor0
----
-31
-46
-31
-64
-31
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= + 17
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT COUNT( + + 44 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6087
SELECT COUNT ( + + 44 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 + + - col0 FROM tab1 AS cor0 WHERE NOT 56 < col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6089
SELECT DISTINCT - - 23 AS col2, COUNT( * ) * - ( - 40 ) col1 FROM tab1 AS cor0
----
23
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6089
SELECT DISTINCT - - 23 AS col2, COUNT ( * ) * - ( - 40 ) col1 FROM tab1 AS cor0
----
23
120

query I rowsort
SELECT DISTINCT 6 * - col2 FROM tab2
----
-138
-240
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT COUNT( - 83 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6091
SELECT COUNT ( - 83 ) FROM tab1
----
3

query I rowsort
SELECT ( + ( + - col0 ) ) AS col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6094
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6094
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - - MAX( + 25 ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - - MAX ( + 25 ) FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT + ( - SUM( ALL 61 ) ) + 19 AS col0 FROM tab2 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-6096
SELECT + ( - SUM ( ALL 61 ) ) + 19 AS col0 FROM tab2 AS cor0
----
-164

query I rowsort
SELECT + - 88 + col2 FROM tab2 AS cor0
----
-30
-48
-65

query I rowsort
SELECT DISTINCT 59 - col2 * + + col2 + + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 18 * + col2 + col0 > - col0
----
-2135
-9645
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * + + 11 col2 FROM tab0 AS cor0
----
759
759
759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT + 13 + - CAST( NULL AS SIGNED ) * MAX( ALL 64 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT + 13 + - CAST ( NULL AS INTEGER ) * MAX ( ALL 64 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 17 + 92 AS col0 FROM tab0 AS cor0
----
109
109
109

query I rowsort
SELECT - 45 + + col0 AS col0 FROM tab1
----
40
46
6

query I rowsort
SELECT - col1 * col2 + + col1 FROM tab1 WHERE + + col1 NOT BETWEEN col2 + + col0 * 29 * col1 AND NULL
----
-1330
-290
-3149

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - col2 ) + + 97 + + 65 IS NULL
----

query I rowsort
SELECT ALL col2 + - - 75 AS col2 FROM tab0
----
122
174
85

onlyif mysql # DIV for integer division: 
query II rowsort label-6106
SELECT + col0, - col0 DIV + col2 FROM tab2
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-6106
SELECT + col0, - col0 / + col2 FROM tab2
----
46
-2
64
-1
75
-1

query I rowsort
SELECT ALL + 67 - - 83 * col0 AS col0 FROM tab1
----
4300
7122
7620

query I rowsort
SELECT ALL + col0 + + col2 * - + ( + 40 ) FROM tab1 AS cor0
----
-2275
-2629
-3789

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT 79 - - COUNT( * ) + ( COUNT( - col0 ) ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6109
SELECT 79 - - COUNT ( * ) + ( COUNT ( - col0 ) ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > 73 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL - - COUNT( * ) * + + 13 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL - - COUNT ( * ) * + + 13 FROM tab0 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6112
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col2 + + col1 + + CAST( - ( col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6112
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col2 + + col1 + + CAST ( - ( col0 ) AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT DISTINCT - 45 DIV 32 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT - 45 / 32 AS col0 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL CAST( + 63 AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6114
SELECT ALL CAST ( + 63 AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab1 cor0
----
64
64
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - - 68 / 45 NOT BETWEEN 48 AND + - col1 AND - ( 39 ) <> NULL
----

query I rowsort
SELECT ALL + col2 * col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT + MIN( + - 72 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-6119
SELECT + MIN ( + - 72 ) FROM tab0
----
-72

query I rowsort
SELECT ALL 12 FROM tab2 WHERE NOT + + col2 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 73 + + col0 FROM tab2
----
119
137
148

query II rowsort
SELECT - col0, col0 - col1 AS col2 FROM tab0
----
-15
-66
-87
66
-97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT 98 * + COUNT( * ) AS col0 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-6123
SELECT 98 * + COUNT ( * ) AS col0 FROM tab0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT - AVG ( ALL + 19 ) + 57 * COUNT( * ) FROM tab2 cor0 WHERE NOT NULL > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT - AVG ( ALL + 19 ) + 57 * COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL > col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col2 FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT DISTINCT + col1 + - CAST( + 30 AS SIGNED ) FROM tab0
----
-29
-9
51

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + col1 + - CAST ( + 30 AS INTEGER ) FROM tab0
----
-29
-9
51

query I rowsort
SELECT DISTINCT - col0 + - + 30 AS col0 FROM tab1 AS cor0
----
-115
-121
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT 10 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( + col0 ) ) * - 76 col1 FROM tab2 AS cor0
----
-3496
-4864
-5700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 37 <= - 76
----

query I rowsort
SELECT - 82 * col0 - col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 - + + col0 col2 FROM tab1 AS cor0
----
-137
-171
-177

query I rowsort
SELECT + - ( - 79 ) - + + 4 AS col1 FROM tab2 cor0
----
75
75
75

query I rowsort
SELECT ALL ( + 18 ) FROM tab0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6137
SELECT * FROM tab2 WHERE - CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6137
SELECT * FROM tab2 WHERE - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col1 ) * + col2 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT + CAST( - 81 AS SIGNED ) - COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-6139
SELECT + CAST ( - 81 AS INTEGER ) - COUNT ( * ) FROM tab0
----
-84

query I rowsort
SELECT 30 - + - 26 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - MAX( ALL - col2 ) * + 96 - - 62 FROM tab0
----
1022

skipif mysql # not compatible
query I rowsort label-6141
SELECT - MAX ( ALL - col2 ) * + 96 - - 62 FROM tab0
----
1022

query I rowsort
SELECT ALL col2 + - - col1 FROM tab2 WHERE NOT NULL IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL + 40 + COUNT( * ) col1 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6143
SELECT ALL + 40 + COUNT ( * ) col1 FROM tab1
----
43

query I rowsort
SELECT - col0 FROM tab1 WHERE + 21 IS NULL
----

query I rowsort
SELECT 51 + - col0 + + - col2 + + 19 FROM tab0 cor0
----
-126
-27
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT DISTINCT + 30 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + 30 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT col0 AS col0, 31 * + col0 FROM tab2 AS cor0
----
46
1426
64
1984
75
2325

query I rowsort
SELECT DISTINCT + 74 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT ALL + + 38 DIV + 52 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + + 38 / + 52 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT + - 57 DIV col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT + - 57 / col2 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6151
SELECT - CAST( NULL AS SIGNED ) AS col1, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-6151
SELECT - CAST ( NULL AS INTEGER ) AS col1, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6152
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - CAST( - 60 AS DECIMAL ) - - 10 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - CAST ( - 60 AS REAL ) - - 10 - + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( 14 / 67 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 71 AS col2, 97 col0 FROM tab2 AS cor0
----
-71
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT COUNT( - col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6155
SELECT COUNT ( - col0 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT MIN( + 42 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT MIN ( + 42 ) FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT ALL MIN( DISTINCT 71 ) AS col1, - COUNT( DISTINCT - col0 ) FROM tab1
----
71
-3

skipif mysql # not compatible
query II rowsort label-6157
SELECT ALL MIN ( DISTINCT 71 ) AS col1, - COUNT ( DISTINCT - col0 ) FROM tab1
----
71
-3

query I rowsort
SELECT ALL + ( - ( + - 80 ) ) * col0 AS col2 FROM tab0
----
1200
6960
7760

query I rowsort
SELECT DISTINCT col2 * - 37 + col2 FROM tab1
----
-2124
-2448
-3456

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NOT + + col1 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT 94 FROM tab2 WHERE NOT + 57 + - 99 / + 19 * + + col0 * - col0 * - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT + col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT + col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 78 FROM tab1
----
-13
-7
27

query I rowsort
SELECT + 89 + - col1 AS col1 FROM tab2 AS cor0
----
12
22
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + - ( 64 ) + + COUNT( DISTINCT + 3 ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6166
SELECT + - ( 64 ) + + COUNT ( DISTINCT + 3 ) FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL BETWEEN col0 * - col2 AND ( + 90 + col1 )
----

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL BETWEEN col0 * - col2 AND ( + 90 + col1 )
----

query I rowsort
SELECT ALL 73 - + 78 + + ( + col2 ) + - col2 * - col0 * + col1 FROM tab0 AS cor0
----
18275
57147
9697

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6169
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
0

query II rowsort
SELECT 60 AS col1, col0 * + col0 + + 82 * - col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
60
-1005
60
1455
60
435

query I rowsort
SELECT + 54 * - col0 FROM tab2 AS cor0
----
-2484
-3456
-4050

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE - 34 * ( 76 ) <= - 32
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT DISTINCT + 73 + - + COUNT( * ) col2 FROM tab2
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6173
SELECT DISTINCT + 73 + - + COUNT ( * ) col2 FROM tab2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT + col0 AS col1 FROM tab1 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6174
SELECT + col0 AS col1 FROM tab1 WHERE NULL = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 23 - - - col0 FROM tab2
----
-69
-87
-98

query I rowsort
SELECT 48 - + + ( - 58 ) FROM tab1
----
106
106
106

query I rowsort
SELECT DISTINCT - 80 * + + col2 AS col1 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL + + MIN( ALL - + ( + + col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL + + MIN ( ALL - + ( + + col2 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL + 95 * - CAST( MIN( DISTINCT col1 ) AS SIGNED ) AS col1 FROM tab2
----
-4845

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + 95 * - CAST ( MIN ( DISTINCT col1 ) AS INTEGER ) AS col1 FROM tab2
----
-4845

query I rowsort
SELECT ALL + + col1 * - + col1 * - 62 FROM tab2 AS cor0
----
161262
278318
367598

query I rowsort
SELECT - ( - - 5 ) FROM tab0 cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6182
SELECT + 88 * - AVG ( - col1 ) AS col2, + 38 - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN 78 * - - col2 AND - + 99 * col0 )
----
NULL
38

skipif mysql # not compatible
query II rowsort label-6182
SELECT + 88 * - AVG ( - col1 ) AS col2, + 38 - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN 78 * - - col2 AND - + 99 * col0 )
----
NULL
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col2 ) AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6185
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) FROM tab0
----
-3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col0, + col1 AS col2 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT - col2 AS col2, - col0 AS col2 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT DISTINCT + col1 + col1 DIV + + col0 AS col2 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + col1 + col1 / + + col0 AS col2 FROM tab0
----
1
21
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT ALL + - col0 DIV - col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + - col0 / - col0 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6191
SELECT DISTINCT 96 AS col0, SUM( DISTINCT + 99 ) col1 FROM tab1 AS cor0
----
96
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6191
SELECT DISTINCT 96 AS col0, SUM ( DISTINCT + 99 ) col1 FROM tab1 AS cor0
----
96
99

query II rowsort
SELECT ALL + - col1 AS col2, col0 + + + 14 FROM tab1 AS cor0
----
-14
65
-47
105
-5
99

query II rowsort
SELECT DISTINCT col2, 36 * - col2 AS col1 FROM tab2 cor0
----
23
-828
40
-1440
58
-2088

query I rowsort
SELECT ALL - 17 * + col1 FROM tab1
----
-238
-799
-85

query I rowsort
SELECT ( + 56 ) AS col0 FROM tab2
----
56
56
56

query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab2 WHERE NOT - 23 BETWEEN - 6 * 56 / - col2 AND NULL
----
-2346
-4928
-5025

query II rowsort
SELECT ALL + 40 + + + 35 AS col0, - 34 AS col0 FROM tab1
----
75
-34
75
-34
75
-34

query I rowsort
SELECT - col2 - + + 72 AS col0 FROM tab2 AS cor0
----
-112
-130
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6199
SELECT ALL - - 80 - - + CAST( NULL AS SIGNED ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6199
SELECT ALL - - 80 - - + CAST ( NULL AS INTEGER ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT + - COUNT( ALL col0 ) - - 34 AS col1 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6200
SELECT + - COUNT ( ALL col0 ) - - 34 AS col1 FROM tab1 AS cor0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT col2 DIV + col1 + col2 * - 57 FROM tab2
----
-1311
-2280
-3306

skipif mysql # not compatible
query I rowsort label-6201
SELECT col2 / + col1 + col2 * - 57 FROM tab2
----
-1311
-2280
-3306

query I rowsort
SELECT DISTINCT + 47 * col0 + ( + 83 ) + - - 17 * 36 + - col1 * + 52 * col2 AS col2 FROM tab1
----
-10650
-161220
-66796

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + + ( col0 ) ) - - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 44, 51 AS col2 FROM tab0
----
44
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT SUM( - - col2 ) col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6205
SELECT SUM ( - - col2 ) col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 + - - 56 col2 FROM tab1 AS cor0
----
-1288
-239
-3140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 65 col2, - 5 FROM tab0 AS cor0
----
65
-5
65
-5
65
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + COUNT( 24 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6208
SELECT + COUNT ( 24 ) AS col1 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col0 FROM tab2 AS cor0 WHERE NOT - 56 <> 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 96 ) col0 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - + SUM( - + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-6211
SELECT - + SUM ( - + col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT + + ( - col1 ) * - - col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT DISTINCT - - CAST( + 12 AS SIGNED ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - - CAST ( + 12 AS INTEGER ) FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT + SUM( ALL + col2 ) + 96 / - + CAST( NULL AS SIGNED ) + 2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT + SUM ( ALL + col2 ) + 96 / - + CAST ( NULL AS INTEGER ) + 2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col2 FROM tab2 AS cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 - + - 1 AS col1 FROM tab0 WHERE col2 + - col2 - - 5 IS NOT NULL
----
2
22
82

query I rowsort
SELECT DISTINCT + 11 + 23 FROM tab2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6219
SELECT ALL * FROM tab2 WHERE - col1 + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6219
SELECT ALL * FROM tab2 WHERE - col1 + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( + 34 * - - col0 - + - col2 + - 24 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT MAX( - col2 ) col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6221
SELECT MAX ( - col2 ) col1 FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 9 IS NULL
----

query II rowsort
SELECT + + col0, + col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6224
SELECT - COUNT( * ) AS col1, - ( - 29 ) AS col2 FROM tab0 AS cor0
----
-3
29

skipif mysql # not compatible
query II rowsort label-6224
SELECT - COUNT ( * ) AS col1, - ( - 29 ) AS col2 FROM tab0 AS cor0
----
-3
29

query I rowsort
SELECT + 43 * col1 * + col0 - + col1 AS col1 FROM tab0
----
4170
52164
78540

query I rowsort
SELECT 71 * - ( ( 29 ) ) + 73 - - - ( + ( 73 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 065186f3d2bd7965be37b0990c5c2f52

query I rowsort
SELECT DISTINCT 21 - - + 90 * - col0 * + col2 FROM tab0 AS cor0
----
-63429
-78279
-864249

query II rowsort
SELECT + col1 / - col0, col2 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT - col1 * col1 DIV col0 FROM tab2 cor0
----
-56
-59
-92

skipif mysql # not compatible
query I rowsort label-6229
SELECT - col1 * col1 / col0 FROM tab2 cor0
----
-56
-59
-92

query II rowsort
SELECT ALL - - col1 * - + 50 + + + col2 + col0 + - - col0 - - col2, + col1 * col1 AS col1 FROM tab2 WHERE NOT - col1 BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + col2 * - col0 * - 68 AS col1 FROM tab0
----
47940
59160
653004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6232
SELECT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT - + col2 IN ( - col1, col2 * + col0, + - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-6232
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT - + col2 IN ( - col1, col2 * + col0, + - col0 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT ALL col0 DIV col0 DIV 48 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6233
SELECT ALL col0 / col0 / 48 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT ( - + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - + 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6234
SELECT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT - MIN( + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6235
SELECT - MIN ( + col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - COUNT( + + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6236
SELECT - COUNT ( + + col0 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT + col1 DIV - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 16 * + - col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT + col1 / - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 16 * + - col2 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + + 21 AS col2 FROM tab0 cor0
----
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL + - SUM( DISTINCT + + 44 ) FROM tab2 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL + - SUM ( DISTINCT + + 44 ) FROM tab2 cor0
----
-44

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 > 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT + col1 DIV - - col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6243
SELECT + col1 / - - col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT COUNT( * ) + + 43 * COUNT( * ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT COUNT ( * ) + + 43 * COUNT ( * ) FROM tab1
----
132

query I rowsort
SELECT - 89 + - col2 FROM tab0
----
-136
-188
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 + + + col1 col1 FROM tab0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + MIN( DISTINCT - + col0 ) + + COUNT( col0 ) AS col0 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-6247
SELECT + MIN ( DISTINCT - + col0 ) + + COUNT ( col0 ) AS col0 FROM tab1
----
-88

query II rowsort
SELECT + + 88 * + col1 * col0 + 47 AS col1, - 28 FROM tab0 cor0
----
106967
-28
160823
-28
8583
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6249
SELECT COUNT( * ) DIV - - COUNT( * ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6249
SELECT COUNT ( * ) / - - COUNT ( * ) col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE - - 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT ALL CAST( NULL AS SIGNED ) * + 33 + + col1 - + 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL CAST ( NULL AS INTEGER ) * + 33 + + col1 - + 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL + SUM( + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + SUM ( + col0 ) AS col2 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT col1 <> - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL - COUNT( - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL - COUNT ( - col1 ) FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL - + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL - + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT - ( - 75 ) * - ( + CAST( + + ( 25 ) AS SIGNED ) ) + - + 51 + - - 76 AS col0 FROM tab2
----
-1850
-1850
-1850

skipif mysql # not compatible
query I rowsort label-6258
SELECT - ( - 75 ) * - ( + CAST ( + + ( 25 ) AS INTEGER ) ) + - + 51 + - - 76 AS col0 FROM tab2
----
-1850
-1850
-1850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6259
SELECT ALL - COUNT( ALL + ( col0 ) ) DIV + 71 + + ( + 46 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL - COUNT ( ALL + ( col0 ) ) / + 71 + + ( + 46 ) FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6260
SELECT + CAST( NULL AS SIGNED ) AS col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6260
SELECT + CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT + ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT - col1 FROM tab0 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) < + 69
----

skipif mysql # not compatible
query I rowsort label-6262
SELECT - col1 FROM tab0 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) < + 69
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6263
SELECT DISTINCT + 2 AS col1, SUM( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6263
SELECT DISTINCT + 2 AS col1, SUM ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + col1
----
2
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col2 FROM tab2 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT SUM( DISTINCT + 9 ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT SUM ( DISTINCT + 9 ) AS col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) * - 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab0
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN col0 * - col0 + + col0 AND + 63
----
51
14
96
91
47
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT MAX( + col2 ) + + 39 + + 40 FROM tab0 cor0
----
178

skipif mysql # not compatible
query I rowsort label-6270
SELECT MAX ( + col2 ) + + 39 + + 40 FROM tab0 cor0
----
178

query I rowsort
SELECT - - ( - + col2 ) + + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + + + 63 FROM tab1
----
-22
-28
12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6273
SELECT ALL * FROM tab2 WHERE CAST( col2 AS DECIMAL ) NOT IN ( - 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6273
SELECT ALL * FROM tab2 WHERE CAST ( col2 AS REAL ) NOT IN ( - 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL + COUNT( * ) + - + 62 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + COUNT ( * ) + - + 62 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT - 2 + + 94 FROM tab1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT ALL COUNT( * ) + + MIN( + 9 ) + ( + COUNT( * ) ) * - - CAST( - MIN( + 40 ) AS SIGNED ) + - CAST( - MIN( DISTINCT - - 51 ) AS SIGNED ) AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL COUNT ( * ) + + MIN ( + 9 ) + ( + COUNT ( * ) ) * - - CAST ( - MIN ( + 40 ) AS INTEGER ) + - CAST ( - MIN ( DISTINCT - - 51 ) AS INTEGER ) AS col0 FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT - COUNT( * ) + - MIN( DISTINCT + 80 ) AS col1 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT - COUNT ( * ) + - MIN ( DISTINCT + 80 ) AS col1 FROM tab0
----
-83

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= - - col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + col1 * + ( + + col0 ) FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 20 IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6283
SELECT + CAST( NULL AS SIGNED ) / 16 AS col1, - 20 FROM tab1 AS cor0
----
NULL
-20
NULL
-20
NULL
-20

skipif mysql # not compatible
query II rowsort label-6283
SELECT + CAST ( NULL AS INTEGER ) / 16 AS col1, - 20 FROM tab1 AS cor0
----
NULL
-20
NULL
-20
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT + - 44 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT + - 44 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT + ( - - CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6285
SELECT + ( - - CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 71 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 57 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( - + col1 ) * col1 * - - 81 + - 87 FROM tab0 AS cor0
----
-6
35634
531354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 55 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT ALL + COUNT( * ) AS col0, ( + + ( 53 ) ) AS col1 FROM tab0
----
3
53

skipif mysql # not compatible
query II rowsort label-6291
SELECT ALL + COUNT ( * ) AS col0, ( + + ( 53 ) ) AS col1 FROM tab0
----
3
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT col0 DIV + 4 AS col2 FROM tab1
----
12
21
22

skipif mysql # not compatible
query I rowsort label-6292
SELECT col0 / + 4 AS col2 FROM tab1
----
12
21
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col0 + + col0 FROM tab2
----
-51
0
-67
0
-77
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * - + ( + col2 ) / + 95 + - + col0 - col1 <= + 77
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 0 * - ( - 0 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * + - col0 IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + - ( + col0 ) * + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + col2 + + - 54 AS col2 FROM tab2
----
-14
-31
4

query III rowsort
SELECT * FROM tab0 WHERE + col1 >= + col2 + col0
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 70 + col0 ) IS NULL
----

query II rowsort
SELECT ALL - col1, 13 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
13
-67
13
-77
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT DISTINCT - - col1 DIV + col2 * 29 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - - col1 / + col2 * 29 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN ( col1 ) * - col0 AND - - 4
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * - - 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT COUNT( * ) * + - 73 * + COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-657

skipif mysql # not compatible
query I rowsort label-6310
SELECT COUNT ( * ) * + - 73 * + COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 + - 31 col2 FROM tab1
----
65

query I rowsort
SELECT 80 * + 21 - + col0 AS col0 FROM tab1
----
1589
1595
1629

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6313
SELECT - 97 - + col0 AS col0, CAST( - 20 AS SIGNED ) AS col0 FROM tab1
----
-148
-20
-182
-20
-188
-20

skipif mysql # not compatible
query II rowsort label-6313
SELECT - 97 - + col0 AS col0, CAST ( - 20 AS INTEGER ) AS col0 FROM tab1
----
-148
-20
-182
-20
-188
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6314
SELECT * FROM tab1 WHERE + CAST( + - col2 AS SIGNED ) + - col2 * - - col1 BETWEEN - col0 AND - 86 * + 86
----

skipif mysql # not compatible
query III rowsort label-6314
SELECT * FROM tab1 WHERE + CAST ( + - col2 AS INTEGER ) + - col2 * - - col1 BETWEEN - col0 AND - 86 * + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT COUNT( * ) + + + 63 * + - 16 - + - 57 FROM tab0
----
-948

skipif mysql # not compatible
query I rowsort label-6315
SELECT COUNT ( * ) + + + 63 * + - 16 - + - 57 FROM tab0
----
-948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + + col1 + - col0 col0 FROM tab2
----
61
74
82

query II rowsort
SELECT DISTINCT + col2 + - col1 + - col0, col1 + - col0 AS col2 FROM tab2
----
-101
13
-74
5
-84
-8

query II rowsort
SELECT col0 + - 43, - col0 + col1 AS col0 FROM tab1
----
42
-80
48
-44
8
-37

query I rowsort
SELECT ALL col1 - - + col2 - - + col2 AS col0 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6320
SELECT ALL + CAST( 76 AS SIGNED ), + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
76
9

skipif mysql # not compatible
query II rowsort label-6320
SELECT ALL + CAST ( 76 AS INTEGER ), + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
76
9

query I rowsort
SELECT ALL - col0 * + - 42 AS col0 FROM tab1 cor0
----
2142
3570
3822

query I rowsort
SELECT + 21 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6323
SELECT ALL + - 70 DIV - + 49 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + - 70 / - + 49 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT ALL + MAX( + col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6324
SELECT ALL + MAX ( + col0 ) col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 AS cor0 WHERE + ( + col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6326
SELECT col0 * + col0 + + col1 * + col2 + CAST( + 90 AS SIGNED ) AS col0, - col2 FROM tab1 AS cor0
----
11567
-68
4035
-96
7610
-59

skipif mysql # not compatible
query II rowsort label-6326
SELECT col0 * + col0 + + col1 * + col2 + CAST ( + 90 AS INTEGER ) AS col0, - col2 FROM tab1 AS cor0
----
11567
-68
4035
-96
7610
-59

query II rowsort
SELECT + 50, + col1 * + col1 * col0 AS col2 FROM tab2 AS cor0
----
50
119646
50
336675
50
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT + - ( ( COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6328
SELECT + - ( ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL + 60 AS col2, 70 FROM tab0 AS cor0
----
60
70
60
70
60
70

query I rowsort
SELECT ALL + 54 - 94 AS col2 FROM tab0 WHERE 4 IS NOT NULL
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * - col0 * + + col1 col0 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL + 40 * - COUNT( * ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + 40 * - COUNT ( * ) FROM tab1
----
-120

query I rowsort
SELECT DISTINCT 87 * 1 AS col2 FROM tab0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6334
SELECT DISTINCT ( + + 29 ) DIV - 61 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT ( + + 29 ) / - 61 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 82 + + - 58 FROM tab0 AS cor0
----
-140
-140
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - - MAX( ALL col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6336
SELECT ALL - - MAX ( ALL col2 ) col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6337
SELECT DISTINCT + + 39, COUNT( * ) AS col0 FROM tab1 AS cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-6337
SELECT DISTINCT + + 39, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
39
3

query I rowsort
SELECT ALL + col2 - - + 86 * + col1 AS col0 FROM tab2 AS cor0
----
4409
5820
6662

query I rowsort
SELECT col1 + + + col2 FROM tab0 cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL + - MIN( - + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + - MIN ( - + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, + col1 * + 18 * col2 + - col2 col2 FROM tab2 cor0 WHERE - 47 * - + 28 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT MAX( + 39 ) col0 FROM tab0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6342
SELECT DISTINCT MAX ( + 39 ) col0 FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL - COUNT( + col2 ) + - 63 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - COUNT ( + col2 ) + - 63 FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT + MIN( DISTINCT + col0 ) - + COUNT( + + col2 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6347
SELECT + MIN ( DISTINCT + col0 ) - + COUNT ( + + col2 ) FROM tab0
----
12

query I rowsort
SELECT ALL + col1 + + - col2 AS col0 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT DISTINCT - - col2 + + - ( - col0 ) + - CAST( ( - 59 ) AS SIGNED ) FROM tab2 AS cor0
----
128
163
192

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT - - col2 + + - ( - col0 ) + - CAST ( ( - 59 ) AS INTEGER ) FROM tab2 AS cor0
----
128
163
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 - 77 + col1 + - - col0 * - col1, col1 + col1 + + 61 col1 FROM tab1 AS cor0
----
-1111
155
-202
71
567
89

query I rowsort
SELECT DISTINCT + - 25 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL - - 9 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * ( 9 ) col1, + 98 FROM tab2
----
459
98
603
98
693
98

query II rowsort
SELECT ALL 26 * col0, col1 AS col0 FROM tab0 cor0 WHERE NOT 39 * + col1 + - 0 NOT IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT MAX( + + col0 ) FROM tab2 AS cor0 WHERE - col0 * - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT MAX ( + + col0 ) FROM tab2 AS cor0 WHERE - col0 * - col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT - MIN( - 34 ) col1 FROM tab0 cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6358
SELECT DISTINCT - MIN ( - 34 ) col1 FROM tab0 cor0
----
34

query I rowsort
SELECT ALL + col2 * - + 26 AS col1 FROM tab2 cor0
----
-1040
-1508
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col0 FROM tab1
----
41

query II rowsort
SELECT ALL col1, - 83 AS col1 FROM tab0
----
1
-83
21
-83
81
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT 96 * - col1 > + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 74 * + 37 + col0 * - col2 AS col0 FROM tab0 WHERE NOT col0 - ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT ALL CAST( NULL AS SIGNED ) + - 52 - - col0 + + + col1 + - 79 * + CAST( NULL AS SIGNED ) * ( - col2 ) * col0 * + + col0 + - + col0 * - 52 * + - ( - + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL CAST ( NULL AS INTEGER ) + - 52 - - col0 + + + col1 + - 79 * + CAST ( NULL AS INTEGER ) * ( - col2 ) * col0 * + + col0 + - + col0 * - 52 * + - ( - + col1 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT MIN( ALL col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6365
SELECT MIN ( ALL col1 ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT ( + - 67 ) + MAX( ALL col2 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT ( + - 67 ) + MAX ( ALL col2 ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6367
SELECT + col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT - + col1 * - - 17 / col0 + + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6367
SELECT + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT - + col1 * - - 17 / col0 + + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - COUNT( ALL - + col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6368
SELECT - COUNT ( ALL - + col2 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT 43 * + col2 AS col1 FROM tab2
----
1720
2494
989

query I rowsort
SELECT 81 * col2 AS col0 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 + + col0 )
----

query I rowsort
SELECT ALL + 41 * + 88 FROM tab1
----
3608
3608
3608

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) >= - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / 48 < ( + col2 )
----

query I rowsort
SELECT ALL 44 * + 32 FROM tab2
----
1408
1408
1408

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL - MAX( DISTINCT + col1 ) * - COUNT( * ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - MAX ( DISTINCT + col1 ) * - COUNT ( * ) AS col0 FROM tab1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT ALL - col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - ( + col1 ) * + ( + col0 ) col0 FROM tab1
----
340
4186
663

query I rowsort
SELECT DISTINCT col1 * - 13 FROM tab2 WHERE col0 IS NOT NULL
----
-1001
-663
-871

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 34 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 97 + + col0 FROM tab1
----
148
182
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * 21 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * 21 FROM tab2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6385
SELECT - MIN( 52 ) DIV 42 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6385
SELECT - MIN ( 52 ) / 42 AS col1 FROM tab2
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 69 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT COUNT( DISTINCT 64 ) * - 37 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-6387
SELECT COUNT ( DISTINCT 64 ) * - 37 FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ( COUNT( * ) ) * 38 AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-6388
SELECT ( COUNT ( * ) ) * 38 AS col0 FROM tab2
----
114

query I rowsort
SELECT ALL + ( ( + 61 ) ) + + 36 AS col1 FROM tab1
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT 94 * COUNT( * ) AS col2 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-6390
SELECT 94 * COUNT ( * ) AS col2 FROM tab2
----
282

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + 7 * - col2 )
----

query I rowsort
SELECT col0 * + ( + 72 * ( col1 ) ) FROM tab0
----
131544
6984
87480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT ALL 21 col2 FROM tab0 WHERE NOT col0 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6393
SELECT ALL 21 col2 FROM tab0 WHERE NOT col0 * CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - ( SUM( col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6395
SELECT - ( SUM ( col0 ) ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL 11 - col1 FROM tab1 AS cor0 WHERE ( + col1 + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-6397
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT COUNT( DISTINCT + 60 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT COUNT ( DISTINCT + 60 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT col0 / - 56 FROM tab1 WHERE NOT NULL NOT IN ( - 47 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + SUM( col0 ) * COUNT( * ) FROM tab2 cor0
----
555

skipif mysql # not compatible
query I rowsort label-6400
SELECT + SUM ( col0 ) * COUNT ( * ) FROM tab2 cor0
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL - 39 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6401
SELECT ALL - 39 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6402
SELECT - MIN( col2 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6402
SELECT - MIN ( col2 ) / COUNT ( * ) FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * ( + 37 + 51 ) col2 FROM tab1 AS cor0
----
1232
1232
1232

query I rowsort
SELECT DISTINCT + ( + 62 ) AS col1 FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6406
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE + col1 + 92 NOT IN ( CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE + col1 + 92 NOT IN ( CAST ( NULL AS INTEGER ) + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL 79 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL 79 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
237

query I rowsort
SELECT ( ( - col1 ) ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT - col1 DIV ( - 69 ) FROM tab2 AS cor0 WHERE NOT + ( col1 ) >= 11 + 59
----
0
0

skipif mysql # not compatible
query I rowsort label-6409
SELECT - col1 / ( - 69 ) FROM tab2 AS cor0 WHERE NOT + ( col1 ) >= 11 + 59
----
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > + 1 + col2 * 6
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 46 )
----

query I rowsort
SELECT DISTINCT + 90 + + col2 AS col1 FROM tab2
----
113
130
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 36 ) + col2 col2 FROM tab2
----
59
76
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT DISTINCT - col1 * col1 AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - col1 * col1 AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col1 col2 FROM tab1
----
21
54
82

query I rowsort
SELECT AVG ( 73 ) * + ( 30 ) FROM tab0 WHERE NOT ( 3 ) NOT BETWEEN col0 * + col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT SUM( ALL 11 ) AS col1 FROM tab0 WHERE col0 IN ( col0 )
----
33

skipif mysql # not compatible
query I rowsort label-6417
SELECT SUM ( ALL 11 ) AS col1 FROM tab0 WHERE col0 IN ( col0 )
----
33

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( NULL ) IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 78 - + 53 * col1 AS col2 FROM tab0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT 38 FROM tab2 cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT + 18 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL 80 + ( + col0 ) AS col1 FROM tab2
----
126
144
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL + COUNT( * ) + - 25 * COUNT( * ) - + ( - 45 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + COUNT ( * ) + - 25 * COUNT ( * ) - + ( - 45 ) FROM tab1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT + CAST( NULL AS SIGNED ) * - + 13 - 7 - col2 + + 2 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT + CAST ( NULL AS INTEGER ) * - + 13 - 7 - col2 + + 2 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col2 + - - col1 AS col0 FROM tab0 AS cor0
----
101
209
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT - SUM( col2 ) + - CAST( ( + MIN( DISTINCT - col0 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-6428
SELECT - SUM ( col2 ) + - CAST ( ( + MIN ( DISTINCT - col0 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT + - COUNT( DISTINCT + - 86 ) + - 16 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6429
SELECT + - COUNT ( DISTINCT + - 86 ) + - 16 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT ALL + + 65 * - ( col2 ) + - 5 + - ( - CAST( NULL AS SIGNED ) + - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL + + 65 * - ( col2 ) + - 5 + - ( - CAST ( NULL AS INTEGER ) + - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT ALL + + col1 DIV - col1 + 26 AS col0 FROM tab2 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + + col1 / - col1 + 26 AS col0 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT ALL + col0 * - 32 + + col1 AS col2 FROM tab1 AS cor0
----
-1618
-2715
-2865

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 = - col2
----

query II rowsort
SELECT - col0 AS col2, - 89 FROM tab1 AS cor0
----
-51
-89
-85
-89
-91
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT MAX( + - 64 ) FROM tab2 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6435
SELECT MAX ( + - 64 ) FROM tab2 cor0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 40 / + + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6436
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 40 / + + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT ALL col0 DIV - col0 - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL col0 / - col0 - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 37 - + col1 FROM tab0 cor0
----
-44
16
36

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab2 WHERE NOT - - col1 + + 1 <= ( NULL )
----

query I rowsort
SELECT ALL col0 * ( - 97 ) FROM tab1 WHERE NOT - col1 * 39 BETWEEN ( - col2 + 41 ) AND ( col1 * 24 )
----
-4947
-8245
-8827

query III rowsort
SELECT * FROM tab0 WHERE NOT 84 NOT IN ( + 77 ) AND col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6443
SELECT + 52 DIV - 24 AS col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6443
SELECT + 52 / - 24 AS col0 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * - ( 72 ) col1 FROM tab2
----
-168912
-354816
-361800

query I rowsort
SELECT + col2 * + - 13 FROM tab1 AS cor0
----
-1248
-767
-884

query I rowsort
SELECT + - 15 AS col1 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - 36 * - 13 AS col1 FROM tab0 AS cor0
----
468

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 - - col1 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + col1 * + col1 * 3 AS col1 FROM tab1
----
588
6627
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - 21 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + col1 + + col2 > + col0 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 + - col2 + - col2 ) > ( 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT ALL 82 DIV col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL 82 / col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6455
SELECT + CAST( col1 AS DECIMAL ) - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6455
SELECT + CAST ( col1 AS REAL ) - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT ALL + 9 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) >= + col0
----

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + 9 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) >= + col0
----

query III rowsort
SELECT * FROM tab1 WHERE + - 9 IS NULL
----

query II rowsort
SELECT + 59, + col0 + - 79 AS col1 FROM tab0
----
59
-64
59
18
59
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT DISTINCT - ( - 92 ) / - CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - ( - 92 ) / - CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 36 + + col0 AS col2 FROM tab2
----
10
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0 WHERE 3 = NULL
----

query II rowsort
SELECT DISTINCT - - col1 * + - 82 AS col2, + col2 * + - col2 AS col2 FROM tab1 AS cor0
----
-1148
-9216
-3854
-4624
-410
-3481

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE - col2 BETWEEN - 5 AND + col1
----

query I rowsort
SELECT ALL 88 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( 29 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 + - ( 11 ) * - + 70 - - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL - - ( - - 65 ) - - COUNT( * ) col1 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6466
SELECT ALL - - ( - - 65 ) - - COUNT ( * ) col1 FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( 12 ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - + 59 - - MIN( DISTINCT 49 ) + + 1 AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6468
SELECT - + 59 - - MIN ( DISTINCT 49 ) + + 1 AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 = col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT + + MAX( ALL - 18 ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6470
SELECT + + MAX ( ALL - 18 ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL + ( + 44 ) FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT DISTINCT COUNT( * ) AS col0, 82 FROM tab0
----
3
82

skipif mysql # not compatible
query II rowsort label-6472
SELECT DISTINCT COUNT ( * ) AS col0, 82 FROM tab0
----
3
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6473
SELECT ALL COUNT( * ), + MAX( 38 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6473
SELECT ALL COUNT ( * ), + MAX ( 38 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT - CAST( NULL AS SIGNED ) * - AVG ( + + col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( + + col2 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col2 * 10 AS col1 FROM tab0
----
100
470
990

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT DISTINCT - 3 * - MAX( ALL 98 ) * COUNT( * ) AS col0 FROM tab1
----
882

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - 3 * - MAX ( ALL 98 ) * COUNT ( * ) AS col0 FROM tab1
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT COUNT( * ) * - 60 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT COUNT ( * ) * - 60 FROM tab0
----
-180

query II rowsort
SELECT ALL + col2, + col2 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT DISTINCT - 70 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
-70
15
-70
87
-70
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 * - - 13, col0 * col0 AS col2 FROM tab1
----
-1105
7225
-1183
8281
-663
2601

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 11 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 + - col2 AS col0 FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT ALL + ( 91 ) * 38 AS col2 FROM tab0 AS cor0
----
3458
3458
3458

query I rowsort
SELECT ALL col0 * + - 51 FROM tab2 AS cor0 WHERE NOT - 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL - SUM( DISTINCT - col1 ) * COUNT( * ) + COUNT( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
588

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - SUM ( DISTINCT - col1 ) * COUNT ( * ) + COUNT ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT ALL ( 13 ) DIV + + col0 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-6487
SELECT ALL ( 13 ) / + + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 19 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - 97 * + + col1 / - col2 * + col1 + - 97 * - col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT - + CAST( + col1 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-6489
SELECT - + CAST ( + col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT col1 + + 1 FROM tab0 cor0
----
2
22
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 73 ) IS NULL
----

query I rowsort
SELECT - col2 + 49 AS col1 FROM tab2
----
-9
26
9

query II rowsort
SELECT ALL 27 AS col0, col2 * + col2 + - 98 FROM tab2
----
27
1502
27
3266
27
431

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT DISTINCT MAX( ALL + col1 ) + + + MIN( DISTINCT + 84 ) * COUNT( * ), COUNT( * ) col0 FROM tab1
----
299
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6494
SELECT DISTINCT MAX ( ALL + col1 ) + + + MIN ( DISTINCT + 84 ) * COUNT ( * ), COUNT ( * ) col0 FROM tab1
----
299
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL - MAX( - 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - MAX ( - 2 ) FROM tab2
----
2

query I rowsort
SELECT DISTINCT + col2 + + + col2 AS col0 FROM tab2
----
116
46
80

query I rowsort
SELECT ALL 56 FROM tab2 WHERE ( - - 48 ) IS NOT NULL
----
56
56
56

query I rowsort
SELECT ALL + col0 + + 75 FROM tab2
----
121
139
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT col2 * - col2 / + CAST( NULL AS SIGNED ) / ( - 68 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT col2 * - col2 / + CAST ( NULL AS INTEGER ) / ( - 68 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL 85 DIV col2 - - col1 AS col2 FROM tab0 AS cor0
----
1
29
82

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL 85 / col2 - - col1 AS col2 FROM tab0 AS cor0
----
1
29
82

query I rowsort
SELECT + + col2 - - col1 FROM tab0 WHERE - + col0 + - ( - col0 ) > - col0
----
100
128
31

query I rowsort
SELECT ALL - + 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - col2 + ( col2 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 95 > + - 69 / - - col2
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE ( NULL ) >= - + col1
----

query I rowsort
SELECT col0 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1081
2600
4408

query II rowsort
SELECT + 59 * + + col1 - col0 AS col1, + col0 * - 26 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
210
-2210
2682
-2366
775
-1326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 84 ) col2 FROM tab1 AS cor0
----
84
84
84

query III rowsort
SELECT DISTINCT - + 21 AS col2, col1, - - 91 * - 75 + + col2 + col0 FROM tab2 cor0
----
9 values hashing to eb59ff3d3577b23ea7ca47a5e0b9b74d

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6510
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 73 * - col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6510
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 73 * - col1 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6511
SELECT ALL - CAST( + ( + col2 ) AS SIGNED ) * col1 + - + col0 AS col0, col1 * + col1 + - + 53 FROM tab0
----
-196
-52
-297
388
-3822
6508

skipif mysql # not compatible
query II rowsort label-6511
SELECT ALL - CAST ( + ( + col2 ) AS INTEGER ) * col1 + - + col0 AS col0, col1 * + col1 + - + 53 FROM tab0
----
-196
-52
-297
388
-3822
6508

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + + ( - 39 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 56 * - ( + COUNT( * ) ) AS col2 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-6513
SELECT 56 * - ( + COUNT ( * ) ) AS col2 FROM tab0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT - COUNT( * ) * + + ( - COUNT( * ) ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - COUNT ( * ) * + + ( - COUNT ( * ) ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT COUNT( * ) + + 52 + - - COUNT( * ) * + 49 FROM tab0 WHERE NOT NULL NOT IN ( - col2 + + - col2 )
----
52

skipif mysql # not compatible
query I rowsort label-6515
SELECT COUNT ( * ) + + 52 + - - COUNT ( * ) * + 49 FROM tab0 WHERE NOT NULL NOT IN ( - col2 + + - col2 )
----
52

query I rowsort
SELECT col0 * - + 49 * + + col0 FROM tab1 cor0
----
-127449
-354025
-405769

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 5 * + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT + + COUNT( + ( + - col0 ) ) * 66 AS col2 FROM tab2 cor0
----
198

skipif mysql # not compatible
query I rowsort label-6518
SELECT + + COUNT ( + ( + - col0 ) ) * 66 AS col2 FROM tab2 cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL MAX( col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + ( + col0 ) NOT IN ( + 86, - 69 * + col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col0 FROM tab1 AS cor0 WHERE NOT + 43 + - 19 IS NULL
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 WHERE + col0 >= + + col1 + + + col0
----

query I rowsort
SELECT ( - col1 ) - - ( col0 ) + + ( col1 ) - col1 - - + 28 * - col2 FROM tab1
----
-1572
-1860
-2651

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6525
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) AS col0, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6525
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) AS col0, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT col2 + + - 46 AS col0, + col2 AS col1 FROM tab2
----
-23
23
-6
40
12
58

query I rowsort
SELECT DISTINCT + ( + + col2 ) + - 31 AS col0 FROM tab1
----
28
37
65

query I rowsort
SELECT ( + 11 ) + + + col2 AS col1 FROM tab1
----
107
70
79

query II rowsort
SELECT 96 + - 16 AS col1, - col0 FROM tab1
----
80
-51
80
-85
80
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT DISTINCT col1 * + col1 DIV + + col1 + - col0 col0 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6530
SELECT DISTINCT col1 * + col1 / + + col1 + - col0 col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 14 + - 61 AS col0 FROM tab2
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT ALL - 91 + + col2 - + - CAST( NULL AS SIGNED ) + - col0 + - 51 / + 61 + + col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6532
SELECT ALL - 91 + + col2 - + - CAST ( NULL AS INTEGER ) + - col0 + - 51 / + 61 + + col2 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col0 * - + 63 BETWEEN - col0 * + 38 + - col1 AND - 49
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( col0 ) AND 75
----

query I rowsort
SELECT DISTINCT + + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT MIN( ALL + + col1 ) col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6536
SELECT MIN ( ALL + + col1 ) col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
5

query I rowsort
SELECT ALL - 84 - col0 FROM tab0 AS cor0
----
-171
-181
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL MIN( ALL + - col0 ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6538
SELECT ALL MIN ( ALL + - col0 ) col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - COUNT( ALL - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6539
SELECT - COUNT ( ALL - col0 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT + 79 * + + col1 * col0 FROM tab0
----
144333
7663
95985

query II rowsort
SELECT ( - ( - 2 ) ) AS col0, + col2 FROM tab0
----
2
10
2
47
2
99

query I rowsort
SELECT - col2 FROM tab0 WHERE col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT COUNT( ALL - + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT COUNT ( ALL - + col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - - 23 AS col1 FROM tab0 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= - ( - - col1 )
----

query I rowsort
SELECT - ( - - col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT + MIN( - col1 ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT + MIN ( - col1 ) AS col1 FROM tab1 cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col2 FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT - + ( 83 ) FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6551
SELECT CAST( NULL AS DECIMAL ) AS col1, + COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6551
SELECT CAST ( NULL AS REAL ) AS col1, + COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

query II rowsort
SELECT DISTINCT - - col2 AS col1, + 43 FROM tab0 WHERE NOT col1 + - col2 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT COUNT( * ) * - 15 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6554
SELECT COUNT ( * ) * - 15 FROM tab0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6555
SELECT DISTINCT * FROM tab0 WHERE - CAST( - col1 AS SIGNED ) IN ( + CAST( + col2 AS SIGNED ), + col2 * + 51 * - col1, - ( 12 ) )
----

skipif mysql # not compatible
query III rowsort label-6555
SELECT DISTINCT * FROM tab0 WHERE - CAST ( - col1 AS INTEGER ) IN ( + CAST ( + col2 AS INTEGER ), + col2 * + 51 * - col1, - ( 12 ) )
----

query II rowsort
SELECT DISTINCT + + 69, 28 * col1 AS col0 FROM tab1 cor0
----
69
1316
69
140
69
392

query I rowsort
SELECT DISTINCT - col2 + - col0 + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 98 + + 90 + - - 72 FROM tab2
----
260

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT - - COUNT( * ) + + 37 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT - - COUNT ( * ) + + 37 FROM tab2 AS cor0
----
40

query I rowsort
SELECT col2 + + 37 AS col2 FROM tab0 AS cor0
----
136
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT 0 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6563
SELECT 0 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - col0 * - + 91 + + col2 + - col0 FROM tab0 cor0
----
-1333
-7994
-8825

query I rowsort
SELECT + 85 + + 59 * col2 AS col1 FROM tab0 AS cor0
----
2858
5926
675

query II rowsort
SELECT 16 + + col0 AS col2, + col0 + + ( + 48 ) AS col1 FROM tab1 AS cor0
----
101
133
107
139
67
99

query II rowsort
SELECT - 39 AS col2, 95 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT COUNT( * ) col1, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6568
SELECT COUNT ( * ) col1, + COUNT ( * ) FROM tab2
----
3
3

query II rowsort
SELECT DISTINCT + ( 75 ) - col1 AS col0, - 73 FROM tab0 AS cor0
----
-6
-73
54
-73
74
-73

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 99 - - ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - - - ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 59 BETWEEN - 60 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 89 NOT BETWEEN + 74 / - col0 + + col1 + - - col0 AND col0 * 40
----
-1

skipif mysql # not compatible
query I rowsort label-6573
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 89 NOT BETWEEN + 74 / - col0 + + col1 + - - col0 AND col0 * 40
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - 9 < NULL
----

query I rowsort
SELECT ALL ( - ( + + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 13 * - col0 AS col0 FROM tab0
----
1131
1261
195

query I rowsort
SELECT DISTINCT + ( - 62 ) AS col0 FROM tab2
----
-62

query I rowsort
SELECT ALL - 98 + - 4 FROM tab1
----
-102
-102
-102

query I rowsort
SELECT - col0 * + col2 * - 1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + ( + 17 ) FROM tab2
----
17
17
17

query I rowsort
SELECT + 46 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - - MAX( + 67 ) FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - - MAX ( + 67 ) FROM tab0 cor0
----
67

query I rowsort
SELECT 67 + + col1 + - 20 * + col1 AS col0 FROM tab1 AS cor0
----
-199
-28
-826

query I rowsort
SELECT ( + 29 ) * + + 22 + col2 - - 68 FROM tab1
----
765
774
802

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) IN ( + 89 * - + 50 )
----

query I rowsort
SELECT ALL - - 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT + 99 + + + col1 * + + col2 * - - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 27 AS col0 FROM tab0 AS cor0
----
126
37
74

query I rowsort
SELECT ALL - col2 - ( col0 ) + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1127
-2664
-4483

query I rowsort
SELECT DISTINCT col0 - - - col1 AS col1 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT ALL + col1 + 26 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 71 + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6594
SELECT + COUNT( * ) - 51 AS col0, + COUNT( + 19 ) AS col0 FROM tab2 AS cor0
----
-48
3

skipif mysql # not compatible
query II rowsort label-6594
SELECT + COUNT ( * ) - 51 AS col0, + COUNT ( + 19 ) AS col0 FROM tab2 AS cor0
----
-48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT COUNT( * ) + + 14 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-6595
SELECT COUNT ( * ) + + 14 FROM tab1
----
17

query I rowsort
SELECT ALL 18 * + col1 * + + ( + col1 ) AS col0 FROM tab2
----
106722
46818
80802

query I rowsort
SELECT 3 * - + ( - - ( 22 ) ) + + + col1 * - col0 FROM tab2
----
-2412
-4994
-5091

query I rowsort
SELECT + col2 FROM tab1 WHERE - col0 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6599
SELECT - col0 + - - CAST( NULL AS DECIMAL ) * + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT - col0 + - - CAST ( NULL AS REAL ) * + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - COUNT( * ) + + - 35 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-6600
SELECT - COUNT ( * ) + + - 35 FROM tab1
----
-38

query III rowsort
SELECT ALL * FROM tab2 WHERE + 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6602
SELECT DISTINCT COUNT( * ) - ( + 63 ) DIV + + SUM( DISTINCT + 6 ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT COUNT ( * ) - ( + 63 ) / + + SUM ( DISTINCT + 6 ) AS col0 FROM tab1
----
-7

query I rowsort
SELECT DISTINCT + col1 - - ( ( - col0 ) ) * - col1 FROM tab1 cor0
----
430
4324
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6604
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 * 58 * - col0 * - 9 col2 FROM tab0 AS cor0
----
2724840
3038040
469800

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL + COUNT( * ) * + COUNT( * ) + + 24 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + + 24 FROM tab2 AS cor0
----
33

query I rowsort
SELECT + col0 * - col2 + + - ( + ( - - col2 ) ) - + 46 FROM tab1 AS cor0
----
-5038
-5120
-6302

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT + MIN( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + MIN ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT ( - ( + + col0 ) ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT + ( + col1 ) * + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 28 BETWEEN + - col1 AND NULL OR NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6612
SELECT DISTINCT + CAST( + 19 AS SIGNED ) FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT + CAST ( + 19 AS INTEGER ) FROM tab2 cor0
----
19

query II rowsort
SELECT col1 AS col0, + col1 AS col2 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 70 * - col1 AS col0 FROM tab1 AS cor0
----
-3290
-350
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + col2 + - + col1 - - - col0 * 15 IN ( + col0, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT ALL - 27 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - 27 / - col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col1 + col0 AS col1, col0 FROM tab2
----
141
64
142
75
97
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col0 + + col1 * - col1 * + col2 + + - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 6 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 6 FROM tab2
----
NULL

query I rowsort
SELECT - ( + 64 ) * + + col0 FROM tab2
----
-2944
-4096
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + - 53 * + 97 col2 FROM tab1 cor0
----
-5103
-5103
-5103

onlyif mysql # DIV for integer division: 
query II rowsort label-6623
SELECT col1 DIV col1, + col2 * - col2 + + col2 AS col1 FROM tab2 cor0
----
1
-1560
1
-3306
1
-506

skipif mysql # not compatible
query II rowsort label-6623
SELECT col1 / col1, + col2 * - col2 + + col2 AS col1 FROM tab2 cor0
----
1
-1560
1
-3306
1
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT DISTINCT MIN( ALL 16 ) AS col1 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT MIN ( ALL 16 ) AS col1 FROM tab0
----
16

query I rowsort
SELECT ALL ( 68 ) * + - col0 - - 27 + - 29 FROM tab2
----
-3130
-4354
-5102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6628
SELECT DISTINCT CAST( - COUNT( * ) AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT CAST ( - COUNT ( * ) AS REAL ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col1 + + 84 + 41 * + col2 * - col0 * + col1 FROM tab2 AS cor0
----
-11949299
-2212143
-8081759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT DISTINCT 30 * + - col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT 30 * + - col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 45 AS col2 FROM tab2 AS cor0
----
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - col0 / - + 55 IN ( - 40 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col1 * 27 FROM tab1
----
-59
135
-68
1269
-96
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 68 col2, col1 + - + 39 + - 37 * + col1 * - - 10 * - 15 FROM tab2
----
68
283062
68
371878
68
427388

query I rowsort
SELECT 8 - + col2 FROM tab2
----
-15
-32
-50

query I rowsort
SELECT + ( + 25 ) - + + 63 FROM tab2
----
-38
-38
-38

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * 58 * - col1 < NULL
----

query I rowsort
SELECT 36 * - + col0 FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + - COUNT( * ) + - + ( 85 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + - COUNT ( * ) + - + ( 85 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

query I rowsort
SELECT ALL + - 88 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT ALL - 93 DIV + + ( - 37 ) AS col0 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL - 93 / + + ( - 37 ) AS col0 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT MAX( DISTINCT - + col2 ), - COUNT( * ) AS col0 FROM tab1 cor0
----
-59
-3

skipif mysql # not compatible
query II rowsort label-6642
SELECT MAX ( DISTINCT - + col2 ), - COUNT ( * ) AS col0 FROM tab1 cor0
----
-59
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + MIN( - + 1 ) col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6643
SELECT + MIN ( - + 1 ) col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 0 ) col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 93 ) AS col1 FROM tab0
----
-93

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( + col0, + col2, 49 + 95, + + col0 / + col0 - col1 / - col2 - - 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 35 + + + col0 AS col0 FROM tab1
----
120
126
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT DISTINCT - 97 DIV + col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - 97 / + col0 FROM tab2
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT col1 DIV + + 89 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT col1 / + + 89 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT + MAX( + col1 ) * + 9 + - + ( 36 ) FROM tab0 AS cor0
----
693

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + MAX ( + col1 ) * + 9 + - + ( 36 ) FROM tab0 AS cor0
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - COUNT( * ) * + SUM( DISTINCT - + col0 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT - COUNT ( * ) * + SUM ( DISTINCT - + col0 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT - col2 - + 13 + ( - + col2 ) - + col0 AS col2 FROM tab0 AS cor0
----
-120
-122
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL MAX( + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL MAX ( + - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + col1 * + + 47 * - + col1 FROM tab2
----
-122247
-210983
-278663

query II rowsort
SELECT col2 AS col0, - 83 AS col2 FROM tab0
----
10
-83
47
-83
99
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col2 FROM tab1 WHERE ( + col0 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 > - col1 + col0
----

query II rowsort
SELECT ALL 96 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
96
-46
96
-64
96
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT + COUNT( * ), 83 AS col1 FROM tab2
----
3
83

skipif mysql # not compatible
query II rowsort label-6659
SELECT + COUNT ( * ), 83 AS col1 FROM tab2
----
3
83

query I rowsort
SELECT 82 * + ( col0 ) AS col0 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT DISTINCT + 59 * + + 39 AS col0 FROM tab1
----
2301

query I rowsort
SELECT + - 5 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL + MAX( DISTINCT 90 ) * 37 AS col0 FROM tab0
----
3330

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + MAX ( DISTINCT 90 ) * 37 AS col0 FROM tab0
----
3330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL + - 3 * CAST( - + col2 AS SIGNED ) FROM tab1 cor0
----
177
204
288

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL + - 3 * CAST ( - + col2 AS INTEGER ) FROM tab1 cor0
----
177
204
288

onlyif mysql # DIV for integer division: 
query II rowsort label-6665
SELECT DISTINCT - col1 AS col2, - col2 + + 62 DIV - col1 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-14
-151
-47
-160
-5
-156

skipif mysql # not compatible
query II rowsort label-6665
SELECT DISTINCT - col1 AS col2, - col2 + + 62 / - col1 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-14
-151
-47
-160
-5
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT ALL + + ( + CAST( + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT - 38 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6667
SELECT - 38 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT 8 + + col2 AS col0 FROM tab0 AS cor0
----
107
18
55

query I rowsort
SELECT + - 52 + - col0 AS col1 FROM tab1 AS cor0
----
-103
-137
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT ( + col0 ) DIV - col1 + + col1 FROM tab1
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-6670
SELECT ( + col0 ) / - col1 + + col1 FROM tab1
----
-12
11
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL + 69 + + MIN( ALL - - col2 ) + COUNT( * ) + CAST( NULL AS SIGNED ) * - + 11 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + 69 + + MIN ( ALL - - col2 ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - + 11 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE - - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6673
SELECT ALL - - col2 FROM tab0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL - - col2 FROM tab0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1 * - col0 AS col0, - col1 FROM tab2
----
-2346
-51
-4928
-77
-5025
-67

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN col2 AND + col1 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT DISTINCT + MIN( - + ( - + 41 ) ) AS col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT + MIN ( - + ( - + 41 ) ) AS col2 FROM tab2 AS cor0
----
41

query I rowsort
SELECT 65 - 42 AS col0 FROM tab0 AS cor0
----
23
23
23

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE - - 91 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT - - COUNT( + ( - 51 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6679
SELECT - - COUNT ( + ( - 51 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT 56 * - col0 + + - 16 FROM tab2 AS cor0
----
-2592
-3600
-4216

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6681
SELECT - + CAST( NULL AS DECIMAL ) AS col0, 98 FROM tab2 AS cor0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
query II rowsort label-6681
SELECT - + CAST ( NULL AS REAL ) AS col0, 98 FROM tab2 AS cor0
----
NULL
98
NULL
98
NULL
98

query II rowsort
SELECT + - 52, + col2 FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

query II rowsort
SELECT - col2 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6684
SELECT - COUNT( * ), ( COUNT( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6684
SELECT - COUNT ( * ), ( COUNT ( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL - + MIN( ALL col0 ) col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6685
SELECT ALL - + MIN ( ALL col0 ) col0 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT ALL col1 DIV 43 * - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL col1 / 43 * - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6687
SELECT col0 AS col0 FROM tab2 WHERE NOT - col1 / col2 + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6687
SELECT col0 AS col0 FROM tab2 WHERE NOT - col1 / col2 + + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6688
SELECT + COUNT( * ) DIV + COUNT( ALL col2 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6688
SELECT + COUNT ( * ) / + COUNT ( ALL col2 ) FROM tab0
----
1

query I rowsort
SELECT - ( + + 55 ) FROM tab0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT 0 * COUNT( - col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT 0 * COUNT ( - col0 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * 7 + - col2 * 33 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT - COUNT( DISTINCT + + 3 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6692
SELECT - COUNT ( DISTINCT + + 3 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL + MAX( ALL + 21 ) AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + MAX ( ALL + 21 ) AS col1 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT + COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-6694
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) >= - col0
----
0

query I rowsort
SELECT ALL - + col1 * - 63 AS col0 FROM tab1 AS cor0
----
2961
315
882

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < - 1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT - col0 / - CAST( NULL AS SIGNED ) * - - ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6697
SELECT - col0 / - CAST ( NULL AS INTEGER ) * - - ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col2 - - - 19 < - 58 + + 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT DISTINCT + col0 * + 6 AS col1 FROM tab0 WHERE + 56 + - CAST( - col2 AS SIGNED ) NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT + col0 * + 6 AS col1 FROM tab0 WHERE + 56 + - CAST ( - col2 AS INTEGER ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT 79 + - COUNT( * ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-6700
SELECT 79 + - COUNT ( * ) FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT - COUNT( * ) + + 15 AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6701
SELECT - COUNT ( * ) + + 15 AS col1 FROM tab1
----
12

query I rowsort
SELECT col0 * - - ( - col0 ) * - col2 FROM tab2
----
163840
326250
48668

query II rowsort
SELECT ALL - 30 * - 16 AS col1, col0 AS col0 FROM tab2
----
480
46
480
64
480
75

query I rowsort
SELECT 83 - + - col0 + - col0 AS col0 FROM tab0
----
83
83
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 41 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT + COUNT( - ( - 64 ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6706
SELECT + COUNT ( - ( - 64 ) ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + - 97 FROM tab1 cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT DISTINCT + 25 * - - COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
75
-3

skipif mysql # not compatible
query II rowsort label-6708
SELECT DISTINCT + 25 * - - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
75
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - 78 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 41 FROM tab2 AS cor0 WHERE col0 < - col2 + - col2 * - 47
----
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 99
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6712
SELECT ALL col0 * - CAST( NULL AS SIGNED ) + - col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL > col2 )
----

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) + - col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL > col2 )
----

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT ALL + col0, col1 * + col0 * - col0 * + col2 FROM tab1
----
51
-3495744
85
-2131375
91
-26466076

query I rowsort
SELECT 59 * + 96 FROM tab1
----
5664
5664
5664

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN - 80 * + col2 AND - col1 * - col1 * - col0 * + - 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 68 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-68
-68
-68

query I rowsort
SELECT - ( + + 31 ) AS col1 FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT - + SUM( + - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6719
SELECT - + SUM ( + - col2 ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 70 IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + 35 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT - col1 * + - col1 + - col1 FROM tab0 cor0
----
0
420
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT - COUNT( * ) * - SUM( ALL + col2 ) * - + SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-67155

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL + col2 ) * - + SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-67155

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 23 * col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT MIN( col0 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6725
SELECT MIN ( col0 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
43

query I rowsort
SELECT + 78 + - 89 * + col0 AS col1 FROM tab0 AS cor0
----
-1257
-7665
-8555

query I rowsort
SELECT 56 + - + col2 * - - col1 * - col0 * + - 62 + + col2 FROM tab1 AS cor0
----
-1554535
-18031708
-4249576

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6728
SELECT * FROM tab1 WHERE ( - - 89 ) * - - 84 + - 95 + - CAST( NULL AS DECIMAL ) / + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6728
SELECT * FROM tab1 WHERE ( - - 89 ) * - - 84 + - 95 + - CAST ( NULL AS REAL ) / + 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 12 ) * 91 AS col0 FROM tab1
----
1092
1092
1092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * - col0 col0 FROM tab0
----
-1350
-7830
-8730

query I rowsort
SELECT ALL 1 AS col1 FROM tab2 WHERE - 67 NOT BETWEEN + 68 AND ( - col1 - + 12 * col2 )
----
1
1
1

query I rowsort
SELECT ALL 24 + + - 39 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT + - col1 - 29 AS col1 FROM tab0 AS cor0
----
-110
-30
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + - 92 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6734
SELECT + - 92 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL - 52 * COUNT( * ) + - COUNT( * ) + 27 + 38 FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - 52 * COUNT ( * ) + - COUNT ( * ) + 27 + 38 FROM tab0 cor0
----
-94

query II rowsort
SELECT - - col1 - col0 + + + 45, + col1 AS col0 FROM tab0 AS cor0
----
-21
21
-51
1
111
81

query I rowsort
SELECT - col2 + - 25 FROM tab1 AS cor0
----
-121
-84
-93

query I rowsort
SELECT - 98 FROM tab0 WHERE - col0 IS NOT NULL
----
-98
-98
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 2 * 2 * + - col2 FROM tab1 AS cor0
----
-236
-272
-384

query I rowsort
SELECT col0 * col2 * - 13 FROM tab2 cor0
----
-13754
-33280
-56550

query II rowsort
SELECT + col0 AS col2, 61 AS col2 FROM tab0 AS cor0
----
15
61
87
61
97
61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6744
SELECT DISTINCT CAST( ( + col0 ) AS SIGNED ) DIV col1, + col0 AS col1 FROM tab0 AS cor0
----
0
15
4
87
97
97

skipif mysql # not compatible
query II rowsort label-6744
SELECT DISTINCT CAST ( ( + col0 ) AS INTEGER ) / col1, + col0 AS col1 FROM tab0 AS cor0
----
0
15
4
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT DISTINCT - MIN( + + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT - MIN ( + + col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT SUM( DISTINCT 24 ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6746
SELECT SUM ( DISTINCT 24 ) AS col0 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6747
SELECT DISTINCT + COUNT( - col2 ), 19 AS col0 FROM tab0
----
3
19

skipif mysql # not compatible
query II rowsort label-6747
SELECT DISTINCT + COUNT ( - col2 ), 19 AS col0 FROM tab0
----
3
19

query I rowsort
SELECT - col1 * + 12 FROM tab0
----
-12
-252
-972

query I rowsort
SELECT ALL 15 * + + col1 FROM tab2
----
1005
1155
765

query I rowsort
SELECT DISTINCT + 48 * - - col0 * - - col0 AS col1 FROM tab1 AS cor0
----
124848
346800
397488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-40
-40
-40

query II rowsort
SELECT - col0, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT col0, 65 FROM tab2 AS cor0
----
46
65
64
65
75
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT - MAX( ALL - col2 ) col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6754
SELECT DISTINCT - MAX ( ALL - col2 ) col1 FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT DISTINCT CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6756
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT col2 DIV + col0 + - 3 AS col0 FROM tab1
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-6757
SELECT col2 / + col0 + - 3 AS col0 FROM tab1
----
-2
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) + + 79 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + 79 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + 34 col1, col2 * col0 AS col1 FROM tab0
----
-53
870
-63
9603
19
705

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6760
SELECT ALL CAST( - 18 AS SIGNED ) + 51 * - col1 DIV + col1 FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL CAST ( - 18 AS INTEGER ) + 51 * - col1 / + col1 FROM tab2
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * + - col2 - + 79 + col2 - + 42 AS col2 FROM tab0 AS cor0
----
631
759
9581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT ALL - col1 + - col2 - + - 43 * + CAST( - - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1893
399
4157

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - col1 + - col2 - + - 43 * + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1893
399
4157

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6764
SELECT * FROM tab2 AS cor0 WHERE - col0 * - - col0 * + 17 / CAST( NULL AS SIGNED ) * + col1 >= + col0 / + col0
----

skipif mysql # not compatible
query III rowsort label-6764
SELECT * FROM tab2 AS cor0 WHERE - col0 * - - col0 * + 17 / CAST ( NULL AS INTEGER ) * + col1 >= + col0 / + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6765
SELECT DISTINCT + - COUNT( DISTINCT + col2 ) col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6765
SELECT DISTINCT + - COUNT ( DISTINCT + col2 ) col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - col1 NOT IN ( - 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 73 * - col1 FROM tab1
----
-1022
-3431
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT + COUNT( * ) * 84 AS col1 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-6768
SELECT + COUNT ( * ) * 84 AS col1 FROM tab0
----
252

query I rowsort
SELECT 21 * col0 AS col2 FROM tab2
----
1344
1575
966

query II rowsort
SELECT ALL - 65 AS col2, + col0 + - col2 FROM tab0
----
-65
-2
-65
-32
-65
77

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT DISTINCT + MAX( DISTINCT + + ( + - 22 ) ) FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT + MAX ( DISTINCT + + ( + - 22 ) ) FROM tab2 AS cor0
----
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT DISTINCT - 2 DIV + ( - ( - + col0 ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6774
SELECT DISTINCT - 2 / + ( - ( - + col0 ) ) col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - 69 AS col2, col2 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

query II rowsort
SELECT - col1 AS col1, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT 18 * + col0 AS col1 FROM tab0
----
1566
1746
270

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - + col2 * + 25 * + - 59, - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6779
SELECT ( - + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT ( - + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL - MIN( + + 32 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - MIN ( + + 32 ) FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - SUM( + + 17 ) AS col1 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6781
SELECT - SUM ( + + 17 ) AS col1 FROM tab0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT ALL col0 * CAST( NULL AS SIGNED ) * + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL col0 * CAST ( NULL AS INTEGER ) * + - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT DISTINCT + - col2 DIV - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + - col2 / - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( col2 ) * - col2 AS col2 FROM tab2 cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab0 AS cor0
----
91
91
91

query II rowsort
SELECT - col1 AS col0, ( 94 ) FROM tab1 AS cor0
----
-14
94
-47
94
-5
94

query I rowsort
SELECT + + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - - col1 + + - 64 * - - col1 AS col1 FROM tab2 AS cor0
----
-3213
-4221
-4851

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6789
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST( - + col0 AS SIGNED ) AND + col0 / - - 42
----

skipif mysql # not compatible
query III rowsort label-6789
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST ( - + col0 AS INTEGER ) AND + col0 / - - 42
----

query I rowsort
SELECT + col2 + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col2 < 94
----
96

query I rowsort
SELECT + 10 + ( + - col0 ) * col1 FROM tab2 AS cor0
----
-2336
-4918
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - + COUNT( * ) + 60 AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6793
SELECT - + COUNT ( * ) + 60 AS col0 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 + - col0 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * + ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL COUNT( ALL + 60 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL COUNT ( ALL + 60 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) > NULL )
----

query I rowsort
SELECT ( + col2 ) - col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + 88 + - 88 FROM tab1 AS cor0 WHERE - 29 < - - 3
----
0
0
0

query I rowsort
SELECT ALL ( - - col1 ) + 86 FROM tab1 AS cor0
----
100
133
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL + MAX( ALL + + col1 ) col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6801
SELECT ALL + MAX ( ALL + + col1 ) col0 FROM tab0 cor0
----
81

query I rowsort
SELECT ALL 73 * - 0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT DISTINCT + MAX( + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT + MAX ( + + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT + col1 DIV + col0 + col0 * 74 col2 FROM tab1
----
3774
6290
6734

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6804
SELECT + col1 / + col0 + col0 * 74 col2 FROM tab1
----
3774
6290
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 74 * col0 col1 FROM tab2 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT 42 + - col1 FROM tab1
----
-5
28
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 FROM tab1 WHERE NOT ( + col2 + - ( + col1 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 WHERE NOT ( + col2 + - ( + col1 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= ( col1 ) * + col1
----

query I rowsort
SELECT - col1 * col1 + 76 * col1 FROM tab2
----
-77
1275
603

query I rowsort
SELECT - 39 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT ALL - 17 DIV col1 + col2 col2 FROM tab0
----
10
47
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6812
SELECT ALL - 17 / col1 + col2 col2 FROM tab0
----
10
47
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col2 FROM tab2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT col1 DIV + col1 + - col1 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-6814
SELECT col1 / + col1 + - col1 FROM tab0
----
-20
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT DISTINCT - CAST( + ( 30 ) AS SIGNED ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - CAST ( + ( 30 ) AS INTEGER ) FROM tab2
----
-30

query III rowsort
SELECT * FROM tab1 WHERE NOT 32 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL - ( ( 41 ) ) AS col0 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ( + ( - col1 ) ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT + COUNT( ALL - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + COUNT ( ALL - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL - col0 * - col1 FROM tab2 WHERE NOT ( - col1 + 2 * col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT - 50 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN - 46 * - col1 + - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6823
SELECT - 50 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN - 46 * - col1 + - col1 AND NULL
----

query I rowsort
SELECT + col0 + - 57 * - 31 FROM tab0
----
1782
1854
1864

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL - 28 * MIN( DISTINCT + col1 ) FROM tab1
----
-140

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - 28 * MIN ( DISTINCT + col1 ) FROM tab1
----
-140

query I rowsort
SELECT - col2 * col0 + 15 AS col0 FROM tab0 AS cor0
----
-690
-855
-9588

query I rowsort
SELECT ALL 70 * + col2 + col0 FROM tab0 cor0
----
3305
7027
787

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT + 37 * - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 WHERE ( 28 ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6828
SELECT + 37 * - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 WHERE ( 28 ) <> NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab2 WHERE col0 NOT BETWEEN 39 + 36 AND NULL
----
2116
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT 51 NOT IN ( - 46 * col1 + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6830
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT 51 NOT IN ( - 46 * col1 + col0 )
----
0

query I rowsort
SELECT DISTINCT + ( - ( 58 ) ) AS col2 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT ALL - 97 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 53 * - 18 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - - 64 * - MAX( DISTINCT - 65 ) - 16 AS col1 FROM tab1 cor0
----
4144

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - - 64 * - MAX ( DISTINCT - 65 ) - 16 AS col1 FROM tab1 cor0
----
4144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 28 - col0 col2 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT ALL col0 + - col1 * 56 FROM tab0 AS cor0
----
-1089
-4521
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 67 ) NOT IN ( 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 15 FROM tab2 cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT 3 + col1 FROM tab0 AS cor0
----
24
4
84

query I rowsort
SELECT DISTINCT + 67 * 76 FROM tab1 AS cor0
----
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( 31 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( 31 ) IS NOT NULL
----
0

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col0 AND ( + 9 )
----
23
40
58

query I rowsort
SELECT - col2 + - ( - col0 ) AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT DISTINCT - ( + 97 ) DIV - 32 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - ( + 97 ) / - 32 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 + - col2 + + col1 AS col1 FROM tab2
----
-3
-49
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6845
SELECT - COUNT( * ) + + COUNT( DISTINCT - 38 ) DIV + 99 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6845
SELECT - COUNT ( * ) + + COUNT ( DISTINCT - 38 ) / + 99 FROM tab2
----
-3

query I rowsort
SELECT col0 + col0 AS col2 FROM tab2 WHERE + col0 + + col1 > col2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT CAST( 9 AS SIGNED ) + - col1 FROM tab0
----
-12
-72
8

skipif mysql # not compatible
query I rowsort label-6847
SELECT CAST ( 9 AS INTEGER ) + - col1 FROM tab0
----
-12
-72
8

query I rowsort
SELECT 12 * ( col2 ) FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + col1 + col2 AS col2 FROM tab1
----
149
161
206

query I rowsort
SELECT 20 + + col1 * 96 AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
4916
6452
7412

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT + SUM( - + 31 ) col0 FROM tab2
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6851
SELECT DISTINCT + SUM ( - + 31 ) col0 FROM tab2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT + COUNT( * ) * + MAX( ALL col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT + COUNT ( * ) * + MAX ( ALL col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - - 76 ) FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL + ( + 51 ) FROM tab0 AS cor0
----
51
51
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT + ( - SUM( - col2 ) ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + ( - SUM ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 AND NULL IN ( col0 + 50 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + ( + 11 ) ) IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + 22 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - - col0 / + col0 AND ( col2 )
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - MAX( ALL - col2 ) * + 42 FROM tab1 AS cor0
----
2478

skipif mysql # not compatible
query I rowsort label-6863
SELECT - MAX ( ALL - col2 ) * + 42 FROM tab1 AS cor0
----
2478

query I rowsort
SELECT DISTINCT - + ( 24 ) AS col0 FROM tab2 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = 55 * col2 + 9
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT DISTINCT 46 col1, COUNT( * ) + + SUM( + col2 ) FROM tab2 AS cor0
----
46
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6866
SELECT DISTINCT 46 col1, COUNT ( * ) + + SUM ( + col2 ) FROM tab2 AS cor0
----
46
124

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 27 NOT IN ( - + ( - 66 ) + - 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT - ( CAST( + col0 AS SIGNED ) ) + 48 FROM tab2 AS cor0
----
-16
-27
2

skipif mysql # not compatible
query I rowsort label-6868
SELECT - ( CAST ( + col0 AS INTEGER ) ) + 48 FROM tab2 AS cor0
----
-16
-27
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6869
SELECT DISTINCT - ( + 23 ) + - CAST( COUNT( * ) AS SIGNED ) + - 24 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT - ( + 23 ) + - CAST ( COUNT ( * ) AS INTEGER ) + - 24 FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT COUNT( * ) + - SUM( + + col0 ) AS col1 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-6870
SELECT COUNT ( * ) + - SUM ( + + col0 ) AS col1 FROM tab1
----
-224

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 * + 73 IN ( + 79 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + 50 col1 FROM tab2
----
114
125
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT - 61 + + MIN( ALL col0 ) * + - COUNT( ALL - 56 ) FROM tab1
----
-214

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - 61 + + MIN ( ALL col0 ) * + - COUNT ( ALL - 56 ) FROM tab1
----
-214

query I rowsort
SELECT ALL + ( col0 ) + + - ( + col1 ) AS col2 FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 WHERE col1 / + col0 - col1 NOT IN ( ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT - MAX( + col2 ) col2, - COUNT( * ) + - 75 FROM tab2
----
-58
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6876
SELECT - MAX ( + col2 ) col2, - COUNT ( * ) + - 75 FROM tab2
----
-58
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6877
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + CAST( + - col0 AS SIGNED ) AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-6877
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + CAST ( + - col0 AS INTEGER ) AND ( col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 51 < - ( 14 ) * + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + + ( + + 78 ) * + MIN( - + 19 ) FROM tab2 AS cor0
----
-1482

skipif mysql # not compatible
query I rowsort label-6879
SELECT + + ( + + 78 ) * + MIN ( - + 19 ) FROM tab2 AS cor0
----
-1482

query I rowsort
SELECT - - 53 * + col1 AS col2 FROM tab0 AS cor0
----
1113
4293
53

query I rowsort
SELECT ALL + 13 * + col1 AS col1 FROM tab1 AS cor0
----
182
611
65

query I rowsort
SELECT ALL + - col0 * - - col0 AS col2 FROM tab1 cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 WHERE ( + 92 * + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + ( - - col2 ) / - col0 + - col2 + 85 * - col0 IS NULL
----

query I rowsort
SELECT ALL + - col2 * - 26 FROM tab1 AS cor0
----
1534
1768
2496

query I rowsort
SELECT 25 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - col1 - - - 89 AS col0 FROM tab2 AS cor0
----
-140
-156
-166

query I rowsort
SELECT + 63 * - col2 FROM tab0 AS cor0
----
-2961
-6237
-630

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE col2 <> 98 + + - col2
----
51
67
77

query I rowsort
SELECT DISTINCT - 45 * - + col0 * + - 15 - - + col0 FROM tab1 AS cor0
----
-34374
-57290
-61334

query I rowsort
SELECT + 72 * + col2 AS col2 FROM tab2 AS cor0
----
1656
2880
4176

query I rowsort
SELECT DISTINCT - col0 * + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 38 ) >= col0
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE ( + ( - + col1 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT ALL - ( + col1 ) FROM tab0 WHERE NOT ( - + col2 + 39 / CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL - ( + col1 ) FROM tab0 WHERE NOT ( - + col2 + 39 / CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6896
SELECT ALL COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / - col1 * - 48 * col0 + - 42 + col2 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
14
47
5

query I rowsort
SELECT col1 * + - col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 / + 43 * 60 + - + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT - col0 * - col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL COUNT( * ) * - + 6 AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL COUNT ( * ) * - + 6 AS col0 FROM tab0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6903
SELECT 22 DIV - 56 AS col2, COUNT( * ) AS col0 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-6903
SELECT 22 / - 56 AS col2, COUNT ( * ) AS col0 FROM tab2
----
0
3

query I rowsort
SELECT DISTINCT - + ( col0 ) * + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT col1 AS col0, - 46 + - + col2 FROM tab2 AS cor0
----
51
-69
67
-104
77
-86

query II rowsort
SELECT ALL + col1 * - - col1, + col2 FROM tab0 AS cor0
----
1
99
441
10
6561
47

query I rowsort
SELECT DISTINCT 13 * ( - col1 ) * + ( + col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-122317
-2066337
-236925

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + 10, + col2 AS col1 FROM tab0 AS cor0
----
10
10
10
47
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT + - COUNT( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + - COUNT ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( + 64 ) BETWEEN - 70 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT DISTINCT - ( COUNT( * ) ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT - ( COUNT ( * ) ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6913
SELECT - + 3 DIV 44, + col2 AS col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-6913
SELECT - + 3 / 44, + col2 AS col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 AND - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 AND - CAST ( - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL >= - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6915
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL >= - ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT SUM( - 70 ) * COUNT( + 82 ) * - 21, 8 AS col2 FROM tab1 AS cor0
----
13230
8

skipif mysql # not compatible
query II rowsort label-6916
SELECT SUM ( - 70 ) * COUNT ( + 82 ) * - 21, 8 AS col2 FROM tab1 AS cor0
----
13230
8

query I rowsort
SELECT ALL + 34 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6918
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) * - col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6918
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) * - col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - + 37 ) AS col2 FROM tab2 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL 95 * + COUNT( * ) FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 95 * + COUNT ( * ) FROM tab0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL ( - 92 ) + + + MIN( + col2 ) col2 FROM tab2
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6921
SELECT ALL ( - 92 ) + + + MIN ( + col2 ) col2 FROM tab2
----
-69

query I rowsort
SELECT DISTINCT col0 + 79 AS col1 FROM tab0
----
166
176
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + + col2 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6924
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6924
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT 29 + + col0 FROM tab1
----
114
120
80

query I rowsort
SELECT + col0 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT + ( + - col2 ) + 55 FROM tab2
----
-3
15
32

query I rowsort
SELECT ALL - col2 + + - 59 AS col1 FROM tab0
----
-106
-158
-69

query III rowsort
SELECT * FROM tab0 WHERE - ( col1 ) - - 31 < NULL
----

query I rowsort
SELECT - - 44 + - col2 AS col0 FROM tab0 AS cor0
----
-3
-55
34

query I rowsort
SELECT ALL 8 + + ( - col2 ) + + - col1 AS col1 FROM tab0 cor0
----
-120
-23
-92

query I rowsort
SELECT ALL + 98 * + 92 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - 97 * - 58, + col1 )
----

query I rowsort
SELECT ALL col1 + + 64 FROM tab1
----
111
69
78

query I rowsort
SELECT ALL col0 + - col2 + - 51 AS col0 FROM tab0
----
-53
-83
26

query I rowsort
SELECT ALL 68 * - 1 AS col0 FROM tab1
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT + - 89 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT + - 89 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 13 + + 54 AS col0 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT COUNT( * ) - + - MIN( ALL col0 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6938
SELECT COUNT ( * ) - + - MIN ( ALL col0 ) FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT - + COUNT( * ) FROM tab2 WHERE + 17 = ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT - + COUNT ( * ) FROM tab2 WHERE + 17 = ( col1 )
----
0

query I rowsort
SELECT - + 52 * + ( + + 37 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 662766d5c02e19a76f16181bfaafc499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col2 FROM tab1 cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 31 <= NULL
----

query I rowsort
SELECT ( + 28 ) - + + 98 AS col1 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6944
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 37 * + + 41 IN ( + col1 + - CAST( NULL AS SIGNED ) / - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-6944
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 37 * + + 41 IN ( + col1 + - CAST ( NULL AS INTEGER ) / - ( - col1 ) )
----

query II rowsort
SELECT ALL col1 AS col2, + col0 AS col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT 71 DIV col1 AS col0 FROM tab0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-6946
SELECT 71 / col1 AS col0 FROM tab0
----
0
3
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT ALL + 67 DIV col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + 67 / col0 AS col1 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT ALL + SUM( ALL + ( col2 ) ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6948
SELECT ALL + SUM ( ALL + ( col2 ) ) col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT - COUNT( * ) * + 16 AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-6949
SELECT - COUNT ( * ) * + 16 AS col0 FROM tab1
----
-48

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT ( NULL ) <= - 39
----

query I rowsort
SELECT ALL - ( col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - MAX( DISTINCT 61 ) AS col0 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6952
SELECT - MAX ( DISTINCT 61 ) AS col0 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT ALL col0 * - + ( - col1 ) + - - col0 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + 72 + col2 / - 70 NOT IN ( + col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL - COUNT( DISTINCT + - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL - COUNT ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6956
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN 99 / + CAST( - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6956
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN 99 / + CAST ( - col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL col1 * - + 64 AS col2 FROM tab0 cor0
----
-1344
-5184
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT ALL - 16 DIV ( - col0 ) * - + 5 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - 16 / ( - col0 ) * - + 5 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ( - + 72 ) * - 17 * col0 AS col0, - 43 + + col0 FROM tab0 AS cor0
----
106488
44
118728
54
18360
-28

query II rowsort
SELECT DISTINCT 59 * - 45, + 1 AS col0 FROM tab2 AS cor0
----
-2655
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT COUNT( * ) + + MIN( + + col2 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6961
SELECT COUNT ( * ) + + MIN ( + + col2 ) FROM tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 58 - 5 > + 46 + col0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6963
SELECT DISTINCT - + CAST( 59 AS SIGNED ) + - + 17, 55 + + - col1 + + col0 / col1 AS col0 FROM tab1 cor0 WHERE NOT + col0 + - - col1 < NULL
----

skipif mysql # not compatible
query II rowsort label-6963
SELECT DISTINCT - + CAST ( 59 AS INTEGER ) + - + 17, 55 + + - col1 + + col0 / col1 AS col0 FROM tab1 cor0 WHERE NOT + col0 + - - col1 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 95 + - col0 + - 2 - + ( col0 ) + + col1 * + col2 IS NULL
----

query II rowsort
SELECT - + ( - col2 ) + - col0 * + col0 * - + col2 * + 11 AS col1, 50 FROM tab1 AS cor0
----
2746752
50
4689084
50
6194256
50

query II rowsort
SELECT col1 + - col2 * - col1, col0 FROM tab0
----
100
97
231
87
3888
15

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL + + COUNT( DISTINCT - + ( + - 93 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL + + COUNT ( DISTINCT - + ( + - 93 ) ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + + col0 - - - 93 FROM tab1 AS cor0
----
-2
-42
-8

query I rowsort
SELECT + - col2 * - 13 * - ( + + col2 ) - - 0 FROM tab0 cor0
----
-127413
-1300
-28717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT 35 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT 35 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL - + 68 + + SUM( DISTINCT - ( 71 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-139

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - + 68 + + SUM ( DISTINCT - ( 71 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-139

query I rowsort
SELECT + ( 93 ) AS col1 FROM tab0 AS cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, 94 * + - 12 col2 FROM tab1 AS cor0
----
-59
-1128
-68
-1128
-96
-1128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6976
SELECT DISTINCT + - CAST( + 21 AS SIGNED ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT + - CAST ( + 21 AS INTEGER ) FROM tab2 AS cor0
----
-21

query I rowsort
SELECT ALL - 30 AS col2 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + - 37 AS col2 FROM tab2 AS cor0
----
-37

query II rowsort
SELECT DISTINCT col0, 69 AS col2 FROM tab2 AS cor0
----
46
69
64
69
75
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT - 3 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6980
SELECT - 3 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
9

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE 38 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 46 = + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 83 * + 22 FROM tab1
----
-1826
-1826
-1826

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT - 51 >= - ( - col0 )
----
1
21
81

query II rowsort
SELECT ALL ( + col1 ), - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT ALL - 48 + - 97 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT MIN( ALL - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6988
SELECT MIN ( ALL - col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT + 97 * + ( - MAX( DISTINCT - 71 ) ) AS col0 FROM tab0
----
6887

skipif mysql # not compatible
query I rowsort label-6989
SELECT + 97 * + ( - MAX ( DISTINCT - 71 ) ) AS col0 FROM tab0
----
6887

query I rowsort
SELECT + 63 * + + col1 FROM tab1
----
2961
315
882

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6991
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + col2 * ( CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6991
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + col2 * ( CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT - col2 * + 47 AS col2 FROM tab1 AS cor0
----
-2773
-3196
-4512

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT DISTINCT - 60 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-60
3

skipif mysql # not compatible
query II rowsort label-6994
SELECT DISTINCT - 60 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-60
3

query I rowsort
SELECT ALL - ( col0 ) + - - col0 FROM tab1 AS cor0 WHERE - col0 + + + 83 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT - 21 + MIN( + 50 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT - 21 + MIN ( + 50 ) FROM tab0 AS cor0
----
29

query II rowsort
SELECT DISTINCT + - 89 AS col0, 49 FROM tab1 AS cor0
----
-89
49

query I rowsort
SELECT - col1 * - + col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT + col2 + col0 + - ( col1 ) * ( + + 90 ) AS col0 FROM tab2
----
-4521
-5897
-6826

query I rowsort
SELECT DISTINCT col0 * col0 * - + col1 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT col2 + + + CAST( + + col2 AS SIGNED ) AS col2 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7001
SELECT col2 + + + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + col1 + - + col2 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7003
SELECT DISTINCT + col1, + CAST( + col1 AS SIGNED ) + + + col1 FROM tab1
----
14
28
47
94
5
10

skipif mysql # not compatible
query II rowsort label-7003
SELECT DISTINCT + col1, + CAST ( + col1 AS INTEGER ) + + + col1 FROM tab1
----
14
28
47
94
5
10

query I rowsort
SELECT + + col1 * + col0 + + col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL COUNT( ALL - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL + MIN( DISTINCT + ( + 70 ) ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + MIN ( DISTINCT + ( + 70 ) ) AS col0 FROM tab1
----
70

query I rowsort
SELECT + - 44 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-44
-44
-44

query I rowsort
SELECT ALL - - col1 * + + 21 AS col2 FROM tab0 AS cor0 WHERE NULL > col0
----

query I rowsort
SELECT ALL + 9 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 61 / - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT DISTINCT COUNT( + col0 ), COUNT( * ) col1 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7011
SELECT DISTINCT COUNT ( + col0 ), COUNT ( * ) col1 FROM tab1 cor0
----
3
3

query I rowsort
SELECT ALL 85 AS col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT - MIN( + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - MIN ( + col2 ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ( - 20 ), + col0 AS col2 FROM tab2 AS cor0
----
-20
46
-20
64
-20
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT - 23 AS col2 FROM tab0 WHERE NOT - CAST( + col2 AS SIGNED ) < + col0
----

skipif mysql # not compatible
query I rowsort label-7015
SELECT - 23 AS col2 FROM tab0 WHERE NOT - CAST ( + col2 AS INTEGER ) < + col0
----

query I rowsort
SELECT 94 * col2 AS col1 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT col1 * - col1 * + + 32 FROM tab1
----
-6272
-70688
-800

query I rowsort
SELECT DISTINCT col0 * - 78 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT COUNT( * ) * + - 52 + + MIN( DISTINCT - col1 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT COUNT ( * ) * + - 52 + + MIN ( DISTINCT - col1 ) FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 + 64 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7021
SELECT DISTINCT + CAST( + 34 AS SIGNED ) * - + MAX( - col2 ) FROM tab0
----
340

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + CAST ( + 34 AS INTEGER ) * - + MAX ( - col2 ) FROM tab0
----
340

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL BETWEEN ( - col2 ) AND - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 22 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2, 92 FROM tab2 AS cor0
----
23
92
40
92
58
92

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 - ( - col0 ) * col2 <= - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 30 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 86 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 26 * - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 26 * - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + ( - col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - + 99 FROM tab1 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT MAX( - 57 ) + + 48 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7031
SELECT MAX ( - 57 ) + + 48 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT + - MIN( DISTINCT col0 ) + + ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7032
SELECT + - MIN ( DISTINCT col0 ) + + ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT col1 + + col2 - - + col2 AS col2 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT - col1 + + - col2 * - 49 FROM tab1 AS cor0
----
2886
3285
4690

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7035
SELECT ALL - ( col1 ), + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-7035
SELECT ALL - ( col1 ), + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 52 + - 96 col2 FROM tab2 AS cor0
----
-2748
-3580
-4100

query I rowsort
SELECT + col2 * + - col0 * - + 59 AS col2 FROM tab2 AS cor0
----
151040
256650
62422

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL SUM( DISTINCT - col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL SUM ( DISTINCT - col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-121

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT - 83 + COUNT( * ) AS col1 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT - 83 + COUNT ( * ) AS col1 FROM tab2
----
-80

query I rowsort
SELECT ALL + col1 + - - col0 + ( + - col0 ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7044
SELECT col2 AS col1, - col0 * - - CAST( NULL AS DECIMAL ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7044
SELECT col2 AS col1, - col0 * - - CAST ( NULL AS REAL ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE ( + 37 * + ( - 39 ) ) BETWEEN NULL AND - 84 + + col2 + - col0 * - col2 + - - 98 + + col2
----

query I rowsort
SELECT DISTINCT 99 + - ( - col2 ) FROM tab1
----
158
167
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT + col1 - - col1 + + col1 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT + col1 - - col1 + + col1 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL COUNT( * ) - + 76 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL COUNT ( * ) - + 76 FROM tab0
----
-73

query I rowsort
SELECT ALL 26 FROM tab1 WHERE NOT NULL IS NOT NULL
----
26
26
26

query I rowsort
SELECT + 45 - + 37 * - + 26 FROM tab1 AS cor0
----
1007
1007
1007

query I rowsort
SELECT + 16 - + - 4 + + ( + 20 ) + + - col1 + - + col1 * - + col0 FROM tab1 AS cor0
----
4270
460
740

query I rowsort
SELECT ALL - col0 - - + col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col0 - - + col0 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 79 ) IN ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL + MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT COUNT( * ), COUNT( 46 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7057
SELECT COUNT ( * ), COUNT ( 46 ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT 71 * - - col0 AS col2 FROM tab2 AS cor0
----
3266
4544
5325

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7059
SELECT ALL + CAST( NULL AS SIGNED ), + col1 * + col2 * CAST( NULL AS SIGNED ) + - 40 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7059
SELECT ALL + CAST ( NULL AS INTEGER ), + col1 * + col2 * CAST ( NULL AS INTEGER ) + - 40 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL COUNT( - 47 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL COUNT ( - 47 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + 69 AS col0 FROM tab1 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT ALL - col1 / col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7063
SELECT COUNT( * ) * - COUNT( * ) AS col0, + 94 FROM tab1
----
-9
94

skipif mysql # not compatible
query II rowsort label-7063
SELECT COUNT ( * ) * - COUNT ( * ) AS col0, + 94 FROM tab1
----
-9
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7064
SELECT - COUNT( * ) DIV + - ( + COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7064
SELECT - COUNT ( * ) / + - ( + COUNT ( * ) ) FROM tab1
----
1

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT + 4 - + - col0, 15 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7067
SELECT DISTINCT COUNT( * ) + + + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT COUNT ( * ) + + + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
6

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT - + COUNT( - 52 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7069
SELECT - + COUNT ( - 52 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT - COUNT( * ) DIV - 17 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7070
SELECT - COUNT ( * ) / - 17 FROM tab0
----
0

query I rowsort
SELECT - 55 AS col1 FROM tab2 WHERE NULL IS NULL
----
-55
-55
-55

query I rowsort
SELECT ALL - - 79 - + col0 AS col1 FROM tab1 AS cor0
----
-12
-6
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT ALL - COUNT( * ) * - + COUNT( DISTINCT + - 86 ) AS col1, 64 + + COUNT( * ) FROM tab2 cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-7073
SELECT ALL - COUNT ( * ) * - + COUNT ( DISTINCT + - 86 ) AS col1, 64 + + COUNT ( * ) FROM tab2 cor0
----
3
67

query I rowsort
SELECT - + col1 + - - 32 * - col2 AS col2 FROM tab0 AS cor0
----
-1585
-3169
-341

query I rowsort
SELECT DISTINCT + 63 * - - col0 FROM tab0 AS cor0
----
5481
6111
945

query I rowsort
SELECT ALL 9 * + + col2 AS col1 FROM tab2
----
207
360
522

query III rowsort
SELECT * FROM tab2 WHERE - + 49 * + col0 + - 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 95 + - + 73 FROM tab0
----
103
23
43

query I rowsort
SELECT - 97 + + ( col1 ) FROM tab0
----
-16
-76
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + - 90 col1 FROM tab0
----
-1305
-187
-1917

query III rowsort
SELECT * FROM tab2 WHERE 74 * - col0 * + 31 = ( - col1 )
----

query II rowsort
SELECT ALL - col1 - - col0, + col1 AS col0 FROM tab0 cor0
----
-66
81
66
21
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 / + + 15 * - + 49 + col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 / + + 15 * - + 49 + col0 * + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT CAST( - + COUNT( * ) AS SIGNED ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7084
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / - 31 + + col0 + - col0 >= ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col1, ( - - 36 ) FROM tab0 WHERE NOT col2 + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + 56 col2 FROM tab2 cor0
----
51
56
67
56
77
56

query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col2 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7089
SELECT ALL - COUNT( * ) DIV 51 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL - COUNT ( * ) / 51 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 64 ) col2 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT + 26 + + + COUNT( * ) * 46 + - COUNT( * ) FROM tab0 cor0
----
161

skipif mysql # not compatible
query I rowsort label-7091
SELECT + 26 + + + COUNT ( * ) * 46 + - COUNT ( * ) FROM tab0 cor0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT col2 + ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-7092
SELECT col2 + ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - col0 + + + 46 + col2 - + + 2 * - - 75 + - + col1 * - - col1 AS col2 FROM tab1
----
-155
-2336
-255

query II rowsort
SELECT DISTINCT + col0, - col1 * + - ( - + 76 ) FROM tab0
----
15
-6156
87
-1596
97
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT COUNT( - + col2 ) + + + 21 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT COUNT ( - + col2 ) + + + 21 AS col2 FROM tab0
----
24

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) * + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT DISTINCT 56 AS col1, COUNT( - 63 ) FROM tab0
----
56
3

skipif mysql # not compatible
query II rowsort label-7097
SELECT DISTINCT 56 AS col1, COUNT ( - 63 ) FROM tab0
----
56
3

query I rowsort
SELECT DISTINCT - + 6 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT - 82 * 7 FROM tab0 AS cor0
----
-574
-574
-574

onlyif mysql # DIV for integer division: 
query II rowsort label-7100
SELECT + col0 AS col1, col2 DIV - 73 AS col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7100
SELECT + col0 AS col1, col2 / - 73 AS col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
36

query I rowsort
SELECT ALL - + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7103
SELECT - + COUNT( * ) * - MAX( - ( + + col2 ) ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT - + COUNT ( * ) * - MAX ( - ( + + col2 ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col1 + + - col2 * - - col2 FROM tab0 AS cor0
----
-2128
-79
-9800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + col2 col2, col1 * - - col2 AS col2 FROM tab2 cor0
----
117
3080
125
3886
74
1173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL + col1 - - col1 / 99 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + col1 - - col1 / 99 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 * + 2 ) >= col0 + - + 52
----
97
1
99

query I rowsort
SELECT ALL 19 + - col1 FROM tab2
----
-32
-48
-58

query I rowsort
SELECT DISTINCT col0 * 31 + + - col0 AS col1 FROM tab1
----
1530
2550
2730

query II rowsort
SELECT + 2 AS col1, col0 AS col2 FROM tab1
----
2
51
2
85
2
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + SUM( DISTINCT col2 ) * - COUNT( * ) AS col1 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-7112
SELECT + SUM ( DISTINCT col2 ) * - COUNT ( * ) AS col1 FROM tab0
----
-468

query II rowsort
SELECT col2 AS col0, ( - + 12 ) FROM tab2 AS cor0
----
23
-12
40
-12
58
-12

query I rowsort
SELECT ALL - col1 * + - 69 AS col1 FROM tab2 AS cor0
----
3519
4623
5313

query I rowsort
SELECT ALL - col0 * - + col1 * ( + col2 ) FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7116
SELECT col0 FROM tab0 AS cor0 WHERE NOT - 83 / ( - + 19 ) IN ( + 4 * + col2 - + 75 * - - CAST( + 54 AS SIGNED ) / + ( - ( + - col1 ) ) )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7116
SELECT col0 FROM tab0 AS cor0 WHERE NOT - 83 / ( - + 19 ) IN ( + 4 * + col2 - + 75 * - - CAST ( + 54 AS INTEGER ) / + ( - ( + - col1 ) ) )
----
15
87
97

query II rowsort
SELECT col2, ( + 24 ) AS col1 FROM tab1 AS cor0
----
59
24
68
24
96
24

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT - CAST( 72 AS SIGNED ) * COUNT( * ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-7119
SELECT - CAST ( 72 AS INTEGER ) * COUNT ( * ) FROM tab1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT - 60 * SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
-11100

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT - 60 * SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
-11100

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 * + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * - + col1 * - col2 * + - col0 / - col0 NOT BETWEEN - - col1 + + col1 AND - 21
----

query I rowsort
SELECT DISTINCT - 90 * + + col1 AS col0 FROM tab2 AS cor0
----
-4590
-6030
-6930

query I rowsort
SELECT 4 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - col2 > + - ( + - 22 )
----
4
4
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / ( + 92 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 35 FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT - col2 DIV + + col0 col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7127
SELECT - col2 / + + col0 col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + + ( + 5 ) FROM tab1 AS cor0
----
5

query II rowsort
SELECT - 40 AS col1, + 96 + col2 FROM tab0
----
-40
106
-40
143
-40
195

query I rowsort
SELECT ALL - 60 + - col1 AS col1 FROM tab1
----
-107
-65
-74

query I rowsort
SELECT col0 + - + 82 AS col1 FROM tab1
----
-31
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT + SUM( - col2 ) + - - ( - - 54 ) AS col1 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-7132
SELECT + SUM ( - col2 ) + - - ( - - 54 ) AS col1 FROM tab2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7133
SELECT CAST( - 33 AS SIGNED ) + col0 * + col0 AS col2 FROM tab0
----
192
7536
9376

skipif mysql # not compatible
query I rowsort label-7133
SELECT CAST ( - 33 AS INTEGER ) + col0 * + col0 AS col2 FROM tab0
----
192
7536
9376

query I rowsort
SELECT 11 + + + 17 FROM tab1
----
28
28
28

query I rowsort
SELECT ALL + 34 + + col1 AS col2 FROM tab2
----
101
111
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7136
SELECT DISTINCT - - COUNT( * ) DIV + + 42 - - 73 AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - - COUNT ( * ) / + + 42 - - 73 AS col1 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT - col0 + + - CAST( NULL AS SIGNED ) * - + 55 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT - col0 + + - CAST ( NULL AS INTEGER ) * - + 55 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7138
SELECT DISTINCT ( CAST( 29 AS SIGNED ) ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT ( CAST ( 29 AS INTEGER ) ) FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT CAST( NULL AS SIGNED ) / - ( 31 ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT CAST ( NULL AS INTEGER ) / - ( 31 ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7140
SELECT ALL col1, + col2 * col0 - + + 39 / - col2 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7140
SELECT ALL col1, + col2 * col0 - + + 39 / - col2 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT 57 * - COUNT( * ) AS col1 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-7141
SELECT 57 * - COUNT ( * ) AS col1 FROM tab2
----
-171

query III rowsort
SELECT * FROM tab1 cor0 WHERE 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + col2 + + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 22 - col1 IS NOT NULL
----

query I rowsort
SELECT 95 * col1 AS col0 FROM tab0
----
1995
7695
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7146
SELECT - COUNT( * ) DIV - - MAX( - + col0 ) * + - SUM( DISTINCT col1 ), ( - COUNT( * ) ) + + 33 AS col0 FROM tab0
----
0
30

skipif mysql # not compatible
query II rowsort label-7146
SELECT - COUNT ( * ) / - - MAX ( - + col0 ) * + - SUM ( DISTINCT col1 ), ( - COUNT ( * ) ) + + 33 AS col0 FROM tab0
----
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT MAX( + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7147
SELECT MAX ( + col2 ) AS col1 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + + col1 AS col0, + col0 col1 FROM tab1
----
1344
51
295
85
3196
91

query II rowsort
SELECT + col0 AS col2, 16 * + - col2 FROM tab2
----
46
-368
64
-640
75
-928

query I rowsort
SELECT - col0 * - + 14 + + 92 AS col1 FROM tab0 WHERE NOT 50 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL COUNT( * ) + - 13 + 25 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7151
SELECT ALL COUNT ( * ) + - 13 + 25 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-7152
SELECT + 6 + - 72 DIV + 34, - ( + - col1 ) col2 FROM tab0 AS cor0
----
4
1
4
21
4
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7152
SELECT + 6 + - 72 / + 34, - ( + - col1 ) col2 FROM tab0 AS cor0
----
4
1
4
21
4
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT - - 82 DIV + col1 + - 42 * - - 23 + - 32 FROM tab2 AS cor0
----
-997
-997
-997

skipif mysql # not compatible
query I rowsort label-7153
SELECT - - 82 / + col1 + - 42 * - - 23 + - 32 FROM tab2 AS cor0
----
-997
-997
-997

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT 40 + - - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-7154
SELECT 40 + - - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL - - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL - - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT DISTINCT - - COUNT( * ) + - - 54 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT - - COUNT ( * ) + - - 54 FROM tab0 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + + 20 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT + COUNT( * ) + - COUNT( ALL - - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + COUNT ( * ) + - COUNT ( ALL - - col2 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 + - + 85 FROM tab2 AS cor0
----
-18
-34
-8

query I rowsort
SELECT - - 69 * col0 * 25 FROM tab0 AS cor0
----
150075
167325
25875

query I rowsort
SELECT ALL + + 47 + - col2 AS col2 FROM tab2 AS cor0
----
-11
24
7

query I rowsort
SELECT DISTINCT 94 * + + col0 * - 41 FROM tab0
----
-335298
-373838
-57810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL col0 + - + 80 + 67 AS col2 FROM tab1 AS cor0
----
38
72
78

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN 32 AND - + 70
----

query I rowsort
SELECT DISTINCT - - col1 + - + col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( + + 15 ) * - 42 * col0 FROM tab1 cor0
----
32130
53550
57330

query I rowsort
SELECT - 43 FROM tab2 WHERE NOT NULL < - 20 * - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 IN ( + + 10, + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT 64 * MAX( ALL + col2 ) AS col1 FROM tab0
----
6336

skipif mysql # not compatible
query I rowsort label-7170
SELECT 64 * MAX ( ALL + col2 ) AS col1 FROM tab0
----
6336

query I rowsort
SELECT ALL + + ( + - col2 ) FROM tab0 cor0 WHERE NOT - 11 > - col1
----
-99

query I rowsort
SELECT ( + - ( + 57 ) ) * + 51 * + col0 + + col2 + + ( ( ( + 86 ) ) ) + ( - ( + 25 ) ) + + col2 + 0 AS col2 FROM tab0
----
-252828
-281720
-43450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 55 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7174
SELECT * FROM tab2 AS cor0 WHERE + CAST( 11 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7174
SELECT * FROM tab2 AS cor0 WHERE + CAST ( 11 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col1, - ( - 14 ) + + col0 + - - col1, 98 + col0, - 13, + col1, - col1, 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL - COUNT( * ) * + + ( + - 48 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - COUNT ( * ) * + + ( + - 48 ) FROM tab1
----
144

query I rowsort
SELECT - col0 + - col2 + + col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - 90 + + col0 AS col0 FROM tab1
----
-39
-5
1

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT col1 * CAST( NULL AS SIGNED ) * ( + col2 ) + - ( + col1 ) * - 56 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT col1 * CAST ( NULL AS INTEGER ) * ( + col2 ) + - ( + col1 ) * - 56 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT DISTINCT + - MAX( ALL col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT + - MAX ( ALL col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL - col0 * + + 57 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT ALL + 32 * - col1 AS col1 FROM tab2 cor0
----
-1632
-2144
-2464

query II rowsort
SELECT DISTINCT + - 75, col0 + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL + SUM( - - 72 ) - - COUNT( - - 4 ) AS col2 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL + SUM ( - - 72 ) - - COUNT ( - - 4 ) AS col2 FROM tab1 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT ( 40 ) + + + COUNT( * ) col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7186
SELECT DISTINCT ( 40 ) + + + COUNT ( * ) col1 FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7187
SELECT DISTINCT - 28 + col2 AS col1, - CAST( NULL AS SIGNED ) col2 FROM tab0
----
-18
NULL
19
NULL
71
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7187
SELECT DISTINCT - 28 + col2 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-18
NULL
19
NULL
71
NULL

query I rowsort
SELECT col0 - col0 - 92 AS col0 FROM tab0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - ( - col1 ) AS col0, - col2 AS col0 FROM tab1 cor0
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * - 10 * - 40 col2 FROM tab1 AS cor0
----
16800
16800
16800

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 >= + 67 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT MAX( ALL + 55 ) FROM tab2 cor0
----
55

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT MAX ( ALL + 55 ) FROM tab2 cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL SUM( DISTINCT - 37 ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL SUM ( DISTINCT - 37 ) AS col1 FROM tab0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + 43 * - + COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-7195
SELECT + 43 * - + COUNT ( * ) FROM tab0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT DISTINCT - - 41 + COUNT( * ) AS col1 FROM tab2 WHERE + - 9 * 40 IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT - - 41 + COUNT ( * ) AS col1 FROM tab2 WHERE + - 9 * 40 IS NULL
----
41

query I rowsort
SELECT ALL ( + ( - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT - 89 BETWEEN + - ( - col2 ) * + 68 * 22 AND + 41
----
-3

skipif mysql # not compatible
query I rowsort label-7198
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT - 89 BETWEEN + - ( - col2 ) * + 68 * 22 AND + 41
----
-3

query I rowsort
SELECT 77 AS col1 FROM tab1 cor0
----
77
77
77

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT - + col2 + - col0 DIV - col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-7201
SELECT - + col2 + - col0 / - col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

query II rowsort
SELECT ALL + col2 AS col1, + 56 AS col0 FROM tab0 AS cor0
----
10
56
47
56
99
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT - 37 + + + col1 + - + col2 DIV + 60 FROM tab2 AS cor0
----
14
30
40

skipif mysql # not compatible
query I rowsort label-7203
SELECT - 37 + + + col1 + - + col2 / + 60 FROM tab2 AS cor0
----
14
30
40

query II rowsort
SELECT DISTINCT + + col2, - 52 FROM tab1 AS cor0
----
59
-52
68
-52
96
-52

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 98 * + 1 * col1 * + 38 FROM tab2
----
189924
249508
286748

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT ALL 69 + - 95 DIV + col0 AS col0 FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL 69 + - 95 / + col0 AS col0 FROM tab1
----
68
68
68

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 29 + - - col2 AND + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT + COUNT( * ) * - COUNT( * ) * + COUNT( * ) FROM tab1, tab2 AS cor0
----
-729

skipif mysql # not compatible
query I rowsort label-7209
SELECT + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab1, tab2 AS cor0
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7210
SELECT DISTINCT col1 + - col2, 38 - - - col0 col1 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) * - col1 / - + col1 + - 57 IS NULL
----
28
-8
37
-26
9
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7210
SELECT DISTINCT col1 + - col2, 38 - - - col0 col1 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) * - col1 / - + col1 + - 57 IS NULL
----
28
-8
37
-26
9
-37

query I rowsort
SELECT DISTINCT col0 - + - 11 * + col0 FROM tab1
----
1020
1092
612

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT COUNT( * ) - + + 26, 85 AS col2 FROM tab1 AS cor0
----
-23
85

skipif mysql # not compatible
query II rowsort label-7212
SELECT COUNT ( * ) - + + 26, 85 AS col2 FROM tab1 AS cor0
----
-23
85

query I rowsort
SELECT + 20 - + - col1 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT + col1 + - 4 AS col0 FROM tab1 AS cor0
----
1
10
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * - 51 col2 FROM tab1 AS cor0
----
-102
-102
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE + - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE + - col0 IS NOT NULL
----
-3

query I rowsort
SELECT + ( - 26 ) FROM tab2
----
-26
-26
-26

query I rowsort
SELECT ALL - + 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - 19 * + 28 FROM tab2
----
-532
-532
-532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7220
SELECT COUNT( DISTINCT + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7220
SELECT COUNT ( DISTINCT + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - col2 BETWEEN + + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL - + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * col1 col1 FROM tab1 AS cor0
----
2397
255
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7224
SELECT * FROM tab1 cor0 WHERE NOT - CAST( + + col0 AS SIGNED ) * - col0 + + col2 <> + - col0
----

skipif mysql # not compatible
query III rowsort label-7224
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( + + col0 AS INTEGER ) * - col0 + + col2 <> + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT - COUNT( * ) * + 95 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7225
SELECT - COUNT ( * ) * + 95 FROM tab1 AS cor0
----
-285

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7227
SELECT ALL + col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7227
SELECT ALL + col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 23 * col2 <> NULL
----

query I rowsort
SELECT col2 * - 2 AS col0 FROM tab1
----
-118
-136
-192

query II rowsort
SELECT - col1 * - col1 AS col0, col0 AS col0 FROM tab1
----
196
51
2209
91
25
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL COUNT( - - 27 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL COUNT ( - - 27 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 98 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 68 + + 47 AS col0 FROM tab0 cor0
----
115

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 58 + - col0 FROM tab1
----
-27
-33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT - COUNT( * ) + 71 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - COUNT ( * ) + 71 FROM tab1
----
68

query I rowsort
SELECT + 41 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query III rowsort
SELECT * FROM tab2 WHERE - - col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT 43 * - COUNT( * ) DIV - + COUNT( * ) FROM tab1, tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7240
SELECT 43 * - COUNT ( * ) / - + COUNT ( * ) FROM tab1, tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT COUNT( DISTINCT - ( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7241
SELECT COUNT ( DISTINCT - ( + col1 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT + col1, col1 * - - 60 AS col0, - + col2 FROM tab1 cor0
----
9 values hashing to cbb3d89b328bfb8fdf7a7383b4689e65

query II rowsort
SELECT DISTINCT - 38 * + col2 - - col1 * - ( col1 ), col2 - col1 AS col2 FROM tab2 AS cor0
----
-3475
-28
-6693
-9
-7449
-37

query I rowsort
SELECT DISTINCT col0 + 59 FROM tab2
----
105
123
134

query I rowsort
SELECT DISTINCT col2 + 39 + + + 88 * - + col0 * + col0 FROM tab2
----
-186146
-360369
-494903

query I rowsort
SELECT col1 + - - col2 - 11 FROM tab0
----
117
20
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT COUNT( * ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT DISTINCT 1 * + col0 DIV + + col1 + - col2 + col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT 1 * + col0 / + + col1 + - col2 + col2 FROM tab1
----
1
17
3

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE col2 >= - col2 * - 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 77 col2, - col1 AS col0 FROM tab0 AS cor0
----
-77
-1
-77
-21
-77
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - + 67 col0 FROM tab0
----
-5494
-5494
-5494

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT - + COUNT( * ) * - COUNT( * ) + 78, 6 AS col2 FROM tab0 cor0
----
87
6

skipif mysql # not compatible
query II rowsort label-7252
SELECT - + COUNT ( * ) * - COUNT ( * ) + 78, 6 AS col2 FROM tab0 cor0
----
87
6

query I rowsort
SELECT ALL - - 61 * + col0 * - 29 FROM tab1 cor0
----
-150365
-160979
-90219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 83 * - col0 col0, + 24 FROM tab2 AS cor0
----
3818
24
5312
24
6225
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 * + 42 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 * + 42 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT ALL - 94 DIV + - 13 AS col0 FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL - 94 / + - 13 AS col0 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT col0 * - 74 * + 87 * + col0 FROM tab1 cor0
----
-16745238
-46514550
-53313078

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 71 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT COUNT( * ) * + 72 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-7259
SELECT COUNT ( * ) * + 72 FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT + MIN( DISTINCT ( - col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + MIN ( DISTINCT ( - col2 ) ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT ALL 71 + - 52 AS col0 FROM tab1
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT DISTINCT col0 DIV + col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT col0 / + col1 AS col0 FROM tab0
----
0
4
97

query III rowsort
SELECT * FROM tab1 WHERE NOT 5 IN ( 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT SUM( ALL + 24 ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-7264
SELECT SUM ( ALL + 24 ) AS col0 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - 52 * - - MIN( + + ( col2 ) ) FROM tab0 AS cor0
----
-520

skipif mysql # not compatible
query I rowsort label-7265
SELECT - 52 * - - MIN ( + + ( col2 ) ) FROM tab0 AS cor0
----
-520

query II rowsort
SELECT + + 36 AS col0, col0 FROM tab1 AS cor0
----
36
51
36
85
36
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + + col0 col0 FROM tab1 AS cor0
----
40
74
80

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT + col2 * ( col2 ) IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN + col2 AND + col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col1 + + 88 FROM tab1
----
102
135
93

query I rowsort
SELECT ALL ( + col1 ) * 90 - col0 FROM tab2
----
4544
5955
6866

query I rowsort
SELECT - col2 * 40 FROM tab2
----
-1600
-2320
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT col1 + col2 DIV col2 AS col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-7274
SELECT col1 + col2 / col2 AS col0 FROM tab2
----
52
68
78

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col2 IN ( 73 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * - col1 + 81 col2 FROM tab1
----
-229
-2833
-787

query I rowsort
SELECT col1 * + 98 AS col1 FROM tab1
----
1372
4606
490

query I rowsort
SELECT col2 * 61 AS col2 FROM tab1 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / + col1 + + col0 >= - 95 * - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col0 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT DISTINCT - 11 DIV - col1 AS col2 FROM tab0
----
0
11

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT - 11 / - col1 AS col2 FROM tab0
----
0
11

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col1 + - 85 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT CAST( NULL AS SIGNED ) - + 74 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT CAST ( NULL AS INTEGER ) - + 74 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT ALL col0 * + col1 AS col0 FROM tab1 WHERE - col1 * + CAST( NULL AS SIGNED ) IS NULL
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL col0 * + col1 AS col0 FROM tab1 WHERE - col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
425
4277
714

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT 87 * col2 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7288
SELECT * FROM tab2 WHERE NOT 43 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7288
SELECT * FROM tab2 WHERE NOT 43 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7289
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * - 0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7289
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * - 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 13 FROM tab2 WHERE NOT + 46 IS NULL
----
13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = col1 + col1 * 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7292
SELECT * FROM tab1 WHERE NOT NULL = CAST( NULL AS SIGNED ) / ( + col1 * col2 )
----

skipif mysql # not compatible
query III rowsort label-7292
SELECT * FROM tab1 WHERE NOT NULL = CAST ( NULL AS INTEGER ) / ( + col1 * col2 )
----

query I rowsort
SELECT ALL 33 AS col1 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
33
33
33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7296
SELECT ALL * FROM tab2 WHERE ( + col0 + 89 ) BETWEEN col1 AND + col2 + - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7296
SELECT ALL * FROM tab2 WHERE ( + col0 + 89 ) BETWEEN col1 AND + col2 + - col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT col2 DIV 60 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7297
SELECT col2 / 60 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7298
SELECT col2 DIV + CAST( col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT col2 / + CAST ( col0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7299
SELECT MIN( + col1 ) DIV + MIN( + ( col0 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7299
SELECT MIN ( + col1 ) / + MIN ( + ( col0 ) ) FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7300
SELECT COUNT( DISTINCT + col1 ) DIV 80 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT COUNT ( DISTINCT + col1 ) / 80 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT - MAX( ALL + col1 ) FROM tab2 WHERE NULL = + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT - MAX ( ALL + col1 ) FROM tab2 WHERE NULL = + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 15 - + col0 AS col1 FROM tab0 cor0 WHERE ( col0 ) + 91 * + col1 NOT IN ( col1 )
----
-72
-82
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT DISTINCT - MAX( ALL - CAST( col1 AS SIGNED ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT - MAX ( ALL - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN col0 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * 19 )
----

query I rowsort
SELECT - - 5 * - 53 FROM tab0 AS cor0
----
-265
-265
-265

query I rowsort
SELECT 67 * - ( col0 - - col0 ) FROM tab2 AS cor0
----
-10050
-6164
-8576

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT + + MIN( ALL col2 ) * ( 10 ) AS col1 FROM tab2 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT + + MIN ( ALL col2 ) * ( 10 ) AS col1 FROM tab2 AS cor0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT - MIN( col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT - MIN ( col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL 87 * 50 FROM tab0 AS cor0 WHERE NOT - 78 + 48 IS NOT NULL
----

query I rowsort
SELECT ALL col1 - 41 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
10
26
36

query I rowsort
SELECT ALL - + ( col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL - SUM( DISTINCT + 44 ) col2 FROM tab1
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7314
SELECT ALL - SUM ( DISTINCT + 44 ) col2 FROM tab1
----
-44

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + col0 <> NULL
----

query I rowsort
SELECT ( - 71 ) AS col2 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - 61 AS col2 FROM tab2 WHERE NOT col2 NOT BETWEEN col0 AND - 0 * 94
----

query I rowsort
SELECT ALL col0 + + - col0 + col1 * - col2 AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL + ( + COUNT( * ) ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT ALL + 46 DIV - col0 * col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + 46 / - col0 * col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ( + COUNT( * ) ) + + 98 AS col2 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-7322
SELECT ( + COUNT ( * ) ) + + 98 AS col2 FROM tab2
----
101

query I rowsort
SELECT ALL + col0 * - col1 FROM tab1 WHERE 29 NOT IN ( - 92 )
----
-425
-4277
-714

query I rowsort
SELECT ALL 26 * - col0 FROM tab0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT + - 6 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7325
SELECT + - 6 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT ALL - ( - + CAST( 69 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL - ( - + CAST ( 69 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT DISTINCT - COUNT( - col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT - COUNT ( - col2 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - MIN( ( 16 ) ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - MIN ( ( 16 ) ) FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7330
SELECT * FROM tab0 WHERE + col2 / - CAST( - col0 AS SIGNED ) + - col2 BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-7330
SELECT * FROM tab0 WHERE + col2 / - CAST ( - col0 AS INTEGER ) + - col2 BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT 45 AS col1 FROM tab0 cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT 45 AS col1 FROM tab0 cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL <> 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( 70 ) - - col1 * + col0 col1 FROM tab0 AS cor0
----
167
3297
6885

query I rowsort
SELECT DISTINCT + 34 + + col2 * + col0 AS col0 FROM tab2 AS cor0 WHERE - col2 > col0
----

query I rowsort
SELECT ALL + ( - 1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - 83 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
83

query I rowsort
SELECT ALL - - ( - - 7 ) * + - col1 FROM tab1 cor0
----
-329
-35
-98

query I rowsort
SELECT + 60 + - 69 FROM tab1 AS cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( + col0 ) AND - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL SUM( ALL col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL SUM ( ALL col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT DISTINCT col0 + col2 * - 93 AS col1 FROM tab2
----
-2093
-3656
-5319

query I rowsort
SELECT DISTINCT - 22 * - 50 FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 17 + + 48 * 88 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT - col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7344
SELECT - col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT 15 BETWEEN ( - col2 ) AND ( 70 * - col1 - 0 )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 31 * + col0 + col0 * - col1 BETWEEN 32 AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 * - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7348
SELECT * FROM tab1 WHERE NOT + col0 + 92 NOT BETWEEN - + CAST( NULL AS SIGNED ) AND col2 / - col0
----

skipif mysql # not compatible
query III rowsort label-7348
SELECT * FROM tab1 WHERE NOT + col0 + 92 NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND col2 / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col2, 39 AS col1 FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT + col0 + + 20 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN 33 AND + + ( + 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7354
SELECT ALL col1, 18 DIV - - col2 - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-9
81
-47

skipif mysql # not compatible
query II rowsort label-7354
SELECT ALL col1, 18 / - - col2 - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-9
81
-47

query I rowsort
SELECT ALL + ( + ( - col0 ) ) + + + col1 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NOT ( - 44 * col1 ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ( - ( + MAX( ALL - - ( col2 ) ) ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7358
SELECT ( - ( + MAX ( ALL - - ( col2 ) ) ) ) FROM tab0
----
-99

query I rowsort
SELECT ALL - - 39 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT + COUNT( DISTINCT 31 ) + COUNT( * ) col2 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7360
SELECT DISTINCT + COUNT ( DISTINCT 31 ) + COUNT ( * ) col2 FROM tab2
----
4

query I rowsort
SELECT DISTINCT ( 57 ) FROM tab0
----
57

query I rowsort
SELECT - + 78 AS col1 FROM tab0 cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7363
SELECT * FROM tab2 AS cor0 WHERE col1 * - + col1 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7363
SELECT * FROM tab2 AS cor0 WHERE col1 * - + col1 <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 81 * - col2 - col1 FROM tab1 AS cor0
----
-4784
-5555
-7790

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT + + col0 - - - 59 DIV + - 71 AS col2 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7365
SELECT + + col0 - - - 59 / + - 71 AS col2 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL COUNT( * ) + - 63 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL COUNT ( * ) + - 63 AS col2 FROM tab1
----
-60

query III rowsort
SELECT * FROM tab2 WHERE col1 + + 91 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT DISTINCT - COUNT( * ) - 97, 4 - COUNT( * ) AS col2 FROM tab1 cor0
----
-100
1

skipif mysql # not compatible
query II rowsort label-7369
SELECT DISTINCT - COUNT ( * ) - 97, 4 - COUNT ( * ) AS col2 FROM tab1 cor0
----
-100
1

query I rowsort
SELECT ALL - col0 + + ( + 53 ) AS col2 FROM tab2 AS cor0
----
-11
-22
7

query I rowsort
SELECT ALL ( - col0 ) * 98 AS col1 FROM tab0 AS cor0
----
-1470
-8526
-9506

query I rowsort
SELECT DISTINCT - - 27 - col1 AS col0 FROM tab1 AS cor0
----
-20
13
22

query I rowsort
SELECT DISTINCT - col0 * col2 * - + col1 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT ALL - 60 * CAST( NULL AS SIGNED ) - + 23 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - 60 * CAST ( NULL AS INTEGER ) - + 23 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 80 ) - col0 AS col2 FROM tab0 AS cor0 WHERE col1 > ( 26 + - - 57 + + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7376
SELECT ALL + MIN( DISTINCT - 14 ) DIV - 56 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + MIN ( DISTINCT - 14 ) / - 56 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * col1 * - 12 col2 FROM tab1 AS cor0
----
15228
1620
4536

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 40 IN ( - col2, col0 * - 42 - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 54 FROM tab2 WHERE NOT + ( 39 ) + - col1 NOT BETWEEN 42 * 20 AND col2 - - ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 17 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT - CAST( + SUM( DISTINCT + - 61 ) AS SIGNED ) * - - 39 FROM tab1
----
2379

skipif mysql # not compatible
query I rowsort label-7381
SELECT - CAST ( + SUM ( DISTINCT + - 61 ) AS INTEGER ) * - - 39 FROM tab1
----
2379

query I rowsort
SELECT + col1 * + + col2 + col1 AS col0 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT - 49 AS col0 FROM tab1 WHERE NOT + col1 + + col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7385
SELECT + 67 * + + 60, COUNT( * ) DIV 26 AS col1 FROM tab1
----
4020
0

skipif mysql # not compatible
query II rowsort label-7385
SELECT + 67 * + + 60, COUNT ( * ) / 26 AS col1 FROM tab1
----
4020
0

query I rowsort
SELECT + col0 * 19 FROM tab0 cor0
----
1653
1843
285

query I rowsort
SELECT + + 12 * + ( - - col0 ) FROM tab2 AS cor0
----
552
768
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT - CAST( + - 90 AS SIGNED ) * - + 88 AS col1 FROM tab0 AS cor0
----
-7920
-7920
-7920

skipif mysql # not compatible
query I rowsort label-7388
SELECT - CAST ( + - 90 AS INTEGER ) * - + 88 AS col1 FROM tab0 AS cor0
----
-7920
-7920
-7920

query I rowsort
SELECT + - 42 * - col1 AS col2 FROM tab2 cor0
----
2142
2814
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT DISTINCT - - 71 FROM tab1 WHERE NOT NULL IN ( col0, - 50 ) AND NOT NULL >= ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT - - 71 FROM tab1 WHERE NOT NULL IN ( col0, - 50 ) AND NOT NULL >= ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 52 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT DISTINCT 73 + + COUNT( * ) col2 FROM tab1
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7393
SELECT DISTINCT 73 + + COUNT ( * ) col2 FROM tab1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT 31 DIV + col1 + + 97 - - col1 * col0 + - 63 * + + ( - 7 ) AS col0 FROM tab1
----
1254
4815
969

skipif mysql # not compatible
query I rowsort label-7394
SELECT 31 / + col1 + + 97 - - col1 * col0 + - 63 * + + ( - 7 ) AS col0 FROM tab1
----
1254
4815
969

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7395
SELECT * FROM tab1 WHERE 3 + - + 87 + - - col2 <> - + ( - ( + + col0 ) ) AND NOT CAST( - col2 AS SIGNED ) * - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7395
SELECT * FROM tab1 WHERE 3 + - + 87 + - - col2 <> - + ( - ( + + col0 ) ) AND NOT CAST ( - col2 AS INTEGER ) * - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 60 * + col1 + - col1 FROM tab0
----
1239
4779
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - COUNT( * ) + - 54 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - COUNT ( * ) + - 54 FROM tab0
----
-57

query I rowsort
SELECT DISTINCT col0 + + + 4 * + - 56 + - 63 FROM tab0
----
-190
-200
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL - COUNT( ALL - + 66 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL - COUNT ( ALL - + 66 ) FROM tab2
----
-3

query I rowsort
SELECT - col0 + 91 AS col2 FROM tab1 AS cor0
----
0
40
6

query I rowsort
SELECT DISTINCT + 43 + - - col0 AS col2 FROM tab1 AS cor0
----
128
134
94

query II rowsort
SELECT col0, - col0 + + col2 AS col2 FROM tab2 AS cor0
----
46
-23
64
-24
75
-17

query I rowsort
SELECT ALL + col0 * - + 38 * + col2 FROM tab2 AS cor0
----
-165300
-40204
-97280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7404
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - col0 ) * + - CAST( NULL AS SIGNED ) ) NOT IN ( + col0, - col2, + + 63 )
----

skipif mysql # not compatible
query III rowsort label-7404
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - col0 ) * + - CAST ( NULL AS INTEGER ) ) NOT IN ( + col0, - col2, + + 63 )
----

query I rowsort
SELECT DISTINCT + col2 * - 99 * - col1 FROM tab1 cor0
----
133056
29205
316404

query I rowsort
SELECT + col1 * 91 + + col1 FROM tab1 AS cor0
----
1288
4324
460

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT ALL 21 DIV + + 3 AS col2 FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL 21 / + + 3 AS col2 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT - ( + + col1 ) DIV + - ( - + col0 ) + - + ( ( + col1 ) ) * - - col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-7408
SELECT - ( + + col1 ) / + - ( - + col0 ) + - + ( ( + col1 ) ) * - - col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT ALL col1 * - + col1 * - 95 AS col0, - col1 AS col2 FROM tab0
----
41895
-21
623295
-81
95
-1

query II rowsort
SELECT DISTINCT - col1 * - - col0 AS col2, - col1 + + ( - 67 ) AS col2 FROM tab2
----
-2346
-118
-4928
-144
-5025
-134

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - + col2 NOT IN ( - - col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT + 68 * - - COUNT( * ) AS col0 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + 68 * - - COUNT ( * ) AS col0 FROM tab2
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - 23 * - 91 col2, 69 * - + col0 AS col2 FROM tab1 AS cor0
----
10465
-5865
29302
-3519
98371
-6279

query II rowsort
SELECT - 31, col1 AS col2 FROM tab0
----
-31
1
-31
21
-31
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT 52 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 83 / col2 - + col0 = 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + + COUNT( * ) + - MIN( DISTINCT - 27 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7419
SELECT + + COUNT ( * ) + - MIN ( DISTINCT - 27 ) FROM tab0 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT DISTINCT + col2 DIV col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 - col2 BETWEEN + ( + col2 ) + + + col0 AND + 18
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT + col2 / col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 - col2 BETWEEN + ( + col2 ) + + + col0 AND + 18
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT 31 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7421
SELECT 31 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
34

query I rowsort
SELECT + col1 + + - col2 * + col0 FROM tab2 AS cor0
----
-1007
-2483
-4283

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 <> ( + - ( col2 ) + + + col0 + + 46 * + 90 + - ( + - col0 ) - + + col2 / 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT DISTINCT + MAX( DISTINCT - 41 ) + + CAST( NULL AS SIGNED ) * - + 72 * - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + MAX ( DISTINCT - 41 ) + + CAST ( NULL AS INTEGER ) * - + 72 * - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7426
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NULL <> CAST( + 11 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NULL <> CAST ( + 11 AS REAL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT DISTINCT 69 + - CAST( NULL AS SIGNED ) - + + 39 * - col1 * - + col2 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7427
SELECT DISTINCT 69 + - CAST ( NULL AS INTEGER ) - + + 39 * - col1 * - + col2 col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - - + col2 col0, - col2 * + col2 FROM tab2 AS cor0
----
104
-1600
133
-3364
69
-529

query I rowsort
SELECT DISTINCT - col1 * + + 87 - - + col1 FROM tab0 AS cor0
----
-1806
-6966
-86

query I rowsort
SELECT - 9 * + + 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 92062dee70367cda7010ec9a8a62bfc7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT DISTINCT + CAST( - COUNT( 92 ) AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT + CAST ( - COUNT ( 92 ) AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT 31, col0 AS col2 FROM tab2 cor0
----
31
46
31
64
31
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT + CAST( - + col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7434
SELECT + CAST ( - + col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 9 col0 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT ALL - + ( + + 50 ) FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN - col0 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT ALL - ( - + 59 ) DIV - col1 + - - col2 + - 76 AS col0 FROM tab2 AS cor0
----
-18
-36
-54

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - ( - + 59 ) / - col1 + - - col2 + - 76 AS col0 FROM tab2 AS cor0
----
-18
-36
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT - COUNT( + 77 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7439
SELECT - COUNT ( + 77 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT DISTINCT 83 AS col1, - MAX( ALL - col2 ) + ( - + COUNT( * ) ) + - + COUNT( * ) FROM tab0
----
83
4

skipif mysql # not compatible
query II rowsort label-7440
SELECT DISTINCT 83 AS col1, - MAX ( ALL - col2 ) + ( - + COUNT ( * ) ) + - + COUNT ( * ) FROM tab0
----
83
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT 88 * + SUM( col0 ) AS col2 FROM tab1
----
19976

skipif mysql # not compatible
query I rowsort label-7441
SELECT 88 * + SUM ( col0 ) AS col2 FROM tab1
----
19976

query I rowsort
SELECT ALL + 8 * - col1 FROM tab1
----
-112
-376
-40

query I rowsort
SELECT 29 * + + 73 FROM tab1
----
2117
2117
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL COUNT( * ) * - - MAX( - col1 ) * COUNT( * ) AS col1 FROM tab2
----
-459

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL COUNT ( * ) * - - MAX ( - col1 ) * COUNT ( * ) AS col1 FROM tab2
----
-459

query I rowsort
SELECT 36 * + col2 AS col1 FROM tab2
----
1440
2088
828

query I rowsort
SELECT col0 * - col2 + - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
-1104
-2624
-4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - - col0 + 1 col2 FROM tab2 AS cor0
----
2117
4097
5626

query II rowsort
SELECT ALL - col0, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7449
SELECT DISTINCT + 51 col2 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7449
SELECT DISTINCT + 51 col2 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col2 FROM tab1 WHERE NOT NULL IN ( 6 + - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT CAST( - - ( - + col2 ) AS SIGNED ) * - col1 AS col1 FROM tab2 cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7451
SELECT CAST ( - - ( - + col2 ) AS INTEGER ) * - col1 AS col1 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT col0 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 11 - - + col2 - - ( + - col1 ), 30 + - 1 * col2 + col1, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 11 - - + col2 - - ( + - col1 ), 30 + - 1 * col2 + col1, - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab1 cor0
----
-51

query III rowsort
SELECT DISTINCT - col0 AS col0, 92 * + - col1 * col2 AS col1, + + col0 AS col2 FROM tab2
----
9 values hashing to 4db36b5eeb2d85d4e326198a7937b87e

query III rowsort
SELECT * FROM tab2 WHERE - 5 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT - col2 * - 31 + - 29 + + CAST( NULL AS SIGNED ) * 66 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT - col2 * - 31 + - 29 + + CAST ( NULL AS INTEGER ) * 66 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT DISTINCT col0 + col2 + 43 DIV - 33 FROM tab0
----
195
61
96

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT col0 + col2 + 43 / - 33 FROM tab0
----
195
61
96

query I rowsort
SELECT - + col0 + 1 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT + col0 - - + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-23
-40
-58

query I rowsort
SELECT - col0 * - 82 FROM tab2
----
3772
5248
6150

query I rowsort
SELECT ( - 81 ) FROM tab1
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col0 col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT MAX( ALL - ( - 93 ) ) FROM tab2 AS cor0 WHERE NOT 95 IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-7466
SELECT MAX ( ALL - ( - 93 ) ) FROM tab2 AS cor0 WHERE NOT 95 IS NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - - COUNT( * ) * - 67 AS col2 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-7467
SELECT - - COUNT ( * ) * - 67 AS col2 FROM tab2 AS cor0
----
-201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( DISTINCT - col0 ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( DISTINCT - col0 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - 8 AS col2 FROM tab0
----
168
648
8

query I rowsort
SELECT + col2 * - + 72 FROM tab0
----
-3384
-7128
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7472
SELECT DISTINCT - col0 AS col1, col0 DIV 32 AS col1 FROM tab2 AS cor0
----
-46
1
-64
2
-75
2

skipif mysql # not compatible
query II rowsort label-7472
SELECT DISTINCT - col0 AS col1, col0 / 32 AS col1 FROM tab2 AS cor0
----
-46
1
-64
2
-75
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL COUNT( * ) + + 62 * - 71 * + COUNT( * ) FROM tab0 AS cor0
----
-13203

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL COUNT ( * ) + + 62 * - 71 * + COUNT ( * ) FROM tab0 AS cor0
----
-13203

query II rowsort
SELECT - - 56 AS col0, 22 * col1 FROM tab2 AS cor0
----
56
1122
56
1474
56
1694

query I rowsort
SELECT DISTINCT - 12 + + col2 AS col2 FROM tab0
----
-2
35
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT CAST( 57 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif mysql # not compatible
query I rowsort label-7476
SELECT CAST ( 57 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + + 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE + + ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT - COUNT( * ) + MAX( - + 55 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7480
SELECT - COUNT ( * ) + MAX ( - + 55 ) FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + col2 * 59 - - col1 AS col0 FROM tab1 AS cor0
----
3486
4059
5678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab2 WHERE + 32 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col0 - + + 58 FROM tab0
----
-763
-928
-9661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT DISTINCT - col2 * + ( + CAST( col2 AS SIGNED ) ) - - col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT - col2 * + ( + CAST ( col2 AS INTEGER ) ) - - col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

query I rowsort
SELECT DISTINCT 89 - 72 + + col2 AS col1 FROM tab1 AS cor0
----
113
76
85

query I rowsort
SELECT + ( 5 ) * - - col1 AS col2 FROM tab0 AS cor0
----
105
405
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7487
SELECT DISTINCT col1 + - col0 * - col2 col0 FROM tab2 WHERE NOT - + col0 <= - - ( CAST( NULL AS DECIMAL ) ) * - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7487
SELECT DISTINCT col1 + - col0 * - col2 col0 FROM tab2 WHERE NOT - + col0 <= - - ( CAST ( NULL AS REAL ) ) * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT ALL + - AVG ( + col0 ) FROM tab0 cor0 WHERE NOT NULL NOT IN ( col1, 88, 23, col2 - 76, + col1 - + - ( - + ( - + 40 ) ) / - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) - + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL + - AVG ( + col0 ) FROM tab0 cor0 WHERE NOT NULL NOT IN ( col1, 88, 23, col2 - 76, + col1 - + - ( - + ( - + 40 ) ) / - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - + + col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 44 ) >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 48 AS col0, 35 * + col1 FROM tab0 AS cor0
----
48
2835
48
35
48
735

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT - MAX( 26 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7491
SELECT - MAX ( 26 ) FROM tab2 AS cor0
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - 78 * - 2 + col0 col2 FROM tab1 cor0 WHERE NOT - col0 * 12 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT + + MAX( ALL 59 ) AS col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + + MAX ( ALL 59 ) AS col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT + + col0 <= 63
----
10
99

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - + col2 BETWEEN + ( - 47 ) + - + 35 AND 20 + 3 * + 25 + + col0
----
99

query I rowsort
SELECT DISTINCT col0 * + 24 + - col1 + + col2 AS col1 FROM tab0
----
2077
2426
326

query I rowsort
SELECT + col1 * col2 * + 91 AS col1 FROM tab1
----
122304
26845
290836

query I rowsort
SELECT - 15 * - ( - - col1 ) AS col1 FROM tab0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - 85 + - - COUNT( * ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - 85 + - - COUNT ( * ) AS col0 FROM tab0
----
-82

query I rowsort
SELECT ALL + 13 + + - col2 AS col1 FROM tab0 cor0
----
-34
-86
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - col0 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - col0 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL + MIN( - col2 ) * - + COUNT( * ) * - - ( ( + - COUNT( * ) ) ) AS col1 FROM tab0 cor0
----
-891

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + MIN ( - col2 ) * - + COUNT ( * ) * - - ( ( + - COUNT ( * ) ) ) AS col1 FROM tab0 cor0
----
-891

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT ALL - col1 DIV - + 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL - col1 / - + 94 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 68 + ( - + 57 ) AS col0 FROM tab0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT DISTINCT - ( - - CAST( + col0 AS SIGNED ) ) col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7506
SELECT DISTINCT - ( - - CAST ( + col0 AS INTEGER ) ) col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 6 + ( - + col0 ) FROM tab1
----
-57
-91
-97

query I rowsort
SELECT - col2 * + 37 + col0 FROM tab2
----
-1416
-2071
-805

query I rowsort
SELECT ALL + 12 + - col0 FROM tab0
----
-3
-75
-85

query I rowsort
SELECT DISTINCT + 79 + + col1 AS col2 FROM tab2
----
130
146
156

query I rowsort
SELECT - 6 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 33 * - - col0 + col2 IS NULL
----

query I rowsort
SELECT + + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT - col2 + - - 82 + + col2 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT + col0 + + 63 + - col0 FROM tab1 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 76 ) col1 FROM tab1
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7518
SELECT col1, ( - col1 ) + + + CAST( + col2 AS SIGNED ) FROM tab1
----
14
82
47
21
5
54

skipif mysql # not compatible
query II rowsort label-7518
SELECT col1, ( - col1 ) + + + CAST ( + col2 AS INTEGER ) FROM tab1
----
14
82
47
21
5
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7519
SELECT - 2 * - 51 / + 72 - + + col2 + ( CAST( - 63 AS SIGNED ) ), col1 AS col2 FROM tab0 WHERE NOT ( - ( 49 ) ) * + 9 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7519
SELECT - 2 * - 51 / + 72 - + + col2 + ( CAST ( - 63 AS INTEGER ) ), col1 AS col2 FROM tab0 WHERE NOT ( - ( 49 ) ) * + 9 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7521
SELECT DISTINCT 91, col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7521
SELECT DISTINCT 91, col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
91
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT + + col0 + - 86 AS col1 FROM tab0 AS cor0
----
-71
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - - ( - COUNT( * ) ) + - ( MAX( + col0 ) ) FROM tab0 AS cor0 WHERE NOT ( - 6 / + + col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - - ( - COUNT ( * ) ) + - ( MAX ( + col0 ) ) FROM tab0 AS cor0 WHERE NOT ( - 6 / + + col0 IS NOT NULL )
----
NULL

query I rowsort
SELECT 9 * + col0 + - 55 AS col1 FROM tab0
----
728
80
818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + 81 col1 FROM tab0
----
102
162
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT - + SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7527
SELECT - + SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + 36 * + - col2 FROM tab0 AS cor0
----
-1692
-3564
-360

query I rowsort
SELECT ALL - col0 * + 43 + + + 45 - - 27 AS col2 FROM tab2 AS cor0
----
-1906
-2680
-3153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7530
SELECT DISTINCT - col2 * + col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT - col2 * + col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7531
SELECT ALL col1 - + col0, - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-8
NULL
13
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7531
SELECT ALL col1 - + col0, - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-8
NULL
13
NULL
5
NULL

query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab0 WHERE NOT - 83 * + 71 + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT + COUNT( DISTINCT + + 44 ) - - - COUNT( * ) col2 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7533
SELECT + COUNT ( DISTINCT + + 44 ) - - - COUNT ( * ) col2 FROM tab2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( 53 ) FROM tab2
----
-53

query I rowsort
SELECT DISTINCT + col1 + + 4 AS col0 FROM tab1
----
18
51
9

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND 42 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL 29 * COUNT( - col1 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL 29 * COUNT ( - col1 ) FROM tab2
----
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7540
SELECT + - AVG ( ALL - 17 ) * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT + - AVG ( ALL - 17 ) * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT - SUM( - col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7541
SELECT - SUM ( - col2 ) FROM tab1 cor0
----
223

query I rowsort
SELECT - ( + 83 ) AS col2 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL <= - col1 * col0 / - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7543
SELECT ALL + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL <= - col1 * col0 / - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - - col2 ) OR NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - - col2 ) OR NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col2, 26 AS col2 FROM tab2
----
-23
26
-40
26
-58
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL <> + 82 * + ( - + col2 ) )
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 50 ) AND - 53 + 21 * + - ( + col1 )
----

query II rowsort
SELECT - col1, 16 AS col0 FROM tab0 AS cor0
----
-1
16
-21
16
-81
16

query I rowsort
SELECT DISTINCT + col0 * + col2 + + + ( col0 ) * - col0 + + col2 + + col2 * + + 75 AS col2 FROM tab0 AS cor0
----
-5939
4052
7718

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL - MAX( - - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - MAX ( - - col0 ) AS col0 FROM tab1
----
-91

query I rowsort
SELECT - 27 AS col2 FROM tab1 WHERE NULL IS NULL
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - 85 + + 98 * - col2 * + - col0 * col2 FROM tab1
----
28996645
41236747
46061483

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 94 + + col1 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - 72 AS col1 FROM tab2
----
-21
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) + + + 2 col0 FROM tab0
----
23
3
83

query I rowsort
SELECT col0 + + ( col1 ) FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL COUNT( * ) * - - 93 + ( COUNT( * ) ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL COUNT ( * ) * - - 93 + ( COUNT ( * ) ) AS col2 FROM tab1
----
282

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 <= + + col1
----
10
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 98 + - 99 + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT - 6 DIV + - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7560
SELECT - 6 / + - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT - 19 AS col2, ( - COUNT( DISTINCT - 6 ) ) AS col1 FROM tab0
----
-19
-1

skipif mysql # not compatible
query II rowsort label-7561
SELECT - 19 AS col2, ( - COUNT ( DISTINCT - 6 ) ) AS col1 FROM tab0
----
-19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT COUNT( * ) + + 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-7562
SELECT COUNT ( * ) + + 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
62

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - 78 * + - MAX( DISTINCT 90 ) FROM tab2, tab2 AS cor0
----
7020

skipif mysql # not compatible
query I rowsort label-7564
SELECT - 78 * + - MAX ( DISTINCT 90 ) FROM tab2, tab2 AS cor0
----
7020

query I rowsort
SELECT DISTINCT 93 - + 65 AS col2 FROM tab2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT ALL + 9 + + col2 * col0 DIV - - 38 AS col0 FROM tab2 cor0
----
123
36
76

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + 9 + + col2 * col0 / - - 38 AS col0 FROM tab2 cor0
----
123
36
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 26, + col1 + 4 - + col1 )
----

query II rowsort
SELECT ALL col0 AS col1, col1 * - 1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL + 80 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( - - col1 AS SIGNED ) - - col1 AND + + col0 * - - ( + col2 ) * + - ( - + col0 )
----

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL + 80 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( - - col1 AS INTEGER ) - - col1 AND + + col0 * - - ( + col2 ) * + - ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT col2 DIV - - col1 col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7571
SELECT col2 / - - col1 col1 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7572
SELECT ALL COUNT( ALL - + col2 ), + 57 AS col0 FROM tab2
----
3
57

skipif mysql # not compatible
query II rowsort label-7572
SELECT ALL COUNT ( ALL - + col2 ), + 57 AS col0 FROM tab2
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT - COUNT( * ) * - ( + 35 ) AS col0 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - COUNT ( * ) * - ( + 35 ) AS col0 FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT + COUNT( * ) * + + 94 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-7574
SELECT + COUNT ( * ) * + + 94 FROM tab2
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL MAX( ALL + 48 ) col1 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7575
SELECT ALL MAX ( ALL + 48 ) col1 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + ( - SUM( ALL + 3 ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7576
SELECT + ( - SUM ( ALL + 3 ) ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col2 * + col2 FROM tab2 AS cor0 WHERE ( ( NOT NULL < ( NULL ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + ( + - 41 ) - + - 34 <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * + - col0 col2 FROM tab0
----
1110
6438
7178

query I rowsort
SELECT ALL 66 * - col1 * + + ( - 94 ) FROM tab2
----
316404
415668
477708

query I rowsort
SELECT ALL + col1 * - ( + col2 ) AS col0 FROM tab1 cor0
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( - ( col1 ) ) + + ( + col2 )
----

query I rowsort
SELECT DISTINCT + ( + 30 ) FROM tab2 AS cor0
----
30

query I rowsort
SELECT col2 * - 17 + - col0 AS col1 FROM tab2 AS cor0
----
-1061
-437
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT + 10 DIV + ( + col2 ) + - col1 col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT + 10 / + ( + col2 ) + - col1 col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT ALL + col2 AS col1, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT + - col1 + + col2 + 19 AS col1 FROM tab1 AS cor0
----
101
40
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= NULL AND ( NOT + + col1 + - 42 <> + ( + + 57 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT - 62 DIV col0 AS col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT - 62 / col0 AS col2 FROM tab2 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT DISTINCT MAX( ALL - 96 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT MAX ( ALL - 96 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL + COUNT( * ) + 42 AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL + COUNT ( * ) + 42 AS col2 FROM tab2
----
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + - 11 + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 3 + + 6 * - ( col2 ) FROM tab0
----
-279
-57
-591

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT COUNT( * ) * + 94 col0 FROM tab2
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7594
SELECT COUNT ( * ) * + 94 col0 FROM tab2
----
282

query I rowsort
SELECT DISTINCT + col0 - - 63 * + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1403
-2456
-3579

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + - COUNT( * ) - + COUNT( - 80 ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7596
SELECT + - COUNT ( * ) - + COUNT ( - 80 ) FROM tab1 cor0
----
-6

query I rowsort
SELECT ALL - 32 - + col2 + col2 AS col0 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL 90 + - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
136
154
165

query I rowsort
SELECT DISTINCT - 58 * - col1 + - col0 FROM tab1 AS cor0
----
205
2635
761

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7600
SELECT CAST( 3 AS SIGNED ) AS col2, col0 * - col2 * col0 - - 31 FROM tab2
----
3
-163809
3
-326219
3
-48637

skipif mysql # not compatible
query II rowsort label-7600
SELECT CAST ( 3 AS INTEGER ) AS col2, col0 * - col2 * col0 - - 31 FROM tab2
----
3
-163809
3
-326219
3
-48637

query I rowsort
SELECT DISTINCT col1 + - + col2 * - col1 * 5 AS col0 FROM tab0
----
1071
19116
496

query I rowsort
SELECT + col0 * + 20 AS col0 FROM tab2 AS cor0
----
1280
1500
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7603
SELECT DISTINCT COUNT( * ) / - MAX( ALL + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT COUNT ( * ) / - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7604
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT 12 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
12
12

query I rowsort
SELECT col1 * - + 98 FROM tab0 cor0
----
-2058
-7938
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT COUNT( * ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7607
SELECT COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL ( 33 ) AS col2 FROM tab0 cor0
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT - COUNT( * ) * - + 57 / - CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 88 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT - COUNT ( * ) * - + 57 / - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 88 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1, 10 FROM tab0
----
1
10
21
10
81
10

query II rowsort
SELECT + col1 AS col0, - 90 * - col0 FROM tab1
----
14
4590
47
8190
5
7650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7612
SELECT ALL COUNT( * ), 28 + - COUNT( * ) * COUNT( * ) * - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3
28

skipif mysql # not compatible
query II rowsort label-7612
SELECT ALL COUNT ( * ), 28 + - COUNT ( * ) * COUNT ( * ) * - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3
28

query I rowsort
SELECT - + col2 * - + col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT SUM( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-7614
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7615
SELECT + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT DISTINCT col0 DIV + 84 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT col0 / + 84 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT - col2 * + - col1 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 89 + + 59 AS col0 FROM tab0 AS cor0
----
148
148
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT - SUM( ( - - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7619
SELECT - SUM ( ( - - col2 ) ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT ALL - + ( col2 ), col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 27 * ( col2 ) + + col0 * + 15 * - ( - 7 ) * + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col0 ) col2, - 27 FROM tab1 AS cor0
----
-51
-27
-85
-27
-91
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT - COUNT( * ) + 35 DIV COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - COUNT ( * ) + 35 / COUNT ( * ) FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT COUNT( * ) + - + 58 AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7624
SELECT COUNT ( * ) + - + 58 AS col2 FROM tab0
----
-55

query III rowsort
SELECT * FROM tab0 WHERE - + col0 BETWEEN + col0 AND + 90 * + 89
----

query I rowsort
SELECT ALL 44 * + - col1 + - - col2 FROM tab1
----
-161
-2000
-520

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 41 + - col1 FROM tab2
----
-108
-118
-92

query I rowsort
SELECT + col1 + 70 AS col1 FROM tab0
----
151
71
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT 55 / - col2 + - 73 - CAST( NULL AS SIGNED ) * + col1 + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT 55 / - col2 + - 73 - CAST ( NULL AS INTEGER ) * + col1 + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - + ( - COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - + ( - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE - col0 * - + col1 IS NULL
----

query I rowsort
SELECT + ( - 58 ) - - col2 * - col2 * + 76 AS col2 FROM tab2
----
-121658
-255722
-40262

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT DISTINCT - 18 DIV - col2 * col2 * + ( - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - 18 / - col2 * col2 * + ( - col0 ) FROM tab2
----
0

query II rowsort
SELECT DISTINCT 76, col0 * - - col2 AS col0 FROM tab2
----
76
1058
76
2560
76
4350

query II rowsort
SELECT + col0, ( - 45 ) FROM tab2 AS cor0 WHERE NOT - 22 + - col1 IS NULL
----
46
-45
64
-45
75
-45

query I rowsort
SELECT DISTINCT - ( 38 ) AS col0 FROM tab0 cor0
----
-38

query I rowsort
SELECT DISTINCT + ( - 12 ) AS col1 FROM tab1 AS cor0
----
-12

query II rowsort
SELECT ( - col2 ) AS col0, - col0 * - - col0 AS col1 FROM tab1
----
-59
-7225
-68
-8281
-96
-2601

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 10 * + - col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + col1 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + + col1 AS col1 FROM tab2
----
102
134
154

query II rowsort
SELECT DISTINCT + 59, col0 AS col2 FROM tab0 cor0
----
59
15
59
87
59
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7646
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( col2 AS SIGNED ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7646
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( col2 AS INTEGER ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT + + CAST( + 58 AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7647
SELECT + + CAST ( + 58 AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT + 41 + + - col0 FROM tab2 AS cor0
----
-23
-34
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT + + col2 * - - col2 DIV col2 + + - 47 AS col0 FROM tab0 cor0
----
-37
0
52

skipif mysql # not compatible
query I rowsort label-7649
SELECT + + col2 * - - col2 / col2 + + - 47 AS col0 FROM tab0 cor0
----
-37
0
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT - col1 * + ( + col1 ) * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
38367
97
98415

skipif mysql # not compatible
query I rowsort label-7650
SELECT - col1 * + ( + col1 ) * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT ALL - - 61 * + col2 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7652
SELECT COUNT( DISTINCT + col0 ) DIV + + COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7652
SELECT COUNT ( DISTINCT + col0 ) / + + COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT + COUNT( * ) + 18 col2 FROM tab1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7653
SELECT DISTINCT + COUNT ( * ) + 18 col2 FROM tab1
----
21

query I rowsort
SELECT ALL col2 * - - col2 * ( + col0 ) * + + col0 FROM tab1
----
23970816
25150225
38291344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7655
SELECT ALL MIN( + 68 ) - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL MIN ( + 68 ) - - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 84 + - col1 + - - col1 * col2 + + ( - 44 ) AS col0 FROM tab1 cor0
----
1202
162
3021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT - - ( + CAST( NULL AS SIGNED ) ) + + + 33 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT - - ( + CAST ( NULL AS INTEGER ) ) + + + 33 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 73 + - 91 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ( - ( + 10 ) ) + 1 AS col2 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - + col0 + + + col0 * - + col2 + + col2 FROM tab1 AS cor0
----
-4851
-5041
-6211

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + col2 ) < NULL
----

query I rowsort
SELECT DISTINCT + 83 * - col2 + - col2 FROM tab2 AS cor0
----
-1932
-3360
-4872

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7663
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7664
SELECT DISTINCT - 66 + + CAST( NULL AS DECIMAL ), - 28 * col0 * + - col2 + - col0 AS col0 FROM tab1 cor0 WHERE col1 + + col0 IS NOT NULL
----
NULL
137037
NULL
140335
NULL
173173

skipif mysql # not compatible
query II rowsort label-7664
SELECT DISTINCT - 66 + + CAST ( NULL AS REAL ), - 28 * col0 * + - col2 + - col0 AS col0 FROM tab1 cor0 WHERE col1 + + col0 IS NOT NULL
----
NULL
137037
NULL
140335
NULL
173173

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - MIN( + + 48 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7665
SELECT - MIN ( + + 48 ) FROM tab0 AS cor0
----
-48

query II rowsort
SELECT ALL + - col1 AS col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 30 + - col1 / - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7667
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 30 + - col1 / - col2 AND NULL
----
0

query I rowsort
SELECT + ( + col2 ) * + col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7669
SELECT + CAST( NULL AS SIGNED ) AS col2, + SUM( - col1 ) AS col0 FROM tab2
----
NULL
-195

skipif mysql # not compatible
query II rowsort label-7669
SELECT + CAST ( NULL AS INTEGER ) AS col2, + SUM ( - col1 ) AS col0 FROM tab2
----
NULL
-195

query II rowsort
SELECT - col2 + - - 27, - col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 AND + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + 54 + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7672
SELECT ALL - 91 + + COUNT( ALL col0 ) DIV + + 55 AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL - 91 + + COUNT ( ALL col0 ) / + + 55 AS col1 FROM tab2 AS cor0
----
-91

query II rowsort
SELECT ALL 83 + - 96, col2 + + ( - - 26 ) AS col1 FROM tab1
----
-13
122
-13
85
-13
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT SUM( - - 47 ), 25 AS col0 FROM tab1
----
141
25

skipif mysql # not compatible
query II rowsort label-7674
SELECT SUM ( - - 47 ), 25 AS col0 FROM tab1
----
141
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7675
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 9 BETWEEN NULL AND CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 9 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT - - 67 + + 39 - + + CAST( - + col2 AS SIGNED ) + + 6 AS col0 FROM tab1 AS cor0
----
171
180
208

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - - 67 + + 39 - + + CAST ( - + col2 AS INTEGER ) + + 6 AS col0 FROM tab1 AS cor0
----
171
180
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT DISTINCT col1 + - col2 + - + CAST( + 14 AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT DISTINCT col1 + - col2 + - + CAST ( + 14 AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 70 + ( - + 29 ) + + + col0 AS col2 FROM tab1 AS cor0
----
-14
-48
-8

query I rowsort
SELECT ALL + col2 * + + ( col0 ) AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + ( - col2 ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7681
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + ( - col2 ) col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + 20 + COUNT( * ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7682
SELECT + 20 + COUNT ( * ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL > - col0
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col0 * - 67 + - 29 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - COUNT( * ) + - - ( - + ( MAX( - - 75 ) ) ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-7686
SELECT - COUNT ( * ) + - - ( - + ( MAX ( - - 75 ) ) ) FROM tab1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7687
SELECT ALL col2 + - col1 + + col0 DIV + 81 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL col2 + - col1 + + col0 / + 81 FROM tab2
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT ( - col2 ) DIV - col2 + - col1 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-7688
SELECT ( - col2 ) / - col2 + - col1 FROM tab0
----
-20
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT - 8 * - - CAST( NULL AS SIGNED ) * col2 + + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT - 8 * - - CAST ( NULL AS INTEGER ) * col2 + + - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - - col2 * - col1 + 42 FROM tab1
----
-1353
-3245
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL - ( + + COUNT( * ) ) + + 87 * + COUNT( * ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL - ( + + COUNT ( * ) ) + + 87 * + COUNT ( * ) FROM tab1
----
258

query I rowsort
SELECT - col0 FROM tab1 WHERE 67 = + - col1 * + col1 + ( + col1 )
----

query I rowsort
SELECT + ( - ( col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT + + 1, 11 AS col1 FROM tab0 AS cor0
----
1
11
1
11
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL COUNT( DISTINCT + 8 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL COUNT ( DISTINCT + 8 ) AS col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col2 / col2 AND ( + col2 )
----

query I rowsort
SELECT ( 49 ) + col1 FROM tab0
----
130
50
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT - 22 * + 99 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 > 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT - 22 * + 99 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 > 7
----
NULL

query I rowsort
SELECT - col0 + + 61 * + 65 AS col1 FROM tab0
----
3868
3878
3950

query I rowsort
SELECT col2 + 18 AS col0 FROM tab1 WHERE ( - col0 + col1 ) IS NOT NULL
----
114
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT - SUM( col1 ) + COUNT( * ) col2 FROM tab2
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7702
SELECT DISTINCT - SUM ( col1 ) + COUNT ( * ) col2 FROM tab2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT SUM( - 3 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT SUM ( - 3 ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT 99 AS col1 FROM tab2 WHERE NOT - CAST( + col2 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-7704
SELECT 99 AS col1 FROM tab2 WHERE NOT - CAST ( + col2 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT col0 = + 1 * col1
----
3

skipif mysql # not compatible
query I rowsort label-7705
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT col0 = + 1 * col1
----
3

query I rowsort
SELECT 18 + col2 AS col2 FROM tab0
----
117
28
65

query I rowsort
SELECT - 95 + + 35 * - col2 FROM tab2
----
-1495
-2125
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT MAX( DISTINCT 34 ) AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT MAX ( DISTINCT 34 ) AS col1 FROM tab2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT - COUNT( * ) - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - CAST( 74 AS SIGNED ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT - COUNT ( * ) - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - CAST ( 74 AS INTEGER ) < NULL
----
NULL

query I rowsort
SELECT DISTINCT + 27 + + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7711
SELECT * FROM tab2 WHERE - CAST( col1 AS DECIMAL ) NOT BETWEEN - 88 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7711
SELECT * FROM tab2 WHERE - CAST ( col1 AS REAL ) NOT BETWEEN - 88 AND NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - 18 * + ( - 73 ) >= ( 26 * 95 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT DISTINCT MAX( + col2 ) + 96 AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT MAX ( + col2 ) + 96 AS col1 FROM tab0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col0 - 96 < 92
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col0 - 96 < 92
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 3 ) AS col2 FROM tab0 WHERE ( col0 ) = 43 + + 58 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL = + col1
----
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL = + col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( + 93 ) BETWEEN ( - col1 ) AND ( 44 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL COUNT( ALL - 47 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL COUNT ( ALL - 47 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + + col2 col2 FROM tab0
----
111
163
74

query I rowsort
SELECT 73 + - col1 AS col0 FROM tab0 WHERE + col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL COUNT( * ) FROM tab2 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL COUNT ( * ) FROM tab2 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL + ( COUNT( * ) ) * 68 AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + ( COUNT ( * ) ) * 68 AS col2 FROM tab0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT ALL + col0 + - col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + col0 + - col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND CAST ( NULL AS INTEGER ) * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL col1 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL col1 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT DISTINCT CAST( NULL AS SIGNED ) / 82 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 82 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT col0 DIV + 44 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-7726
SELECT col0 / + 44 col0 FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 81 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( 48 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT 52 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + + 37 + + col0 AS col1 FROM tab0 cor0
----
124
134
52

query I rowsort
SELECT ( col1 ) * + 72 FROM tab2 AS cor0 WHERE + 95 IS NULL
----

query I rowsort
SELECT + ( + ( col2 ) ) * + 69 AS col0 FROM tab1 AS cor0
----
4071
4692
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT ALL + COUNT( * ) DIV COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL + COUNT ( * ) / COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - ( 7 ) FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL 23 - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - col2 - + 69 FROM tab2 AS cor0
----
-109
-127
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT DISTINCT col2 * col0 AS col2 FROM tab1 WHERE NOT NULL = 43 + + CAST( - 7 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT col2 * col0 AS col2 FROM tab1 WHERE NOT NULL = 43 + + CAST ( - 7 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL MIN( ALL + + 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL MIN ( ALL + + 85 ) FROM tab0
----
85

query I rowsort
SELECT col1 - col2 * col1 AS col1 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT + col0 + 6 * col1 FROM tab2
----
352
477
526

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7742
SELECT ALL col2 - + CAST( NULL AS DECIMAL ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL col2 - + CAST ( NULL AS REAL ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT 54 - + + COUNT( * ) * + 88 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-7743
SELECT 54 - + + COUNT ( * ) * + 88 FROM tab1
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IN ( col0 )
----
0

query I rowsort
SELECT DISTINCT 37 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col1 ) / - 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * col0 + col0 col2 FROM tab0 cor0
----
1440
8352
9312

query II rowsort
SELECT DISTINCT - 2, col0 AS col0 FROM tab2
----
-2
46
-2
64
-2
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + 50 * 61 * + COUNT( * ) AS col2 FROM tab0
----
9150

skipif mysql # not compatible
query I rowsort label-7749
SELECT + 50 * 61 * + COUNT ( * ) AS col2 FROM tab0
----
9150

query I rowsort
SELECT + - 13 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7751
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT + 19 <= - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT + 19 <= - 28
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 59 ) NOT BETWEEN - 56 / col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

query I rowsort
SELECT ALL + 51 * 21 * - 40 + col0 FROM tab2
----
-42765
-42776
-42794

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 BETWEEN NULL AND - col1 * col1 + 46
----

query II rowsort
SELECT ALL col0 + 62, - col1 AS col2 FROM tab1
----
113
-14
147
-5
153
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7757
SELECT + 57 + CAST( NULL AS SIGNED ), - 46 * + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
NULL
138

skipif mysql # not compatible
query II rowsort label-7757
SELECT + 57 + CAST ( NULL AS INTEGER ), - 46 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
NULL
138

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7758
SELECT * FROM tab2 WHERE ( + 43 * CAST( NULL AS SIGNED ) * + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7758
SELECT * FROM tab2 WHERE ( + 43 * CAST ( NULL AS INTEGER ) * + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT COUNT( * ) * CAST( + + MIN( - col1 ) AS SIGNED ) + COUNT( col1 ) AS col2 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-7759
SELECT COUNT ( * ) * CAST ( + + MIN ( - col1 ) AS INTEGER ) + COUNT ( col1 ) AS col2 FROM tab0
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT - CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT - CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - 56 - COUNT( * ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 56 - COUNT ( * ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 77 / + 60 BETWEEN NULL AND col2 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 - + col2 AS col0 FROM tab0 cor0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + 94 ) AND NOT ( + + col1 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT - COUNT( * ) - 79 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - COUNT ( * ) - 79 FROM tab1 AS cor0
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7767
SELECT col2 + + 93 + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT col2 + + 93 + - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, + col2 - - - col2 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE - col0 BETWEEN ( + col2 ) AND - ( col1 ) + col1 / + col0
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 = - 97
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( 32 ) IN ( - col1 * - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97, ( - - 92 ) col1 FROM tab0
----
97
92
97
92
97
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT 77 DIV + + SUM( ALL + col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT 77 / + + SUM ( ALL + col2 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + 51 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + 51 IS NULL )
----
-3

query II rowsort
SELECT + col0 AS col2, + col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT + 83 + col2 * + 43 AS col1 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
2620
3007
4211

query I rowsort
SELECT 84 * + col1 AS col2 FROM tab2
----
4284
5628
6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT DISTINCT col2 + col1 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * - col0 + col2 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT col2 + col1 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * - col0 + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL SUM( ALL + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL SUM ( ALL + - col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT + COUNT( ALL + col2 ) FROM tab0 cor0 WHERE NOT + 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT + COUNT ( ALL + col2 ) FROM tab0 cor0 WHERE NOT + 5 IS NOT NULL
----
0

query I rowsort
SELECT ALL - ( + + col1 ) FROM tab1 cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 24 col1, col0 AS col2 FROM tab2 AS cor0
----
-24
46
-24
64
-24
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT COUNT( - - col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7783
SELECT COUNT ( - - col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT col0 * - + col0 AS col2 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT + col0 * ( + + col1 ) + col2 * + 95 FROM tab2 WHERE NOT - col1 IN ( + - 94 )
----
10535
4531
8728

query I rowsort
SELECT + 78 FROM tab0 AS cor0 WHERE NOT 27 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + 83 col1 FROM tab2 AS cor0
----
150
150
150

query I rowsort
SELECT ALL - 77 * + col1 FROM tab2
----
-3927
-5159
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT DISTINCT 95 * - - ( + col2 ) * - col0 * col2 + 26 FROM tab0 WHERE + 37 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT 95 * - - ( + col2 ) * - col0 * col2 + 26 FROM tab0 WHERE + 37 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT 76, col0 AS col1 FROM tab0
----
76
15
76
87
76
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT ALL - col2 + 65 DIV - + 81 AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - col2 + 65 / - + 81 AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL AVG ( - + col2 ) FROM tab1 WHERE NOT 92 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT DISTINCT + 33 DIV + COUNT( * ) + - - COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + 33 / + COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
14

query I rowsort
SELECT ALL col0 * - 0 + - 38 * col1 + - - col0 + ( + - col0 ) AS col1 FROM tab1 AS cor0
----
-1786
-190
-532

query I rowsort
SELECT DISTINCT + col0 + + + 30 AS col1 FROM tab0 AS cor0
----
117
127
45

query II rowsort
SELECT ALL + col0, - 25 AS col1 FROM tab0 AS cor0
----
15
-25
87
-25
97
-25

query I rowsort
SELECT col2 - + - ( + col2 ) - - ( + col2 ) FROM tab0 AS cor0
----
141
297
30

query I rowsort
SELECT - col0 + 89 FROM tab2 AS cor0
----
14
25
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7799
SELECT ALL - - 74 AS col0, + COUNT( - + col1 ) col0 FROM tab1 AS cor0
----
74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7799
SELECT ALL - - 74 AS col0, + COUNT ( - + col1 ) col0 FROM tab1 AS cor0
----
74
3

query I rowsort
SELECT - 0 + - + col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - - 39 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + 52 BETWEEN ( col0 ) AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col2 ) + - + col2, + col1 col2 FROM tab0 WHERE NULL IS NULL
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT ( + col2 ) * + 68 + + - col2 + + + col2 * - col0 AS col0 FROM tab0
----
-200
-2970
2444

query III rowsort
SELECT ALL * FROM tab2 WHERE + 1 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 * + 77 AS col0 FROM tab0 AS cor0
----
3619
7623
770

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7807
SELECT ALL - col1 - - col0 + + - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - col1 - - col0 + + - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - - col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT - 74 - col0 AS col2 FROM tab0 AS cor0
----
-161
-171
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + 81
----

skipif mysql # not compatible
query I rowsort label-7810
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL + MAX( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL + MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT MAX( ALL - - 47 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7812
SELECT MAX ( ALL - - 47 ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL col0 * 3 FROM tab0
----
261
291
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7814
SELECT col0 col2 FROM tab2 WHERE NOT + + col2 + CAST( - col1 AS DECIMAL ) IS NULL
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7814
SELECT col0 col2 FROM tab2 WHERE NOT + + col2 + CAST ( - col1 AS REAL ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7815
SELECT ALL - 42 DIV + MIN( - - col2 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - 42 / + MIN ( - - col2 ) FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col1 AS col0 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7817
SELECT - CAST( NULL AS SIGNED ) col0, + COUNT( * ) + + + 0 FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7817
SELECT - CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) + + + 0 FROM tab2
----
NULL
3

query I rowsort
SELECT 53 * + - 68 FROM tab2
----
-3604
-3604
-3604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT ALL + col2 + col2 - - 98 * col0 + + 8 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + - col1 )
----

query II rowsort
SELECT ( + col1 ) AS col2, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7823
SELECT * FROM tab1 WHERE NOT - col0 * - - CAST( NULL AS SIGNED ) * - 54 + + col1 + - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7823
SELECT * FROM tab1 WHERE NOT - col0 * - - CAST ( NULL AS INTEGER ) * - 54 + + col1 + - 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT + COUNT( * ) * - - 83 AS col2 FROM tab1 cor0
----
249

skipif mysql # not compatible
query I rowsort label-7824
SELECT + COUNT ( * ) * - - 83 AS col2 FROM tab1 cor0
----
249

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 * 47 > ( NULL )
----

query I rowsort
SELECT DISTINCT - 11 * - - 23 FROM tab1 AS cor0
----
-253

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE 22 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( col1 ) / ( + - col2 ) - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - ( + col2 ) + - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - ( + col2 ) + - - col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 + - 29 * + col2 AS col0 FROM tab2
----
-1120
-1624
-644

query II rowsort
SELECT + 78 + - 6, - col0 AS col2 FROM tab0
----
72
-15
72
-87
72
-97

query I rowsort
SELECT + col1 + - 74 AS col1 FROM tab1
----
-27
-60
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT - 9 + + - CAST( MIN( ALL + - col0 ) AS SIGNED ) + - - 11 * + 22 * + CAST( + 32 AS SIGNED ) FROM tab2
----
7810

skipif mysql # not compatible
query I rowsort label-7834
SELECT - 9 + + - CAST ( MIN ( ALL + - col0 ) AS INTEGER ) + - - 11 * + 22 * + CAST ( + 32 AS INTEGER ) FROM tab2
----
7810

onlyif mysql # aggregate syntax: 
query II rowsort label-7835
SELECT ALL - 59 + - 68 AS col2, - COUNT( - col1 ) * + + COUNT( * ) - - MIN( DISTINCT 17 ) AS col0 FROM tab0
----
-127
8

skipif mysql # not compatible
query II rowsort label-7835
SELECT ALL - 59 + - 68 AS col2, - COUNT ( - col1 ) * + + COUNT ( * ) - - MIN ( DISTINCT 17 ) AS col0 FROM tab0
----
-127
8

query I rowsort
SELECT DISTINCT 97 + + col2 AS col2 FROM tab1
----
156
165
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * - col2 + + - col0 col1 FROM tab0
----
-3728
-7918
-877

query II rowsort
SELECT ALL - 15 + + col0, - col0 AS col0 FROM tab0
----
0
-15
72
-87
82
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT - COUNT( * ) * + 29 + 78 AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7839
SELECT - COUNT ( * ) * + 29 + 78 AS col0 FROM tab0
----
-9

query II rowsort
SELECT - + col2 + - + col2 AS col2, 60 AS col2 FROM tab1 AS cor0
----
-118
60
-136
60
-192
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL <= ( NULL ) ) OR NULL < + 78 + - - 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7842
SELECT * FROM tab0 AS cor0 WHERE ( - ( - + 37 ) ) NOT BETWEEN + col2 + col0 AND + + CAST( NULL AS SIGNED ) * 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7842
SELECT * FROM tab0 AS cor0 WHERE ( - ( - + 37 ) ) NOT BETWEEN + col2 + col0 AND + + CAST ( NULL AS INTEGER ) * 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL - 30 + + + SUM( DISTINCT - ( + col2 ) ) AS col1 FROM tab1
----
-253

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - 30 + + + SUM ( DISTINCT - ( + col2 ) ) AS col1 FROM tab1
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT - 16 - SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-7844
SELECT - 16 - SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
-82

query I rowsort
SELECT ALL col0 + - + 65 FROM tab1
----
-14
20
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7846
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = col2 + + col1 * + - 30 + - CAST( NULL AS SIGNED ) - + 16
----

skipif mysql # not compatible
query III rowsort label-7846
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = col2 + + col1 * + - 30 + - CAST ( NULL AS INTEGER ) - + 16
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 66 < + col2
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col2 col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 59 + + col0 col1 FROM tab0 AS cor0
----
-5046
-5626
-870

query I rowsort
SELECT DISTINCT + + 85 * - - col1 AS col2 FROM tab0 AS cor0
----
1785
6885
85

query I rowsort
SELECT - - 33 * + col2 FROM tab1 AS cor0
----
1947
2244
3168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7852
SELECT DISTINCT * FROM tab0 WHERE NOT + 76 + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7852
SELECT DISTINCT * FROM tab0 WHERE NOT + 76 + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL col0 * + - col2 * - 63 AS col1 FROM tab0
----
44415
54810
604989

query I rowsort
SELECT - 14 * + + col1 AS col1 FROM tab2
----
-1078
-714
-938

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + 11 + + col1 + 54 NOT BETWEEN ( - col0 + - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 * - 78 FROM tab0 AS cor0
----
3666
7722
780

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 + 59 * - col1 ) NOT BETWEEN + col2 AND + ( 2 )
----

query I rowsort
SELECT DISTINCT + ( - col2 ) + + - 4 FROM tab0 AS cor0
----
-103
-14
-51

query I rowsort
SELECT + 15 * - + 90 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL 1 + - - COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL 1 + - - COUNT ( * ) FROM tab2
----
4

query I rowsort
SELECT ALL 75 + + 31 FROM tab1, tab1 AS cor0
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT + 63 AS col1, - 89 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63
-80

skipif mysql # not compatible
query II rowsort label-7862
SELECT + 63 AS col1, - 89 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63
-80

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE 63 - + + col0 IS NULL OR + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * col1 <> + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT + col0 + + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-7866
SELECT + col0 + + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + - col0 + + + 30 AS col0 FROM tab1 AS cor0
----
-21
-55
-61

query I rowsort
SELECT DISTINCT + 89 + + col0 FROM tab1 AS cor0
----
140
174
180

query I rowsort
SELECT ALL + col1 * col1 * + ( 62 ) + - col2 AS col1 FROM tab0
----
-37
27332
406735

onlyif mysql # aggregate syntax: 
query II rowsort label-7870
SELECT + COUNT( * ), COUNT( DISTINCT + col2 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7870
SELECT + COUNT ( * ), COUNT ( DISTINCT + col2 ) FROM tab0
----
3
3

query I rowsort
SELECT ALL ( - 90 ) AS col2 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT + 21 FROM tab1 WHERE col0 <> - + col2
----
21
21
21

query III rowsort
SELECT * FROM tab1 WHERE + 59 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7874
SELECT + 39 - 50 AS col1, - CAST( NULL AS SIGNED ) * ( COUNT( * ) ) / - 27 FROM tab0 AS cor0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-7874
SELECT + 39 - 50 AS col1, - CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) / - 27 FROM tab0 AS cor0
----
-11
NULL

query I rowsort
SELECT - col2 - 13 AS col0 FROM tab1 cor0
----
-109
-72
-81

query I rowsort
SELECT - - 98 - ( + col0 ) + - col0 * - 78 FROM tab2 AS cor0
----
3640
5026
5873

query I rowsort
SELECT ALL ( - + col2 ) FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + - col0 col1 FROM tab2 cor0
----
22
33
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + - 29 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7879
SELECT + - 29 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT - 33 + + ( col1 ) * col2 FROM tab2 AS cor0
----
1140
3047
3853

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT ALL - - ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL - - ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT ALL col0 * - col2, 31 AS col2 FROM tab1
----
-4896
31
-5015
31
-6188
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT DISTINCT - - CAST( 81 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT - - CAST ( 81 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ( MAX( DISTINCT col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7884
SELECT ( MAX ( DISTINCT col2 ) ) AS col1 FROM tab2
----
58

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL <> NULL
----

query II rowsort
SELECT - ( col0 ) AS col1, + 7 FROM tab2 cor0
----
-46
7
-64
7
-75
7

query I rowsort
SELECT ALL - + 39 * + 72 + - - col1 FROM tab1 AS cor0
----
-2761
-2794
-2803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7888
SELECT DISTINCT + COUNT( * ) DIV + 36 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT + COUNT ( * ) / + 36 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - ( + - 6 ), + col1 AS col1 FROM tab2 AS cor0
----
6
51
6
67
6
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + COUNT( + + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7890
SELECT + COUNT ( + + col1 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col0 + - + ( + col1 ) FROM tab1 AS cor0 WHERE 49 + - 84 + + col1 * - 11 IS NOT NULL
----
37
44
80

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE - col0 / - col0 IS NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ALL + ( + MAX( + col1 ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + ( + MAX ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL + COUNT( + col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + COUNT ( + col2 ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 0 col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL > + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL IN ( + 21 * - ( col0 ) * - - col1 - + col2, 93, - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( + 21 * - ( col0 ) * - - col1 - + col2, 93, - col2 )
----
0

query II rowsort
SELECT - - col1, 57 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 * + + col2 AND + 62
----

query I rowsort
SELECT - 99 * - - col0 AS col2 FROM tab2
----
-4554
-6336
-7425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7901
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT COUNT( * ) * ( COUNT( * ) ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7902
SELECT COUNT ( * ) * ( COUNT ( * ) ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT MIN( ALL + + 15 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7903
SELECT MIN ( ALL + + 15 ) AS col1 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT - - COUNT( * ) * + 54 AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7904
SELECT - - COUNT ( * ) * + 54 AS col2 FROM tab2 AS cor0
----
162

query I rowsort
SELECT ALL + - col2 + 0 - - col1 + - 9 AS col0 FROM tab0 cor0
----
-107
2
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT - CAST( - + 32 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7906
SELECT - CAST ( - + 32 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( 90 ) + col0 FROM tab2
----
136
154
165

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT DISTINCT col2 DIV + + 23 FROM tab1
----
2
4

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT col2 / + + 23 FROM tab1
----
2
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 0 * - - col0 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT + + 0 * - 96 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-7910
SELECT + + 0 * - 96 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL + + SUM( DISTINCT + 83 ) + - COUNT( * ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + + SUM ( DISTINCT + 83 ) + - COUNT ( * ) FROM tab0 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT DISTINCT + - col1 DIV col2 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + - col1 / col2 FROM tab2 cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT - - COUNT( * ) * + - 82, 8 AS col1 FROM tab1 AS cor0
----
-246
8

skipif mysql # not compatible
query II rowsort label-7913
SELECT - - COUNT ( * ) * + - 82, 8 AS col1 FROM tab1 AS cor0
----
-246
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7915
SELECT DISTINCT - - 71 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * 31 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT - - 71 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * 31 IS NOT NULL
----

query I rowsort
SELECT + col1 + - - col0 AS col2 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab1 WHERE - 56 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 19 * + + col2 - - 97 * 97 * + col0 + col0 col2 FROM tab0 AS cor0
----
127755
730313
802140

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col0, 69 AS col1 FROM tab1
----
-51
69
-85
69
-91
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 AS col0, + ( col0 ) AS col2, - 90 col1 FROM tab0 WHERE NOT ( + 17 + - col1 + + col1 IS NULL )
----
9 values hashing to 474fbc3885020dcb7cfad639b34083a0

query I rowsort
SELECT ALL - ( - 42 ) FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT col1 * col1 * 79 AS col1 FROM tab1
----
15484
174511
1975

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT COUNT( * ) * - SUM( - - col1 ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-7925
SELECT COUNT ( * ) * - SUM ( - - col1 ) FROM tab1
----
-198

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 * + - 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 89 * - 97 AS col1 FROM tab1
----
-8633
-8633
-8633

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - col0 ) AND ( - col0 + + ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2
----
NULL

query II rowsort
SELECT col2 * + col0 AS col2, col2 - - col1 AS col2 FROM tab2
----
1058
74
2560
117
4350
125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7931
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 * + col1 / - col1 * - col2 NOT IN ( + CAST( col1 AS SIGNED ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7931
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 * + col1 / - col1 * - col2 NOT IN ( + CAST ( col1 AS INTEGER ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT + - col1 * + col0 - - + ( - + 51 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
-1218
-1827
-97

skipif mysql # not compatible
query I rowsort label-7932
SELECT + - col1 * + col0 - - + ( - + 51 ) / + col0 AS col0 FROM tab0 AS cor0
----
-1218
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT DISTINCT - ( + - col2 ) * col2 + + + CAST( col0 AS SIGNED ) FROM tab0
----
187
2224
9898

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT - ( + - col2 ) * col2 + + + CAST ( col0 AS INTEGER ) FROM tab0
----
187
2224
9898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * 97 + + 99 + - + col0 * + col2 * - col1 col1 FROM tab1 AS cor0
----
299762
33419
73590

query II rowsort
SELECT ALL + 52, col0 AS col1 FROM tab2 AS cor0
----
52
46
52
64
52
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT - - COUNT( - + col1 ) * - ( + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT - - COUNT ( - + col1 ) * - ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 90 IS NULL
----

query I rowsort
SELECT + - 34 * - col0 * col2 + + - ( + 3 ) AS col2 FROM tab1 AS cor0
----
166461
170507
210389

query I rowsort
SELECT DISTINCT - ( 55 ) FROM tab1 AS cor0
----
-55

query I rowsort
SELECT DISTINCT + + 39 * + - 76 + + col1 AS col1 FROM tab0 AS cor0
----
-2883
-2943
-2963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - ( - col1 ) FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7943
SELECT DISTINCT - CAST( + 86 AS SIGNED ) + - col1 DIV 95 AS col2 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT - CAST ( + 86 AS INTEGER ) + - col1 / 95 AS col2 FROM tab2
----
-86

query I rowsort
SELECT 89 FROM tab1 WHERE - + ( - - ( - col0 ) ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 98 - col0 AS col0 FROM tab0
----
-113
-185
-195

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL <> + 93 )
----

query I rowsort
SELECT ALL - 71 - - ( + col1 ) FROM tab2
----
-20
-4
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT ALL + CAST( 44 AS SIGNED ) FROM tab2
----
44
44
44

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL + CAST ( 44 AS INTEGER ) FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT 65 * + + COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7949
SELECT 65 * + + COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT + + COUNT( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7950
SELECT + + COUNT ( ALL + - col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - ( ( + col2 ) ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7952
SELECT ALL ( COUNT( * ) ) AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( col0 * 64 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7952
SELECT ALL ( COUNT ( * ) ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( col0 * 64 )
----
0
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 5
----

query I rowsort
SELECT DISTINCT - col1 * + 9 + + - 23 AS col2 FROM tab1
----
-149
-446
-68

query I rowsort
SELECT ALL - 70 + 39 AS col1 FROM tab0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT + - 22 - + CAST( NULL AS SIGNED ) * col0 / + 5 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT + - 22 - + CAST ( NULL AS INTEGER ) * col0 / + 5 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - + 75 - - 55 AS col2 FROM tab0
----
-5
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL - MAX( - ( + - 84 ) ) + - 30 AS col1 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - MAX ( - ( + - 84 ) ) + - 30 AS col1 FROM tab0
----
-114

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 3 + 23 < NULL
----

query I rowsort
SELECT col2 + - + 75 FROM tab1 AS cor0
----
-16
-7
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT MAX( - 22 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7962
SELECT MAX ( - 22 ) FROM tab2
----
-22

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT - 92 + + COUNT( * ) AS col0 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT - 92 + + COUNT ( * ) AS col0 FROM tab1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7965
SELECT + col1 - ( 37 ) AS col2, 93 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-16
NULL
-36
NULL
44
NULL

skipif mysql # not compatible
query II rowsort label-7965
SELECT + col1 - ( 37 ) AS col2, 93 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-16
NULL
-36
NULL
44
NULL

query I rowsort
SELECT ALL 30 + - - col1 FROM tab2 AS cor0
----
107
81
97

query II rowsort
SELECT ALL col2 * - 33, - 32 AS col1 FROM tab1 AS cor0
----
-1947
-32
-2244
-32
-3168
-32

query I rowsort
SELECT - 30 * - col2 + - 38 * col1 FROM tab1
----
1580
2348
254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT ( + 94 ) FROM tab1 WHERE ( - col1 + - CAST( NULL AS SIGNED ) ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7969
SELECT ( + 94 ) FROM tab1 WHERE ( - col1 + - CAST ( NULL AS INTEGER ) ) >= ( NULL )
----

query I rowsort
SELECT 77 + + + 34 FROM tab0 WHERE col0 IS NOT NULL
----
111
111
111

query I rowsort
SELECT + 57 + col2 AS col0 FROM tab0
----
104
156
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL COUNT( * ) * - - 12 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL COUNT ( * ) * - - 12 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - 37 + - + SUM( + - col2 ) AS col2 FROM tab0
----
119

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - 37 + - + SUM ( + - col2 ) AS col2 FROM tab0
----
119

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > 7 - + col1 - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT - 24 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT - 24 / col2 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL + col0 + - - col0 - + + col1 AS col2, - col2 FROM tab2
----
41
-23
51
-40
83
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
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-7977
SELECT col2 / - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT DISTINCT 11 DIV + - COUNT( * ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT 11 / + - COUNT ( * ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + - col2 + + col1 IS NULL
----

query II rowsort
SELECT - col2 AS col2, col0 + + + ( col0 ) + col2 + + col0 * col2 FROM tab2
----
-23
1173
-40
2728
-58
4558

query I rowsort
SELECT + + 1 FROM tab0 WHERE NOT - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT - - ( + MAX( ALL - - col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - - ( + MAX ( ALL - - col0 ) ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT col2 AS col0, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT - + col2 * - col2 DIV - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7984
SELECT - + col2 * - col2 / - col2 FROM tab1 AS cor0
----
-59
-68
-96

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab0 cor0
----
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col1
----

query I rowsort
SELECT + col1 + + 20 AS col2 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT ( - col0 ) + - col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT ( - col0 ) + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col1 * + col1 IN ( + + 31 * 27, col0 * - + 81 )
----
51
67
77

query I rowsort
SELECT + col0 * + - 64 FROM tab2 AS cor0
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT MAX( col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7992
SELECT MAX ( col2 ) col0 FROM tab1
----
96

query I rowsort
SELECT ALL ( + 98 ) + + col1 AS col2 FROM tab2
----
149
165
175

query I rowsort
SELECT DISTINCT 30 + + col1 AS col1 FROM tab0
----
111
31
51

query III rowsort
SELECT * FROM tab2 WHERE col1 * col1 - 94 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7996
SELECT ALL COUNT( * ) DIV + COUNT( * ) FROM tab1, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL COUNT ( * ) / + COUNT ( * ) FROM tab1, tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col0 col2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - col1 FROM tab0 WHERE - - 79 IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col0 col1 FROM tab2
----
141
142
97

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) >= + - col2
----

query I rowsort
SELECT col0 * + col0 * col2 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT - 99 * - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1386
4653
495

skipif mysql # not compatible
query I rowsort label-8003
SELECT - 99 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1386
4653
495

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT - 99 * - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - 99 * - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-297

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL <> ( col0 ) )
----

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE NOT NULL >= + col1 * + + col1 + + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT MAX( + + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8007
SELECT MAX ( + + col2 ) FROM tab0 cor0
----
99

query I rowsort
SELECT DISTINCT + - col2 - ( + col1 ) FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - + col0 - + - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 76 * - + 83 FROM tab0 cor0
----
-6308

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - 18 - - col2 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT COUNT( ALL - col2 ) AS col0, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8013
SELECT COUNT ( ALL - col2 ) AS col0, COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT ALL col2 FROM tab2 WHERE NULL BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL col2 FROM tab2 WHERE NULL BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT MAX( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT col2 * col2 - - col2 * + - col0 FROM tab0 AS cor0
----
-770
1504
198

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT 84 * + 33 + col0 DIV - col2 FROM tab2 AS cor0
----
2770
2771
2771

skipif mysql # not compatible
query I rowsort label-8018
SELECT 84 * + 33 + col0 / - col2 FROM tab2 AS cor0
----
2770
2771
2771

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8019
SELECT ALL + CAST( + col0 AS SIGNED ) DIV 5 * + + col0 * - - 3 AS col1 FROM tab2 AS cor0
----
1242
2304
3375

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + CAST ( + col0 AS INTEGER ) / 5 * + + col0 * - - 3 AS col1 FROM tab2 AS cor0
----
1242
2304
3375

query I rowsort
SELECT ( + 60 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 1 NOT BETWEEN + col0 AND - + col1 + col0 / + 28
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8021
SELECT ALL - 16 DIV + 84 AS col0, col0 * + col1 AS col2 FROM tab2 AS cor0
----
0
2346
0
4928
0
5025

skipif mysql # not compatible
query II rowsort label-8021
SELECT ALL - 16 / + 84 AS col0, col0 * + col1 AS col2 FROM tab2 AS cor0
----
0
2346
0
4928
0
5025

query I rowsort
SELECT DISTINCT - 71 * + ( + col1 ) FROM tab1
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + + COUNT( - col2 ) FROM tab1 WHERE NOT ( - 71 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8023
SELECT + + COUNT ( - col2 ) FROM tab1 WHERE NOT ( - 71 IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8024
SELECT ALL + 24 AS col0, COUNT( * ) FROM tab0 AS cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-8024
SELECT ALL + 24 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
24
3

query I rowsort
SELECT ALL ( - 94 ) AS col0 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT DISTINCT COUNT( - ( CAST( NULL 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-8026
SELECT DISTINCT COUNT ( - ( CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT ALL col0 DIV + + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL col0 / + + col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT COUNT( col1 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + col1 + - 36 FROM tab1
----
-22
-31
11

query I rowsort
SELECT - ( col1 ) + - col0 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT ALL 36 * + 24 + CAST( NULL AS SIGNED ) * + 59 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL 36 * + 24 + CAST ( NULL AS INTEGER ) * + 59 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 10 + - + col0 FROM tab1
----
-41
-75
-81

query II rowsort
SELECT - 13 + 0, + 69 * + col1 AS col1 FROM tab1
----
-13
3243
-13
345
-13
966

query I rowsort
SELECT 86 + col1 AS col1 FROM tab1
----
100
133
91

query II rowsort
SELECT - col2 + + col2, col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT + 48 + - - MIN( ALL - col0 ) AS col1 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT + 48 + - - MIN ( ALL - col0 ) AS col1 FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT + - COUNT( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + - COUNT ( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 13 FROM tab1 cor0 WHERE - 35 IS NULL
----

query I rowsort
SELECT ALL + col2 * + + col1 + + + 53 FROM tab1 cor0
----
1397
3249
348

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT 85 + MIN( ( + 23 ) ) AS col2 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8041
SELECT 85 + MIN ( ( + 23 ) ) AS col2 FROM tab2 AS cor0
----
108

query III rowsort
SELECT * FROM tab2 cor0 WHERE 58 * 36 IS NULL
----

query I rowsort
SELECT ALL + - col0 - + 45 * - 7 * + ( - 2 ) FROM tab2 AS cor0
----
-676
-694
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - ( + SUM( ALL 29 ) ) - + + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - ( + SUM ( ALL 29 ) ) - + + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT ALL + 58 * + CAST( ( - AVG ( - col2 ) ) AS SIGNED ) FROM tab2 AS cor0
----
2320

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + 58 * + CAST ( ( - AVG ( - col2 ) ) AS INTEGER ) FROM tab2 AS cor0
----
2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT + - col2 * - CAST( ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-8046
SELECT + - col2 * - CAST ( ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - 18 * + COUNT( * ) AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-8047
SELECT - 18 * + COUNT ( * ) AS col2 FROM tab1
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * - col0 col1 FROM tab2
----
-3910
-5440
-6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT + SUM( + 7 ) DIV + 75 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT + SUM ( + 7 ) / + 75 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 69 ) col1 FROM tab2
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8051
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8051
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - - col0 AND col2 + - + ( - 84 ) + + - 3 + - - col1
----

query I rowsort
SELECT ALL - ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 51 * 6 * + col2 + - + col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 50 = + ( - 55 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8055
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 50 = + ( - 55 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL + CAST( NULL AS SIGNED ) * + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + CAST ( NULL AS INTEGER ) * + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + COUNT( DISTINCT - + ( + 69 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8058
SELECT + COUNT ( DISTINCT - + ( + 69 ) ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT ALL - 45 DIV - - ( + col1 ) FROM tab1 AS cor0
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - 45 / - - ( + col1 ) FROM tab1 AS cor0
----
-3
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT + COUNT( - - 86 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8060
SELECT DISTINCT + COUNT ( - - 86 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT - COUNT( * ) DIV + MAX( ALL + + 2 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8061
SELECT - COUNT ( * ) / + MAX ( ALL + + 2 ) AS col0 FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE - ( + col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT DISTINCT CAST( 74 AS SIGNED ) + - ( 16 ) AS col0 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT CAST ( 74 AS INTEGER ) + - ( 16 ) AS col0 FROM tab1
----
58

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT CAST( - 99 AS SIGNED ) * + col1 col0 FROM tab0 WHERE col2 < ( + col0 )
----
-2079

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8065
SELECT CAST ( - 99 AS INTEGER ) * + col1 col0 FROM tab0 WHERE col2 < ( + col0 )
----
-2079

query II rowsort
SELECT - col1, + 14 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
14
-21
14
-81
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT - + COUNT( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - + COUNT ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL + - SUM( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + - SUM ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT + 99 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 99 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
102

query I rowsort
SELECT + 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col2 FROM tab2 cor0
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 3, + 30 * - col1, + - col0, - - 50 + + + ( col2 ), + - ( + - 80 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * ) + 77 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 77 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col0 FROM tab1 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT col1 * 26 FROM tab0
----
2106
26
546

query I rowsort
SELECT DISTINCT col2 * - 10 FROM tab1
----
-590
-680
-960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8077
SELECT ALL col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8077
SELECT ALL col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NOT ( + col2 < - - col1 * - - CAST( + col1 AS SIGNED ) + - 71 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8078
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NOT ( + col2 < - - col1 * - - CAST ( + col1 AS INTEGER ) + - 71 )
----

query I rowsort
SELECT ALL - - 21 * col1 * + + col0 / - 6 FROM tab2 AS cor0 WHERE + ( + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + - SUM( 99 ) AS col2 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8080
SELECT + - SUM ( 99 ) AS col2 FROM tab0 AS cor0
----
-297

query I rowsort
SELECT DISTINCT + 44 + col1 AS col1 FROM tab1 AS cor0 WHERE ( col2 ) <= 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT - MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT + - col1 NOT BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 59 col2 FROM tab1 AS cor0
----
-59
-59
-59

query II rowsort
SELECT - - col0 AS col2, 96 * - 79 AS col0 FROM tab1 AS cor0
----
51
-7584
85
-7584
91
-7584

query II rowsort
SELECT + ( - col1 ) AS col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL - 17 * + col2 AS col1 FROM tab2 cor0
----
-391
-680
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL - + ( - - ( COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - + ( - - ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + col1 = - - col1
----

query I rowsort
SELECT - col2 + - 76 FROM tab2
----
-116
-134
-99

query I rowsort
SELECT 68 + - ( 97 ) AS col2 FROM tab2
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL 0 * 19 * + CAST( NULL AS SIGNED ) - - - 17 + + + 68 * - + 67 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL 0 * 19 * + CAST ( NULL AS INTEGER ) - - - 17 + + + 68 * - + 67 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 * + - 13 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - col1 + - - 45 * 20 FROM tab1 cor0
----
853
886
895

query I rowsort
SELECT + ( + - col1 ) - + col2 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT + AVG ( + + CAST( NULL AS SIGNED ) ) * 58 FROM tab2 WHERE + col0 / - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT + AVG ( + + CAST ( NULL AS INTEGER ) ) * 58 FROM tab2 WHERE + col0 / - col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 50 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1, col2, - col1, + ( - col2 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 / - col2 NOT BETWEEN - 9 AND + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 14 * - col0 AS col0 FROM tab2 cor0
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT DISTINCT - - 17 AS col2, + COUNT( * ) FROM tab2 cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT - - 17 AS col2, + COUNT ( * ) FROM tab2 cor0
----
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col1 FROM tab0 cor0
----
32
32
32

onlyif mysql # DIV for integer division: 
query II rowsort label-8106
SELECT col1 DIV col2, + 19 AS col1 FROM tab0 AS cor0
----
0
19
1
19
2
19

skipif mysql # not compatible
query II rowsort label-8106
SELECT col1 / col2, + 19 AS col1 FROM tab0 AS cor0
----
0
19
1
19
2
19

query I rowsort
SELECT ALL + - col1 * + + col0 + - + 44 AS col2 FROM tab1 AS cor0
----
-4321
-469
-758

query I rowsort
SELECT ALL ( + 69 ) + col1 FROM tab1
----
116
74
83

query I rowsort
SELECT ALL - 23 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8110
SELECT * FROM tab0 WHERE - col1 IN ( - - col1, 28, CAST( + - 38 AS SIGNED ) + + + CAST( col1 AS SIGNED ), col2 + col1 )
----

skipif mysql # not compatible
query III rowsort label-8110
SELECT * FROM tab0 WHERE - col1 IN ( - - col1, 28, CAST ( + - 38 AS INTEGER ) + + + CAST ( col1 AS INTEGER ), col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 12 * + 50 * col2 col0 FROM tab1
----
35315
40709
57549

query I rowsort
SELECT ALL + - col0 + col0 + - 85 AS col0 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT col1 * - + ( + 49 ) FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT DISTINCT - 60 * col0 * CAST( NULL AS SIGNED ) * + + col1 * + - 15 * + col0 / + 74 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - 60 * col0 * CAST ( NULL AS INTEGER ) * + + col1 * + - 15 * + col0 / + 74 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8115
SELECT DISTINCT + ( COUNT( * ) ) * + + 52, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
156
NULL

skipif mysql # not compatible
query II rowsort label-8115
SELECT DISTINCT + ( COUNT ( * ) ) * + + 52, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
156
NULL

query II rowsort
SELECT col1 * col0 + - col0 AS col0, col0 AS col1 FROM tab2 AS cor0
----
2300
46
4864
64
4950
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT - col1 DIV - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT - col1 / - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 20 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 * + col1 AS col1, + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ( + + SUM( ALL + 58 ) ) AS col1 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-8121
SELECT ( + + SUM ( ALL + 58 ) ) AS col1 FROM tab0
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8122
SELECT DISTINCT + COUNT( * ) * - + 48 DIV + 8 AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + COUNT ( * ) * - + 48 / + 8 AS col0 FROM tab2
----
-18

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE ( - - 53 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT 1 + - 87 + + 76 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT + COUNT( * ) + 42 AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8125
SELECT + COUNT ( * ) + 42 AS col2 FROM tab2 AS cor0
----
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + 92 >= NULL
----

query I rowsort
SELECT - ( + col2 ) + - + 58 FROM tab0 AS cor0
----
-105
-157
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8128
SELECT COUNT( * ), - ( + SUM( DISTINCT - 69 ) ) * + + COUNT( * ) AS col1 FROM tab0 cor0
----
3
207

skipif mysql # not compatible
query II rowsort label-8128
SELECT COUNT ( * ), - ( + SUM ( DISTINCT - 69 ) ) * + + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
207

query I rowsort
SELECT ALL 88 * - col0 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT + 37 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT 65 * 13 * - + col1 FROM tab0
----
-17745
-68445
-845

query I rowsort
SELECT DISTINCT + + 31 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * + + 91 AND NULL
----

query I rowsort
SELECT 48 * - col0 + - - col2 + - - col1 FROM tab1 AS cor0
----
-2338
-4016
-4253

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT DISTINCT col1 DIV col0 * + col2 FROM tab2 AS cor0
----
0
23
40

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT col1 / col0 * + col2 FROM tab2 AS cor0
----
0
23
40

query II rowsort
SELECT DISTINCT + 71 - 34 - - col0 * - col2 AS col0, + col2 * - - col1 FROM tab1 AS cor0 WHERE NOT col0 * 7 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8136
SELECT ALL col1 AS col2, - CAST( NULL AS SIGNED ) / - - col0 + - + col1 * col0 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL col1 AS col2, - CAST ( NULL AS INTEGER ) / - - col0 + - + col1 * col0 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT - MIN( - 44 ) AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT - MIN ( - 44 ) AS col1 FROM tab0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col0 FROM tab2
----
-52
-52
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8140
SELECT DISTINCT - COUNT( * ) * + 80 + - CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - COUNT ( * ) * + 80 + - CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - col1 * + 29 * - - 8 * - col2 FROM tab2
----
272136
714560
901552

query II rowsort
SELECT DISTINCT - col1, + col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL - col1 * 24 * + col1 AS col2 FROM tab0
----
-10584
-157464
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + 68 + + COUNT( * ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 68 + + COUNT ( * ) FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT COUNT( * ) + - 76 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-8146
SELECT COUNT ( * ) + - 76 FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8147
SELECT ALL + 6 AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-8147
SELECT ALL + 6 AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6
3

query I rowsort
SELECT - 85 AS col1 FROM tab1 WHERE ( - 74 ) NOT BETWEEN col0 AND NULL
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT ALL 78 * ( col0 DIV - col1 ) FROM tab1
----
-1326
-234
-78

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL 78 * ( col0 / - col1 ) FROM tab1
----
-1326
-234
-78

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 23 ) NOT IN ( + col0 + - col0 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 WHERE ( col1 ) = 56 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 WHERE ( col1 ) = 56 * + col1
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - 15 FROM tab0 WHERE NOT col2 = ( col1 + - col0 )
----
1305
1455
225

query I rowsort
SELECT - ( col1 ) AS col1 FROM tab2 WHERE ( 40 ) + - col1 * - 38 BETWEEN ( 12 ) AND + 15 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT + 83 / col2 FROM tab0 WHERE NOT ( ( + col2 ) - - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-8154
SELECT + 83 / col2 FROM tab0 WHERE NOT ( ( + col2 ) - - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT 68 * + col0 AS col2 FROM tab0
----
1020
5916
6596

query I rowsort
SELECT - col0 * 5 + - col1 * col2 FROM tab2
----
-1403
-3400
-4261

query I rowsort
SELECT - 34 * 73 + + col0 * col0 FROM tab0
----
-2257
5087
6927

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 70 * - col0 IN ( col2 + - 44 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT + col2 + CAST( - col2 AS SIGNED ) col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8160
SELECT + col2 + CAST ( - col2 AS INTEGER ) col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 * - 76 AS col1 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL - COUNT( * ) * - 77 col0 FROM tab1
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8162
SELECT ALL - COUNT ( * ) * - 77 col0 FROM tab1
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8163
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) - + ( + 94 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
-94

skipif mysql # not compatible
query I rowsort label-8163
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) - + ( + 94 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
-94

query I rowsort
SELECT DISTINCT col2 * 85 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT + 5 FROM tab0 WHERE NOT + 62 IN ( 49 * + 17 )
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8166
SELECT CAST( NULL AS DECIMAL ) * - 60 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT CAST ( NULL AS REAL ) * - 60 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL + SUM( ALL 30 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + SUM ( ALL 30 ) AS col2 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL COUNT( + col2 ) + + COUNT( ALL col2 ) * 37 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL COUNT ( + col2 ) + + COUNT ( ALL col2 ) * 37 FROM tab0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col2 ) + col0 col0 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT ALL col0 + col2 * + 79 FROM tab0
----
3728
7918
877

query I rowsort
SELECT - ( col1 ) + col2 * col0 FROM tab0
----
624
849
9602

query I rowsort
SELECT + 96 * + 58 AS col0 FROM tab1
----
5568
5568
5568

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8174
SELECT ALL * FROM tab1 WHERE NOT + col1 * + 4 + 71 NOT BETWEEN - ( CAST( NULL AS DECIMAL ) ) AND col0 * col2 + 31
----

skipif mysql # not compatible
query III rowsort label-8174
SELECT ALL * FROM tab1 WHERE NOT + col1 * + 4 + 71 NOT BETWEEN - ( CAST ( NULL AS REAL ) ) AND col0 * col2 + 31
----

query III rowsort
SELECT * FROM tab0 WHERE 56 BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT ALL 41 * + 14 FROM tab0
----
574
574
574

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT COUNT( - 0 ) * + COUNT( * ) FROM tab2 WHERE NOT 74 / 87 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT COUNT ( - 0 ) * + COUNT ( * ) FROM tab2 WHERE NOT 74 / 87 NOT IN ( col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT ALL + col0 DIV 21 AS col2 FROM tab1
----
2
4
4

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + col0 / 21 AS col2 FROM tab1
----
2
4
4

query I rowsort
SELECT ALL - col1 + + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 46 <> ( - 56 * col0 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE - 46 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8182
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) IN ( - CAST( col2 AS DECIMAL ) * + 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8182
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) IN ( - CAST ( col2 AS REAL ) * + 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - ( 86 ) ) )
----

query I rowsort
SELECT DISTINCT 88 + - col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
30
48
65

query I rowsort
SELECT DISTINCT - col1 * - 39 FROM tab2 AS cor0
----
1989
2613
3003

query I rowsort
SELECT DISTINCT + ( 26 ) AS col2 FROM tab1 AS cor0
----
26

query I rowsort
SELECT ALL ( col1 ) * - 28 FROM tab1 AS cor0
----
-1316
-140
-392

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT + - MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8189
SELECT + - MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT ALL + 6 DIV + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + 6 / + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8191
SELECT DISTINCT + ( - col0 ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT + ( - col0 ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 28 + + - col0 + col0 * col1 AS col1 FROM tab1
----
312
4158
635

query I rowsort
SELECT DISTINCT + 87 * 24 FROM tab2
----
2088

query I rowsort
SELECT DISTINCT - ( - 9 ) * - col0 AS col2 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col0 + - col2 NOT BETWEEN 99 AND + col0 + + 81 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col2 * + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 83 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT - SUM( DISTINCT + + col0 ) + - COUNT( * ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT - SUM ( DISTINCT + + col0 ) + - COUNT ( * ) FROM tab1
----
-230

query I rowsort
SELECT col0 + col1 + - + col0 AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT DISTINCT 19 * 34 - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT 19 * 34 - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 70 - - 71 AS col2 FROM tab1 AS cor0
----
141

query I rowsort
SELECT ALL - ( - - 35 ) FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT - - SUM( DISTINCT col0 ) * + CAST( NULL AS SIGNED ) - - MIN( + 22 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT - - SUM ( DISTINCT col0 ) * + CAST ( NULL AS INTEGER ) - - MIN ( + 22 ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT ALL + + CAST( 31 AS SIGNED ) col1 FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8205
SELECT ALL + + CAST ( 31 AS INTEGER ) col1 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8206
SELECT SUM( + col1 ) - + + 75 + - 41 DIV + COUNT( * ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8206
SELECT SUM ( + col1 ) - + + 75 + - 41 / + COUNT ( * ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT 81 * + col0 - + + CAST( - + col1 AS SIGNED ) FROM tab1
----
4145
6890
7418

skipif mysql # not compatible
query I rowsort label-8207
SELECT 81 * + col0 - + + CAST ( - + col1 AS INTEGER ) FROM tab1
----
4145
6890
7418

query I rowsort
SELECT DISTINCT 88 - + 93 FROM tab1
----
-5

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col1 BETWEEN col1 AND NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL + 0 * + 26 + + SUM( col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + 0 * + 26 + + SUM ( col1 ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab2 AS cor0
----
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - 26 * + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT DISTINCT + 86 * - COUNT( * ) * - + COUNT( * ) AS col0, ( - MIN( - col1 ) ) * 63 FROM tab1 AS cor0
----
774
2961

skipif mysql # not compatible
query II rowsort label-8213
SELECT DISTINCT + 86 * - COUNT ( * ) * - + COUNT ( * ) AS col0, ( - MIN ( - col1 ) ) * 63 FROM tab1 AS cor0
----
774
2961

query II rowsort
SELECT col2, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT DISTINCT - - 72 * 17 AS col0 FROM tab1 AS cor0
----
1224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8216
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col2 - - 47 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8216
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col2 - - 47 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8217
SELECT * FROM tab2 AS cor0 WHERE NOT + 60 NOT BETWEEN ( 84 * - ( - CAST( NULL AS DECIMAL ) ) ) AND + col2 + + col0
----

skipif mysql # not compatible
query III rowsort label-8217
SELECT * FROM tab2 AS cor0 WHERE NOT + 60 NOT BETWEEN ( 84 * - ( - CAST ( NULL AS REAL ) ) ) AND + col2 + + col0
----

query II rowsort
SELECT + - col2 AS col0, - ( - 77 ) AS col2 FROM tab1 AS cor0
----
-59
77
-68
77
-96
77

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2 cor0 WHERE - col0 + col1 + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL COUNT( * ) + + + 62 AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL COUNT ( * ) + + + 62 AS col0 FROM tab2
----
65

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE col0 >= 56 + - col0
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + col0 + + 92
----

query I rowsort
SELECT DISTINCT col0 + col0 + 95 FROM tab1
----
197
265
277

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT - 59 DIV - col0 + - 10 FROM tab2
----
-10
-10
-9

skipif mysql # not compatible
query I rowsort label-8224
SELECT - 59 / - col0 + - 10 FROM tab2
----
-10
-10
-9

query II rowsort
SELECT + 63 + + col2 AS col0, 2 AS col2 FROM tab0
----
110
2
162
2
73
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT + ( COUNT( * ) ) + - COUNT( DISTINCT col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT + ( COUNT ( * ) ) + - COUNT ( DISTINCT col1 ) FROM tab1
----
0

query I rowsort
SELECT ALL - col1 * - 64 FROM tab0
----
1344
5184
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 8 * + 1 <> - - 10
----

query I rowsort
SELECT ALL col0 + - - ( + col2 ) AS col0 FROM tab0
----
196
62
97

query II rowsort
SELECT ALL 35, + col1 AS col1 FROM tab2
----
35
51
35
67
35
77

query I rowsort
SELECT ( - 26 ) + + col1 + + col0 AS col0 FROM tab1
----
112
39
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL - + SUM( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8232
SELECT ALL - + SUM ( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT 90 * + - MAX( + ( 84 ) ) FROM tab2
----
-7560

skipif mysql # not compatible
query I rowsort label-8234
SELECT 90 * + - MAX ( + ( 84 ) ) FROM tab2
----
-7560

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT - 13 - + COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-8235
SELECT - 13 - + COUNT ( * ) FROM tab2
----
-16

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) NOT IN ( 16 * - 27 - - - 88 * + col2 ) AND + 0 NOT BETWEEN + 57 AND ( col2 ) + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 80 - - + col1 + + col0 + + + col0 AS col0 FROM tab0
----
191
275
275

query I rowsort
SELECT ALL col1 * + col1 - + - 34 * - + col2 * 37 AS col0 FROM tab2 AS cor0
----
-26333
-44391
-68475

query I rowsort
SELECT + + col2 AS col0 FROM tab2 cor0 WHERE 34 IN ( + 23, + 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT ALL - 97 * col0 + + 7 DIV - col0 + 93 + + - 92 * 59 * + col1 FROM tab0 AS cor0
----
-122334
-14744
-441030

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - 97 * col0 + + 7 / - col0 + 93 + + - 92 * 59 * + col1 FROM tab0 AS cor0
----
-122334
-14744
-441030

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL = ( - ( + col0 ) * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - col0 + col1 * + 83 / + + 39 AND - + ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( + + 42 ) + - 64 + col1 * 19 NOT IN ( 86 * + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT - 86 DIV - col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT - 86 / - col0 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 45 + col1 > + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8247
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * + col0 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col2 * - - col1 FROM tab0
----
178929
2100
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8249
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 + - + col1 + CAST( NULL AS DECIMAL ) * + col1 + - 61 )
----

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 + - + col1 + CAST ( NULL AS REAL ) * + col1 + - 61 )
----

query I rowsort
SELECT - ( - col0 ) * 77 FROM tab2
----
3542
4928
5775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col2 FROM tab2
----
23
-23
40
-40
58
-58

query II rowsort
SELECT DISTINCT 87 AS col1, 15 FROM tab1
----
87
15

query I rowsort
SELECT ALL + 59 FROM tab0 cor0
----
59
59
59

query II rowsort
SELECT ALL - col1 AS col2, + col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT DISTINCT ( + 49 ) AS col0, COUNT( * ) FROM tab0
----
49
3

skipif mysql # not compatible
query II rowsort label-8255
SELECT DISTINCT ( + 49 ) AS col0, COUNT ( * ) FROM tab0
----
49
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( - + 73 ) AS col2 FROM tab1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + 84 * 12 FROM tab1
----
1008
1008
1008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 57 col0 FROM tab1 cor0
----
-57
-57
-57

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / + - ( col0 ) * col0 * + + col2 - + col2 = - + ( - col1 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col1 * - col0 * + col0 + + col1 + 47 AS col1 FROM tab0 cor0 WHERE NULL < col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + + col0 > + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8265
SELECT + MAX( ALL + + col1 ) col2, + 99 AS col2 FROM tab1 AS cor0
----
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8265
SELECT + MAX ( ALL + + col1 ) col2, + 99 AS col2 FROM tab1 AS cor0
----
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - + 82 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - - MIN( DISTINCT + + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT - - MIN ( DISTINCT + + 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab1 WHERE - 57 * - 26 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + + ( 86 ) ) AS col0 FROM tab0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT - 47 AS col1 FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-8270
SELECT - 47 AS col1 FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
-47
-47
-47

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col0 + - - 15 + + 14 )
----

query I rowsort
SELECT DISTINCT - + col0 * - col0 FROM tab0 WHERE NOT col0 + col0 <= - ( - col2 ) + + 45
----
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) + + CAST( - col1 AS SIGNED ) / ( - + col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) + + CAST ( - col1 AS INTEGER ) / ( - + col0 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 79 AS col1 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT + - col0 - col2 + col1 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT - + 61 + + 24 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT col1 + + ( + 1 ) AS col0 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + 73 + + - COUNT( * ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8278
SELECT + 73 + + - COUNT ( * ) FROM tab2 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8279
SELECT + + CAST( NULL AS SIGNED ) + - CAST( - 6 AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT + + CAST ( NULL AS INTEGER ) + - CAST ( - 6 AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - - ( + - 37 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT ALL MIN( ALL col1 ) + - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + 38 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL MIN ( ALL col1 ) + - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 38 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 25 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - - col0 ) + - + col2 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT - 8 + - MAX( + 91 ) col0 FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8284
SELECT DISTINCT - 8 + - MAX ( + 91 ) col0 FROM tab2 WHERE NULL = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT ALL + 82 * + - 59 - + 41 + 89 DIV + - ( + ( + col0 ) ) - + - 86 FROM tab0 AS cor0
----
-4793
-4794
-4798

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + 82 * + - 59 - + 41 + 89 / + - ( + ( + col0 ) ) - + - 86 FROM tab0 AS cor0
----
-4793
-4794
-4798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 39, - col0 col0 FROM tab2 AS cor0
----
39
-46
39
-64
39
-75

query II rowsort
SELECT ALL col0, col1 - 55 AS col1 FROM tab1 AS cor0
----
51
-41
85
-50
91
-8

query II rowsort
SELECT col2 AS col0, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <> + 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT - col2 DIV col1 AS col0 FROM tab0 cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT - col2 / col1 AS col0 FROM tab0 cor0
----
-99
0

query I rowsort
SELECT - 95 FROM tab2 WHERE NOT ( col1 IS NULL )
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + + 18 * - + col1 + - + 51
----

query II rowsort
SELECT + col1 * + col1 * 87, col0 FROM tab0
----
38367
87
570807
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * - + col0 + + 39 col1 FROM tab0 WHERE col1 / - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - ( - 27 ) AS col0 FROM tab1 AS cor0
----
1269
135
378

query I rowsort
SELECT - - ( + + col1 ) AS col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 41 > 42 - col2 * + + col2
----

query I rowsort
SELECT + 96 * - 59 FROM tab0 AS cor0
----
-5664
-5664
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) / - 32 * + 88 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) / - 32 * + 88 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - 6 * - COUNT( * ) + + COUNT( * ) * ( - - 26 ) AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8300
SELECT - 6 * - COUNT ( * ) + + COUNT ( * ) * ( - - 26 ) AS col1 FROM tab2 AS cor0
----
96

query I rowsort
SELECT + col1 * 18 * ( col1 ) FROM tab0 AS cor0
----
118098
18
7938

query I rowsort
SELECT - 48 * col1 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT ALL + + 20, ( - MIN( + 0 ) ) AS col2 FROM tab1 AS cor0
----
20
0

skipif mysql # not compatible
query II rowsort label-8303
SELECT ALL + + 20, ( - MIN ( + 0 ) ) AS col2 FROM tab1 AS cor0
----
20
0

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT - COUNT( * ) + + 61 + - + 40 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - COUNT ( * ) + + 61 + - + 40 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - col0 + - col0 + - - col1 * - - ( - + 82 ) < col1 * + ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NULL <= ( + + 7 ) / - ( - 30 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 * + 72 NOT IN ( col2 * + col2 + - col1 / - - 39, + col0 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL MIN( + col2 ) FROM tab1 WHERE col1 IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL MIN ( + col2 ) FROM tab1 WHERE col1 IS NOT NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT DISTINCT + ( CAST( + 17 AS SIGNED ) ) * + - col1 col2 FROM tab2
----
-1139
-1309
-867

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8310
SELECT DISTINCT + ( CAST ( + 17 AS INTEGER ) ) * + - col1 col2 FROM tab2
----
-1139
-1309
-867

query I rowsort
SELECT ALL + col1 * + + col0 + col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL 16 + + SUM( + CAST( + - ( - - col0 ) AS SIGNED ) ) * - + ( SUM( DISTINCT - col0 ) ) AS col0 FROM tab0
----
-39585

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL 16 + + SUM ( + CAST ( + - ( - - col0 ) AS INTEGER ) ) * - + ( SUM ( DISTINCT - col0 ) ) AS col0 FROM tab0
----
-39585

query I rowsort
SELECT + 55 + - 92 * - - col1 AS col1 FROM tab1
----
-1233
-405
-4269

query I rowsort
SELECT ALL + col0 + + col0 FROM tab2 WHERE - 49 IS NULL
----

query I rowsort
SELECT 10 * + ( - 37 ) + + col1 AS col0 FROM tab0
----
-289
-349
-369

query I rowsort
SELECT ALL col2 * - 77 * + 2 + + col1 * + col0 AS col1 FROM tab2
----
-1196
-1232
-3907

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + COUNT( * ) - - 26 AS col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + COUNT ( * ) - - 26 AS col1 FROM tab1 AS cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 10 * - - col1 + + col2 < + + col2 + + + 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT DISTINCT + col2 DIV + 74 col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8320
SELECT DISTINCT + col2 / + 74 col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT + + 58 DIV + ( - - col1 ) col0 FROM tab0 AS cor0
----
0
2
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8321
SELECT + + 58 / + ( - - col1 ) col0 FROM tab0 AS cor0
----
0
2
58

query I rowsort
SELECT + ( 27 ) AS col0 FROM tab0 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col2 <= - + col0 * - + col1
----
0

skipif mysql # not compatible
query I rowsort label-8323
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col2 <= - + col0 * - + col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8324
SELECT ALL - - CAST( NULL AS DECIMAL ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - - CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 29 * - col2 AS col1 FROM tab2 AS cor0
----
-1160
-1682
-667

query I rowsort
SELECT + col1 * + col0 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-25075
-290836
-68544

query I rowsort
SELECT ALL - + col1 * col0 + + col1 + + col0 FROM tab2 AS cor0
----
-2249
-4787
-4883

query I rowsort
SELECT ALL ( 44 ) AS col2 FROM tab0
----
44
44
44

query I rowsort
SELECT 91 * + - 48 FROM tab1
----
-4368
-4368
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT ALL - 83 * col2 * - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - 83 * col2 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - col0 BETWEEN + col2 * + + 21 + 60 AND ( + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL - ( - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL - ( - COUNT ( * ) ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8334
SELECT ALL + ( + col0 ) + + + CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL + ( + col0 ) + + + CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8335
SELECT + col0 AS col0, col0 * - + col1 DIV + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-8335
SELECT + col0 AS col0, col0 * - + col1 / + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT DISTINCT col1 * + col2 + + + ( + col0 ) + - col0 DIV 78 FROM tab1
----
1395
3286
379

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT col1 * + col2 + + + ( + col0 ) + - col0 / 78 FROM tab1
----
1395
3286
379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT DISTINCT CAST( + 71 AS SIGNED ) + + 19 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT CAST ( + 71 AS INTEGER ) + + 19 FROM tab0
----
90

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8339
SELECT ALL - COUNT( * ) DIV - - CAST( 1 AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - COUNT ( * ) / - - CAST ( 1 AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8340
SELECT + - COUNT( * ) + 52 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-8340
SELECT + - COUNT ( * ) + 52 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
49
NULL

query I rowsort
SELECT - - col2 * + - col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query II rowsort
SELECT - ( + col1 ), col0 + - - 22 AS col2 FROM tab2 AS cor0
----
-51
68
-67
97
-77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT ALL + ( + 31 ) + + - CAST( NULL AS SIGNED ) * + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + ( + 31 ) + + - CAST ( NULL AS INTEGER ) * + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 5 + - 31 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8346
SELECT 82 DIV - COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8346
SELECT 82 / - COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT ALL col1 * - col1 * + - col0 * + - 11 + - 95 FROM tab2
----
-1316201
-3703520
-4174111

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL MAX( - - 65 ) + - ( 83 ) + + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL MAX ( - - 65 ) + - ( 83 ) + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-15

query I rowsort
SELECT DISTINCT 12 + 22 AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL SUM( DISTINCT + - col1 ) + COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL SUM ( DISTINCT + - col1 ) + COUNT ( * ) FROM tab1
----
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT - - COUNT( * ) + + - 95 AS col0 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8352
SELECT - - COUNT ( * ) + + - 95 AS col0 FROM tab0 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-8353
SELECT DISTINCT + col1, + col1 - - ( + 29 ) DIV - col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-8353
SELECT DISTINCT + col1, + col1 - - ( + 29 ) / - col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT - MAX( + - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT - MAX ( + - col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT ALL - + ( col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL col0 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - - MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8357
SELECT - - MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8359
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - 99 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8359
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - 99 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8360
SELECT DISTINCT + 29 DIV - col0 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT + 29 / - col0 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT + ( - 64 ) * + - col1 * - col2 FROM tab1
----
-18880
-204544
-86016

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - - ( col1 )
----

query I rowsort
SELECT + col1 * col0 * - col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT COUNT( * ) * + + COUNT( - + col1 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8364
SELECT COUNT ( * ) * + + COUNT ( - + col1 ) AS col2 FROM tab1
----
9

query I rowsort
SELECT DISTINCT col1 * - col1 * - col0 AS col2 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - - col0 AND - col0 + + - 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT col2 * + + 69 + - col2 * col2 - + + col1 + - col2 DIV col0 * - 24 * + col0 FROM tab0 AS cor0
----
-643
2033
569

skipif mysql # not compatible
query I rowsort label-8367
SELECT col2 * + + 69 + - col2 * col2 - + + col1 + - col2 / col0 * - 24 * + col0 FROM tab0 AS cor0
----
-643
2033
569

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 27 ) = col2
----

query III rowsort
SELECT * FROM tab0 WHERE - ( - + 93 ) * - - 78 <= - 77 + + + col1 + - 99 * + col2
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE 54 * + - 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT DISTINCT - COUNT( * ) * 20 AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - COUNT ( * ) * 20 AS col2 FROM tab2 AS cor0
----
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 = + 4
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8373
SELECT ALL + col0 DIV 72 AS col0, col0 col0 FROM tab2 cor0
----
0
46
0
64
1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8373
SELECT ALL + col0 / 72 AS col0, col0 col0 FROM tab2 cor0
----
0
46
0
64
1
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8374
SELECT ALL - ( SUM( - 81 ) ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - ( SUM ( - 81 ) ) / - + COUNT ( * ) FROM tab1 AS cor0
----
-81

query II rowsort
SELECT DISTINCT col1, + 9 + - + col2 AS col1 FROM tab1 AS cor0
----
14
-87
47
-59
5
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8376
SELECT ALL CAST( + col2 AS SIGNED ), col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-8376
SELECT ALL CAST ( + col2 AS INTEGER ), col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 4 - - - 64 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 4 - - - 64 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8378
SELECT * FROM tab0 cor0 WHERE + 46 IN ( + + 69, - col2 * - 89, col1 - 10, - CAST( NULL AS SIGNED ) / - ( - ( + 53 ) ) )
----

skipif mysql # not compatible
query III rowsort label-8378
SELECT * FROM tab0 cor0 WHERE + 46 IN ( + + 69, - col2 * - 89, col1 - 10, - CAST ( NULL AS INTEGER ) / - ( - ( + 53 ) ) )
----

query I rowsort
SELECT ALL col1 * col2 + + col1 AS col2 FROM tab0
----
100
231
3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT CAST( + - 26 AS SIGNED ) AS col0 FROM tab1
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-8380
SELECT CAST ( + - 26 AS INTEGER ) AS col0 FROM tab1
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + + SUM( ALL + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8381
SELECT + + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - col0 + + col0
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 14 * col0 AS col1 FROM tab0
----
-1218
-1358
-210

query I rowsort
SELECT + 81 * - + ( - col1 ) * + col2 FROM tab0
----
17010
308367
8019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab0 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8388
SELECT - + COUNT( * ), + ( 25 ) AS col1 FROM tab0 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-8388
SELECT - + COUNT ( * ), + ( 25 ) AS col1 FROM tab0 AS cor0
----
-3
25

query II rowsort
SELECT ALL + + col0, 81 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
81
64
81
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE col2 * - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * - - col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + + 23 AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT - 1 * - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - 1 * - COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT + 11, ( + COUNT( * ) ) * - MAX( - col0 ) + - 93 AS col1 FROM tab2 AS cor0
----
11
45

skipif mysql # not compatible
query II rowsort label-8393
SELECT + 11, ( + COUNT ( * ) ) * - MAX ( - col0 ) + - 93 AS col1 FROM tab2 AS cor0
----
11
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8394
SELECT - 75 col0, + COUNT( * ) - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
-75
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8394
SELECT - 75 col0, + COUNT ( * ) - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-75
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT SUM( DISTINCT - - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT SUM ( DISTINCT - - col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT + 80 * - 9 AS col0 FROM tab0
----
-720
-720
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-8397
SELECT ALL + 56 * + COUNT( * ) * - - COUNT( * ) * + - COUNT( * ) AS col2, COUNT( - col0 ) AS col1 FROM tab1
----
-1512
3

skipif mysql # not compatible
query II rowsort label-8397
SELECT ALL + 56 * + COUNT ( * ) * - - COUNT ( * ) * + - COUNT ( * ) AS col2, COUNT ( - col0 ) AS col1 FROM tab1
----
-1512
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT 0 * COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT 0 * COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT IN ( - col1 ) )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( col1 * 9, col2, + col0 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 89 + - col2 col2 FROM tab1
----
-134
-63
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 + col2 col0 FROM tab1 AS cor0
----
-1248
-236
-3128

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - - col0 / + col1 NOT BETWEEN - + col2 AND 21 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 66, 14 col0 FROM tab1 AS cor0
----
-66
14
-66
14
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL - + MAX( ALL col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL - + MAX ( ALL col0 ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 + - col0 AS col1 FROM tab0 AS cor0
----
1
-96
21
-66
81
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8407
SELECT * FROM tab0 WHERE NULL <> + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8407
SELECT * FROM tab0 WHERE NULL <> + CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT + ( + 86 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND - col0 + - 18 + + + 90
----

query I rowsort
SELECT ALL 91 + + + 77 + + col0 AS col2 FROM tab0
----
183
255
265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT DISTINCT - CAST( - 21 AS SIGNED ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) FROM tab1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT DISTINCT col2 DIV + 76 + - ( col1 ) AS col0 FROM tab0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT col2 / + 76 + - ( col1 ) AS col0 FROM tab0
----
-21
-81
0

query I rowsort
SELECT DISTINCT col2 * col0 * + col0 * col1 + - col0 * - col1 AS col2 FROM tab0
----
1591317
857790
931588

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL + 64 * 21 + + - COUNT( * ) FROM tab2
----
1341

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + 64 * 21 + + - COUNT ( * ) FROM tab2
----
1341

query II rowsort
SELECT DISTINCT + + col0 AS col0, + 31 AS col0 FROM tab2 AS cor0
----
46
31
64
31
75
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + SUM( ALL - - 7 ) AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8416
SELECT + SUM ( ALL - - 7 ) AS col2 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + - MAX( - - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + - MAX ( - - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT - 3 * + SUM( - col1 ) FROM tab1 WHERE NOT 3 * + + 46 + col1 * + col1 + - 49 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT - 3 * + SUM ( - col1 ) FROM tab1 WHERE NOT 3 * + + 46 + col1 * + col1 + - 49 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8421
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8421
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + + 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 8 * col0 + + 14 AS col1 FROM tab0 AS cor0
----
134
710
790

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col0 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE + 35 * col2 * + - CAST( NULL AS SIGNED ) * + col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE + 35 * col2 * + - CAST ( NULL AS INTEGER ) * + col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 13 <> - + col2 * + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 21 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2, 24 + - - 87, - 59, col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( - 82 ) ) / - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 95 + col1 FROM tab0
----
116
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL SUM( 94 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT ALL SUM ( 94 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8432
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8432
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT ALL 82 * - - 37 AS col2 FROM tab0
----
3034
3034
3034

query I rowsort
SELECT 45 + - col2 FROM tab2
----
-13
22
5

query I rowsort
SELECT + col1 * - 44 + - col2 AS col1 FROM tab0
----
-143
-3611
-934

query II rowsort
SELECT DISTINCT - 49, col0 AS col1 FROM tab2 AS cor0
----
-49
46
-49
64
-49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL + COUNT( * ) FROM tab2 WHERE col1 + - col0 - + - 63 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col1 + - col0 - + - 63 * col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 63 / - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + 94 FROM tab1
----
-145
-179
-185

query III rowsort
SELECT * FROM tab0 WHERE - 16 IS NULL
----

query I rowsort
SELECT ALL - - 68 + + col2 + col2 AS col1 FROM tab2 AS cor0
----
114
148
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT - - COUNT( * ) * + + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-8442
SELECT - - COUNT ( * ) * + + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT + ( + COUNT( * ) ) - 78 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT + ( + COUNT ( * ) ) - 78 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL col0 * + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL - + COUNT( * ) - - COUNT( col0 ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - + COUNT ( * ) - - COUNT ( col0 ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + 1 * col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT - MIN( - + col0 ) * + - 81 FROM tab0
----
-7857

skipif mysql # not compatible
query I rowsort label-8447
SELECT - MIN ( - + col0 ) * + - 81 FROM tab0
----
-7857

query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT + COUNT( * ), 94 + 14 + - MIN( + + 4 ) AS col2 FROM tab0
----
3
104

skipif mysql # not compatible
query II rowsort label-8449
SELECT + COUNT ( * ), 94 + 14 + - MIN ( + + 4 ) AS col2 FROM tab0
----
3
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT 1 * - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT 1 * - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 75 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 75 FROM tab2
----
NULL

query I rowsort
SELECT - + col1 - - col0 FROM tab0 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query II rowsort
SELECT ALL + + ( - col0 ) * + 69, + 4 AS col0 FROM tab2 AS cor0
----
-3174
4
-4416
4
-5175
4

query I rowsort
SELECT DISTINCT 74 * - col1 AS col1 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT col0 * - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 59 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8457
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND + col2 * + - col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-8457
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col2 * + - col1 + - col1
----

query II rowsort
SELECT DISTINCT col2 AS col0, col0 * + col1 * col0 FROM tab2
----
23
107916
40
315392
58
376875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8459
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - 87 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8459
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL + SUM( ALL + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + SUM ( ALL + col1 ) FROM tab0 cor0
----
103

query II rowsort
SELECT DISTINCT - 30 AS col2, - ( ( + ( col2 ) ) ) FROM tab1 AS cor0
----
-30
-59
-30
-68
-30
-96

query II rowsort
SELECT DISTINCT + col0 AS col1, - 22 FROM tab0 AS cor0
----
15
-22
87
-22
97
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - 97 >= ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + SUM ( col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT 95 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT + MAX( - 64 ) col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8466
SELECT DISTINCT + MAX ( - 64 ) col1 FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT MIN( DISTINCT 98 ) AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-8467
SELECT MIN ( DISTINCT 98 ) AS col1 FROM tab1
----
98

query I rowsort
SELECT ALL + 36 AS col0 FROM tab0 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT ALL + col2 * col0 + - + col2 DIV + + col2 AS col2 FROM tab0
----
704
869
9602

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + col2 * col0 + - + col2 / + + col2 AS col2 FROM tab0
----
704
869
9602

query II rowsort
SELECT ALL - ( col1 ) AS col2, + col0 * + col2 FROM tab2
----
-51
1058
-67
4350
-77
2560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8471
SELECT DISTINCT + + SUM( + - col0 ) FROM tab2 WHERE NOT 8 NOT BETWEEN + - 96 * + 63 / CAST( col2 AS DECIMAL ) + + 52 / + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT + + SUM ( + - col0 ) FROM tab2 WHERE NOT 8 NOT BETWEEN + - 96 * + 63 / CAST ( col2 AS REAL ) + + 52 / + col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + - COUNT( * ) + 2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8472
SELECT + - COUNT ( * ) + 2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT 37 + - 52 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-15
14
-15
47
-15
5

query II rowsort
SELECT ALL - col1 * col2 / - col2, col2 * + col1 FROM tab2 AS cor0 WHERE - 3 IS NOT NULL AND - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT - ( + 84 ) * + + 41 * - CAST( - col0 AS SIGNED ) - - col0 + - col0 * - col0 + 57 * - - col0 FROM tab0 AS cor0
----
-287013
-319033
-50565

skipif mysql # not compatible
query I rowsort label-8475
SELECT - ( + 84 ) * + + 41 * - CAST ( - col0 AS INTEGER ) - - col0 + - col0 * - col0 + 57 * - - col0 FROM tab0 AS cor0
----
-287013
-319033
-50565

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - MAX( ALL 19 ) * + - 79 * - + COUNT( * ) FROM tab0
----
-4503

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - MAX ( ALL 19 ) * + - 79 * - + COUNT ( * ) FROM tab0
----
-4503

query I rowsort
SELECT ALL - 62 + + - 4 * + col2 + 21 AS col1 FROM tab2
----
-133
-201
-273

query I rowsort
SELECT + + 5 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL + ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8479
SELECT ALL + ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * ( + + 47 ) BETWEEN NULL AND col1 + + - col0 + col1 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT MIN( - ( CAST( NULL AS SIGNED ) ) ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT MIN ( - ( CAST ( NULL AS INTEGER ) ) ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - 51 col1 FROM tab1 AS cor0
----
-14
-51
-47
-51
-5
-51

query I rowsort
SELECT DISTINCT 12 * + col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
12
252
972

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT - 42 * COUNT( * ) + - - COUNT( DISTINCT - col2 ) * - 69 - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-274

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - 42 * COUNT ( * ) + - - COUNT ( DISTINCT - col2 ) * - 69 - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 88 col0 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - col0 - + + 40 FROM tab0 AS cor0
----
-127
-137
-55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 24 + col1 BETWEEN + + col1 - + 51 - + col2 AND 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 94 <> - + 15 * col2 * + - col1 + + col0
----

query I rowsort
SELECT DISTINCT col0 * 59 AS col2 FROM tab1
----
3009
5015
5369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8490
SELECT + + CAST( NULL AS SIGNED ) * 86 - + SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT + + CAST ( NULL AS INTEGER ) * 86 - + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL SUM( DISTINCT - - 61 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL SUM ( DISTINCT - - 61 ) FROM tab2 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - 25 * col2 AS col0, + col0 * - 64 FROM tab1 AS cor0
----
-1475
-5440
-1700
-5824
-2400
-3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 3 * col0 AS col2 FROM tab1 AS cor0
----
153
255
273

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT col1 DIV 97 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT col1 / 97 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 13 * + - 22 AS col1 FROM tab1 AS cor0
----
286

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT ALL - col1 DIV col2 * - col1 FROM tab0 AS cor0
----
0
42
81

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - col1 / col2 * - col1 FROM tab0 AS cor0
----
0
42
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 ) = 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT - ( + col1 ) DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8500
SELECT - ( + col1 ) / + col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + + 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 91 AS col2, col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT 78 + 79 FROM tab2
----
157
157
157

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT DISTINCT - 33 + - 66 + - 39 DIV - ( - 62 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - 33 + - 66 + - 39 / - ( - 62 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT * FROM tab1 WHERE - 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT COUNT( * ) + 59 FROM tab0, tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT COUNT ( * ) + 59 FROM tab0, tab1 cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT - col1 * + + CAST( + - col2 AS SIGNED ) + + 53 FROM tab0
----
152
263
3860

skipif mysql # not compatible
query I rowsort label-8507
SELECT - col1 * + + CAST ( + - col2 AS INTEGER ) + + 53 FROM tab0
----
152
263
3860

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT 34 + + 99 - - COUNT( * ) FROM tab1
----
136

skipif mysql # not compatible
query I rowsort label-8508
SELECT 34 + + 99 - - COUNT ( * ) FROM tab1
----
136

query I rowsort
SELECT - 16 + + + col0 FROM tab0
----
-1
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT DISTINCT + COUNT( * ) + - 56 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
-56

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + COUNT ( * ) + - 56 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
-56

query I rowsort
SELECT + - col2 * - 18 AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN - - col0 AND - 95
----

query I rowsort
SELECT 1 / col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 94 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-94
-94
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT DISTINCT + - COUNT( * ) * - 83 + MAX( ALL - 8 ) * - + 43 * COUNT( * ) * - CAST( 94 AS SIGNED ) FROM tab2 cor0
----
-96759

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT + - COUNT ( * ) * - 83 + MAX ( ALL - 8 ) * - + 43 * COUNT ( * ) * - CAST ( 94 AS INTEGER ) FROM tab2 cor0
----
-96759

query I rowsort
SELECT 3 + - col0 FROM tab1
----
-48
-82
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8516
SELECT - 69 * 57 + - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT - 69 * 57 + - COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) - + col2 - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) - + col2 - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + col0 * + col0 col2 FROM tab0 AS cor0
----
287
7631
9471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT DISTINCT - - SUM( - CAST( NULL AS SIGNED ) ) - - + 21 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT - - SUM ( - CAST ( NULL AS INTEGER ) ) - - + 21 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 92 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 65 * - + 17 FROM tab2 AS cor0
----
-1105
-1105
-1105

query I rowsort
SELECT DISTINCT 40 * + + 91 * + - col1 + + col1 FROM tab0 cor0
----
-294759
-3639
-76419

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8524
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8524
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 57 FROM tab0 cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 99 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + - 20 AS col2 FROM tab2
----
1160
460
800

query I rowsort
SELECT - col2 * - + col0 AS col1 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT DISTINCT + col1 AS col2, + ( - col1 ) FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT - - col1 <= - col1
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - - col1 IS NOT NULL
----

query I rowsort
SELECT ( + + ( - + 21 ) ) - + - 35 * + + 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e42b65665fc7567f1378f34748d1da5d

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - COUNT( * ) * 93 * + - 4 * COUNT( * ) FROM tab2, tab1 AS cor0
----
30132

skipif mysql # not compatible
query I rowsort label-8533
SELECT - COUNT ( * ) * 93 * + - 4 * COUNT ( * ) FROM tab2, tab1 AS cor0
----
30132

onlyif mysql # DIV for integer division: 
query II rowsort label-8534
SELECT DISTINCT 66 * - 34 AS col2, - 68 DIV + col0 AS col1 FROM tab0
----
-2244
-4
-2244
0

skipif mysql # not compatible
query II rowsort label-8534
SELECT DISTINCT 66 * - 34 AS col2, - 68 / + col0 AS col1 FROM tab0
----
-2244
-4
-2244
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT col0 + - col1 * col2 DIV + col0 col1 FROM tab1 AS cor0
----
25
56
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8535
SELECT col0 + - col1 * col2 / + col0 col1 FROM tab1 AS cor0
----
25
56
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT DISTINCT + col2 DIV - 35 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8536
SELECT DISTINCT + col2 / - 35 col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT - ( 53 ) DIV 61 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT - ( 53 ) / 61 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8538
SELECT + + CAST( NULL AS SIGNED ) * 13 AS col2, + COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8538
SELECT + + CAST ( NULL AS INTEGER ) * 13 AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT + 57 + SUM( col0 ) FROM tab2 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + 57 + SUM ( col0 ) FROM tab2 AS cor0
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - SUM( DISTINCT - 77 ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8540
SELECT - SUM ( DISTINCT - 77 ) AS col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT - ( + col1 ) * + + col1 + + 84 + + 80 AS col2 FROM tab2
----
-2437
-4325
-5765

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL + MIN( DISTINCT - 17 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + MIN ( DISTINCT - 17 ) FROM tab2
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 35 col0 FROM tab1
----
103
131
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + col0 * 33 AS col0, col0 col0 FROM tab0
----
2958
87
3298
97
510
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT - COUNT( DISTINCT 43 ) + - 20 AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT - COUNT ( DISTINCT 43 ) + - 20 AS col0 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8546
SELECT ALL + CAST( NULL AS SIGNED ) / + col0 - + 78 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL + CAST ( NULL AS INTEGER ) / + col0 - + 78 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 75 * + col1 * + - 24 + - col1 FROM tab2
----
120533
138523
91749

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT COUNT( * ) - + - COUNT( * ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8548
SELECT COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab2 cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT DISTINCT + 60 col1, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
60
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8549
SELECT DISTINCT + 60 col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
60
-3

query II rowsort
SELECT ALL - col1 AS col1, - col1 + col1 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query II rowsort
SELECT DISTINCT 8 AS col2, - col2 AS col0 FROM tab0
----
8
-10
8
-47
8
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + - COUNT( DISTINCT + 93 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8552
SELECT + - COUNT ( DISTINCT + 93 ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col1 FROM tab1 AS cor0
----
48
48
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 28 + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8555
SELECT - col0 AS col2, - CAST( NULL AS SIGNED ) * - - col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8555
SELECT - col0 AS col2, - CAST ( NULL AS INTEGER ) * - - col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT - - col2, + col0 AS col2 FROM tab0 cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 74 col1 FROM tab1 AS cor0 WHERE NOT 77 * col0 < + col1
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + - COUNT( ALL 82 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8558
SELECT + - COUNT ( ALL 82 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT 59 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT 59 IS NULL
----
3

query I rowsort
SELECT - col2 / + col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT DISTINCT col2 * CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-8561
SELECT DISTINCT col2 * CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT + 38 * - col0 * ( - col1 ) FROM tab0
----
3686
46170
69426

query II rowsort
SELECT ALL col0, + ( - ( + - 97 ) ) * + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - 37
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8566
SELECT * FROM tab1 WHERE + col0 * - col1 >= + + CAST( NULL AS SIGNED ) - ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-8566
SELECT * FROM tab1 WHERE + col0 * - col1 >= + + CAST ( NULL AS INTEGER ) - ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT DISTINCT + - ( + 96 ) DIV + + col0 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT + - ( + 96 ) / + + col0 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT - 7 DIV col0 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8568
SELECT - 7 / col0 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + - MIN( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + - MIN ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + 45 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT ( - 5 ) + + 17 + + + ( - 53 ) + col2 * + col1 FROM tab0 cor0
----
169
3766
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT DISTINCT 49 * + - 78 + + 19 DIV - col0 FROM tab2
----
-3822

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT 49 * + - 78 + + 19 / - col0 FROM tab2
----
-3822

query I rowsort
SELECT ALL col0 * - 76 * - col1 AS col0 FROM tab2
----
178296
374528
381900

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT ALL col2 + col0 DIV - 30 FROM tab1
----
57
65
95

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL col2 + col0 / - 30 FROM tab1
----
57
65
95

query I rowsort
SELECT - col2 + 5 FROM tab0
----
-42
-5
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - COUNT( * ) + 97 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - COUNT ( * ) + 97 FROM tab1
----
94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * - - col1 NOT BETWEEN + - col2 + + 32 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT + SUM( - - col2 ) + - - COUNT( * ) * + - 87 AS col1 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT + SUM ( - - col2 ) + - - COUNT ( * ) * + - 87 AS col1 FROM tab0
----
-105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT ALL - COUNT( ( + col2 ) ) DIV 72 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - COUNT ( ( + col2 ) ) / 72 FROM tab2
----
0

query II rowsort
SELECT DISTINCT + - col2 AS col2, 41 FROM tab0 AS cor0
----
-10
41
-47
41
-99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL - - MIN( ALL 6 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL - - MIN ( ALL 6 ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 < + + 95 / + col2 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab1 cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT - - MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8586
SELECT - - MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + + MIN( + col2 ) AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8587
SELECT + + MIN ( + col2 ) AS col0 FROM tab1 cor0
----
59

query I rowsort
SELECT ALL + + 94 AS col1 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT col1 * - - 33 FROM tab1
----
1551
165
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT col0 DIV + 37 col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8591
SELECT col0 / + 37 col0 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8592
SELECT - CAST( - 69 AS SIGNED ) AS col0, + CAST( - + col0 AS SIGNED ) FROM tab1
----
69
-51
69
-85
69
-91

skipif mysql # not compatible
query II rowsort label-8592
SELECT - CAST ( - 69 AS INTEGER ) AS col0, + CAST ( - + col0 AS INTEGER ) FROM tab1
----
69
-51
69
-85
69
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * + + col1 * - 87 + - 56 col1 FROM tab2 WHERE NOT col0 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT DISTINCT + COUNT( DISTINCT - 30 ) AS col1, + COUNT( * ) FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-8594
SELECT DISTINCT + COUNT ( DISTINCT - 30 ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL 83 * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 83 * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col1 FROM tab0 cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8597
SELECT - - CAST( - CAST( 84 AS SIGNED ) AS SIGNED ) DIV - + col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8597
SELECT - - CAST ( - CAST ( 84 AS INTEGER ) AS INTEGER ) / - + col0 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT ALL - + 49 + col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
1055
2575
4376

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 < col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT - col0 * + + 12 + + col0 * CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1261
-1395
-2871

skipif mysql # not compatible
query I rowsort label-8600
SELECT - col0 * + + 12 + + col0 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1261
-1395
-2871

query II rowsort
SELECT + ( + col1 ) * - 79 AS col1, col0 FROM tab1
----
-1106
51
-3713
91
-395
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL 7 + + - 8 * + MAX( 46 ) AS col1 FROM tab2
----
-361

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL 7 + + - 8 * + MAX ( 46 ) AS col1 FROM tab2
----
-361

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL + COUNT( - col0 ) + 87 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL + COUNT ( - col0 ) + 87 FROM tab1
----
90

query I rowsort
SELECT - col1 + + 94 * - col1 FROM tab1 AS cor0
----
-1330
-4465
-475

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 * col0 + ( col0 ) * - 36 )
----

query I rowsort
SELECT - col2 + 72 FROM tab0
----
-27
25
62

query I rowsort
SELECT DISTINCT col2 * 44 - - 45 AS col0 FROM tab1
----
2641
3037
4269

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT DISTINCT col0 DIV 35 AS col1 FROM tab2 WHERE NULL IS NULL
----
1
2

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT col0 / 35 AS col1 FROM tab2 WHERE NULL IS NULL
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT 41 / CAST( NULL AS SIGNED ) + col0 / - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT 41 / CAST ( NULL AS INTEGER ) + col0 / - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 59 ) > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 84 = col2
----

query I rowsort
SELECT 59 + + col2 AS col2 FROM tab1
----
118
127
155

query I rowsort
SELECT col2 + + 58 AS col2 FROM tab2
----
116
81
98

query I rowsort
SELECT - 14 - col0 FROM tab0
----
-101
-111
-29

query I rowsort
SELECT 96 + col2 AS col1 FROM tab1
----
155
164
192

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + col0 / col0 - col0 AS col1 FROM tab0 WHERE NOT ( + 16 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8619
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8619
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + 85
----

query I rowsort
SELECT - 35 * 50 AS col2 FROM tab0 WHERE NOT col0 * - 96 IN ( + 15 )
----
-1750
-1750
-1750

query I rowsort
SELECT + col2 * col1 - - col1 FROM tab1
----
1358
300
3243

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 88 * col2 + - col0 NOT IN ( - 15 )
----

query I rowsort
SELECT ALL - col2 * 32 AS col2 FROM tab1 WHERE NOT NULL IN ( col1 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT 45 / + col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 - 7 AS col2 FROM tab2 WHERE NOT - 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - - col1 * col2 AS col1 FROM tab0
----
198
220
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT - 7 * - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8629
SELECT - 7 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 + 50 AS col2 FROM tab1 AS cor0
----
116
116
116

query I rowsort
SELECT - col2 * + col2 AS col0 FROM tab2 WHERE 96 + - 83 IS NULL
----

query I rowsort
SELECT + 63 - col0 AS col1 FROM tab2
----
-1
-12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT - 91 - - COUNT( * ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8633
SELECT - 91 - - COUNT ( * ) FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + - COUNT( * ) + + 54 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8634
SELECT + - COUNT ( * ) + + 54 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8635
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 + - ( 78 ) IS NULL
----

query I rowsort
SELECT ALL - - 69 FROM tab2 cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 47 * 20 col1 FROM tab2 AS cor0
----
-963
-980
-998

query I rowsort
SELECT DISTINCT - ( + 95 ) AS col0 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col0 BETWEEN NULL AND + 93 / - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL SUM( + CAST( + 26 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL SUM ( + CAST ( + 26 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL 51 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8644
SELECT * FROM tab1 cor0 WHERE ( + col0 ) BETWEEN - col0 + - col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8644
SELECT * FROM tab1 cor0 WHERE ( + col0 ) BETWEEN - col0 + - col1 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 34 < + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT IN ( 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( ( - 3 ) )
----

query I rowsort
SELECT ALL + - 78 * col1 FROM tab0 AS cor0
----
-1638
-6318
-78

query I rowsort
SELECT 56 + col0 * 59 FROM tab0 WHERE col0 IS NOT NULL
----
5189
5779
941

query I rowsort
SELECT + 70 + + + col2 FROM tab1
----
129
138
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL MAX( DISTINCT col1 ) FROM tab2 WHERE NOT + 6 / ( - col2 ) IN ( - col1 )
----
77

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL MAX ( DISTINCT col1 ) FROM tab2 WHERE NOT + 6 / ( - col2 ) IN ( - col1 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT + col1 DIV - col2 * 25 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8652
SELECT + col1 / - col2 * 25 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < ( NULL )
----

query I rowsort
SELECT col1 * 11 + - col0 * + col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 + + ( col1 + - col1 ) FROM tab1 WHERE NOT col0 <= ( + col0 )
----

query I rowsort
SELECT DISTINCT 16 + + 2 FROM tab0
----
18

query III rowsort
SELECT * FROM tab1 WHERE col0 + + 63 * 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT - MIN( + + col0 ) + 62 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT - MIN ( + + col0 ) + 62 FROM tab2
----
16

query I rowsort
SELECT - col0 * - 48 AS col1 FROM tab1 WHERE NOT ( col0 ) < col2 OR 73 IS NULL
----
4080
4368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * col2 col0 FROM tab2
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 87 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 * col0 col2 FROM tab1 AS cor0 WHERE NOT 81 * ( 77 ) + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT DISTINCT + COUNT( * ), COUNT( * ) + - - 37 * 75 AS col0 FROM tab0
----
3
2778

skipif mysql # not compatible
query II rowsort label-8664
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) + - - 37 * 75 AS col0 FROM tab0
----
3
2778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + 68 * col0 * - + col0 AS col0 FROM tab0
----
-15300
-514692
-639812

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8667
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8667
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - + CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT 9 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( + col1 + - 56 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT DISTINCT + MIN( ALL + 44 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT + MIN ( ALL + 44 ) FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8670
SELECT * FROM tab2 AS cor0 WHERE NOT 18 BETWEEN NULL AND ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8670
SELECT * FROM tab2 AS cor0 WHERE NOT 18 BETWEEN NULL AND ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL col1 * col2 * + ( col1 ) FROM tab2 cor0
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT - COUNT( * ) + 67 FROM tab1 cor0 WHERE NOT - 3 NOT BETWEEN + col1 * - col1 AND ( - 29 / - 24 + - 42 * 0 )
----
64

skipif mysql # not compatible
query I rowsort label-8672
SELECT - COUNT ( * ) + 67 FROM tab1 cor0 WHERE NOT - 3 NOT BETWEEN + col1 * - col1 AND ( - 29 / - 24 + - 42 * 0 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT + 26 * COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
702

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT + 26 * COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - 10 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - 3 )
----
-30

skipif mysql # not compatible
query I rowsort label-8674
SELECT - 10 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - 3 )
----
-30

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL MIN( - 58 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8676
SELECT ALL MIN ( - 58 ) col1 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT + - col2 AS col1, - col2 * - + col0 FROM tab2 AS cor0
----
-23
1058
-40
2560
-58
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - MAX( DISTINCT 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-8678
SELECT - MAX ( DISTINCT 60 ) FROM tab1
----
-60

query I rowsort
SELECT DISTINCT - col1 * - + 86 + col2 AS col2 FROM tab1
----
1300
4110
489

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8680
SELECT DISTINCT * FROM tab1 WHERE - col1 + - CAST( NULL AS SIGNED ) * col0 IN ( + col1 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8680
SELECT DISTINCT * FROM tab1 WHERE - col1 + - CAST ( NULL AS INTEGER ) * col0 IN ( + col1 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT - CAST( - + MIN( DISTINCT + + 35 ) AS SIGNED ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8681
SELECT - CAST ( - + MIN ( DISTINCT + + 35 ) AS INTEGER ) FROM tab2
----
35

query I rowsort
SELECT ALL + col2 + + - 99 FROM tab2
----
-41
-59
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT ALL COUNT( * ) / - 52 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( - + 86 * + col2 ) < col2 * - col0 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL COUNT ( * ) / - 52 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( - + 86 * + col2 ) < col2 * - col0 + 40
----
NULL

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 40 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col1 * col0 BETWEEN - col2 AND + col2 + 56
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 63 <= - col0
----
64
77
40
75
67
58

query I rowsort
SELECT ALL - col0 + - + 77 AS col2 FROM tab2
----
-123
-141
-152

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 42 * col1 IN ( ( col2 ) )
----

query I rowsort
SELECT DISTINCT + 11 * col2 + - col0 FROM tab0 AS cor0 WHERE NOT 40 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, - col1 * 51 AS col2 FROM tab0 AS cor0
----
1
-51
21
-1071
81
-4131

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL + 13 - + COUNT( * ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + 13 - + COUNT ( * ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + col0 / ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 62 * + col0 AND + 47
----

query I rowsort
SELECT col1 - - + 39 + + - col1 * - col2 FROM tab2 AS cor0
----
1263
3196
3992

query I rowsort
SELECT + + col0 - - 12 FROM tab1 AS cor0
----
103
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT - + col1 + - 59 * - ( - 32 ) / - 74 + - col2 >= 87 - - ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT - + col1 + - 59 * - ( - 32 ) / - 74 + - col2 >= 87 - - ( + col1 )
----
3

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL BETWEEN - col2 / + col0 AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - 60 * + col2 ) AND NULL
----

query II rowsort
SELECT ALL + col1 AS col2, + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT - 25 * - ( COUNT( * ) ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT - 25 * - ( COUNT ( * ) ) FROM tab0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8701
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - col1, col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col1 / + - 48 / - + col0 BETWEEN + + 41 AND ( ( 5 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT - ( - 8 ) * + COUNT( * ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - ( - 8 ) * + COUNT ( * ) FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT 62 * - 41 + + - ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( - 65 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT 62 * - 41 + + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( - 65 ) IS NULL
----

query I rowsort
SELECT - + 30 AS col0 FROM tab2 WHERE NOT NULL < - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT + ( ( + MIN( ALL + col1 ) ) ) * - 69 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-8707
SELECT + ( ( + MIN ( ALL + col1 ) ) ) * - 69 FROM tab0
----
-69

query I rowsort
SELECT DISTINCT 47 * + - col1 * + 88 FROM tab1
----
-194392
-20680
-57904

query I rowsort
SELECT ALL 36 * - - col2 FROM tab0 AS cor0
----
1692
3564
360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 28 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 * - 25, 55 AS col1 FROM tab2 AS cor0
----
1150
55
1600
55
1875
55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col0 + - + col2 + col2 * + ( - col0 ) + + + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 60 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
60
60
60

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab0 AS cor0 WHERE + 34 * - 17 - + - 50 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 48 FROM tab0 WHERE NOT - col2 * - col1 + - col2 + + 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 36 ) * + - col0 + + col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 81 < NULL
----

query I rowsort
SELECT DISTINCT + 19 * 69 FROM tab0
----
1311

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8720
SELECT ALL - col2 DIV - - CAST( - + 16 AS SIGNED ) AS col2 FROM tab0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - col2 / - - CAST ( - + 16 AS INTEGER ) AS col2 FROM tab0
----
0
2
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT - ( CAST( 70 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT col2 * col0 + - - col0 / - CAST( 25 AS SIGNED ) BETWEEN NULL AND + col1 OR NOT - 96 * 94 + - 8 * + 52 > - 90 - + col2 * + 8
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-8721
SELECT - ( CAST ( 70 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT col2 * col0 + - - col0 / - CAST ( 25 AS INTEGER ) BETWEEN NULL AND + col1 OR NOT - 96 * 94 + - 8 * + 52 > - 90 - + col2 * + 8
----
-70
-70
-70

query II rowsort
SELECT ALL + 25 + 68 + - col1 AS col1, + col0 + 81 FROM tab2
----
16
145
26
156
42
127

query I rowsort
SELECT ALL col2 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT - - 83 AS col2 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL MAX( ALL - + col1 ) + 34 FROM tab1 cor0 WHERE NOT col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL MAX ( ALL - + col1 ) + 34 FROM tab1 cor0 WHERE NOT col1 <> NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT ( + + 31 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT + CAST( 78 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT + CAST ( 78 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query II rowsort
SELECT col0 - col2 AS col2, col0 FROM tab2
----
17
75
23
46
24
64

query I rowsort
SELECT + 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query II rowsort
SELECT + 18 AS col0, col0 / + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + 93
----

query II rowsort
SELECT + col1 * + col2 AS col1, col2 + + col0 + - + 47 - - + col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
210
71
3807
96
99
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT ALL - - ( - ( - CAST( col0 AS SIGNED ) ) ) * + + col1 - - + 74 + col2 - - col2 * - col0 AS col1 FROM tab0 cor0
----
-9333
1041
631

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - - ( - ( - CAST ( col0 AS INTEGER ) ) ) * + + col1 - - + 74 + col2 - - col2 * - col0 AS col1 FROM tab0 cor0
----
-9333
1041
631

query II rowsort
SELECT DISTINCT + - col1 * col0 - 41, + 30 * col0 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT + 58 * - COUNT( * ) AS col1 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-8735
SELECT + 58 * - COUNT ( * ) AS col1 FROM tab2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8736
SELECT DISTINCT * FROM tab1 WHERE NOT - 25 * - col1 * + CAST( - 13 AS SIGNED ) + ( - ( + col0 ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8736
SELECT DISTINCT * FROM tab1 WHERE NOT - 25 * - col1 * + CAST ( - 13 AS INTEGER ) + ( - ( + col0 ) ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 + - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT col1 DIV - 97 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8738
SELECT col1 / - 97 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT SUM( DISTINCT + col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8739
SELECT SUM ( DISTINCT + col2 ) col2 FROM tab0
----
156

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT IN ( + - col0 + + col2 * - 74 / + col0 )
----

query I rowsort
SELECT ALL + - ( + + 74 ) + col0 - + col2 * 20 FROM tab0 AS cor0 WHERE ( - 76 ) >= - col2 - + col2
----
-1957
-999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, 88 FROM tab2 AS cor0
----
23
88
40
88
58
88

query I rowsort
SELECT ALL ( + 71 ) FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT ( 42 ) FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - MIN( + - 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8745
SELECT - MIN ( + - 17 ) FROM tab2
----
17

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 91 + + col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1, 13 FROM tab1 AS cor0
----
14
13
47
13
5
13

query II rowsort
SELECT DISTINCT + + 5, + col2 FROM tab1 AS cor0
----
5
59
5
68
5
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT DISTINCT - + MIN( ALL col0 ), 23 AS col1 FROM tab0 AS cor0
----
-15
23

skipif mysql # not compatible
query II rowsort label-8749
SELECT DISTINCT - + MIN ( ALL col0 ), 23 AS col1 FROM tab0 AS cor0
----
-15
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + SUM( + 82 ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-8750
SELECT + SUM ( + 82 ) FROM tab2 AS cor0
----
246

query I rowsort
SELECT ALL + - 14 AS col2 FROM tab0 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT COUNT( * ) * + - 10 AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8752
SELECT COUNT ( * ) * + - 10 AS col0 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + ( + 13 ) * - 67 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8754
SELECT - + COUNT( - col1 ) DIV + MAX( DISTINCT + + col0 ) * + MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8754
SELECT - + COUNT ( - col1 ) / + MAX ( DISTINCT + + col0 ) * + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 91 * - 62 FROM tab2 AS cor0
----
5642
5642
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + + COUNT( - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + + COUNT ( - + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE ( NULL < + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT + 91 + COUNT( * ) + - + SUM( ALL - col2 ) FROM tab0
----
250

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + 91 + COUNT ( * ) + - + SUM ( ALL - col2 ) FROM tab0
----
250

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT - col0 DIV + 12 FROM tab0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-8759
SELECT - col0 / + 12 FROM tab0
----
-1
-7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL + + ( - COUNT( * ) ) - + - 69 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + + ( - COUNT ( * ) ) - + - 69 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
69

query I rowsort
SELECT + + 57 * + 76 + + col1 AS col2 FROM tab2 WHERE NULL <= col0 * + - col1 / + 13
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8762
SELECT - col1 AS col2 FROM tab0 WHERE NULL IN ( col1, CAST( NULL AS DECIMAL ) * - - 84 * + col1, + - col1 * - 55 )
----

skipif mysql # not compatible
query I rowsort label-8762
SELECT - col1 AS col2 FROM tab0 WHERE NULL IN ( col1, CAST ( NULL AS REAL ) * - - 84 * + col1, + - col1 * - 55 )
----

query I rowsort
SELECT col1 * - + 41 FROM tab1
----
-1927
-205
-574

query I rowsort
SELECT ALL + - 25 FROM tab2 WHERE ( NOT col0 + - col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 + 12 * 93 * + - 28 col1 FROM tab2
----
-31115
-31144
-31179

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col1 * col2 AS col2 FROM tab1
----
-630
1081
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL - COUNT( * ) - COUNT( ALL + ( - + 6 ) ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL - COUNT ( * ) - COUNT ( ALL + ( - + 6 ) ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + - 28 * - col0 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + - ( + COUNT( + col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + - ( + COUNT ( + col2 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT + col1 + - + 92 + + col2 * ( + CAST( - + col2 AS SIGNED ) ) * + + 50 col1 FROM tab2
----
-168225
-26491
-80015

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8770
SELECT + col1 + - + 92 + + col2 * ( + CAST ( - + col2 AS INTEGER ) ) * + + 50 col1 FROM tab2
----
-168225
-26491
-80015

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8771
SELECT * FROM tab0 WHERE ( - + CAST( - col2 AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8771
SELECT * FROM tab0 WHERE ( - + CAST ( - col2 AS INTEGER ) ) > NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE + col1 + col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 57 IS NULL
----

query I rowsort
SELECT ALL + 28 - col1 AS col1 FROM tab2 AS cor0
----
-23
-39
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + - MAX( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8775
SELECT + - MAX ( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT + 93 FROM tab2 AS cor0 WHERE NOT col1 < - CAST( NULL AS SIGNED ) + - + 96
----

skipif mysql # not compatible
query I rowsort label-8776
SELECT + 93 FROM tab2 AS cor0 WHERE NOT col1 < - CAST ( NULL AS INTEGER ) + - + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + - 45 * + + ( 76 ) - COUNT( * ) col0 FROM tab0 AS cor0
----
-3423

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8777
SELECT + - 45 * + + ( 76 ) - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col1 + + + col0 + + col1 col1 FROM tab0 AS cor0
----
-10
129
-47
177
-99
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8780
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + - CAST( col0 AS SIGNED ) - - col0 )
----

skipif mysql # not compatible
query III rowsort label-8780
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + - CAST ( col0 AS INTEGER ) - - col0 )
----

query I rowsort
SELECT DISTINCT + ( 80 ) AS col0 FROM tab2
----
80

query I rowsort
SELECT - 33 * 43 FROM tab0
----
-1419
-1419
-1419

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( - col2, 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 18 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( 63 ) IS NULL
----

query I rowsort
SELECT + + 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT col1 DIV - 27 AS col2 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-8786
SELECT col1 / - 27 AS col2 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT 93 * - 96 FROM tab0 AS cor0
----
-8928
-8928
-8928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) > NULL
----
NULL

query I rowsort
SELECT 44 + + + col2 AS col0 FROM tab2 AS cor0
----
102
67
84

query I rowsort
SELECT ALL + - 88 FROM tab0 cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8791
SELECT DISTINCT + 52 * CAST( + col0 AS SIGNED ) + + + col1 + + 44 + col2 AS col1, col1 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif mysql # not compatible
query II rowsort label-8791
SELECT DISTINCT + 52 * CAST ( + col0 AS INTEGER ) + + + col1 + + 44 + col2 AS col1, col1 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL CAST( 19 AS SIGNED ) * - + col1 FROM tab1
----
-266
-893
-95

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL CAST ( 19 AS INTEGER ) * - + col1 FROM tab1
----
-266
-893
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8795
SELECT DISTINCT ( CAST( - 82 AS DECIMAL ) ) + + + CAST( NULL AS SIGNED ) - + - 41 * 93 * - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT ( CAST ( - 82 AS REAL ) ) + + + CAST ( NULL AS INTEGER ) - + - 41 * 93 * - col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 23 + + 60 FROM tab0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT 32 + col1 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
37
46
79

skipif mysql # not compatible
query I rowsort label-8797
SELECT 32 + col1 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
37
46
79

query I rowsort
SELECT col0 * + - col2 + - 17 FROM tab2
----
-1075
-2577
-4367

query III rowsort
SELECT ALL * FROM tab2 WHERE - 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8801
SELECT ALL col2 + + + CAST( NULL AS DECIMAL ) - 16 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL col2 + + + CAST ( NULL AS REAL ) - 16 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - col2 col1 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab0 WHERE - col1 / + col2 + - ( + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < - 57
----

query I rowsort
SELECT - col2 * ( ( - - col0 ) ) - - 39 + col1 AS col1 FROM tab2
----
-2444
-4244
-968

onlyif mysql # DIV for integer division: 
query II rowsort label-8806
SELECT - 11 + - 12 AS col1, - col1 * - col2 DIV - - col2 AS col2 FROM tab1
----
-23
14
-23
47
-23
5

skipif mysql # not compatible
query II rowsort label-8806
SELECT - 11 + - 12 AS col1, - col1 * - col2 / - - col2 AS col2 FROM tab1
----
-23
14
-23
47
-23
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8807
SELECT MAX( + col2 ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-8807
SELECT MAX ( + col2 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + SUM( + ( 60 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
540

skipif mysql # not compatible
query I rowsort label-8808
SELECT + SUM ( + ( 60 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
540

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + + 44 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8810
SELECT ALL 51 DIV - + CAST( ( + col0 ) AS SIGNED ) + 18 AS col1 FROM tab2 AS cor0
----
17
18
18

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL 51 / - + CAST ( ( + col0 ) AS INTEGER ) + 18 AS col1 FROM tab2 AS cor0
----
17
18
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT DISTINCT - 18 * COUNT( * ) AS col1, 94 + 56 FROM tab2 AS cor0
----
-54
150

skipif mysql # not compatible
query II rowsort label-8811
SELECT DISTINCT - 18 * COUNT ( * ) AS col1, 94 + 56 FROM tab2 AS cor0
----
-54
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT - SUM( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT NULL >= - col2 * - + 63 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT NULL >= - col2 * - + 63 * col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT - 15 * - - col1 FROM tab1
----
-210
-705
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8816
SELECT ALL + col2 DIV 50 * - col1 DIV col1 * + CAST( - 50 AS SIGNED ) FROM tab0
----
0
0
50

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL + col2 / 50 * - col1 / col1 * + CAST ( - 50 AS INTEGER ) FROM tab0
----
0
0
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT ALL CAST( - + 91 AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL CAST ( - + 91 AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - - col0 AS col0 FROM tab1
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, 89 col2 FROM tab0
----
10
89
47
89
99
89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8821
SELECT ALL * FROM tab2 WHERE NOT col0 * - - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND - 87
----

skipif mysql # not compatible
query III rowsort label-8821
SELECT ALL * FROM tab2 WHERE NOT col0 * - - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND - 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8822
SELECT ALL * FROM tab2 cor0 WHERE NULL >= + CAST( NULL AS SIGNED ) / col1
----

skipif mysql # not compatible
query III rowsort label-8822
SELECT ALL * FROM tab2 cor0 WHERE NULL >= + CAST ( NULL AS INTEGER ) / col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT ALL - ( + col1 ) DIV col0 * + col2 FROM tab0 AS cor0
----
-235
0
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - ( + col1 ) / col0 * + col2 FROM tab0 AS cor0
----
-235
0
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 88 ) NOT IN ( 1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT 33 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - col2 + + col1 IS NOT NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 + + ( - ( 26 ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col2 FROM tab2 AS cor0 WHERE ( + col2 IS NULL )
----

query I rowsort
SELECT + ( + - col1 ) * + + 71 * + 42 AS col2 FROM tab2 AS cor0
----
-152082
-199794
-229614

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT 59 * + MAX( ALL 29 ) FROM tab1 AS cor0
----
1711

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT 59 * + MAX ( ALL 29 ) FROM tab1 AS cor0
----
1711

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 / 9 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 99 + + + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 99 + + + col1 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT - MAX( ALL + 54 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-8833
SELECT - MAX ( ALL + 54 ) FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT DISTINCT + 63 + COUNT( * ) * - 44 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + 63 + COUNT ( * ) * - 44 FROM tab2
----
-69

query I rowsort
SELECT 71 + - ( col2 ) * + - ( + + 1 ) + - col1 FROM tab0
----
169
37
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8836
SELECT - + 22 * - + col1 - + col2, - col2 FROM tab2 AS cor0 WHERE - - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) IS NULL AND NOT ( NULL ) <= col2 * + col2 + col2
----

skipif mysql # not compatible
query II rowsort label-8836
SELECT - + 22 * - + col1 - + col2, - col2 FROM tab2 AS cor0 WHERE - - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) IS NULL AND NOT ( NULL ) <= col2 * + col2 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8837
SELECT + 0 + 39 DIV + - 63 AS col1, ( - 48 ) AS col1 FROM tab0 cor0
----
0
-48
0
-48
0
-48

skipif mysql # not compatible
query II rowsort label-8837
SELECT + 0 + 39 / + - 63 AS col1, ( - 48 ) AS col1 FROM tab0 cor0
----
0
-48
0
-48
0
-48

query I rowsort
SELECT + col2 + + 93 AS col0 FROM tab0 AS cor0
----
103
140
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL + COUNT( 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + COUNT ( 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN 46 * + - col1 AND NULL
----

query I rowsort
SELECT ALL 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL + ( + + col0 ) AS col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, - col0 col0 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - COUNT( * ) * - 35 FROM tab0, tab1 AS cor0
----
315

skipif mysql # not compatible
query I rowsort label-8844
SELECT - COUNT ( * ) * - 35 FROM tab0, tab1 AS cor0
----
315

query I rowsort
SELECT + + 86 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 26 < NULL
----

query II rowsort
SELECT DISTINCT - - col0 AS col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 17 FROM tab1 AS cor0 WHERE NULL IS NULL
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-8850
SELECT DISTINCT - col0 DIV + 25 AS col1, - 34 + 92 FROM tab0 AS cor0
----
-3
58
0
58

skipif mysql # not compatible
query II rowsort label-8850
SELECT DISTINCT - col0 / + 25 AS col1, - 34 + 92 FROM tab0 AS cor0
----
-3
58
0
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * + + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT DISTINCT - - COUNT( * ) DIV + 86 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT - - COUNT ( * ) / + 86 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT 32 + + 15 >= - col0 * + 65 * + col2 + + 95 * - ( - col1 ) * + - ( - + col0 )
----
-46
-64
-75

query I rowsort
SELECT 52 * - 28 FROM tab0
----
-1456
-1456
-1456

query I rowsort
SELECT DISTINCT - 53 * + - col2 AS col0 FROM tab1
----
3127
3604
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT + 33 + COUNT( * ) * - 32 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8856
SELECT + 33 + COUNT ( * ) * - 32 FROM tab2
----
-63

query I rowsort
SELECT ALL - col2 + - + col1 + + - col1 + col2 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE - col1 * col1 * - col0 / - + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT DISTINCT COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL ( COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL ( COUNT ( * ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT - ( + 61 ) AS col2 FROM tab1
----
-61
-61
-61

query I rowsort
SELECT ALL + + 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8863
SELECT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) * - - 98 - + 67 + + col1 >= + - col0 * + ( - + col1 )
----

skipif mysql # not compatible
query III rowsort label-8863
SELECT * FROM tab1 WHERE CAST ( NULL AS REAL ) * - - 98 - + 67 + + col1 >= + - col0 * + ( - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT + + CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 56 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 56 AS col0 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT - - 31 + - - 24 FROM tab1 cor0
----
55
55
55

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE - col1 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8868
SELECT ALL * FROM tab1 WHERE NOT + 16 + + col1 * - - CAST( NULL AS SIGNED ) + - + 92 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8868
SELECT ALL * FROM tab1 WHERE NOT + 16 + + col1 * - - CAST ( NULL AS INTEGER ) + - + 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL CAST( NULL AS SIGNED ) + - 78 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL CAST ( NULL AS INTEGER ) + - 78 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT + col2 / col1 * - col1 * + ( + CAST( NULL AS SIGNED ) ) + + - 35 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT + col2 / col1 * - col1 * + ( + CAST ( NULL AS INTEGER ) ) + + - 35 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8871
SELECT * FROM tab1 WHERE + CAST( - ( + + col2 ) AS SIGNED ) <> + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8871
SELECT * FROM tab1 WHERE + CAST ( - ( + + col2 ) AS INTEGER ) <> + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT DISTINCT col0 DIV + col0 + + 91 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT col0 / + col0 + + 91 FROM tab0
----
92

query II rowsort
SELECT - + 23 * - 71, + col0 AS col1 FROM tab1 AS cor0
----
1633
51
1633
85
1633
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= - col0 + + col2 * + col1 * - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 62 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 35 + - + col1 * + col2 = NULL
----

query II rowsort
SELECT ALL 29 * + - ( - 40 ), + col0 AS col0 FROM tab1 AS cor0
----
1160
51
1160
85
1160
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8879
SELECT DISTINCT + COUNT( * ) DIV + - 1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT + COUNT ( * ) / + - 1 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT DISTINCT - - col1 AS col0 FROM tab1 AS cor0 WHERE col2 / - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - - col1 AS col0 FROM tab1 AS cor0 WHERE col2 / - CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT ALL + 95 + 94 + + - col1 * - col0 * ( - - CAST( NULL AS SIGNED ) ) * 90 AS col0 FROM tab1 AS cor0 WHERE - col1 + + col2 NOT BETWEEN col2 * col0 * - 5 * col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + 95 + 94 + + - col1 * - col0 * ( - - CAST ( NULL AS INTEGER ) ) * 90 AS col0 FROM tab1 AS cor0 WHERE - col1 + + col2 NOT BETWEEN col2 * col0 * - 5 * col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT - - 75 AS col2, + col1 FROM tab1 AS cor0 WHERE NOT + 46 IS NULL
----
75
14
75
47
75
5

query I rowsort
SELECT ALL - 64 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT MAX( ALL + 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-8886
SELECT MAX ( ALL + 43 ) FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT ALL - 24 AS col2, + COUNT( * ) AS col2 FROM tab2
----
-24
3

skipif mysql # not compatible
query II rowsort label-8887
SELECT ALL - 24 AS col2, + COUNT ( * ) AS col2 FROM tab2
----
-24
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * + 45 col2 FROM tab1
----
1845
1845
1845

query I rowsort
SELECT DISTINCT col2 + + 33 * - - 65 AS col1 FROM tab2
----
2168
2185
2203

query I rowsort
SELECT ( + - 74 ) * col0 FROM tab1
----
-3774
-6290
-6734

query I rowsort
SELECT col0 * - 14 AS col0 FROM tab2
----
-1050
-644
-896

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8892
SELECT ALL 76 + - + 99 AS col0, + CAST( NULL AS DECIMAL ) FROM tab1
----
-23
NULL
-23
NULL
-23
NULL

skipif mysql # not compatible
query II rowsort label-8892
SELECT ALL 76 + - + 99 AS col0, + CAST ( NULL AS REAL ) FROM tab1
----
-23
NULL
-23
NULL
-23
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8893
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8893
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( + col0 )
----

query I rowsort
SELECT col0 + - 43 + 83 FROM tab1
----
125
131
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT - col0 + + 1 DIV + - col2 AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8896
SELECT - col0 + + 1 / + - col2 AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT 98 * MIN( DISTINCT - - col0 ) + - ( COUNT( * ) ) FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT 98 * MIN ( DISTINCT - - col0 ) + - ( COUNT ( * ) ) FROM tab2 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT DISTINCT 35 - - col0 FROM tab0 cor0
----
122
132
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 57 IS NULL
----

query I rowsort
SELECT + - col1 * - + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT DISTINCT + + 57 DIV + + col2 + 13 FROM tab2 AS cor0
----
13
14
15

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT + + 57 / + + col2 + 13 FROM tab2 AS cor0
----
13
14
15

query I rowsort
SELECT + col1 * - - 41 + col1 - col0 + + + col2 FROM tab2 AS cor0
----
2119
2797
3210

query I rowsort
SELECT + + ( + + 8 ) * + + col1 * - + col0 FROM tab0 AS cor0 WHERE + col2 * - - col1 > ( - col1 )
----
-14616
-776
-9720

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1 WHERE NOT - 79 IS NULL AND NOT NULL IS NOT NULL
----
80

query II rowsort
SELECT DISTINCT + 79, + col0 AS col0 FROM tab1
----
79
51
79
85
79
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL COUNT( * ) - + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL COUNT ( * ) - + - COUNT ( * ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + 4 col1 FROM tab1
----
100
63
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8908
SELECT ALL + COUNT( * ) DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + COUNT ( * ) / - COUNT ( * ) FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - - col1 ) col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT + - MAX( DISTINCT col0 ) * - + COUNT( * ) + - 16 FROM tab2 AS cor0
----
209

skipif mysql # not compatible
query I rowsort label-8910
SELECT + - MAX ( DISTINCT col0 ) * - + COUNT ( * ) + - 16 FROM tab2 AS cor0
----
209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8911
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query II rowsort
SELECT + col0 * - - col0 + - - 74, + 62 AS col0 FROM tab1 cor0
----
2675
62
7299
62
8355
62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - + MAX( - - 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8914
SELECT - + MAX ( - - 10 ) FROM tab2 AS cor0
----
-10

query II rowsort
SELECT ALL ( + - 37 ) AS col1, + col2 FROM tab1 AS cor0
----
-37
59
-37
68
-37
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - COUNT( * ) * + COUNT( * ) + - + 23 AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-8917
SELECT - COUNT ( * ) * + COUNT ( * ) + - + 23 AS col2 FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT ALL - 58 * MIN( DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL - 58 * MIN ( DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT - + COUNT( * ) * COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - + COUNT ( * ) * COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 - - - col0 + - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 - - - col0 + - col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8922
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT + col2 * + + 21 FROM tab2
----
1218
483
840

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE ( + 48 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT + COUNT( * ) - 59 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-8925
SELECT + COUNT ( * ) - 59 FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + MAX( ALL 17 ) - + - MAX( ALL col0 ) FROM tab1 cor0
----
108

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + MAX ( ALL 17 ) - + - MAX ( ALL col0 ) FROM tab1 cor0
----
108

query I rowsort
SELECT - - 96 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col1 * - - col1 + - col1 AS col2 FROM tab0 cor0
----
-2
-462
-6642

query I rowsort
SELECT ALL + - 97 * + col0 AS col0 FROM tab2 cor0
----
-4462
-6208
-7275

query I rowsort
SELECT DISTINCT col0 * 78 AS col1 FROM tab1 cor0
----
3978
6630
7098

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN 69 * - + col0 + - col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT 65 * - MAX( + + col2 ) FROM tab1 AS cor0
----
-6240

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT 65 * - MAX ( + + col2 ) FROM tab1 AS cor0
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT 73 * - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT 73 * - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT ALL SUM( + 56 ), COUNT( * ) AS col2 FROM tab2
----
168
3

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL SUM ( + 56 ), COUNT ( * ) AS col2 FROM tab2
----
168
3

query I rowsort
SELECT col1 * + 96 * - - col2 FROM tab0
----
20160
365472
9504

query I rowsort
SELECT - col0 * - 54 * col1 AS col2 FROM tab1
----
22950
230958
38556

query II rowsort
SELECT DISTINCT col2 * + 48 AS col1, + 77 + - col2 FROM tab2
----
1104
54
1920
37
2784
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8938
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT ALL 11 DIV - - col1 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL 11 / - - col1 AS col0 FROM tab1
----
0
0
2

query I rowsort
SELECT - ( + 57 ) FROM tab2
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT DISTINCT + MIN( - - 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT + MIN ( - - 91 ) FROM tab2
----
91

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL <> col0 * col2
----

query I rowsort
SELECT DISTINCT - 54 * - + col0 + - col1 FROM tab2 AS cor0
----
2433
3379
3983

query II rowsort
SELECT 71, col2 AS col0 FROM tab2
----
71
23
71
40
71
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT - COUNT( ALL - ( + 14 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT - COUNT ( ALL - ( + 14 ) ) FROM tab1
----
-3

query II rowsort
SELECT ALL 30 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
30
-51
30
-85
30
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8947
SELECT ALL - 14, MAX( DISTINCT - ( + col0 ) ) DIV 40 * + 22 AS col0 FROM tab1 AS cor0
----
-14
-22

skipif mysql # not compatible
query II rowsort label-8947
SELECT ALL - 14, MAX ( DISTINCT - ( + col0 ) ) / 40 * + 22 AS col0 FROM tab1 AS cor0
----
-14
-22

query I rowsort
SELECT DISTINCT - ( + col0 ) + + col2 + + 77 - - 7 + - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
1119
2620
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT col0 DIV + 79 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT col0 / + 79 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL ( 70 ) + - - col1 * - col1 FROM tab1
----
-126
-2139
45

query I rowsort
SELECT DISTINCT + 19 + - + col2 FROM tab0
----
-28
-80
9

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query II rowsort
SELECT DISTINCT col2 + - 9 * - 92 * + col1, 85 AS col1 FROM tab1
----
11688
85
38984
85
4199
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT MIN( DISTINCT + 34 ) AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-8954
SELECT MIN ( DISTINCT + 34 ) AS col0 FROM tab1
----
34

query I rowsort
SELECT ALL - 48 + + - col1 * + col1 FROM tab2
----
-2649
-4537
-5977

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + - 33 * - + SUM( DISTINCT 52 ) col2 FROM tab1 AS cor0
----
1716

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8956
SELECT + - 33 * - + SUM ( DISTINCT 52 ) col2 FROM tab1 AS cor0
----
1716

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( NOT ( NOT NULL = col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT COUNT( * ) + - MAX( ALL + - 87 ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8958
SELECT COUNT ( * ) + - MAX ( ALL + - 87 ) AS col0 FROM tab2 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT ALL - 38 DIV col1 + + + col2 AS col1 FROM tab0
----
47
61
9

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL - 38 / col1 + + + col2 AS col1 FROM tab0
----
47
61
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL + COUNT( * ) col2 FROM tab0 WHERE NOT NULL < - 6
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8960
SELECT ALL + COUNT ( * ) col2 FROM tab0 WHERE NOT NULL < - 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT - COUNT( * ) * + 99 + 63 + + 71 - + MIN( DISTINCT + 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-785

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - COUNT ( * ) * + 99 + 63 + + 71 - + MIN ( DISTINCT + 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col1 col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL + 70 + - + MAX( col2 ) AS col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + 70 + - + MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
12

query I rowsort
SELECT - ( + 60 ) - col2 FROM tab2 AS cor0
----
-100
-118
-83

query I rowsort
SELECT DISTINCT 76 - 28 AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT - - COUNT( * ) * - - ( - - COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT - - COUNT ( * ) * - - ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 - 6 col2 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + + 26 - - SUM( - + 23 ) - MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + + 26 - - SUM ( - + 23 ) - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT - - 96 + col2 AS col0 FROM tab0 AS cor0 WHERE - 25 NOT BETWEEN NULL AND - ( - col1 ) + + - col0
----
106
195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 41 BETWEEN NULL AND - - col1 / col2 AND ( NOT col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - COUNT( * ) - - MIN( + - 18 ) col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8971
SELECT - COUNT ( * ) - - MIN ( + - 18 ) col1 FROM tab1 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 62, - 68 col2 FROM tab0 AS cor0
----
62
-68
62
-68
62
-68

query II rowsort
SELECT + col1 AS col0, 26 FROM tab2 WHERE NOT ( + ( + col2 ) * + - col2 + - - col0 + + + col1 IS NULL )
----
51
26
67
26
77
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT DISTINCT + col0 * + col2 AS col2 FROM tab0 WHERE NOT + col1 <= - + CAST( NULL AS SIGNED ) * + col2 / - - col2
----

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + col0 * + col2 AS col2 FROM tab0 WHERE NOT + col1 <= - + CAST ( NULL AS INTEGER ) * + col2 / - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8975
SELECT ALL * FROM tab2 WHERE NOT - + col2 * col1 * + col1 <= - col1 / - + 88 + + 75 + - + 34 + + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8975
SELECT ALL * FROM tab2 WHERE NOT - + col2 * col1 * + col1 <= - col1 / - + 88 + + 75 + - + 34 + + CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - col2 * 30 / + col0 + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * - col2 col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT + MIN( 22 ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT + MIN ( 22 ) FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT - 88, - MAX( DISTINCT + - col1 ) col0 FROM tab1 AS cor0
----
-88
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8979
SELECT - 88, - MAX ( DISTINCT + - col1 ) col0 FROM tab1 AS cor0
----
-88
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 NOT BETWEEN ( + - col2 ) AND col1
----

query II rowsort
SELECT col0 AS col0, - col2 + + col1 * - col1 * col1 FROM tab1 AS cor0
----
51
-2840
85
-184
91
-103891

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + ( + 81 )
----

query I rowsort
SELECT DISTINCT - 13 * + + col1 * 36 * + - col1 FROM tab2
----
1217268
2100852
2774772

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT COUNT( * ) * - - MIN( col0 ) AS col0 FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-8984
SELECT COUNT ( * ) * - - MIN ( col0 ) AS col0 FROM tab0 cor0
----
45

query I rowsort
SELECT ALL + + ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 col2 FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8987
SELECT - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT DISTINCT + col2 - col2 DIV - - 54 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
57

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + col2 - col2 / - - 54 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
57

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT DISTINCT 42 * CAST( NULL AS SIGNED ) * - COUNT( * ) + + COUNT( + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT 42 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + COUNT ( + col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 * - col0 * - + col1 + - - col2 FROM tab2
----
-107893
-315352
-376817

query I rowsort
SELECT + col1 + 26 FROM tab1
----
31
40
73

query I rowsort
SELECT DISTINCT 42 + + - 22 AS col0 FROM tab2
----
20

query I rowsort
SELECT col0 * + col1 + 31 AS col2 FROM tab1
----
4308
456
745

onlyif mysql # DIV for integer division: 
query II rowsort label-8995
SELECT - col2 DIV col0 + - col1, + col2 AS col0 FROM tab0
----
-2
99
-21
10
-84
47

skipif mysql # not compatible
query II rowsort label-8995
SELECT - col2 / col0 + - col1, + col2 AS col0 FROM tab0
----
-2
99
-21
10
-84
47

query II rowsort
SELECT 80, + col2 FROM tab2
----
80
23
80
40
80
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + - COUNT( DISTINCT col2 ) * - COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + - COUNT ( DISTINCT col2 ) * - COUNT ( * ) FROM tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 51 ) col2 FROM tab0 cor0
----
51

query I rowsort
SELECT DISTINCT - + col2 * + col0 FROM tab0 WHERE NOT - + col0 * + col0 * col2 NOT BETWEEN - col2 AND - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 7 * + - 63 + + col0 + + col2, + col1 col1 FROM tab1 AS cor0
----
585
5
588
14
600
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - col0 IS NULL
----

query I rowsort
SELECT + + col0 + - 89 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-2
-74
8

query II rowsort
SELECT - 30 * + col0 AS col2, 15 AS col2 FROM tab0 AS cor0
----
-2610
15
-2910
15
-450
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col0 FROM tab1
----
58

query I rowsort
SELECT + col1 * + 18 FROM tab0
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT SUM( - col2 ) * + - MIN( + - 75 ) AS col2 FROM tab1
----
-16725

skipif mysql # not compatible
query I rowsort label-9007
SELECT SUM ( - col2 ) * + - MIN ( + - 75 ) AS col2 FROM tab1
----
-16725

query I rowsort
SELECT 73 * - 47 AS col1 FROM tab1
----
-3431
-3431
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT COUNT( * ) * 18 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT COUNT ( * ) * 18 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT 14 * SUM( ALL 80 ) * - COUNT( * ) FROM tab1
----
-10080

skipif mysql # not compatible
query I rowsort label-9010
SELECT 14 * SUM ( ALL 80 ) * - COUNT ( * ) FROM tab1
----
-10080

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE - 4 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE - 4 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - col2 * 29 AS col2 FROM tab1 AS cor0
----
-1711
-1972
-2784

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + - col2 - - col1 + 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 * 9 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
540

query I rowsort
SELECT - - 56 FROM tab2 WHERE NOT - - col1 = NULL
----

query I rowsort
SELECT ALL col1 * + col1 * ( - - ( col2 ) ) AS col2 FROM tab0
----
308367
4410
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT + col2 DIV col0 * col2 AS col2 FROM tab1 AS cor0
----
0
0
96

skipif mysql # not compatible
query I rowsort label-9017
SELECT + col2 / col0 * col2 AS col2 FROM tab1 AS cor0
----
0
0
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 39 col0 FROM tab0 AS cor0
----
-1833
-3861
-390

query I rowsort
SELECT + 71 * + col2 FROM tab0
----
3337
7029
710

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9020
SELECT * FROM tab0 WHERE NULL BETWEEN CAST( col0 AS SIGNED ) AND 21 * + CAST( + 73 AS DECIMAL ) / - + col0 * - col1 + + 4
----

skipif mysql # not compatible
query III rowsort label-9020
SELECT * FROM tab0 WHERE NULL BETWEEN CAST ( col0 AS INTEGER ) AND 21 * + CAST ( + 73 AS REAL ) / - + col0 * - col1 + + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9021
SELECT DISTINCT + 28 * + CAST( ( col2 ) AS SIGNED ) + + 19 + - + col0 * + - col1, col0 FROM tab0
----
2126
87
2550
15
2888
97

skipif mysql # not compatible
query II rowsort label-9021
SELECT DISTINCT + 28 * + CAST ( ( col2 ) AS INTEGER ) + + 19 + - + col0 * + - col1, col0 FROM tab0
----
2126
87
2550
15
2888
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - COUNT( * ) - - 64 + + + ( + COUNT( * ) ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9022
SELECT - COUNT ( * ) - - 64 + + + ( + COUNT ( * ) ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT + MIN( DISTINCT - + 47 ) AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + MIN ( DISTINCT - + 47 ) AS col2 FROM tab2 AS cor0
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9025
SELECT + COUNT( * ), + 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
23

skipif mysql # not compatible
query II rowsort label-9025
SELECT + COUNT ( * ), + 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
23

query I rowsort
SELECT DISTINCT - ( - 50 ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9027
SELECT ALL + COUNT( * ), - 33 AS col2 FROM tab1 AS cor0
----
3
-33

skipif mysql # not compatible
query II rowsort label-9027
SELECT ALL + COUNT ( * ), - 33 AS col2 FROM tab1 AS cor0
----
3
-33

query II rowsort
SELECT col1 AS col0, 61 FROM tab2 AS cor0
----
51
61
67
61
77
61

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab2 AS cor0 WHERE NULL = + 99
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9030
SELECT DISTINCT - col2, col2 DIV - 37 AS col1 FROM tab0 AS cor0
----
-10
0
-47
-1
-99
-2

skipif mysql # not compatible
query II rowsort label-9030
SELECT DISTINCT - col2, col2 / - 37 AS col1 FROM tab0 AS cor0
----
-10
0
-47
-1
-99
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT CAST( 3 AS SIGNED ) FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9031
SELECT CAST ( 3 AS INTEGER ) FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT - - COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - - COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9033
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + 42 <> col1
----

skipif mysql # not compatible
query III rowsort label-9033
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + 42 <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 5 * + ( - col0 ) + + 43 col0 FROM tab1 AS cor0
----
-2082
-21342
-3527

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = - 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + 22 = - + col0 + - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL OR + 19 + - - col1 >= + col0
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9038
SELECT + CAST( + AVG ( ALL + col0 ) AS DECIMAL ) / + MAX( ALL + col2 ) - - 92 FROM tab0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT + CAST ( + AVG ( ALL + col0 ) AS REAL ) / + MAX ( ALL + col2 ) - - 92 FROM tab0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT + col0 * - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT CAST( - - 77 AS SIGNED ) FROM tab1 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-9040
SELECT CAST ( - - 77 AS INTEGER ) FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT - + 30 AS col2 FROM tab1 cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9042
SELECT DISTINCT - SUM( col2 ), SUM( ALL col1 ) + - AVG ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-156
NULL

skipif mysql # not compatible
query II rowsort label-9042
SELECT DISTINCT - SUM ( col2 ), SUM ( ALL col1 ) + - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-156
NULL

query I rowsort
SELECT DISTINCT - 95 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-95

query I rowsort
SELECT DISTINCT - 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

query I rowsort
SELECT + - 15 - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE 46 + 44 + + col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE 46 + 44 + + col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT - col1 DIV - 96 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT - col1 / - 96 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9048
SELECT + + COUNT( * ) DIV 47 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9048
SELECT + + COUNT ( * ) / 47 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 88 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < - col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL MIN( DISTINCT - ( - + col1 ) ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL MIN ( DISTINCT - ( - + col1 ) ) FROM tab1 cor0
----
5

query I rowsort
SELECT ALL - - 96 * - + 17 * - col2 AS col1 FROM tab0 cor0
----
161568
16320
76704

query I rowsort
SELECT ALL 88 + + ( - - col0 ) FROM tab2
----
134
152
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT MAX( - - col1 ) + - COUNT( * ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9053
SELECT MAX ( - - col1 ) + - COUNT ( * ) AS col0 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT MAX( ( 19 ) ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-9054
SELECT MAX ( ( 19 ) ) AS col1 FROM tab2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL 34 + - - col1 * + - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-162
-2175
9

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL 34 + - - col1 * + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-162
-2175
9

query II rowsort
SELECT col1, - 33 AS col0 FROM tab0
----
1
-33
21
-33
81
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT - COUNT( * ) + + + 78 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - COUNT ( * ) + + + 78 FROM tab0
----
75

query I rowsort
SELECT DISTINCT + col0 - + 22 AS col1 FROM tab2
----
24
42
53

query II rowsort
SELECT 97, col2 AS col2 FROM tab2
----
97
23
97
40
97
58

query I rowsort
SELECT ALL - col1 - - - col1 + + col0 AS col0 FROM tab1 cor0
----
-3
23
75

onlyif mysql # aggregate syntax: 
query III rowsort label-9061
SELECT ALL - - COUNT( * ), + 74 col0, + + 96 col2 FROM tab0 AS cor0
----
3
74
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9061
SELECT ALL - - COUNT ( * ), + 74 col0, + + 96 col2 FROM tab0 AS cor0
----
3
74
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT ALL + CAST( - 63 AS SIGNED ) * 99 - + - MAX( ALL - 13 ) FROM tab1 AS cor0
----
-6250

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + CAST ( - 63 AS INTEGER ) * 99 - + - MAX ( ALL - 13 ) FROM tab1 AS cor0
----
-6250

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL + COUNT( - col1 ) - - - 68 - + + MAX( - col0 ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + COUNT ( - col1 ) - - - 68 - + + MAX ( - col0 ) FROM tab0 AS cor0
----
-50

query II rowsort
SELECT DISTINCT - + col2, + 10 AS col0 FROM tab2 AS cor0
----
-23
10
-40
10
-58
10

query I rowsort
SELECT DISTINCT + 63 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
63

query I rowsort
SELECT DISTINCT + col1 * - - col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9067
SELECT + CAST( + + AVG ( ALL col0 ) AS SIGNED ) DIV - COUNT( * ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-9067
SELECT + CAST ( + + AVG ( ALL col0 ) AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab2
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col1 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT + 98 * + COUNT( * ) col2 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9069
SELECT DISTINCT + 98 * + COUNT ( * ) col2 FROM tab0 AS cor0
----
294

query II rowsort
SELECT - + col1 + - 27 / + + ( col0 ), col0 FROM tab2 AS cor0 WHERE NOT + 29 * + 16 IS NOT NULL
----

query I rowsort
SELECT ALL - + 89 AS col1 FROM tab0 cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + COUNT( * ) * - + 81 - + - COUNT( * ) * - ( + - SUM( ALL + + 8 ) ) * COUNT( * ) + + 75 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COUNT ( * ) * - + 81 - + - COUNT ( * ) * - ( + - SUM ( ALL + + 8 ) ) * COUNT ( * ) + + 75 FROM tab2 AS cor0
----
48

query I rowsort
SELECT - - 34 FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL )
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT - 38 * + COUNT( * ) AS col2 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - 38 * + COUNT ( * ) AS col2 FROM tab0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 col0, - col2 AS col0 FROM tab0
----
89
-10
89
-47
89
-99

query II rowsort
SELECT ALL - 74 AS col2, + col1 FROM tab2 AS cor0
----
-74
51
-74
67
-74
77

query I rowsort
SELECT 36 * + col2 + col1 - + + col0 FROM tab1 AS cor0
----
2044
2404
3419

query I rowsort
SELECT col1 + - 57 FROM tab1
----
-10
-43
-52

query I rowsort
SELECT 5 * col1 AS col0 FROM tab2
----
255
335
385

query I rowsort
SELECT col1 * + 70 FROM tab0
----
1470
5670
70

query I rowsort
SELECT ( col1 ) + col1 * 18 FROM tab0
----
1539
19
399

query I rowsort
SELECT ALL + 63 FROM tab1 WHERE ( + 30 ) IS NOT NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 WHERE ( + 84 ) BETWEEN - col0 AND col2
----
1

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 WHERE ( + 84 ) BETWEEN - col0 AND col2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * ( 60 ) FROM tab2
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT - 60 + 39 * ( - ( COUNT( + col0 ) ) * + COUNT( * ) ) FROM tab0
----
-411

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - 60 + 39 * ( - ( COUNT ( + col0 ) ) * + COUNT ( * ) ) FROM tab0
----
-411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * col1 col0 FROM tab2
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL - 0 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - 0 * COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= ( - col1 )
----

query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 89 + 12 FROM tab1 WHERE ( - ( 1 ) ) IS NOT NULL
----
101
101
101

query I rowsort
SELECT ALL ( ( - 95 ) ) AS col1 FROM tab2
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 12 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT DISTINCT col0 FROM tab2 WHERE NOT col1 NOT BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT col0 FROM tab2 WHERE NOT col1 NOT BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 - - 43 col1 FROM tab1
----
119
119
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9097
SELECT COUNT( * ) DIV - 13 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT COUNT ( * ) / - 13 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL - COUNT( ALL + col0 ) * 97 AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - COUNT ( ALL + col0 ) * 97 AS col2 FROM tab0
----
-291

query I rowsort
SELECT ALL col1 * col1 FROM tab2 WHERE ( NULL ) IS NULL
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT - 70 DIV 38 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9100
SELECT - 70 / 38 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab2 WHERE col1 < ( - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE col1 < ( - 59 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT 50 DIV 64 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9102
SELECT 50 / 64 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT COUNT( ALL - 66 ) AS col2 FROM tab2 WHERE NOT ( CAST( 24 AS SIGNED ) ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT COUNT ( ALL - 66 ) AS col2 FROM tab2 WHERE NOT ( CAST ( 24 AS INTEGER ) ) NOT IN ( col1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9104
SELECT DISTINCT 98 + + col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT 98 + + col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9105
SELECT - ( - AVG ( + CAST( NULL AS SIGNED ) ) ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT - ( - AVG ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND - col2 - 4
----

query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN 16 + 43 AND ( col2 )
----

query I rowsort
SELECT ALL - 10 - col0 AS col0 FROM tab2 cor0
----
-56
-74
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( + col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL COUNT( * ) * ( + 71 ) AS col1 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL COUNT ( * ) * ( + 71 ) AS col1 FROM tab0 AS cor0
----
213

query I rowsort
SELECT - 83 * 33 AS col2 FROM tab1 AS cor0
----
-2739
-2739
-2739

query I rowsort
SELECT 74 * 61 AS col2 FROM tab1 AS cor0
----
4514
4514
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT SUM( ALL col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9113
SELECT SUM ( ALL col1 ) col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab0 cor0 WHERE ( + col2 * + col0 ) IN ( col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT - col0 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT - col0 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9116
SELECT ALL + COUNT( * ) DIV 92 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + COUNT ( * ) / 92 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT CAST( ( col1 ) AS SIGNED ) FROM tab1 WHERE NOT 99 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9117
SELECT CAST ( ( col1 ) AS INTEGER ) FROM tab1 WHERE NOT 99 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT MAX( 93 ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9119
SELECT MAX ( 93 ) AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL 68 * + col1 FROM tab2 AS cor0
----
3468
4556
5236

query I rowsort
SELECT DISTINCT ( - 75 ) AS col0 FROM tab0 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT CAST( NULL AS SIGNED ) * 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT CAST ( NULL AS INTEGER ) * 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 53 AS col0 FROM tab1 cor0 WHERE NOT col2 + col0 NOT BETWEEN col1 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= col1 + + col2
----

query I rowsort
SELECT + ( + AVG ( ALL 27 ) ) FROM tab1 AS cor0 WHERE NOT + col1 * col2 + 0 * - col1 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 * - col0 ) <> - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - - 41 * - col2 AS col0 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT ALL + 70 * + ( - col0 ) + col0 * - 75 AS col1 FROM tab2
----
-10875
-6670
-9280

query I rowsort
SELECT 65 * - - col1 * + 16 + col1 FROM tab0
----
1041
21861
84321

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + - 62 + + col1 FROM tab1 cor0
----
-15
-48
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 * - - col0 col1 FROM tab0 cor0
----
-4089
-4559
-705

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 - 37 / + col1 BETWEEN - 34 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT - SUM( DISTINCT - 70 ) * + CAST( + 50 * COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10500

skipif mysql # not compatible
query I rowsort label-9135
SELECT - SUM ( DISTINCT - 70 ) * + CAST ( + 50 * COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10500

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
90

query I rowsort
SELECT col0 - - ( - col2 ) FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT + col0 DIV 16 + - + col0 + col2 * 23 AS col2 FROM tab2 AS cor0
----
1263
485
860

skipif mysql # not compatible
query I rowsort label-9140
SELECT + col0 / 16 + - + col0 + col2 * 23 AS col2 FROM tab2 AS cor0
----
1263
485
860

query I rowsort
SELECT + col0 + + 27 FROM tab0 AS cor0
----
114
124
42

query I rowsort
SELECT 80 + 45 - 56 * 17 FROM tab1 AS cor0
----
-827
-827
-827

query I rowsort
SELECT DISTINCT col2 * 88 FROM tab1 AS cor0
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL COUNT( * ) - - + 47 AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL COUNT ( * ) - - + 47 AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT + col1 / - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL 99 FROM tab0 AS cor0 WHERE NOT 49 * - col2 IN ( 41 )
----
99
99
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 * + + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + - 48 * + col2 - - col2 ) IS NULL
----

query I rowsort
SELECT ALL ( + + col1 ) * + 56 * 0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * 52 AS col2 FROM tab1
----
-2652
-4420
-4732

query I rowsort
SELECT 61 + - 57 FROM tab2 WHERE ( 47 ) IS NOT NULL
----
4
4
4

query I rowsort
SELECT ALL col2 * + - col2 + + - col2 FROM tab0
----
-110
-2256
-9900

query I rowsort
SELECT - col2 * + 44 FROM tab0
----
-2068
-4356
-440

query I rowsort
SELECT DISTINCT - 76 + - col1 AS col2 FROM tab0
----
-157
-77
-97

query I rowsort
SELECT + col1 * 60 FROM tab0
----
1260
4860
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9156
SELECT ALL - CAST( NULL AS SIGNED ) / 92 + - COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL - CAST ( NULL AS INTEGER ) / 92 + - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9157
SELECT ALL col0 * + 47, CAST( + CAST( col0 AS SIGNED ) AS SIGNED ) + col1 AS col0 FROM tab1
----
2397
65
3995
90
4277
138

skipif mysql # not compatible
query II rowsort label-9157
SELECT ALL col0 * + 47, CAST ( + CAST ( col0 AS INTEGER ) AS INTEGER ) + col1 AS col0 FROM tab1
----
2397
65
3995
90
4277
138

query I rowsort
SELECT DISTINCT - 44 * 57 FROM tab1
----
-2508

query III rowsort
SELECT ALL * FROM tab1 WHERE + 66 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9160
SELECT ALL + 47 DIV + COUNT( * ) FROM tab0 WHERE col0 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + 47 / + COUNT ( * ) FROM tab0 WHERE col0 IS NOT NULL
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN - 26 + CAST( NULL AS SIGNED ) + - col0 AND - col1
----

skipif mysql # not compatible
query I rowsort label-9161
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN - 26 + CAST ( NULL AS INTEGER ) + - col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - 54 ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9162
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - 54 ) NOT BETWEEN ( NULL ) AND NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + MIN( - col0 ) FROM tab1 WHERE NOT - + col0 * + + 17 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT + MIN ( - col0 ) FROM tab1 WHERE NOT - + col0 * + + 17 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + - col0 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> ( ( + - col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 + - 84 ) <> ( col0 )
----

query I rowsort
SELECT DISTINCT col0 * 66 + - col1 FROM tab2 cor0
----
2985
4147
4883

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9169
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + CAST( + col0 AS DECIMAL ) + 89 + col0 * + col1 * + col0 BETWEEN ( NULL ) AND 15
----

skipif mysql # not compatible
query III rowsort label-9169
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + CAST ( + col0 AS REAL ) + 89 + col0 * + col1 * + col0 BETWEEN ( NULL ) AND 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9170
SELECT ALL * FROM tab0 AS cor0 WHERE ( 11 * + col2 + + CAST( col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9170
SELECT ALL * FROM tab0 AS cor0 WHERE ( 11 * + col2 + + CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9171
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + + 28 ) * + col1 * col0 ) NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9171
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + + 28 ) * + col1 * col0 ) NOT IN ( - CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 90 ) col1 FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( ( CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9173
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( ( CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 > + + 96
----
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 80 * - col0 + + col0
----

query I rowsort
SELECT ALL col1 * - 85 + - - ( - col0 ) FROM tab2
----
-4381
-5770
-6609

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - COUNT( ALL - 90 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - COUNT ( ALL - 90 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL 30 FROM tab0 WHERE NOT ( 93 * 57 ) IS NOT NULL
----

query I rowsort
SELECT - + col0 FROM tab2 WHERE ( ( + col0 ) NOT BETWEEN NULL AND - col2 )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col0 + + col0 - 84 col1 FROM tab0 AS cor0
----
1
-84
21
-84
81
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9182
SELECT + col1 + + 23 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT + col1 + + 23 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( 62 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) <> ( - - 80 * - + CAST( - ( col1 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) <> ( - - 80 * - + CAST ( - ( col1 ) AS INTEGER ) )
----
0

query II rowsort
SELECT ALL + 45 + - + col0, + col1 FROM tab1 AS cor0
----
-40
5
-46
47
-6
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT ALL 36 - + CAST( NULL AS SIGNED ) + - col2 + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL 36 - + CAST ( NULL AS INTEGER ) + - col2 + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 76 * - + 79 - + + col1 + col2 * 45 FROM tab2 AS cor0
----
-3461
-4281
-5020

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT - 13 - + MIN( - 29 ) AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9188
SELECT - 13 - + MIN ( - 29 ) AS col1 FROM tab2 AS cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - + col1 < NULL
----

query I rowsort
SELECT DISTINCT - - col0 - - 68 AS col0 FROM tab2 AS cor0
----
114
132
143

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 39 + + 23 ) NOT IN ( col1 )
----

query I rowsort
SELECT - 26 - + + col2 + col2 + + col0 * + + col0 FROM tab2 cor0
----
2090
4070
5599

query I rowsort
SELECT ALL + 83 * - 88 FROM tab0
----
-7304
-7304
-7304

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - ( + 98 ) * + 92 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 95 * + col1 = ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT MAX( ( + + 80 ) ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9196
SELECT MAX ( ( + + 80 ) ) AS col0 FROM tab2
----
80

query I rowsort
SELECT ALL - 66 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 * - 24 ) BETWEEN - 8 AND + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( 31 ) * col0 * - col2 AS col1 FROM tab1 AS cor0
----
151776
155465
191828

query I rowsort
SELECT + 38 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
38
38
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9201
SELECT ALL + - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9202
SELECT ALL * FROM tab1 WHERE ( + - ( - CAST( + col2 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9202
SELECT ALL * FROM tab1 WHERE ( + - ( - CAST ( + col2 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT + 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT 33 * - + col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT SUM( + + 77 ) * - COUNT( * ) FROM tab1 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-9205
SELECT SUM ( + + 77 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - COUNT( ALL - + col0 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9206
SELECT - COUNT ( ALL - + col0 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 - col1 + + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL - ( - 80 ) + - MIN( - col2 ) AS col2 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL - ( - 80 ) + - MIN ( - col2 ) AS col2 FROM tab2 cor0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT ALL + ( CAST( + col2 AS SIGNED ) ) + - + col0 - + + 97 AS col0 FROM tab1
----
-120
-123
-52

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL + ( CAST ( + col2 AS INTEGER ) ) + - + col0 - + + 97 AS col0 FROM tab1
----
-120
-123
-52

query I rowsort
SELECT col2 + + col0 * - col2 * 63 FROM tab0
----
-44368
-54800
-604890

query I rowsort
SELECT ALL col0 * + - col2 + col2 FROM tab0
----
-658
-860
-9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9212
SELECT DISTINCT + 56 + 26 DIV + COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + 56 + 26 / + COUNT ( * ) FROM tab0
----
64

query II rowsort
SELECT ALL - ( - col1 ) + - 51 - + 82 - + 79 AS col0, col2 * - 86 FROM tab0
----
-131
-4042
-191
-860
-211
-8514

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL MIN( col0 ) + + - 77 AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL MIN ( col0 ) + + - 77 AS col2 FROM tab2
----
-31

query I rowsort
SELECT ALL 73 * col0 + col2 FROM tab1 AS cor0
----
3819
6264
6711

query I rowsort
SELECT 85 AS col1 FROM tab0 AS cor0 WHERE ( NULL < NULL )
----

query I rowsort
SELECT - - AVG ( + ( - - col2 ) ) - 58 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT SUM( ALL col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT SUM ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT COUNT( * ) - + - 11 AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( * ) - + - 11 AS col2 FROM tab1
----
14

query I rowsort
SELECT col2 - + - 79 FROM tab1
----
138
147
175

query I rowsort
SELECT ALL col2 * + 29 + col2 - + col0 + + - col2 AS col2 FROM tab1
----
1626
1881
2733

query I rowsort
SELECT 70 - + + col0 - + + 10 AS col1 FROM tab1
----
-25
-31
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - + COUNT( * ) FROM tab2 WHERE + col1 / + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT - + COUNT ( * ) FROM tab2 WHERE + col1 / + col1 IS NULL
----
0

query II rowsort
SELECT col1 + + col0 AS col2, + 69 * col0 FROM tab0 AS cor0
----
108
6003
96
1035
98
6693

onlyif mysql # DIV for integer division: 
query I rowsort label-9225
SELECT ALL - - col2 + 71 + - - col1 + 92 * - col2 DIV - col2 - 25 AS col0 FROM tab2 AS cor0
----
212
255
263

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL - - col2 + 71 + - - col1 + 92 * - col2 / - col2 - 25 AS col0 FROM tab2 AS cor0
----
212
255
263

query II rowsort
SELECT ALL + col0 AS col0, + 14 AS col1 FROM tab0 AS cor0
----
15
14
87
14
97
14

query I rowsort
SELECT ALL 14 * + 37 FROM tab0 AS cor0 WHERE NOT - col2 * + col1 + + ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + + COUNT( col2 ) + - 80 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9229
SELECT + + COUNT ( col2 ) + - 80 FROM tab1 AS cor0
----
-77

query II rowsort
SELECT + col1 AS col1, + 11 AS col1 FROM tab1 AS cor0
----
14
11
47
11
5
11

onlyif mysql # DIV for integer division: 
query II rowsort label-9231
SELECT - col2 DIV - 5 AS col1, + col0 AS col0 FROM tab2
----
11
75
4
46
8
64

skipif mysql # not compatible
query II rowsort label-9231
SELECT - col2 / - 5 AS col1, + col0 AS col0 FROM tab2
----
11
75
4
46
8
64

query I rowsort
SELECT - col0 * + - 11 FROM tab0
----
1067
165
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col2 FROM tab0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT CAST( NULL AS SIGNED ) * + 2 * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT CAST ( NULL AS INTEGER ) * + 2 * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 * - + col0 AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT + ( + ( + col1 ) ) * + + 32 FROM tab1
----
1504
160
448

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + COUNT( ALL - + 17 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9237
SELECT + COUNT ( ALL - + 17 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 91 AS col2 FROM tab2 WHERE ( + col1 * - col2 * - col0 ) IS NULL
----

query I rowsort
SELECT - col1 * - + col1 AS col0 FROM tab0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 WHERE NOT - 43 < + col1
----

query I rowsort
SELECT + 2 * + - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9242
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 * - CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9242
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 * - CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 77 col0 FROM tab2 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9244
SELECT - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT DISTINCT + + col0 AS col0, 16 FROM tab1 AS cor0
----
51
16
85
16
91
16

query I rowsort
SELECT ALL + 21 + + 58 AS col1 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT + - COUNT( * ) AS col1, + 85 FROM tab0 AS cor0
----
-3
85

skipif mysql # not compatible
query II rowsort label-9247
SELECT + - COUNT ( * ) AS col1, + 85 FROM tab0 AS cor0
----
-3
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9248
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9248
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 * 80 + col2 + col0 - + 29 * + 80 AS col1 FROM tab0 AS cor0
----
-3458
-9183
-9884

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - ( + + COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9250
SELECT - ( + + COUNT ( * ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 22 + col0 + - col0 * 3 AS col0 FROM tab2
----
-114
-150
-172

query II rowsort
SELECT ( - col1 ) AS col2, + col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + ( - col2 ) + col2 )
----

query I rowsort
SELECT DISTINCT col2 * ( - col2 ) * 93 + + - col1 FROM tab0
----
-205518
-911494
-9321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + - col2 col1 FROM tab0 cor0
----
-127
-38
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT 40 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
127
137
55

skipif mysql # not compatible
query I rowsort label-9256
SELECT 40 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
127
137
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 * 64 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9257
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 * 64 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT + + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9258
SELECT + + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT - + CAST( + 81 AS SIGNED ) FROM tab2 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-9259
SELECT - + CAST ( + 81 AS INTEGER ) FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL + SUM( - 58 ) FROM tab2 AS cor0 WHERE - col2 / - - ( + - col2 ) + - - 73 IS NOT NULL
----
-174

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + SUM ( - 58 ) FROM tab2 AS cor0 WHERE - col2 / - - ( + - col2 ) + - - 73 IS NOT NULL
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col1 - + - CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col1 - + - CAST ( + + col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( col2 ) ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 69 * - col2 AS col1 FROM tab2
----
-1587
-2760
-4002

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT DISTINCT - 15 DIV + 66 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - 15 / + 66 FROM tab1
----
0

query I rowsort
SELECT ( - + col0 ) * - + 61 FROM tab1
----
3111
5185
5551

query II rowsort
SELECT ALL col1 AS col0, col2 * - 41 * + col0 AS col0 FROM tab0
----
1
-393723
21
-35670
81
-28905

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND col2 - - col2
----

query I rowsort
SELECT ( + 31 ) * + col0 AS col0 FROM tab1
----
1581
2635
2821

query II rowsort
SELECT + col1, ( col1 ) * + ( - - 64 ) AS col2 FROM tab0 AS cor0
----
1
64
21
1344
81
5184

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9271
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9271
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 = CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT col1 * - col2 * - CAST( - + 81 AS SIGNED ) + 65 FROM tab1
----
-108799
-23830
-258811

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT col1 * - col2 * - CAST ( - + 81 AS INTEGER ) + 65 FROM tab1
----
-108799
-23830
-258811

query I rowsort
SELECT + col1 * + - 69 FROM tab1
----
-3243
-345
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT + - COUNT( * ) * - 57 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT + - COUNT ( * ) * - 57 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT + MAX( ALL CAST( + - ( + 66 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + MAX ( ALL CAST ( + - ( + 66 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT + col2 * 55 * + col0 AS col0 FROM tab0 cor0
----
38775
47850
528165

query I rowsort
SELECT + col0 + - 84 AS col0 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT col0 + + - col1 AS col0 FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT ALL - - col2, col2 + - 61 + - col1 * col1 FROM tab1 AS cor0 WHERE - 64 * - col1 + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE ( - 47 ) NOT BETWEEN - 90 * - col2 + 54 AND - col0
----
-3

skipif mysql # not compatible
query I rowsort label-9280
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 47 ) NOT BETWEEN - 90 * - col2 + 54 AND - col0
----
-3

query I rowsort
SELECT ALL - 89 AS col0 FROM tab2 WHERE ( + 71 ) IS NOT NULL
----
-89
-89
-89

query I rowsort
SELECT ALL + 41 AS col1 FROM tab2 WHERE ( NULL IS NULL )
----
41
41
41

query I rowsort
SELECT + col2 + + col1 * - col0 FROM tab1
----
-366
-4209
-618

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9284
SELECT - 22 AS col1, col1 * + 11 * CAST( - + col2 AS SIGNED ) FROM tab2
----
-22
-12903
-22
-33880
-22
-42746

skipif mysql # not compatible
query II rowsort label-9284
SELECT - 22 AS col1, col1 * + 11 * CAST ( - + col2 AS INTEGER ) FROM tab2
----
-22
-12903
-22
-33880
-22
-42746

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT + ( + MAX( - col0 ) ), 26 AS col2 FROM tab1
----
-51
26

skipif mysql # not compatible
query II rowsort label-9285
SELECT + ( + MAX ( - col0 ) ), 26 AS col2 FROM tab1
----
-51
26

query I rowsort
SELECT DISTINCT + 11 + col2 AS col0 FROM tab1
----
107
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT - COUNT( * ) - + 26 AS col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - COUNT ( * ) - + 26 AS col0 FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL + COUNT( * ) * + 15 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL + COUNT ( * ) * + 15 FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT col1 * + + col1 + col2 * 51 DIV col0 FROM tab0 AS cor0
----
446
53
6720

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT col1 * + + col1 + col2 * 51 / col0 FROM tab0 AS cor0
----
446
53
6720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9290
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9290
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT ALL 88 / col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL 88 / col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 40 AS col1 FROM tab0 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT ALL - col2 DIV + 46 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - col2 / + 46 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL MAX( ALL - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL MAX ( ALL - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + ( + + col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + - col1 / col1 * col2 + + - 72 AS col2 FROM tab1 AS cor0 WHERE col1 * - - col0 + + - col2 <= NULL
----

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 = - + 35
----
0
0
0

query I rowsort
SELECT ALL + ( + col0 ) * + + ( col2 ) * - + col0 - + 38 AS col1 FROM tab0 AS cor0
----
-10613
-75728
-931529

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT + 87 * SUM( DISTINCT + - col0 ) FROM tab1
----
-19749

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + 87 * SUM ( DISTINCT + - col0 ) FROM tab1
----
-19749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9300
SELECT DISTINCT COUNT( * ) AS col0, + SUM( - + CAST( + 25 AS SIGNED ) ) FROM tab2
----
3
-75

skipif mysql # not compatible
query II rowsort label-9300
SELECT DISTINCT COUNT ( * ) AS col0, + SUM ( - + CAST ( + 25 AS INTEGER ) ) FROM tab2
----
3
-75

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT NULL IN ( - col1, col2 / 31 + + + col0 * 78 )
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( + col1 ) + + col0 + 22 <> - - 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT DISTINCT - 4 DIV + col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT - 4 / + col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT MIN( ALL - 81 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-9304
SELECT MIN ( ALL - 81 ) FROM tab1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - + 22 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9307
SELECT DISTINCT CAST( - MIN( ALL + 43 ) AS SIGNED ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT CAST ( - MIN ( ALL + 43 ) AS INTEGER ) FROM tab0 AS cor0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9308
SELECT + 62 * + - 26 + - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1, - 40 * - + ( + COUNT( * ) ) * MAX( - 6 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-2160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9308
SELECT + 62 * + - 26 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1, - 40 * - + ( + COUNT ( * ) ) * MAX ( - 6 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-2160

query I rowsort
SELECT DISTINCT col0 * - - col1 + - col0 FROM tab2
----
2300
4864
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT 95 DIV + - 20 FROM tab2, tab0 AS cor0 WHERE NOT + 16 <= - 50
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif mysql # not compatible
query I rowsort label-9310
SELECT 95 / + - 20 FROM tab2, tab0 AS cor0 WHERE NOT + 16 <= - 50
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * - - col0
----

query I rowsort
SELECT DISTINCT - 26 * + col0 FROM tab1 AS cor0
----
-1326
-2210
-2366

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9313
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9313
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9314
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL - + 51 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + col0 / CAST( NULL AS SIGNED ) ) AND - 56 / + + col0 + col1
----

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL - + 51 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + col0 / CAST ( NULL AS INTEGER ) ) AND - 56 / + + col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - SUM( ALL - 84 ) AS col2 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-9316
SELECT - SUM ( ALL - 84 ) AS col2 FROM tab2 AS cor0
----
252

query I rowsort
SELECT ALL + col2 * col0 + - col1 AS col0 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT - COUNT( ALL + 47 ) + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - COUNT ( ALL + 47 ) + COUNT ( * ) AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = - 97 AND col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL - 46 * COUNT( * ) - 1 FROM tab1
----
-139

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - 46 * COUNT ( * ) - 1 FROM tab1
----
-139

query I rowsort
SELECT + col2 * + 42 * - col0 + + col1 AS col2 FROM tab2 AS cor0
----
-107443
-182633
-44385

query I rowsort
SELECT ALL ( col1 ) FROM tab0 AS cor0 WHERE ( NOT ( col0 + + 16 NOT BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT + ( - + 19 ) + + + col0 FROM tab0 AS cor0
----
-4
68
78

query I rowsort
SELECT ALL - ( + col2 ) * + + ( - + col1 ) - - + col1 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col1 - + col2 IS NULL
----

query I rowsort
SELECT + + 3 * - 19 * + 55 AS col0 FROM tab1 AS cor0
----
-3135
-3135
-3135

onlyif mysql # DIV for integer division: 
query I rowsort label-9327
SELECT ALL col0 DIV col1 * + col0 - + - col2 + + ( - + 0 ) * + - 63 FROM tab1 AS cor0
----
1504
159
249

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL col0 / col1 * + col0 - + - col2 + + ( - + 0 ) * + - 63 FROM tab1 AS cor0
----
1504
159
249

query II rowsort
SELECT DISTINCT + col2 * col1 * - col0, col2 FROM tab1 AS cor0
----
-25075
59
-290836
68
-68544
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col0, 48 FROM tab0 AS cor0
----
10
48
47
48
99
48

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE + 15 / - col2 + - ( + 52 ) < - - col2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col1 FROM tab2 AS cor0
----
57
57
57

query II rowsort
SELECT - 11, + col2 AS col1 FROM tab0 AS cor0
----
-11
10
-11
47
-11
99

query II rowsort
SELECT + col2 * - 51 AS col2, - col2 AS col1 FROM tab1
----
-3009
-59
-3468
-68
-4896
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT + MIN( + 24 ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + MIN ( + 24 ) AS col2 FROM tab2
----
24

query I rowsort
SELECT DISTINCT ( 56 ) * col1 * - - col0 AS col0 FROM tab1
----
23800
239512
39984

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT + col1 + + col0 DIV col2 AS col2 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-9336
SELECT + col1 + + col0 / col2 AS col2 FROM tab1
----
14
48
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( - 90 )
----

query II rowsort
SELECT - + col0 + + col0, + col0 + - 97 AS col0 FROM tab2 cor0
----
0
-22
0
-33
0
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT COUNT( DISTINCT + col2 ) + - - 51 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT COUNT ( DISTINCT + col2 ) + - - 51 FROM tab2
----
54

query I rowsort
SELECT DISTINCT 71 * col0 + - col0 AS col1 FROM tab2
----
3220
4480
5250

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT + col1 DIV + + 93 * - col0 + + - 38 FROM tab1
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-9341
SELECT + col1 / + + 93 * - col0 + + - 38 FROM tab1
----
-38
-38
-38

query I rowsort
SELECT + ( + + col2 ) + - + col1 * - col1 + - 23 FROM tab1 cor0
----
2254
269
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - SUM( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE 60 * - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT - SUM ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE 60 * - col1 > NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + - + col0 * - col0 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT DISTINCT - + 19 / CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT - + 19 / CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT 95 / + COUNT( * ) * - CAST( MIN( ALL - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-9346
SELECT DISTINCT 95 / + COUNT ( * ) * - CAST ( MIN ( ALL - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT DISTINCT - - SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT - - SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL - CAST( - MIN( ( - 58 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - CAST ( - MIN ( ( - 58 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - col2 * - 43 + - col1 FROM tab0
----
1940
409
4256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9351
SELECT ALL + COUNT( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL + COUNT ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9352
SELECT + MAX( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9352
SELECT + MAX ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
-1

query II rowsort
SELECT col0, col1 AS col0 FROM tab2 WHERE - col1 + + col0 + col0 IS NOT NULL
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab0 WHERE col0 = + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT MIN( - 90 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9355
SELECT MIN ( - 90 ) FROM tab1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT - col2 DIV + - col2 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9356
SELECT - col2 / + - col2 AS col0 FROM tab2
----
1
1
1

query II rowsort
SELECT col1, - 6 FROM tab0
----
1
-6
21
-6
81
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9358
SELECT DISTINCT + COUNT( * ) AS col0, 58 col2 FROM tab2
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9358
SELECT DISTINCT + COUNT ( * ) AS col0, 58 col2 FROM tab2
----
3
58

query III rowsort
SELECT ALL * FROM tab1 WHERE - 27 * - col1 + + - col0 * - - col0 >= col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT ALL col0 DIV - col0 + - 39 AS col2 FROM tab1
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL col0 / - col0 + - 39 AS col2 FROM tab1
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 75 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - col0 * + 50 AS col1 FROM tab2 AS cor0
----
117300
246400
251250

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL SUM( ALL - 75 ) FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL SUM ( ALL - 75 ) FROM tab1 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL + ( + SUM( + - 94 ) ) * - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54990

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + ( + SUM ( + - 94 ) ) * - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
54990

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT col0 IN ( + col0 * - col1 + + col1 )
----
-46
-64
-75

query I rowsort
SELECT - - 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + col0 + - + 58 FROM tab0 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT ALL + 34 * ( + col1 ) FROM tab1 AS cor0
----
1598
170
476

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 / - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND + col0 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT + 73 * - + col1 + - - col1 * - col1 + + 98 DIV - col1 + - - col1 * + 66 + - + col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + + 53 IS NULL
----
-1901
-3909
-609

skipif mysql # not compatible
query I rowsort label-9371
SELECT + 73 * - + col1 + - - col1 * - col1 + + 98 / - col1 + - - col1 * + 66 + - + col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + + 53 IS NULL
----
-1901
-3909
-609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col1 FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT + MIN( + 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + MIN ( + 21 ) FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - MAX( DISTINCT + 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9374
SELECT - MAX ( DISTINCT + 62 ) FROM tab0 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - ( - - COUNT( col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9375
SELECT - ( - - COUNT ( col2 ) ) FROM tab2
----
-3

query I rowsort
SELECT - col0 * - 12 AS col2 FROM tab2
----
552
768
900

query I rowsort
SELECT DISTINCT 1 + - - 16 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT + COUNT( col1 ) * 82 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-9378
SELECT + COUNT ( col1 ) * 82 FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL COUNT( - col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9379
SELECT ALL COUNT ( - col0 ) col2 FROM tab2
----
3

query I rowsort
SELECT ALL - col2 * 40 AS col1 FROM tab1
----
-2360
-2720
-3840

query I rowsort
SELECT DISTINCT 28 * + col2 AS col2 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT + ( 99 ) * + - 99 + - 64 + - COUNT( * ) AS col2 FROM tab1
----
-9868

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT + ( 99 ) * + - 99 + - 64 + - COUNT ( * ) AS col2 FROM tab1
----
-9868

query I rowsort
SELECT DISTINCT col0 * - 35 * 51 * - col0 FROM tab2
----
10040625
3777060
7311360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT + CAST( + col0 AS SIGNED ) * + col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9384
SELECT + CAST ( + col0 AS INTEGER ) * + col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL + 82 + col1 FROM tab0
----
103
163
83

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) * 65 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT DISTINCT + - 66 AS col2 FROM tab0 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT + col1 DIV - + col1 + - - col1 * + + col2 FROM tab0 cor0
----
209
3806
98

skipif mysql # not compatible
query I rowsort label-9388
SELECT + col1 / - + col1 + - - col1 * + + col2 FROM tab0 cor0
----
209
3806
98

query I rowsort
SELECT ALL col2 * - col1 * 86 - 75 FROM tab0
----
-18135
-327477
-8589

query I rowsort
SELECT + + 36 * col0 * col0 + 97 AS col2 FROM tab2 AS cor0
----
147553
202597
76273

query II rowsort
SELECT - 79 * - 45, + ( + col1 ) FROM tab2 cor0
----
3555
51
3555
67
3555
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT + 87 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9392
SELECT + 87 - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL - SUM( + + 30 ) AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL - SUM ( + + 30 ) AS col1 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE ( + + 68 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT + SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE ( + + 68 ) <> NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - - ( 43 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9396
SELECT * FROM tab2 WHERE - + col0 + - - col1 - 94 * - CAST( NULL AS DECIMAL ) + col1 - + col2 * - col2 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9396
SELECT * FROM tab2 WHERE - + col0 + - - col1 - 94 * - CAST ( NULL AS REAL ) + col1 - + col2 * - col2 BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab1 WHERE ( NOT - col1 BETWEEN - 21 * + 31 AND + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT - - ( - COUNT( * ) ) col2 FROM tab0 WHERE NOT NULL IN ( - - col1, col2 * - + col0, + col2 + - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9398
SELECT - - ( - COUNT ( * ) ) col2 FROM tab0 WHERE NOT NULL IN ( - - col1, col2 * - + col0, + col2 + - col2 )
----
0

query II rowsort
SELECT col0 AS col2, 4 + + col2 * col0 * - col2 AS col2 FROM tab0
----
15
-33131
87
-8696
97
-950693

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT col1 IN ( - col2, + 75 / - 31 )
----
51
67
77

query I rowsort
SELECT col2 * + 30 + 21 FROM tab2 AS cor0
----
1221
1761
711

query II rowsort
SELECT ALL - 98 AS col0, col2 FROM tab2
----
-98
23
-98
40
-98
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT + + COUNT( * ) * + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9403
SELECT + + COUNT ( * ) * + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT SUM( ALL + - 8 ) AS col2 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9404
SELECT SUM ( ALL + - 8 ) AS col2 FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT 6 AS col1, COUNT( + col2 ) FROM tab0 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-9405
SELECT 6 AS col1, COUNT ( + col2 ) FROM tab0 AS cor0
----
6
3

query I rowsort
SELECT DISTINCT + - 69 AS col2 FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) * - + SUM( ALL + 81 ) FROM tab0 AS cor0
----
-3
-729

skipif mysql # not compatible
query II rowsort label-9407
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) * - + SUM ( ALL + 81 ) FROM tab0 AS cor0
----
-3
-729

query I rowsort
SELECT DISTINCT - - 41 + col0 + 14 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
101
119
130

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT + + 58 DIV - 72 + + col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9409
SELECT + + 58 / - 72 + + col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + ( - 8 ) FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9411
SELECT DISTINCT 12 + - col2 - + - 26 * - 97 + + col1 DIV + col2 FROM tab2
----
-2531
-2549
-2567

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT 12 + - col2 - + - 26 * - 97 + + col1 / + col2 FROM tab2
----
-2531
-2549
-2567

query I rowsort
SELECT ALL - col1 + - 67 AS col0 FROM tab2
----
-118
-134
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT CAST( + + col0 AS SIGNED ) * + + col2 + - + ( + 49 ) * 89 * - col0 + + + col1 * - 35 AS col2 FROM tab1
----
226817
375525
401394

skipif mysql # not compatible
query I rowsort label-9413
SELECT CAST ( + + col0 AS INTEGER ) * + + col2 + - + ( + 49 ) * 89 * - col0 + + + col1 * - 35 AS col2 FROM tab1
----
226817
375525
401394

query I rowsort
SELECT DISTINCT + ( ( + - col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col0 + 30 FROM tab1
----
-21
-55
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT DISTINCT - COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT - COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9417
SELECT DISTINCT SUM( DISTINCT col0 ) AS col1, 80 AS col1 FROM tab1 AS cor0
----
227
80

skipif mysql # not compatible
query II rowsort label-9417
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col1, 80 AS col1 FROM tab1 AS cor0
----
227
80

query I rowsort
SELECT DISTINCT 29 + col1 AS col1 FROM tab1
----
34
43
76

query I rowsort
SELECT DISTINCT col0 * - col1 * - 73 - + col0 FROM tab1
----
30940
312130
52071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9420
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - + + 96 col1 FROM tab0 AS cor0
----
-117
-177
-97

query I rowsort
SELECT DISTINCT + col1 * + 86 AS col2 FROM tab2 AS cor0
----
4386
5762
6622

query I rowsort
SELECT - col1 + 99 FROM tab0 AS cor0
----
18
78
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9424
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col0, col0, - col2 * ( CAST( NULL AS SIGNED ) ) * - 20 * col2, - 59 - + 59 + - 15 * ( col2 ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-9424
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col0, col0, - col2 * ( CAST ( NULL AS INTEGER ) ) * - 20 * col2, - 59 - + 59 + - 15 * ( col2 ), - col1 )
----

query I rowsort
SELECT ALL - col0 - + 17 AS col0 FROM tab0 AS cor0
----
-104
-114
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col2 col2 FROM tab2 cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9427
SELECT ALL col0 * 69 AS col0, - col2 * + ( + ( - CAST( - col0 AS SIGNED ) ) ) AS col1 FROM tab2
----
3174
-1058
4416
-2560
5175
-4350

skipif mysql # not compatible
query II rowsort label-9427
SELECT ALL col0 * 69 AS col0, - col2 * + ( + ( - CAST ( - col0 AS INTEGER ) ) ) AS col1 FROM tab2
----
3174
-1058
4416
-2560
5175
-4350

query I rowsort
SELECT ALL + 25 AS col1 FROM tab1 WHERE NOT + col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL CAST( - - AVG ( + col1 ) AS SIGNED ) * + COUNT( ALL col0 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL CAST ( - - AVG ( + col1 ) AS INTEGER ) * + COUNT ( ALL col0 ) AS col1 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT col0 DIV col1 col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT col0 / col1 col2 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT DISTINCT - col0 DIV 13 AS col1 FROM tab1
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - col0 / 13 AS col1 FROM tab1
----
-3
-6
-7

query I rowsort
SELECT 98 * - col1 AS col2 FROM tab0
----
-2058
-7938
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 24 NOT BETWEEN NULL AND + col0 + - 84 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT ( + + SUM( 25 ) ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9434
SELECT DISTINCT ( + + SUM ( 25 ) ) col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 > + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 36 * - col1 AS col0 FROM tab2 AS cor0
----
1836
2412
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT DISTINCT MAX( DISTINCT - - CAST( + + 45 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT MAX ( DISTINCT - - CAST ( + + 45 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
45

query I rowsort
SELECT - 4 * - - 95 FROM tab2
----
-380
-380
-380

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL COUNT( - 30 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9440
SELECT ALL COUNT ( - 30 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - - MAX( + col0 ) + + + 18 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL AND NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - - MAX ( + col0 ) + + + 18 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL AND NOT col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL + - CAST( - SUM( ALL col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + - CAST ( - SUM ( ALL col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
227

query II rowsort
SELECT DISTINCT + - 28 AS col1, + 73 FROM tab0 AS cor0
----
-28
73

query I rowsort
SELECT ALL ( 93 ) - + col1 + - col2 + ( - + col1 ) / - col2 FROM tab2 WHERE NULL <= col0
----

query I rowsort
SELECT DISTINCT col1 + 31 AS col0 FROM tab1
----
36
45
78

query I rowsort
SELECT DISTINCT + col0 + + + 1 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT 69, - COUNT( DISTINCT - col1 ) AS col1 FROM tab0
----
69
-3

skipif mysql # not compatible
query II rowsort label-9447
SELECT 69, - COUNT ( DISTINCT - col1 ) AS col1 FROM tab0
----
69
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - COUNT( * ) + - 78 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9448
SELECT - COUNT ( * ) + - 78 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT - CAST( NULL AS SIGNED ) + + 94 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT - CAST ( NULL AS INTEGER ) + + 94 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT SUM( col2 ) AS col0 FROM tab0 WHERE - col1 * + col0 BETWEEN CAST( + 18 AS SIGNED ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT SUM ( col2 ) AS col0 FROM tab0 WHERE - col1 * + col0 BETWEEN CAST ( + 18 AS INTEGER ) AND col1
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9452
SELECT DISTINCT COUNT( * ) + ( + MAX( + col1 ) ) - + 68 DIV COUNT( * ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT COUNT ( * ) + ( + MAX ( + col1 ) ) - + 68 / COUNT ( * ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + col1 - + - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 3 col0 FROM tab1 AS cor0 WHERE NULL <= ( col0 ) * - + col2
----

query I rowsort
SELECT + + col2 - + col2 + + ( col2 ) * - col2 * - + col2 FROM tab2 AS cor0
----
12167
195112
64000

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + - 23 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9456
SELECT + - 23 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT - 28 * + - 41 * MAX( col2 ) FROM tab1 AS cor0
----
110208

skipif mysql # not compatible
query I rowsort label-9457
SELECT - 28 * + - 41 * MAX ( col2 ) FROM tab1 AS cor0
----
110208

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 69 * + - col1 + + - ( 83 ) FROM tab0 AS cor0
----
-152
-1532
-5672

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT - COUNT( * ) * - 52 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT - COUNT ( * ) * - 52 FROM tab1
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col2 FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT + SUM( DISTINCT - 22 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT + SUM ( DISTINCT - 22 ) FROM tab1
----
-22

query I rowsort
SELECT ALL + - 16 FROM tab2 cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT 5 FROM tab0 AS cor0 WHERE NOT + 36 * - + 28 <= - CAST( 96 AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-9464
SELECT 5 FROM tab0 AS cor0 WHERE NOT + 36 * - + 28 <= - CAST ( 96 AS INTEGER ) + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 36 col0, - col2 + + 54 AS col1 FROM tab0 AS cor0
----
36
-45
36
44
36
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9466
SELECT ALL - + 55 DIV + ( + + 98 ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-9466
SELECT ALL - + 55 / + ( + + 98 ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + SUM( 49 ) AS col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-9467
SELECT + SUM ( 49 ) AS col1 FROM tab0 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT - 86 * - - COUNT( * ) FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-9468
SELECT - 86 * - - COUNT ( * ) FROM tab1
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT - ( + CAST( + + col2 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9469
SELECT - ( + CAST ( + + col2 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL MAX( + + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL MAX ( + + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9471
SELECT + col2 DIV - col1 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-1
-47
-11
-5
-6
-14

skipif mysql # not compatible
query II rowsort label-9471
SELECT + col2 / - col1 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-1
-47
-11
-5
-6
-14

query I rowsort
SELECT ALL - + col2 + + + 97 FROM tab2 AS cor0 WHERE ( NULL ) < - - col2 * - col1 * + + 3 + - 67 * + - col0
----

query II rowsort
SELECT - 24 + - col2, col0 FROM tab1 AS cor0
----
-120
51
-83
85
-92
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT - col0 + 99 * - 71 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT - col0 + 99 * - 71 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL NOT IN ( - col1, 3 + - col1, col0 )
----

query I rowsort
SELECT + 49 * + ( + + 10 ) + 33 FROM tab2
----
523
523
523

query I rowsort
SELECT ALL + col2 + - + col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT + 79 + + + 59 FROM tab0
----
138

query II rowsort
SELECT DISTINCT col2 AS col0, - 4 AS col1 FROM tab2
----
23
-4
40
-4
58
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT MAX( DISTINCT - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9480
SELECT MAX ( DISTINCT - + col0 ) FROM tab2
----
-46

query II rowsort
SELECT + 95 AS col1, + 31 AS col1 FROM tab0
----
95
31
95
31
95
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND col2
----

query II rowsort
SELECT col0, - 39 * + col1 AS col1 FROM tab0 AS cor0
----
15
-3159
87
-819
97
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL + 65 * - COUNT( * ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + 65 * - COUNT ( * ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL 80 * - MIN( + ( + 19 ) ) FROM tab2 AS cor0
----
-1520

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL 80 * - MIN ( + ( + 19 ) ) FROM tab2 AS cor0
----
-1520

query I rowsort
SELECT - col2 - col2 + - col2 - 39 * - 61 AS col1 FROM tab0
----
2082
2238
2349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 - 6 col1 FROM tab2
----
13
13
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9488
SELECT CAST( NULL AS DECIMAL ) + - + col2 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT CAST ( NULL AS REAL ) + - + col2 * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT - COUNT( * ) + + 87 AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT - COUNT ( * ) + + 87 AS col1 FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9490
SELECT + 37 * - - 15 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT + 37 * - - 15 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 12 AS col1 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 14 col0 FROM tab1 AS cor0
----
14

query II rowsort
SELECT ALL + + 29, - col1 * - - 76 AS col2 FROM tab2 AS cor0
----
29
-3876
29
-5092
29
-5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT - MAX( + CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-9495
SELECT - MAX ( + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( + 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT col0 * + CAST( - 65 AS SIGNED ) FROM tab2
----
-2990
-4160
-4875

skipif mysql # not compatible
query I rowsort label-9497
SELECT col0 * + CAST ( - 65 AS INTEGER ) FROM tab2
----
-2990
-4160
-4875

query I rowsort
SELECT DISTINCT + ( + col1 ) * + - 83 * + + 29 FROM tab2
----
-122757
-161269
-185339

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL + COUNT( * ) * - + 60 * + 3 col1 FROM tab1
----
-540

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9499
SELECT ALL + COUNT ( * ) * - + 60 * + 3 col1 FROM tab1
----
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 43 col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col1 ) - 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT CAST( NULL AS SIGNED ) + - - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT CAST ( NULL AS INTEGER ) + - - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT ALL + 67 DIV + col1 - col0 + + col0 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + 67 / + col1 - col0 + + col0 FROM tab1 AS cor0
----
1
13
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9505
SELECT + ( MAX( - + col0 ) ) DIV - COUNT( DISTINCT - + col0 ) - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9505
SELECT + ( MAX ( - + col0 ) ) / - COUNT ( DISTINCT - + col0 ) - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT DISTINCT 20 DIV COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT 20 / COUNT ( * ) FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + MIN( DISTINCT + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9507
SELECT + MIN ( DISTINCT + col0 ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9508
SELECT - ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT - ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - - col1 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE col2 > - 37 * - 45
----

query II rowsort
SELECT ALL 82 + - - col2 AS col1, - col2 AS col2 FROM tab0
----
129
-47
181
-99
92
-10

query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - COUNT( * ) * 31 - COUNT( * ) col1 FROM tab2
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9513
SELECT - COUNT ( * ) * 31 - COUNT ( * ) col1 FROM tab2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT DISTINCT col2 DIV + col1 * - - col0 + col0 * col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT col2 / + col1 * - - col0 + col0 * col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT - col2 DIV + 43 + 69 FROM tab0
----
67
68
69

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - col2 / + 43 + 69 FROM tab0
----
67
68
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + + col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT + + COUNT( * ) - - MAX( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT + + COUNT ( * ) - - MAX ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT + + col2 + + CAST( + + col2 AS SIGNED ) + + + ( - 88 ) + + col1 AS col1 FROM tab1 cor0
----
118
35
95

skipif mysql # not compatible
query I rowsort label-9518
SELECT + + col2 + + CAST ( + + col2 AS INTEGER ) + + + ( - 88 ) + + col1 AS col1 FROM tab1 cor0
----
118
35
95

query I rowsort
SELECT col1 * 93 AS col0 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT DISTINCT 13 + - COUNT( * ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT 13 + - COUNT ( * ) AS col0 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9522
SELECT + COUNT( * ), + COUNT( * ) - + 48 + - COUNT( ALL + 8 ) col0 FROM tab2
----
3
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9522
SELECT + COUNT ( * ), + COUNT ( * ) - + 48 + - COUNT ( ALL + 8 ) col0 FROM tab2
----
3
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - MIN( DISTINCT + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - MIN ( DISTINCT + col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9524
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + + col2 ) ) * - col1 + 56 NOT BETWEEN + - col1 * - 80 * + - col1 / + - 53 AND col2 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9524
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + + col2 ) ) * - col1 + 56 NOT BETWEEN + - col1 * - 80 * + - col1 / + - 53 AND col2 - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( - ( - ( + col0 ) ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT + MIN( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + MIN ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT - + ( - - CAST( + - COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9527
SELECT - + ( - - CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT 2 / - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + 73 < ( - 20 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT 2 / - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + 73 < ( - 20 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL 73 * - COUNT( * ) AS col1 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL 73 * - COUNT ( * ) AS col1 FROM tab2
----
-219

query II rowsort
SELECT ALL - col2 AS col0, 18 AS col1 FROM tab1
----
-59
18
-68
18
-96
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL col1 * + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL col1 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT + COUNT( * ) * + COUNT( * ) AS col2, + 32 FROM tab1
----
9
32

skipif mysql # not compatible
query II rowsort label-9533
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2, + 32 FROM tab1
----
9
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * col0 col2, + 83 AS col0 FROM tab2
----
2116
83
4096
83
5625
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9535
SELECT - + ( - + 69 ) DIV + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9535
SELECT - + ( - + 69 ) / + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + + 61 + - col0 FROM tab1 AS cor0
----
-24
-30
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT MIN( col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col1 + - col2 + - 91 FROM tab1
----
-112
-145
-173

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT 25 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 39 FROM tab2
----
-25
-36
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT - 19 + + + COUNT( * ) col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9541
SELECT DISTINCT - 19 + + + COUNT ( * ) col0 FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT DISTINCT + + MIN( DISTINCT + + col2 ), COUNT( * ) + - 46 AS col0 FROM tab0 AS cor0
----
10
-43

skipif mysql # not compatible
query II rowsort label-9542
SELECT DISTINCT + + MIN ( DISTINCT + + col2 ), COUNT ( * ) + - 46 AS col0 FROM tab0 AS cor0
----
10
-43

query I rowsort
SELECT DISTINCT 5 * - 26 + + 90 + col0 * + 69 FROM tab2
----
3134
4376
5135

query I rowsort
SELECT col0 * col2 + - col0 - - - 17 AS col1 FROM tab2 WHERE col1 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9545
SELECT - ( col2 ) * + - 73 * CAST( NULL AS SIGNED ) AS col2, + col1 + - col2 FROM tab0
----
NULL
-98
NULL
11
NULL
34

skipif mysql # not compatible
query II rowsort label-9545
SELECT - ( col2 ) * + - 73 * CAST ( NULL AS INTEGER ) AS col2, + col1 + - col2 FROM tab0
----
NULL
-98
NULL
11
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT DISTINCT + MIN( DISTINCT col0 ) - COUNT( - col2 ) col2 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9546
SELECT DISTINCT + MIN ( DISTINCT col0 ) - COUNT ( - col2 ) col2 FROM tab2
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-9547
SELECT + col0, col2 DIV - col1 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-9547
SELECT + col0, col2 / - col1 FROM tab2
----
46
0
64
0
75
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 / + col0 * - col1 * + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT DISTINCT + col0 * + 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-9549
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL + ( + COUNT( DISTINCT col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + ( + COUNT ( DISTINCT col2 ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE + 54 * - 99 >= - col2
----

query I rowsort
SELECT 34 + 15 AS col1 FROM tab1
----
49
49
49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + col0 < ( + 16 ) + - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9556
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - - col0 NOT BETWEEN - col2 * CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9556
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - - col0 NOT BETWEEN - col2 * CAST ( NULL AS REAL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 38 IN ( - col1 / 39 + col1 )
----

query I rowsort
SELECT + col1 * - col0 + col2 AS col2 FROM tab2 WHERE + col2 * 53 >= col0 - col0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT 83 * 41 + + COUNT( * ) FROM tab0
----
3406

skipif mysql # not compatible
query I rowsort label-9559
SELECT 83 * 41 + + COUNT ( * ) FROM tab0
----
3406

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - 88 - - COUNT( * ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 88 - - COUNT ( * ) FROM tab1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - COUNT( * ) - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9561
SELECT - COUNT ( * ) - + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL + col2 + 71 AS col1 FROM tab1
----
130
139
167

query I rowsort
SELECT DISTINCT + 98 + - col0 AS col0 FROM tab1
----
13
47
7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9564
SELECT * FROM tab2 WHERE NOT - CAST( - 8 AS DECIMAL ) - + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9564
SELECT * FROM tab2 WHERE NOT - CAST ( - 8 AS REAL ) - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL - MIN( DISTINCT col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT ALL - col0 * col1 + col1 FROM tab1 WHERE NOT NULL NOT IN ( col0 + 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT col1 + 40 DIV 39 AS col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-9569
SELECT col1 + 40 / 39 AS col1 FROM tab0
----
2
22
82

query I rowsort
SELECT 69 + - col1 AS col1 FROM tab0 AS cor0
----
-12
48
68

query I rowsort
SELECT ALL + 67 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
2413
4995
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT - CAST( NULL AS SIGNED ) + CAST( 43 + ( 4 ) * col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9572
SELECT - CAST ( NULL AS INTEGER ) + CAST ( 43 + ( 4 ) * col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + 90 AS col1 FROM tab1
----
43
76
85

query I rowsort
SELECT DISTINCT col2 * + col1 AS col2 FROM tab2 WHERE ( NULL ) >= + 13
----

query I rowsort
SELECT - ( ( - col2 ) ) + col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT 18 + + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9576
SELECT 18 + + COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT + col2 + + ( col1 ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT - 38 + + COUNT( * ) * - 52 AS col2 FROM tab0
----
-194

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - 38 + + COUNT ( * ) * - 52 AS col2 FROM tab0
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( ALL - col1 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( ALL - col1 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT - ( COUNT( DISTINCT col0 ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9582
SELECT DISTINCT - ( COUNT ( DISTINCT col0 ) ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col1 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 68 AS col2 FROM tab0 AS cor0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 + + col2 )
----

query I rowsort
SELECT DISTINCT - + col2 - + 52 AS col1 FROM tab0 AS cor0
----
-151
-62
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT - COUNT( * ) + - 80 FROM tab1 AS cor0 WHERE + 76 BETWEEN ( - 0 * - col2 ) AND NULL
----
-80

skipif mysql # not compatible
query I rowsort label-9587
SELECT - COUNT ( * ) + - 80 FROM tab1 AS cor0 WHERE + 76 BETWEEN ( - 0 * - col2 ) AND NULL
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT + col1 DIV + 96 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT + col1 / + 96 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 74 * - col2 AS col0 FROM tab1 AS cor0
----
-4366
-5032
-7104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT + - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9590
SELECT + - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 * + 56 col0 FROM tab2 cor0 WHERE NOT ( NULL ) < 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT + 58 * col1 AS col1 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) <> - col2
----

skipif mysql # not compatible
query I rowsort label-9592
SELECT + 58 * col1 AS col1 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT col2 DIV col2 - col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-9593
SELECT col2 / col2 - col0 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - COUNT( * ) - + SUM( 89 ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-9594
SELECT - COUNT ( * ) - + SUM ( 89 ) FROM tab0
----
-270

query I rowsort
SELECT + col2 - - ( col2 ) AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT col0 + - 15 FROM tab2
----
31
49
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9597
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9597
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * - + col1 col0 FROM tab2
----
-3825
-5025
-5775

query I rowsort
SELECT DISTINCT + 62 + + + col2 AS col0 FROM tab1
----
121
130
158

query I rowsort
SELECT ALL col2 * - + col2 + - col2 FROM tab1
----
-3540
-4692
-9312

query I rowsort
SELECT ALL + ( + 32 ) - + 77 FROM tab0
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT ALL CAST( col1 AS SIGNED ) + - col0 FROM tab1 WHERE col2 IS NULL OR NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL CAST ( col1 AS INTEGER ) + - col0 FROM tab1 WHERE col2 IS NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL ( ( 67 ) ) - + 67 * + col2 FROM tab0
----
-3082
-603
-6566

query I rowsort
SELECT - 67 / col1 - - 93 AS col1 FROM tab1 WHERE ( - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 AS cor0 WHERE col1 * col2 + col2 >= col0
----
-51
-85
-91

query I rowsort
SELECT - - col1 * col0 * col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT - CAST( - - 95 AS SIGNED ) FROM tab2 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-9607
SELECT - CAST ( - - 95 AS INTEGER ) FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL + col1 * col1 * 53 + - 87 AS col1 FROM tab2 AS cor0
----
137766
237830
314150

query I rowsort
SELECT DISTINCT 54 + col0 AS col1 FROM tab0 AS cor0 WHERE ( col1 - - col0 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT DISTINCT 8 DIV col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT 8 / col1 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT ALL - - COUNT( * ) AS col1, COUNT( * ) col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9612
SELECT ALL - - COUNT ( * ) AS col1, COUNT ( * ) col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9613
SELECT + 75 col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9613
SELECT + 75 col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
75
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) - ( 72 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - ( 72 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + MIN( - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9615
SELECT + MIN ( - + col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT DISTINCT - - col2 AS col2, - ( + col0 ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL - 53 FROM tab2 AS cor0 WHERE NOT ( - col0 + + col0 * col2 ) IS NULL
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + MAX( DISTINCT - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9618
SELECT + MAX ( DISTINCT - col2 ) FROM tab0 cor0
----
-10

query II rowsort
SELECT DISTINCT - - col0 AS col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 32 + + - 56 IS NOT NULL
----

query I rowsort
SELECT 93 + + col0 FROM tab2
----
139
157
168

query I rowsort
SELECT - 98 + col1 AS col1 FROM tab1
----
-51
-84
-93

query I rowsort
SELECT col1 + col2 + - - col1 AS col0 FROM tab2
----
125
192
194

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 81 * + col1 / - col1 < + col2 * col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) < - col1 * + ( + 53 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9625
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) < - col1 * + ( + 53 )
----
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) >= ( col1 )
----
97

query I rowsort
SELECT ALL - 13 * + + col0 FROM tab0
----
-1131
-1261
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL COUNT( * ) + + - MIN( DISTINCT - + 97 ) AS col1 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL COUNT ( * ) + + - MIN ( DISTINCT - + 97 ) AS col1 FROM tab2
----
100

query I rowsort
SELECT DISTINCT col2 + - 6 AS col2 FROM tab2 AS cor0
----
17
34
52

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 6 * + col1 FROM tab0 AS cor0
----
126
486
6

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 42
----

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT * FROM tab0 WHERE - + col1 - + ( + 38 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT + col1 DIV + + col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9636
SELECT + col1 / + + col1 AS col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 * - col2 col1 FROM tab1
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query II rowsort label-9638
SELECT ALL col1, - col0 DIV 88 AS col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-9638
SELECT ALL col1, - col0 / 88 AS col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL SUM( DISTINCT ( + + col2 ) ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL SUM ( DISTINCT ( + + col2 ) ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT CAST( NULL AS SIGNED ) * + + 90 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT CAST ( NULL AS INTEGER ) * + + 90 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT + COUNT( * ) AS col1, COUNT( * ) + + COUNT( * ) AS col0 FROM tab1
----
3
6

skipif mysql # not compatible
query II rowsort label-9641
SELECT + COUNT ( * ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1
----
3
6

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + 32 - + 62 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 61 + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT DISTINCT + MIN( ALL + col2 ) AS col1, - COUNT( DISTINCT + 44 ) - COUNT( * ) AS col2 FROM tab1
----
59
-4

skipif mysql # not compatible
query II rowsort label-9644
SELECT DISTINCT + MIN ( ALL + col2 ) AS col1, - COUNT ( DISTINCT + 44 ) - COUNT ( * ) AS col2 FROM tab1
----
59
-4

query I rowsort
SELECT + 69 * - 24 AS col1 FROM tab2
----
-1656
-1656
-1656

query I rowsort
SELECT ALL - - 28 AS col0 FROM tab2 cor0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 17 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT - 25 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN ( + + ( + + col1 ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9649
SELECT - 25 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN ( + + ( + + col1 ) ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL COUNT( * ) * - COUNT( * ) + - AVG ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE - 30 BETWEEN col2 AND ( + col0 * + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - AVG ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE - 30 BETWEEN col2 AND ( + col0 * + - col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 84 * + - col0 / col2 + ( - + col0 ) + + col1 * - 79 NOT BETWEEN col2 * col1 AND col0 + + col2 * - 50
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * col1 IS NOT NULL
----

query I rowsort
SELECT 40 AS col0 FROM tab1 cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT DISTINCT - 1 + - + 3 DIV - col2 col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9655
SELECT DISTINCT - 1 + - + 3 / - col2 col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - 20 * + col0 + - col1 FROM tab0 WHERE ( 9 ) = col1
----

query II rowsort
SELECT DISTINCT 65 AS col2, + col2 + - col1 + + 27 * col2 AS col2 FROM tab2 WHERE 66 = 47 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT 79 AS col1 FROM tab0 WHERE ( - 28 * - col2 - - col2 ) <> - col1 * - - col2 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9658
SELECT 79 AS col1 FROM tab0 WHERE ( - 28 * - col2 - - col2 ) <> - col1 * - - col2 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 91 * col0 AS col1 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT - + col2 + - 4 AS col2 FROM tab0 AS cor0
----
-103
-14
-51

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL <= NULL )
----

query II rowsort
SELECT DISTINCT - col2 + + - col1 AS col0, col1 FROM tab0
----
-100
1
-128
81
-31
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9663
SELECT DISTINCT - 14 * - col2 DIV CAST( - ( col2 ) AS SIGNED ) + - col1 FROM tab2
----
-65
-81
-91

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - 14 * - col2 / CAST ( - ( col2 ) AS INTEGER ) + - col1 FROM tab2
----
-65
-81
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - SUM( col2 ) * MAX( - + col0 ) * - - MIN( - 38 ) + + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE ( 21 ) = - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT - SUM ( col2 ) * MAX ( - + col0 ) * - - MIN ( - 38 ) + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE ( 21 ) = - 62
----
NULL

query I rowsort
SELECT - - ( - + ( ( + col0 ) ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT ALL - 21 * + + 42 - - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-783
-835
-872

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - 21 * + + 42 - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-783
-835
-872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col1 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT - col0 - - + col1 + + - col2 * + col2 FROM tab1 AS cor0
----
-3561
-4668
-9253

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9669
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9669
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9670
SELECT col2 - - 80 AS col0, - CAST( 88 AS SIGNED ) FROM tab0 AS cor0
----
127
-88
179
-88
90
-88

skipif mysql # not compatible
query II rowsort label-9670
SELECT col2 - - 80 AS col0, - CAST ( 88 AS INTEGER ) FROM tab0 AS cor0
----
127
-88
179
-88
90
-88

query II rowsort
SELECT + + 65, + col2 + col2 * + col1 FROM tab0 WHERE NOT + + col2 * - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT ALL - 89 AS col0, MAX( col0 ) AS col1 FROM tab0 WHERE NOT + col2 + + col1 IS NOT NULL
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-9672
SELECT ALL - 89 AS col0, MAX ( col0 ) AS col1 FROM tab0 WHERE NOT + col2 + + col1 IS NOT NULL
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT - SUM( - - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT - SUM ( - - col2 ) FROM tab2
----
-121

query I rowsort
SELECT ALL + 41 * col2 FROM tab0
----
1927
4059
410

query I rowsort
SELECT ( + - col0 ) * + col0 * - + col2 FROM tab0
----
10575
75690
931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 44 * + 21 col0 FROM tab1
----
-47124
-78540
-84084

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT - SUM( 61 ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-9677
SELECT - SUM ( 61 ) FROM tab0 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT + + ( - + MIN( ALL + col0 ) ) * - 18 FROM tab1 AS cor0
----
918

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT + + ( - + MIN ( ALL + col0 ) ) * - 18 FROM tab1 AS cor0
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT MAX( DISTINCT + 5 ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9679
SELECT MAX ( DISTINCT + 5 ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT 1 * + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL 3 * - ( - + 55 ) AS col0 FROM tab2 AS cor0
----
165
165
165

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + 65 + + 5 IN ( col1 )
----
51
85
91

query II rowsort
SELECT - col2, - col1 * + + 13 AS col0 FROM tab0 AS cor0
----
-10
-273
-47
-1053
-99
-13

query I rowsort
SELECT - 80 * - 81 FROM tab1 AS cor0
----
6480
6480
6480

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 63
----

query I rowsort
SELECT ALL + col2 + + 94 AS col0 FROM tab1 AS cor0
----
153
162
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT DISTINCT - 72 + - COUNT( * ) DIV + 47 AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - 72 + - COUNT ( * ) / + 47 AS col0 FROM tab1
----
-72

query III rowsort
SELECT * FROM tab2 WHERE + 38 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9689
SELECT DISTINCT + 40 DIV - SUM( - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + 40 / - SUM ( - col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT - 0 * - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT - 0 * - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL - MIN( + col1 ) FROM tab2 AS cor0 WHERE NOT - 81 + + col0 NOT BETWEEN 54 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL - MIN ( + col1 ) FROM tab2 AS cor0 WHERE NOT - 81 + + col0 NOT BETWEEN 54 AND NULL
----
NULL

query I rowsort
SELECT - + col1 * + + ( - + col1 ) FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE col2 * + + 47 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT ALL col0 DIV - col0 - + col2 + + col2 * - - col1 FROM tab2
----
1149
3039
3827

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL col0 / - col0 - + col2 + + col2 * - - col1 FROM tab2
----
1149
3039
3827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9695
SELECT DISTINCT * FROM tab0 WHERE CAST( + 56 AS SIGNED ) BETWEEN + 26 AND NULL AND NOT NULL BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-9695
SELECT DISTINCT * FROM tab0 WHERE CAST ( + 56 AS INTEGER ) BETWEEN + 26 AND NULL AND NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL + 22 + - col0 AS col2 FROM tab2 cor0 WHERE - col1 * + + col2 < + 50
----
-24
-42
-53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 17 - + col2 IN ( + col2, - col0, - - col1, - col0 )
----

query I rowsort
SELECT col0 + - 17 FROM tab2 AS cor0
----
29
47
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9699
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( + - 35 AS SIGNED ) - - 37 * col1 * - col1 NOT IN ( - ( 74 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9699
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( + - 35 AS INTEGER ) - - 37 * col1 * - col1 NOT IN ( - ( 74 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9702
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT 84 * + 15 AS col0, 22 FROM tab1
----
1260
22
1260
22
1260
22

query I rowsort
SELECT + col1 * - col0 * + col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT col1 DIV col1 * col1 * - col1 AS col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9705
SELECT col1 / col1 * col1 * - col1 AS col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL MIN( + - 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL MIN ( + - 45 ) FROM tab1
----
-45

query I rowsort
SELECT ALL + col0 * - ( - + col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL col0 * + - 2 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - 91 * + + COUNT( * ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-9709
SELECT - 91 * + + COUNT ( * ) FROM tab0
----
-273

query I rowsort
SELECT ALL col2 * + 8 * ( + col0 ) FROM tab0
----
5640
6960
76824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT ALL - col1 + + 67 AS col1 FROM tab2 WHERE + - col0 * - col1 - 88 * col1 * ( + - col2 ) BETWEEN 54 * + - CAST( - 13 AS SIGNED ) AND - col1 + col1 / 90 * 41
----

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL - col1 + + 67 AS col1 FROM tab2 WHERE + - col0 * - col1 - 88 * col1 * ( + - col2 ) BETWEEN 54 * + - CAST ( - 13 AS INTEGER ) AND - col1 + col1 / 90 * 41
----

query II rowsort
SELECT + + col2 * - 46 AS col2, + col0 * 73 + - col0 AS col0 FROM tab0 AS cor0
----
-2162
1080
-4554
6984
-460
6264

query I rowsort
SELECT + col0 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT + COUNT( ( - 80 ) ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT + COUNT ( ( - 80 ) ) AS col0 FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + col2 ) * - - ( 9 ) >= - col1
----

query I rowsort
SELECT ALL + 67 AS col0 FROM tab2 cor0
----
67
67
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9717
SELECT ALL MIN( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL MIN ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT - 62 DIV + col1 + + - 1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9718
SELECT - 62 / + col1 + + - 1 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT DISTINCT - MAX( DISTINCT + 44 ) col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9719
SELECT DISTINCT - MAX ( DISTINCT + 44 ) col0 FROM tab0 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col0, col2 - - 58 FROM tab1
----
59
117
68
126
96
154

query II rowsort
SELECT ALL + + 67 AS col2, + col0 FROM tab1 WHERE - col2 IS NOT NULL
----
67
51
67
85
67
91

query I rowsort
SELECT col1 * - col2 * + + 51 FROM tab1
----
-15045
-162996
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT + col2 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT + col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + - col1 ) * + ( 61 ) AS col2 FROM tab1 WHERE + 92 IS NOT NULL
----
-2867
-305
-854

query I rowsort
SELECT DISTINCT + 28 * - - col2 + - col1 FROM tab2 AS cor0
----
1043
1557
593

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT - SUM( ALL + + col1 ) + + + 82 FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9727
SELECT - SUM ( ALL + + col1 ) + + + 82 FROM tab0 cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < - col0 * - col1 * - 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9729
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT + 64 >= ( + + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT + 64 >= ( + + col2 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 col0 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL - MIN( ALL 87 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - MIN ( ALL 87 ) FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT DISTINCT - COUNT( ALL - + 1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT - COUNT ( ALL - + 1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - 6 * + col0 FROM tab2 AS cor0
----
276
384
450

query II rowsort
SELECT DISTINCT + col1 * + - col0 AS col1, col2 FROM tab2 cor0
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT DISTINCT - 64 + + col1 AS col1 FROM tab1 WHERE NOT - + col2 + + - 33 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - 94 + - - 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT COUNT( * ) * 54 AS col2 FROM tab0, tab0 AS cor0
----
486

skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( * ) * 54 AS col2 FROM tab0, tab0 AS cor0
----
486

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 62 <= - - 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT + COUNT( * ) * + - COUNT( * ) * - - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9740
SELECT + COUNT ( * ) * + - COUNT ( * ) * - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 + + 63 BETWEEN + 22 / - col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL COUNT( - col1 ) * - 88 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-264

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL COUNT ( - col1 ) * - 88 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-264

query I rowsort
SELECT ALL + 41 * + - 18 AS col0 FROM tab2
----
-738
-738
-738

query I rowsort
SELECT - - 23 - + 79 AS col2 FROM tab1 WHERE - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9746
SELECT 70 DIV - 6 AS col1 FROM tab2
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-9746
SELECT 70 / - 6 AS col1 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT + + 25 * + + 61 + - 9 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1680
1221
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL - COUNT( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9748
SELECT ALL - COUNT ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42 * - 45 + col1 + + col0 col0, + col1 - - ( + col1 ) FROM tab2 AS cor0
----
-1748
134
-1749
154
-1793
102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + 51 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9751
SELECT ALL + COUNT( * ) * - 67 + + ( - + 11 ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-212
3

skipif mysql # not compatible
query II rowsort label-9751
SELECT ALL + COUNT ( * ) * - 67 + + ( - + 11 ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-212
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL = NULL )
----

query I rowsort
SELECT - - 2 * - col0 FROM tab1 WHERE col0 > + + 59
----
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9754
SELECT - col0 col1, CAST( 94 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
-46
94
-64
94
-75
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9754
SELECT - col0 col1, CAST ( 94 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
-46
94
-64
94
-75
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 + - - 28 col2 FROM tab1
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT ALL - col1 + col1 + + CAST( NULL AS SIGNED ) + col2 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - col1 + col1 + + CAST ( NULL AS INTEGER ) + col2 + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <= + col2 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + col0 - col2 + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + + - col0 AS col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL col2 * + 19 * + col2 AS col0 FROM tab0
----
186219
1900
41971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9762
SELECT 55 AS col0, - CAST( + - 54 AS SIGNED ) + - 18 + - + COUNT( * ) FROM tab0
----
55
33

skipif mysql # not compatible
query II rowsort label-9762
SELECT 55 AS col0, - CAST ( + - 54 AS INTEGER ) + - 18 + - + COUNT ( * ) FROM tab0
----
55
33

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 4 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9764
SELECT ALL - 40 * + + COUNT( ALL - CAST( - ( - col2 ) AS SIGNED ) ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - 40 * + + COUNT ( ALL - CAST ( - ( - col2 ) AS INTEGER ) ) FROM tab0
----
-120

query I rowsort
SELECT DISTINCT - 63 * - 68 * - col0 FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - - col2 AS col1, - col0 AS col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT 94 - + - 29 + - - 22 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT ALL + CAST( - + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL - - 6 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - - 6 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT 23 * - col2 AS col2 FROM tab1 AS cor0
----
-1357
-1564
-2208

query I rowsort
SELECT ALL + col0 * + 31 AS col0 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT COUNT( ALL + col1 ) * 39 DIV + ( MAX( ALL col1 ) ) + 87 AS col1 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9772
SELECT COUNT ( ALL + col1 ) * 39 / + ( MAX ( ALL col1 ) ) + 87 AS col1 FROM tab1 AS cor0
----
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= + - col2 + + col0
----

query I rowsort
SELECT - 99 * - - col2 FROM tab1
----
-5841
-6732
-9504

query I rowsort
SELECT col1 * + 42 FROM tab2
----
2142
2814
3234

query I rowsort
SELECT - col2 + - + 17 * col0 AS col0 FROM tab1 AS cor0
----
-1504
-1615
-963

query I rowsort
SELECT - ( 88 ) + + col0 AS col2 FROM tab2
----
-13
-24
-42

query II rowsort
SELECT ALL + 19, - 57 - col2 AS col1 FROM tab1
----
19
-116
19
-125
19
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT + COUNT( * ) + - 87 AS col1 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT + COUNT ( * ) + - 87 AS col1 FROM tab0
----
-84

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NULL NOT IN ( - 50, - 55 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE ( + - 4 ) IS NULL
----

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9783
SELECT * FROM tab0 cor0 WHERE col1 NOT BETWEEN col2 * - col2 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9783
SELECT * FROM tab0 cor0 WHERE col1 NOT BETWEEN col2 * - col2 AND - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT - CAST( NULL AS SIGNED ) * - + col2 - - 86 * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT - CAST ( NULL AS INTEGER ) * - + col2 - - 86 * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0, ( col1 ) FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9786
SELECT ALL ( - CAST( + col1 AS DECIMAL ) ) * CAST( NULL AS SIGNED ) + 80 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9786
SELECT ALL ( - CAST ( + col1 AS REAL ) ) * CAST ( NULL AS INTEGER ) + 80 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 88 * col1 AS col1 FROM tab1
----
37400
376376
62832

query I rowsort
SELECT ALL + col1 + + + ( + + col2 ) FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - 47 * + ( + - ( + 65 ) ) + COUNT( - col1 ) AS col1 FROM tab0
----
3058

skipif mysql # not compatible
query I rowsort label-9789
SELECT - 47 * + ( + - ( + 65 ) ) + COUNT ( - col1 ) AS col1 FROM tab0
----
3058

query II rowsort
SELECT + col1 * - col0 + 82 * - col1, + col1 FROM tab0 AS cor0
----
-179
1
-3549
21
-7857
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 / + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 / 70 - col1 = + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 53 * - + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9794
SELECT + MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - 30 * - col0 AS col1 FROM tab1 AS cor0
----
1530
2550
2730

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + ( + + COUNT( DISTINCT - 98 ) ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9797
SELECT + ( + + COUNT ( DISTINCT - 98 ) ) col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT - 15 = - - 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 - - - 3 AS col0, col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
48
14
82
5
88
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL - MIN( DISTINCT + + 76 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL - MIN ( DISTINCT + + 76 ) FROM tab2
----
-76

query I rowsort
SELECT ALL - 68 * 1 AS col1 FROM tab0
----
-68
-68
-68

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 + - col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 21 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - - 79 + + col2 + - + col0 FROM tab1
----
1151
369
3690

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( 96 ) + + - col1 < NULL
----

query II rowsort
SELECT ALL - 70 + + col2, - 22 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-11
1875
-2
2049
26
1136

query I rowsort
SELECT ALL - 46 - - col0 AS col2 FROM tab1 cor0
----
39
45
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + - col1 ) * + col1 / col1 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - col1 + + col2 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + 39 col1 FROM tab1
----
59
39
68
39
96
39

query III rowsort
SELECT * FROM tab2 WHERE col1 / + + 28 * - - 48 <> NULL
----

query II rowsort
SELECT col2, 90 FROM tab0
----
10
90
47
90
99
90

onlyif mysql # DIV for integer division: 
query II rowsort label-9813
SELECT ALL - col1 + - + col1 + - col2 AS col2, 24 DIV - col1 FROM tab0
----
-101
-24
-209
0
-52
-1

skipif mysql # not compatible
query II rowsort label-9813
SELECT ALL - col1 + - + col1 + - col2 AS col2, 24 / - col1 FROM tab0
----
-101
-24
-209
0
-52
-1

query I rowsort
SELECT - 33 - - 2 FROM tab2
----
-31
-31
-31

query II rowsort
SELECT - col0 AS col2, 9 FROM tab2 AS cor0
----
-46
9
-64
9
-75
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT + 66 FROM tab1 AS cor0 WHERE NOT - 61 * - CAST( NULL AS SIGNED ) + - col2 + + + col0 IS NOT NULL
----
66
66
66

skipif mysql # not compatible
query I rowsort label-9816
SELECT + 66 FROM tab1 AS cor0 WHERE NOT - 61 * - CAST ( NULL AS INTEGER ) + - col2 + + + col0 IS NOT NULL
----
66
66
66

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE col1 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT CAST( - ( + col0 ) AS SIGNED ) * + ( + + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT CAST ( - ( + col0 ) AS INTEGER ) * + ( + + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 * - - 10 + - ( - - col2 ) * - col2 / + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT + COUNT( ALL + - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9820
SELECT + COUNT ( ALL + - col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT SUM( ALL col0 ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT SUM ( ALL col0 ) col1 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9822
SELECT * FROM tab2 WHERE NOT NULL <= + 62 OR - - col0 * + + CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9822
SELECT * FROM tab2 WHERE NOT NULL <= + 62 OR - - col0 * + + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 20 * - - col1 AS col1 FROM tab1
----
100
280
940

query I rowsort
SELECT col2 * + ( + col2 ) FROM tab1
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 12 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9826
SELECT DISTINCT CAST( + + 45 AS DECIMAL ) * col0 - + col1 + + col0 + - - ( + + 58 ) + + col1 - - 10 / col0 AS col1 FROM tab2 AS cor0 WHERE NULL > 75 - col2
----

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT CAST ( + + 45 AS REAL ) * col0 - + col1 + + col0 + - - ( + + 58 ) + + col1 - - 10 / col0 AS col1 FROM tab2 AS cor0 WHERE NULL > 75 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT COUNT( * ) * + 74 FROM tab1 cor0
----
222

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT COUNT ( * ) * + 74 FROM tab1 cor0
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT ALL + + COUNT( 55 ) DIV + ( + + COUNT( * ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + + COUNT ( 55 ) / + ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9829
SELECT - ( + 65 ) DIV 86 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT - ( + 65 ) / 86 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 12 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - + 95 AS col1 FROM tab1
----
-48
-81
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL + COUNT( * ) + + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT ALL + col1 * + 93 AS col0 FROM tab2
----
4743
6231
7161

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col1 * - 37 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + + col0 + + 46
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col1 + - - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9839
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col2, + col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL + col1 * - + ( - col0 ) + 9 + - col1 + + col1 - - ( + 80 ) * + 26 - + + col2 * - col2 * ( - col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
-10208050
-1803533
-84511

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT + - col0 * 78 - - col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-1167
-6786
-7565

skipif mysql # not compatible
query I rowsort label-9842
SELECT + - col0 * 78 - - col2 / col0 AS col2 FROM tab0 AS cor0
----
-1167
-6786
-7565

query I rowsort
SELECT ( 41 ) + + 38 FROM tab0 cor0 WHERE NULL IS NULL
----
79
79
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9844
SELECT + CAST( - + COUNT( 78 ) AS SIGNED ) - + 38 AS col1, + 51 FROM tab1 AS cor0
----
-41
51

skipif mysql # not compatible
query II rowsort label-9844
SELECT + CAST ( - + COUNT ( 78 ) AS INTEGER ) - + 38 AS col1, + 51 FROM tab1 AS cor0
----
-41
51

query I rowsort
SELECT ALL - 61 * - - col2 + col1 FROM tab1 AS cor0
----
-3594
-4101
-5842

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT col0 DIV - col1 - col2 FROM tab0 cor0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-9846
SELECT col0 / - col1 - col2 FROM tab0 cor0
----
-14
-196
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9847
SELECT - col1 + - col2 AS col0, + CAST( NULL AS SIGNED ) FROM tab2
----
-117
NULL
-125
NULL
-74
NULL

skipif mysql # not compatible
query II rowsort label-9847
SELECT - col1 + - col2 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
-117
NULL
-125
NULL
-74
NULL

query I rowsort
SELECT ( + col0 ) + - col0 * col2 * + 38 FROM tab1
----
-185997
-190485
-235053

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT COUNT( DISTINCT - + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9849
SELECT COUNT ( DISTINCT - + col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - 16 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 31 <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 INNER JOIN tab0 AS cor1 ON - - 88 * - - 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT DISTINCT 2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT 2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9854
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NOT + col1 < 69
----

query II rowsort
SELECT - col2 AS col0, - 78 FROM tab1 AS cor0
----
-59
-78
-68
-78
-96
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT + COUNT( * ) * + 13 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9857
SELECT + COUNT ( * ) * + 13 FROM tab1 AS cor0
----
39

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 3 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + MIN( ALL 0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT + MIN ( ALL 0 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9860
SELECT ALL + - COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9860
SELECT ALL + - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT - - SUM( - - col0 ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT - - SUM ( - - col0 ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
227

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( 88 * + col0 + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT MIN( ALL - 54 ) FROM tab2 WHERE NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT MIN ( ALL - 54 ) FROM tab2 WHERE NULL NOT IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + 54 * + - ( - + COUNT( * ) ) AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9864
SELECT + 54 * + - ( - + COUNT ( * ) ) AS col0 FROM tab0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL COUNT( * ) + + - MAX( ALL + col2 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL COUNT ( * ) + + - MAX ( ALL + col2 ) AS col2 FROM tab0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT DISTINCT - col0 DIV + 19 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - col0 / + 19 FROM tab0
----
-4
-5
0

query I rowsort
SELECT 99 * - col2 * - + col0 * - + col0 + 75 FROM tab2 AS cor0
----
-16220085
-32298675
-4818057

query I rowsort
SELECT + - 21 * + col0 * 51 FROM tab1 AS cor0
----
-54621
-91035
-97461

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT DISTINCT + - SUM( DISTINCT - - col2 ) + 13 * 22 AS col1, 61 FROM tab2 AS cor0 WHERE NOT ( - col0 ) > NULL
----
NULL
61

skipif mysql # not compatible
query II rowsort label-9870
SELECT DISTINCT + - SUM ( DISTINCT - - col2 ) + 13 * 22 AS col1, 61 FROM tab2 AS cor0 WHERE NOT ( - col0 ) > NULL
----
NULL
61

query I rowsort
SELECT DISTINCT ( + col2 ) + + 8 AS col2 FROM tab2
----
31
48
66

query II rowsort
SELECT 3 + - col2 + 82 AS col1, - 23 - - col2 AS col1 FROM tab0 AS cor0
----
-14
76
38
24
75
-13

query II rowsort
SELECT col1 + - 66 - + 98, - col2 AS col2 FROM tab1 AS cor0
----
-117
-68
-150
-96
-159
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL + - 87 * COUNT( * ) - - + MIN( ALL col0 ) FROM tab2 cor0
----
-215

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL + - 87 * COUNT ( * ) - - + MIN ( ALL col0 ) FROM tab2 cor0
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL + ( - SUM( DISTINCT - 81 ) ) AS col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + ( - SUM ( DISTINCT - 81 ) ) AS col0 FROM tab1 AS cor0
----
81

query I rowsort
SELECT col1 * - - 88 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT ALL col2 * CAST( 76 AS SIGNED ) + - col0 FROM tab0 cor0
----
3557
673
7427

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL col2 * CAST ( 76 AS INTEGER ) + - col0 FROM tab0 cor0
----
3557
673
7427

query I rowsort
SELECT DISTINCT + - 32 AS col1 FROM tab0 cor0
----
-32

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col2 ) = col1 * ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 65 ) FROM tab0
----
65

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 55 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 AS col2, + 12 FROM tab2
----
51
12
67
12
77
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT - 7 DIV - + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT - 7 / - + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9885
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN col2 AND CAST( NULL AS DECIMAL ) * 15 * + - CAST( - 27 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9885
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN col2 AND CAST ( NULL AS REAL ) * 15 * + - CAST ( - 27 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 84 <= NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 89, + 61 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 - + + col1 * + + 23 <> + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 80 * col2 + + col0 AS col0 FROM tab0 WHERE NULL = + 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT ALL col0 * col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL col0 * col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( + col1 ) + + 26 AS col0, + col0 * + - col0 AS col1 FROM tab1
----
31
-7225
40
-2601
73
-8281

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 - - - 87 NOT BETWEEN - col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT COUNT( * ) + 13 * COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9894
SELECT COUNT ( * ) + 13 * COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT - COUNT( * ) * + + 92 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT - COUNT ( * ) * + + 92 FROM tab0 AS cor0
----
-276

query I rowsort
SELECT ALL 30 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT + 38 - + + col1 AS col0 FROM tab2 AS cor0
----
-13
-29
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT - + 17 * - - COUNT( * ) * + - 99 col2 FROM tab2 AS cor0
----
5049

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9898
SELECT DISTINCT - + 17 * - - COUNT ( * ) * + - 99 col2 FROM tab2 AS cor0
----
5049

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9899
SELECT ALL + COUNT( * ) * CAST( NULL AS DECIMAL ), + 3 AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL + COUNT ( * ) * CAST ( NULL AS REAL ), + 3 AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT - CAST( NULL AS SIGNED ) * - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT - CAST ( NULL AS INTEGER ) * - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 1 * col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ( + ( + col1 ) ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9903
SELECT ALL COUNT( * ) DIV + 94 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL COUNT ( * ) / + 94 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT + col1 DIV 4 AS col2 FROM tab0
----
0
20
5

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT + col1 / 4 AS col2 FROM tab0
----
0
20
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT - COUNT( - 68 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9906
SELECT - COUNT ( - 68 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + + 69 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9910
SELECT DISTINCT - col2 DIV col2 col0, 53 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9910
SELECT DISTINCT - col2 / col2 col0, 53 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
53

query I rowsort
SELECT DISTINCT - col1 + - - col2 - + - col0 FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + COUNT( + - 42 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9912
SELECT + COUNT ( + - 42 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9913
SELECT + 35 * + 54 DIV - + COUNT( * ) FROM tab0 AS cor0
----
-630

skipif mysql # not compatible
query I rowsort label-9913
SELECT + 35 * + 54 / - + COUNT ( * ) FROM tab0 AS cor0
----
-630

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + 57 * - - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 + 15 + col1 FROM tab1 AS cor0
----
125
130
79

query I rowsort
SELECT DISTINCT - 18 + - - 56 FROM tab2 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - MIN( DISTINCT + - 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9917
SELECT - MIN ( DISTINCT + - 49 ) FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT COUNT( * ), + 66 AS col0 FROM tab2, tab0 AS cor0
----
9
66

skipif mysql # not compatible
query II rowsort label-9918
SELECT COUNT ( * ), + 66 AS col0 FROM tab2, tab0 AS cor0
----
9
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT DISTINCT + COUNT( * ) + - 67, 22 AS col1 FROM tab0
----
-64
22

skipif mysql # not compatible
query II rowsort label-9919
SELECT DISTINCT + COUNT ( * ) + - 67, 22 AS col1 FROM tab0
----
-64
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - - COUNT( * ) FROM tab1 WHERE 29 <> col2 / + + 68
----
3

skipif mysql # not compatible
query I rowsort label-9920
SELECT - - COUNT ( * ) FROM tab1 WHERE 29 <> col2 / + + 68
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9921
SELECT ALL + - MAX( ALL - CAST( NULL AS SIGNED ) ) + 90 * - + CAST( + 81 AS SIGNED ), 74 AS col1 FROM tab2 AS cor0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-9921
SELECT ALL + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) + 90 * - + CAST ( + 81 AS INTEGER ), 74 AS col1 FROM tab2 AS cor0
----
NULL
74

query I rowsort
SELECT col1 - 40 * - 22 AS col0 FROM tab1 AS cor0
----
885
894
927

query I rowsort
SELECT ALL + - 46 AS col2 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL MIN( col2 ) * 47 FROM tab0
----
470

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL MIN ( col2 ) * 47 FROM tab0
----
470

query I rowsort
SELECT DISTINCT - col0 * + 54 FROM tab0 WHERE col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 cor1 ON NOT NULL <= 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT ( + CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9928
SELECT ( + CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 <> NULL
----

query II rowsort
SELECT - col0 AS col0, col1 - - - col0 AS col0 FROM tab2 AS cor0
----
-46
5
-64
13
-75
-8

query II rowsort
SELECT ALL - 97 AS col2, - col1 * + col0 + - col1 FROM tab1 AS cor0
----
-97
-430
-97
-4324
-97
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT DISTINCT ( - + 42 ) DIV + - col1 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT ( - + 42 ) / + - col1 AS col0 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9933
SELECT col2 DIV col0, col1 AS col2 FROM tab0
----
0
21
1
1
3
81

skipif mysql # not compatible
query II rowsort label-9933
SELECT col2 / col0, col1 AS col2 FROM tab0
----
0
21
1
1
3
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9934
SELECT + CAST( NULL AS DECIMAL ) * + col2, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9934
SELECT + CAST ( NULL AS REAL ) * + col2, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT + col0 * col2 * - col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / - 13 - - col0 BETWEEN col0 + + - 39 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 48 NOT IN ( col0 - + - col0, - 8, col2 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 4 + + col1 NOT BETWEEN - + 47 / - 77 AND + 23 * - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 22 + - 48 FROM tab2
----
1228
458
832

query I rowsort
SELECT + col1 + - 90 AS col0 FROM tab0
----
-69
-89
-9

query I rowsort
SELECT DISTINCT + ( - 55 ) + + - col2 AS col1 FROM tab1
----
-114
-123
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT - COUNT( * ) + - 45 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-54

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - COUNT ( * ) + - 45 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-54

query I rowsort
SELECT DISTINCT 33 * + - 86 FROM tab2
----
-2838

query I rowsort
SELECT ALL - + 89 * - col1 * 77 + - 21 AS col2 FROM tab1 AS cor0
----
322070
34244
95921

onlyif mysql # DIV for integer division: 
query I rowsort label-9945
SELECT DISTINCT + col0 DIV + col1 AS col2 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT + col0 / + col1 AS col2 FROM tab0 cor0
----
0
4
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 68 * - - col2 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT + 8 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT + 8 / col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT AVG ( DISTINCT ( 85 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 26 AS col0 FROM tab0 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / + ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9951
SELECT + MAX( ALL col2 ) * - COUNT( * ) AS col2, MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-174
77

skipif mysql # not compatible
query II rowsort label-9951
SELECT + MAX ( ALL col2 ) * - COUNT ( * ) AS col2, MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-174
77

query I rowsort
SELECT + ( - 44 ) FROM tab0 cor0
----
-44
-44
-44

query I rowsort
SELECT - - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT col2 + + ( 71 ) FROM tab0
----
118
170
81

query I rowsort
SELECT + col1 * + col1 - col0 FROM tab2
----
2555
4414
5865

query I rowsort
SELECT ALL 50 * - - 71 * - col2 - - col0 FROM tab1
----
-209365
-241309
-340749

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT - COUNT( * ) - + 1 AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT - COUNT ( * ) - + 1 AS col0 FROM tab0
----
-4

query I rowsort
SELECT + col2 * - + col2 + - 10 FROM tab2
----
-1610
-3374
-539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT ALL ( CAST( - COUNT( * ) AS SIGNED ) ) + 46 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL ( CAST ( - COUNT ( * ) AS INTEGER ) ) + 46 FROM tab1
----
43

query I rowsort
SELECT DISTINCT - col2 - - ( + - 65 ) AS col1 FROM tab0
----
-112
-164
-75

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( 81, - 1 )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 - - - 3 col1 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT + ( - COUNT( DISTINCT - + col1 ) ) FROM tab0 AS cor0 WHERE col2 / + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT + ( - COUNT ( DISTINCT - + col1 ) ) FROM tab0 AS cor0 WHERE col2 / + col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - col1 / - col0 NOT BETWEEN - + 88 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0, + 75 col2 FROM tab0 AS cor0
----
15
75
87
75
97
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9967
SELECT + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 59 * + + 93 FROM tab2
----
5487

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 71 - + - ( - + col0 ) = + col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col2 * 45 FROM tab0 AS cor0
----
-31725
-39150
-432135

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 * + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9972
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 AS col2, ( - - col1 ) FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9972
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 AS col2, ( - - col1 ) FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
10
47
99

query I rowsort
SELECT + - col1 * - - col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9975
SELECT ALL + COUNT( DISTINCT + 20 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9975
SELECT ALL + COUNT ( DISTINCT + 20 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
NULL

query I rowsort
SELECT DISTINCT ( - 61 ) FROM tab2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + + COUNT( * ) * - 34 AS col2 FROM tab0
----
-306

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) * - 34 AS col2 FROM tab0
----
-306

query I rowsort
SELECT DISTINCT - 30 - - 19 AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9979
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - col2 + + - 2 AS col0 FROM tab1
----
NULL
-61
NULL
-70
NULL
-98

skipif mysql # not compatible
query II rowsort label-9979
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - col2 + + - 2 AS col0 FROM tab1
----
NULL
-61
NULL
-70
NULL
-98

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 78 ) * col1 <> ( + col0 )
----

query I rowsort
SELECT col0 + + 29 * + 61 AS col1 FROM tab2
----
1815
1833
1844

query I rowsort
SELECT DISTINCT + 22 * + col0 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT DISTINCT + 49 FROM tab1 WHERE NOT NULL <> ( - col0 )
----

query I rowsort
SELECT 36 * 1 AS col2 FROM tab0 WHERE - col0 * 22 NOT IN ( + 65 )
----
36
36
36

query I rowsort
SELECT DISTINCT - ( col1 ) * 0 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN 35 + col0 * + col1 AND - col0
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col2 - + col0 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 94 * col2 FROM tab1
----
-5546
-6392
-9024

query I rowsort
SELECT DISTINCT - col2 * + 31 FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT - 84 * - col1 FROM tab1
----
1176
3948
420

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1 WHERE + 20 * - 88 <> col0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT - COUNT( * ) * 95 AS col1 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-9992
SELECT - COUNT ( * ) * 95 AS col1 FROM tab0
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT ALL 20 + col2 DIV col0 FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL 20 + col2 / col0 FROM tab2
----
20
20
20

query I rowsort
SELECT DISTINCT col1 * + 1 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT 67 + - 30 FROM tab0
----
37
37
37

query I rowsort
SELECT + col0 FROM tab2 WHERE - col1 * - 60 < col2 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT - 11 FROM tab2 WHERE NOT col2 + - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9997
SELECT - 11 FROM tab2 WHERE NOT col2 + - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT + COUNT( * ) * MIN( + ( - ( col0 ) ) ) AS col2 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + COUNT ( * ) * MIN ( + ( - ( col0 ) ) ) AS col2 FROM tab1
----
-273

query I rowsort
SELECT ALL 54 * 12 FROM tab0
----
648
648
648

