sqllogictest
Artifact Content
Not logged in

Artifact 123443cdf0cfee36ce1a8ab7cf8eb597f670dc42:


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