sqllogictest
Artifact Content
Not logged in

Artifact fc85b93775a5a321cce20b0e0427c22671d0b63c:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT 89 DIV + col1 + - col2 FROM tab0 AS cor0
----
-10
-46
-6

skipif mysql # not compatible
query I rowsort label-0
SELECT 89 / + col1 + - col2 FROM tab0 AS cor0
----
-10
-46
-6

query I rowsort
SELECT DISTINCT + col1 + + 48 FROM tab1
----
53
62
95

query I rowsort
SELECT ALL 28 + - ( - - col0 ) + - + 46 FROM tab1
----
-103
-109
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT COUNT( col0 ) - COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4
SELECT DISTINCT COUNT ( col0 ) - COUNT ( * ) col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL - COUNT( + 86 ) * - + 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - COUNT ( + 86 ) * - + 97 FROM tab2
----
291

query I rowsort
SELECT - col1 + + + 92 * + 77 FROM tab1
----
7037
7070
7079

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7
SELECT DISTINCT + 36 - + col1 + - CAST( NULL AS DECIMAL ) AS col0, col2 * - ( + 63 ) AS col1 FROM tab2
----
NULL
-1449
NULL
-2520
NULL
-3654

skipif mysql # not compatible
query II rowsort label-7
SELECT DISTINCT + 36 - + col1 + - CAST ( NULL AS REAL ) AS col0, col2 * - ( + 63 ) AS col1 FROM tab2
----
NULL
-1449
NULL
-2520
NULL
-3654

query I rowsort
SELECT + 96 + + col2 FROM tab2
----
119
136
154

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT COUNT( DISTINCT + 59 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-11
SELECT COUNT ( DISTINCT + 59 ) FROM tab2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL SUM( 38 ) AS col0 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL SUM ( 38 ) AS col0 FROM tab1 AS cor0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-14
SELECT DISTINCT + CAST( ( - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT 63 * + ( - 36 ) FROM tab2
----
-2268
-2268
-2268

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT - COUNT( * ) AS col0, - 88 AS col0 FROM tab1
----
-3
-88

skipif mysql # not compatible
query II rowsort label-16
SELECT - COUNT ( * ) AS col0, - 88 AS col0 FROM tab1
----
-3
-88

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

skipif mysql # not compatible
query II rowsort label-17
SELECT ALL + COUNT ( * ) AS col1, 37 FROM tab0 AS cor0
----
3
37

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

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

query I rowsort
SELECT ALL + 32 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 74 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col0, - 82 + 19 + - - 97 col2 FROM tab0 AS cor0
----
-15
34
-87
34
-97
34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-23
SELECT DISTINCT - COUNT( * ) AS col0, + 12 FROM tab1 AS cor0
----
-3
12

skipif mysql # not compatible
query II rowsort label-23
SELECT DISTINCT - COUNT ( * ) AS col0, + 12 FROM tab1 AS cor0
----
-3
12

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT 39 * 69 * + COUNT( + col0 ) FROM tab0
----
8073

skipif mysql # not compatible
query I rowsort label-24
SELECT 39 * 69 * + COUNT ( + col0 ) FROM tab0
----
8073

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT 57 * + + COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-25
SELECT 57 * + + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - ( + + 2 ) col2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT ALL + ( + - 59 ) AS col0, MIN( - + col1 ) AS col2 FROM tab1
----
-59
-47

skipif mysql # not compatible
query II rowsort label-27
SELECT ALL + ( + - 59 ) AS col0, MIN ( - + col1 ) AS col2 FROM tab1
----
-59
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - col1 col0 FROM tab1
----
-1232
-4136
-440

query I rowsort
SELECT ALL col0 * + 1 AS col1 FROM tab0
----
15
87
97

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-34
SELECT COUNT ( * ) + 27 FROM tab0
----
30

query I rowsort
SELECT + + 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= 71 * - + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + col0 ) >= + - col2
----
51
14
96

onlyif mysql # DIV for integer division: 
query II rowsort label-38
SELECT ALL col2, col1 DIV col2 FROM tab0 AS cor0 WHERE NOT + ( + + 78 ) IS NULL
----
10
2
47
1
99
0

skipif mysql # not compatible
query II rowsort label-38
SELECT ALL col2, col1 / col2 FROM tab0 AS cor0 WHERE NOT + ( + + 78 ) IS NULL
----
10
2
47
1
99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - 13 + + 12 col0, col0 AS col1 FROM tab0 AS cor0
----
-16
15
-88
87
-98
97

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

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

query I rowsort
SELECT - - 80 * + col2 FROM tab0 AS cor0
----
3760
7920
800

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

query I rowsort
SELECT - + 11 * - 65 + - - col0 AS col1 FROM tab0 AS cor0
----
730
802
812

query I rowsort
SELECT - - 90 FROM tab0 cor0
----
90
90
90

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

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

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

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

query I rowsort
SELECT ( - - col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - col2 - + 83 * + - col0 FROM tab1
----
4137
6996
7485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT DISTINCT - MAX( - col2 ) DIV - 4 AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - MAX ( - col2 ) / - 4 AS col1 FROM tab0
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL - MIN( ALL 28 ) AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL - MIN ( ALL 28 ) AS col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE + 36 <= - 59
----

query I rowsort
SELECT ( 51 ) FROM tab0 AS cor0
----
51
51
51

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

query II rowsort
SELECT - + 14, - 64 + + col1 AS col0 FROM tab1 AS cor0
----
-14
-17
-14
-50
-14
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT DISTINCT 87 AS col0 FROM tab1 cor0 WHERE + ( col1 ) + CAST( NULL AS SIGNED ) * col1 / - 36 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT 87 AS col0 FROM tab1 cor0 WHERE + ( col1 ) + CAST ( NULL AS INTEGER ) * col1 / - 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT - ( + COUNT( * ) ) + + 52 AS col2 FROM tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT - ( + COUNT ( * ) ) + + 52 AS col2 FROM tab0 cor0
----
49

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

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

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

query II rowsort
SELECT ALL - ( - + col1 ), col2 + + 63 - col2 AS col0 FROM tab0
----
1
63
21
63
81
63

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

skipif mysql # not compatible
query I rowsort label-62
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - 63 + + 70 + col1 - - 20 + - 65 * + - col2 AS col0 FROM tab2
----
1573
2704
3864

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 91 ) > 30
----

query I rowsort
SELECT ALL + 82 * 91 FROM tab2
----
7462
7462
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT - 77 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - 77 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT + MIN( + ( 37 ) ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-67
SELECT + MIN ( + ( 37 ) ) FROM tab2
----
37

query II rowsort
SELECT ( - - col2 ) AS col0, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-69
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - + col0 + col1 * + CAST( col1 AS SIGNED ) <> - 78
----

skipif mysql # not compatible
query III rowsort label-69
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - + col0 + col1 * + CAST ( col1 AS INTEGER ) <> - 78
----

query I rowsort
SELECT + col0 + + - col2 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-4831
-4925
-6050

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - 19 + ( + + 77 )
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE - 16 IS NULL
----
0

query II rowsort
SELECT col2 AS col2, + ( - col1 ) FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL COUNT( * ) * - - 24 AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL COUNT ( * ) * - - 24 AS col1 FROM tab2
----
72

query II rowsort
SELECT ALL - 66, 75 + - - 44 * + col0 AS col2 FROM tab0
----
-66
3903
-66
4343
-66
735

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT MIN( ALL + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-80
SELECT MIN ( ALL + col0 ) AS col1 FROM tab1
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + ( + 16 ) / - + col1 IN ( 65 )
----
0

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + ( + 16 ) / - + col1 IN ( 65 )
----
0

query I rowsort
SELECT ALL - - 27 FROM tab0 AS cor0
----
27
27
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT SUM( DISTINCT - col1 ) + - 47 + - COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-86
SELECT SUM ( DISTINCT - col1 ) + - 47 + - COUNT ( * ) FROM tab0 AS cor0
----
-153

query I rowsort
SELECT ALL - 65 + + col1 FROM tab1 AS cor0
----
-18
-51
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT 57 + - COUNT( * ) col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-88
SELECT 57 + - COUNT ( * ) col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT + - col2 + + - col0 + + col1 * - col0 * - - col0 FROM tab1 AS cor0
----
-36269
-36561
-389366

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

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL CAST ( NULL AS REAL ) * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-91
SELECT DISTINCT 51 / col2 col2 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT + 21 + - col0 AS col1 FROM tab2 AS cor0
----
-25
-43
-54

query I rowsort
SELECT 98 + + 97 AS col2 FROM tab1
----
195
195
195

query I rowsort
SELECT + 74 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - col1 FROM tab1 WHERE ( NOT - col2 NOT BETWEEN NULL AND col2 )
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col2 IS NULL
----
1
21
81

query I rowsort
SELECT 47 * col1 * col1 FROM tab2
----
122247
210983
278663

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT MIN( col0 ) col0 FROM tab0 WHERE + col2 IS NOT NULL
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-98
SELECT MIN ( col0 ) col0 FROM tab0 WHERE + col2 IS NOT NULL
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + col1 > + col0 - col0
----

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

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

query I rowsort
SELECT - col2 * + + col0 + + col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT ALL + col0 + - 92 FROM tab1
----
-1
-41
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-103
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 WHERE 38 * - 53 * - col0 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 WHERE 38 * - 53 * - col0 + - col0 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-104
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE + 47 IS NOT NULL
----
-3

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

skipif mysql # not compatible
query I rowsort label-105
SELECT + CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 47 + + 0 * + ( 67 ) + - - col0 col2, 31 FROM tab1 AS cor0
----
-150
31
-2118
31
-607
31

query II rowsort
SELECT + 34, col2 * - - col2 * + - 41 AS col2 FROM tab1 AS cor0
----
34
-142721
34
-189584
34
-377856

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = + col0
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-111
SELECT ALL + - col0, - ( - col2 ) DIV + col0 AS col0 FROM tab0 cor0
----
-15
3
-87
0
-97
1

skipif mysql # not compatible
query II rowsort label-111
SELECT ALL + - col0, - ( - col2 ) / + col0 AS col0 FROM tab0 cor0
----
-15
3
-87
0
-97
1

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

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

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

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

query I rowsort
SELECT + 22 * + col1 + + col1 FROM tab2 AS cor0
----
1173
1541
1771

query I rowsort
SELECT DISTINCT + 15 * - col2 AS col2 FROM tab2
----
-345
-600
-870

query I rowsort
SELECT ALL - ( - col1 ) * - + col0 * - col0 AS col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT DISTINCT 79 * + 14 AS col2 FROM tab1
----
1106

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - COUNT( * ) col1 FROM tab0 WHERE NOT 38 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-120
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NOT 38 IS NULL
----
-3

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-122
SELECT ALL + col1 - - CAST ( - - col2 AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT 29 - 26 IS NULL
----
117
125
74

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT - SUM( - 23 ), 86 AS col2 FROM tab2 AS cor0
----
69
86

skipif mysql # not compatible
query II rowsort label-123
SELECT - SUM ( - 23 ), 86 AS col2 FROM tab2 AS cor0
----
69
86

query II rowsort
SELECT ALL - col1 * - - 99, col0 AS col1 FROM tab2 AS cor0
----
-5049
46
-6633
75
-7623
64

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

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

query I rowsort
SELECT + + 93 * - + col1 * col0 AS col0 FROM tab0 AS cor0
----
-112995
-169911
-9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col1 - - col2 * + col2 col2 FROM tab1 AS cor0
----
3056
347
8502

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT COUNT( * ) * - + 67 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT COUNT ( * ) * - + 67 FROM tab0
----
-201

query I rowsort
SELECT + 20 * - - 29 AS col2 FROM tab1 AS cor0
----
580
580
580

query II rowsort
SELECT ALL - col2 AS col0, - ( + 65 ) + 74 FROM tab1 AS cor0
----
-59
9
-68
9
-96
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col2 * + col0 * + 80 col2 FROM tab2 cor0
----
-204877
-348067
-84691

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

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - col2 + + CAST ( NULL AS REAL ) * + - col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-134
SELECT ALL ( + 78 ) AS col1, - CAST( - 11 AS SIGNED ) DIV - col1 AS col1 FROM tab2
----
78
0
78
0
78
0

skipif mysql # not compatible
query II rowsort label-134
SELECT ALL ( + 78 ) AS col1, - CAST ( - 11 AS INTEGER ) / - col1 AS col1 FROM tab2
----
78
0
78
0
78
0

query I rowsort
SELECT ( - col1 ) * - col1 + 70 + + col2 FROM tab1
----
154
2347
362

query I rowsort
SELECT ALL col1 * col0 + col1 AS col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT DISTINCT + col2 * 15 FROM tab1
----
1020
1440
885

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + COUNT( + col1 ) + + 71 AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-138
SELECT + COUNT ( + col1 ) + + 71 AS col1 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT - 37 + + MIN( DISTINCT + - col0 ) * COUNT( * ) AS col2 FROM tab2
----
-262

skipif mysql # not compatible
query I rowsort label-139
SELECT - 37 + + MIN ( DISTINCT + - col0 ) * COUNT ( * ) AS col2 FROM tab2
----
-262

query I rowsort
SELECT - col1 + + + 61 + - 74 AS col2 FROM tab1
----
-18
-27
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-141
SELECT DISTINCT CAST( + CAST( - 76 AS SIGNED ) AS SIGNED ) + - col1 * col2 DIV + + col1 FROM tab1 cor0
----
-135
-144
-172

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT CAST ( + CAST ( - 76 AS INTEGER ) AS INTEGER ) + - col1 * col2 / + + col1 FROM tab1 cor0
----
-135
-144
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT DISTINCT - MIN( DISTINCT - col2 ) + - 25 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT - MIN ( DISTINCT - col2 ) + - 25 FROM tab0 AS cor0
----
74

query I rowsort
SELECT DISTINCT - 15 + - col0 FROM tab0 AS cor0
----
-102
-112
-30

query I rowsort
SELECT + ( + col2 ) - - 36 AS col2 FROM tab1
----
104
132
95

query I rowsort
SELECT + 29 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL + SUM( - 50 ) FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL + SUM ( - 50 ) FROM tab2
----
-150

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

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

query I rowsort
SELECT - 73 AS col0 FROM tab2 cor0
----
-73
-73
-73

query I rowsort
SELECT - col1 * - ( - 26 ) AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

query I rowsort
SELECT ALL + col0 * + 16 * ( + col0 ) FROM tab0
----
121104
150544
3600

query I rowsort
SELECT col2 * 20 FROM tab2
----
1160
460
800

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - MAX( + + col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-153
SELECT - MAX ( + + col1 ) col0 FROM tab1
----
-47

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

query II rowsort
SELECT ALL 98 AS col1, col2 FROM tab0
----
98
10
98
47
98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT - COUNT( * ) * 1 AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - COUNT ( * ) * 1 AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT 74 * 28 DIV - col0 FROM tab2 AS cor0
----
-27
-32
-45

skipif mysql # not compatible
query I rowsort label-157
SELECT 74 * 28 / - col0 FROM tab2 AS cor0
----
-27
-32
-45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT + col1 * + + col1 DIV col1 col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-159
SELECT + col1 * + + col1 / col1 col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT DISTINCT + 94 * + SUM( 62 ) * 8 FROM tab1
----
139872

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT + 94 * + SUM ( 62 ) * 8 FROM tab1
----
139872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT DISTINCT - + 63 * + 15 * - - COUNT( * ) + + 50 AS col1 FROM tab2 AS cor0
----
-2785

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT - + 63 * + 15 * - - COUNT ( * ) + + 50 AS col1 FROM tab2 AS cor0
----
-2785

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * col1 col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT - col1 + - ( - col1 ) DIV - + col0 + + + col0 + + col1 FROM tab0 cor0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-165
SELECT - col1 + - ( - col1 ) / - + col0 + + + col0 + + col1 FROM tab0 cor0
----
10
87
97

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

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

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

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

query II rowsort
SELECT - + col1, col1 FROM tab1 WHERE NULL <= + - col2 + col0 + col1 + + 67 + + + 52 * col2 + + + col0 * - col1
----

query I rowsort
SELECT ALL + col1 * - 54 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT DISTINCT col2 * col2 - - 67 FROM tab2
----
1667
3431
596

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 48, - col2 * 96 ) AND + col0 + - 15 IS NOT NULL
----

query I rowsort
SELECT + col2 - - - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col1 * - 46 + + col2 FROM tab2 cor0
----
2369
3140
3582

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab1 AS cor0 WHERE + 66 * - 51 NOT BETWEEN + ( + 95 ) AND NULL
----
-59
-68
-96

query I rowsort
SELECT ( - - col1 ) + - - 58 AS col0 FROM tab2 AS cor0
----
109
125
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-177
SELECT 19 + - MIN( col1 ) DIV + + 85 AS col2 FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-177
SELECT 19 + - MIN ( col1 ) / + + 85 AS col2 FROM tab2 cor0
----
19

query I rowsort
SELECT ALL - - 34 + 95 FROM tab1 AS cor0
----
129
129
129

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

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

query I rowsort
SELECT ALL 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-181
SELECT ALL - + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT - 0 IS NOT NULL
----
0

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

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

query I rowsort
SELECT - - col0 * + - col2 * - col2 FROM tab0 cor0
----
33135
8700
950697

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

query II rowsort
SELECT DISTINCT col2, ( - col2 ) * - col2 + - col1 + + 59 AS col1 FROM tab0
----
10
138
47
2187
99
9859

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

query I rowsort
SELECT ( - 88 ) FROM tab2
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - col1 ) ) * - - col1 col2 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT col0 + - col1 * 91 + - 24 FROM tab1 AS cor0
----
-1247
-394
-4210

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL - 76 + COUNT( - - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-76

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - 76 + COUNT ( - - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-191
SELECT DISTINCT - 17 AS col2, 99 + - CAST( col0 AS SIGNED ) FROM tab1
----
-17
14
-17
48
-17
8

skipif mysql # not compatible
query II rowsort label-191
SELECT DISTINCT - 17 AS col2, 99 + - CAST ( col0 AS INTEGER ) FROM tab1
----
-17
14
-17
48
-17
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 3 + + - 47 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 95 < + 51
----

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT + 24 DIV col1 FROM tab0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-193
SELECT + 24 / col1 FROM tab0
----
0
1
24

query I rowsort
SELECT - ( + + col1 ) * 0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT CAST( NULL AS SIGNED ) * - + 61 * CAST( NULL AS SIGNED ) + - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query II rowsort
SELECT + - 20, + ( - 39 ) AS col0 FROM tab2 AS cor0
----
-20
-39
-20
-39
-20
-39

query I rowsort
SELECT DISTINCT 76 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 97 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
4640
9604
991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT + - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT MAX( 14 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-201
SELECT MAX ( 14 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT 60 + - - CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-25
-31
9

skipif mysql # not compatible
query I rowsort label-203
SELECT 60 + - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-25
-31
9

query I rowsort
SELECT ALL + col1 * - col0 - - - 49 FROM tab1
----
-4326
-474
-763

query I rowsort
SELECT + ( - - 90 ) * + - ( + col0 ) AS col1 FROM tab0
----
-1350
-7830
-8730

query II rowsort
SELECT - 34 * + col1, - col0 AS col0 FROM tab1 AS cor0
----
-1598
-91
-170
-85
-476
-51

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col1 <> ( + col0 )
----
14
47
5

query I rowsort
SELECT DISTINCT + + 20 FROM tab1 cor0
----
20

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

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

query II rowsort
SELECT col1, 35 AS col2 FROM tab1
----
14
35
47
35
5
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-211
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-212
SELECT DISTINCT - 31 DIV COUNT( * ) AS col2 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT - 31 / COUNT ( * ) AS col2 FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT ALL - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-10
-47
-99

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

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

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

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

query I rowsort
SELECT - col2 * - col0 * col2 * + col2 AS col0 FROM tab1 AS cor0
----
17457215
28613312
45121536

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 98 - 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 98 - 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

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

query I rowsort
SELECT - 67 * - - ( - col0 ) + + col1 AS col1 FROM tab0 cor0
----
1086
5850
6500

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT - SUM( ( - + 97 ) ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-230
SELECT - SUM ( ( - + 97 ) ) AS col2 FROM tab0 AS cor0
----
291

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT 90 DIV + + col2 FROM tab0 cor0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-232
SELECT 90 / + + col2 FROM tab0 cor0
----
0
1
9

query II rowsort
SELECT ALL 34, col2 - + col0 AS col2 FROM tab2 cor0 WHERE 19 > NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT DISTINCT ( + + col2 ) DIV - col1 + col0 + - col2 - ( + 26 ) AS col1 FROM tab1
----
-11
-4
-77

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT ( + + col2 ) / - col1 + col0 + - col2 - ( + 26 ) AS col1 FROM tab1
----
-11
-4
-77

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

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

query I rowsort
SELECT ALL col0 - + col0 * 59 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-238
SELECT DISTINCT COUNT( * ) - + COUNT( * ) * + CAST( SUM( DISTINCT - 21 ) AS SIGNED ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) * + CAST ( SUM ( DISTINCT - 21 ) AS INTEGER ) AS col0 FROM tab2
----
66

query I rowsort
SELECT col2 * + 9 - 59 + col0 FROM tab2
----
194
365
538

query II rowsort
SELECT + col2 AS col2, - 34 - + 14 AS col1 FROM tab1 AS cor0
----
59
-48
68
-48
96
-48

query I rowsort
SELECT col2 * + 73 AS col0 FROM tab2 AS cor0
----
1679
2920
4234

query I rowsort
SELECT - col0 * + col0 - - - 95 AS col2 FROM tab0 AS cor0
----
-320
-7664
-9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 96 AS col0, 71 + + col2 col1 FROM tab1 AS cor0
----
96
130
96
139
96
167

query II rowsort
SELECT - 53 * col1 AS col2, col2 FROM tab2 cor0
----
-2703
23
-3551
58
-4081
40

query I rowsort
SELECT ALL + 12 * - col0 AS col1 FROM tab0 AS cor0
----
-1044
-1164
-180

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT DISTINCT + MAX( - ( - 6 ) ) + + - 93 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + MAX ( - ( - 6 ) ) + + - 93 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT col1 * + ( - col0 ) + - + 76 FROM tab1
----
-4353
-501
-790

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - + 95
----

query I rowsort
SELECT DISTINCT + col1 + 10 + + col2 FROM tab2 AS cor0
----
127
135
84

query I rowsort
SELECT - 56 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col0 * col1 )
----

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

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

query I rowsort
SELECT DISTINCT - 12 FROM tab0 WHERE col2 IN ( - 16 )
----

query I rowsort
SELECT DISTINCT - col2 - + 12 * col1 FROM tab2
----
-635
-862
-964

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT + 20 DIV - 70 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-259
SELECT + 20 / - 70 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - 14 AS col2 FROM tab0
----
-4
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL > col0
----
0

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL > col0
----
0

query I rowsort
SELECT DISTINCT - col2 + - 89 FROM tab2
----
-112
-129
-147

query I rowsort
SELECT col0 * 31 FROM tab2
----
1426
1984
2325

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 / 23 + 32 ) NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT COUNT( * ) * - SUM( 66 * - 28 ) AS col0 FROM tab2
----
16632

skipif mysql # not compatible
query I rowsort label-266
SELECT COUNT ( * ) * - SUM ( 66 * - 28 ) AS col0 FROM tab2
----
16632

query I rowsort
SELECT + ( + col1 ) - ( col0 ) AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL - col0 * - 79 AS col0 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT col2 * 72 AS col1 FROM tab1
----
4248
4896
6912

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT ALL + 77 DIV - 47 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL + 77 / - 47 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 43 * col1 FROM tab0
----
3483
43
903

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

query I rowsort
SELECT ALL + 66 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT 81 * COUNT( * ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-274
SELECT 81 * COUNT ( * ) FROM tab1
----
243

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( + 73 ) > ( col2 )
----
96

query I rowsort
SELECT DISTINCT 54 FROM tab0 WHERE NOT col2 <= - col2
----
54

query III rowsort
SELECT * FROM tab2 WHERE ( col0 / - col0 ) NOT BETWEEN ( NULL ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL - SUM( ALL col2 ) * - COUNT( * ) FROM tab1 WHERE NOT col1 * - col1 + - col1 * - col2 IS NULL
----
669

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - SUM ( ALL col2 ) * - COUNT ( * ) FROM tab1 WHERE NOT col1 * - col1 + - col1 * - col2 IS NULL
----
669

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ( + MAX( col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-280
SELECT ( + MAX ( col0 ) ) FROM tab0
----
97

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * 61 AS col1 FROM tab2 AS cor0
----
2806
3904
4575

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

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

query I rowsort
SELECT col1 * 14 AS col0 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 WHERE NULL >= NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT SUM( - col2 ) / AVG ( ALL + col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT SUM ( - col2 ) / AVG ( ALL + col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL SUM ( ALL + col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT + COUNT( * ) + COUNT( * ) * 11 FROM tab2 AS cor0 CROSS JOIN tab0
----
108

skipif mysql # not compatible
query I rowsort label-292
SELECT + COUNT ( * ) + COUNT ( * ) * 11 FROM tab2 AS cor0 CROSS JOIN tab0
----
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - MIN( col0 ) + + 91 FROM tab0 cor0
----
76

skipif mysql # not compatible
query I rowsort label-295
SELECT - MIN ( col0 ) + + 91 FROM tab0 cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + 46 >= 39 + + col1
----
97
1
99

query I rowsort
SELECT ( 93 ) + + col1 FROM tab1 AS cor0
----
107
140
98

query I rowsort
SELECT col2 + - 70 FROM tab1 AS cor0
----
-11
-2
26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT ALL - col1 + + + col0 DIV - col2 col1 FROM tab2
----
-53
-68
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-301
SELECT ALL - col1 + + + col0 / - col2 col1 FROM tab2
----
-53
-68
-78

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT + MAX( - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-304
SELECT + MAX ( - col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * COUNT( col1 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * COUNT ( col1 ) FROM tab1
----
27

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

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

query I rowsort
SELECT col1 + - col2 * + col0 AS col1 FROM tab1 cor0
----
-4882
-5010
-6141

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

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

query I rowsort
SELECT - col0 + 27 FROM tab0 AS cor0
----
-60
-70
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 72 >= col2
----

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

query I rowsort
SELECT ALL - 3 * + col1 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT DISTINCT + 36 * col0 AS col0 FROM tab1 AS cor0
----
1836
3060
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT 97 DIV + - 85 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-315
SELECT 97 / + - 85 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL + COUNT( * ) * 77 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + COUNT ( * ) * 77 FROM tab1 AS cor0
----
231

query I rowsort
SELECT DISTINCT 94 * - - col1 + col1 * col1 FROM tab1 AS cor0
----
1512
495
6627

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

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + + COUNT ( * ) + + + MAX ( DISTINCT col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
105

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + col1 AND NULL
----
46
51
23
64
77
40

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 / + col0 + + 17 ) BETWEEN NULL AND - col0 + 26
----

query I rowsort
SELECT + 82 - col2 + + col0 + + col2 * - 17 FROM tab0 AS cor0
----
-11
-1603
-749

query I rowsort
SELECT ALL + 25 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT + 87 DIV + + col1 + col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-326
SELECT + 87 / + + col1 + col2 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT ALL - col0 * - 82 AS col0 FROM tab1 AS cor0
----
4182
6970
7462

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

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col1 BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT - ( - - ( + ( col2 ) ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT MAX( - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-332
SELECT MAX ( - col0 ) FROM tab0
----
-15

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

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

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE ( - col2 ) BETWEEN col2 AND + - col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - COUNT( * ) * - 35 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-337
SELECT - COUNT ( * ) * - 35 FROM tab2 AS cor0
----
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col0 ) BETWEEN + col0 AND - + col0 - - col2
----
-3

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col0 ) BETWEEN + col0 AND - + col0 - - col2
----
-3

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-342
SELECT - CAST ( col1 AS INTEGER ) * + 54 col2 FROM tab0 AS cor0 WHERE NOT - 31 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT col0 + - + CAST( - col2 AS SIGNED ) + - 56 FROM tab1 AS cor0
----
103
88
91

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT col0 + - + CAST ( - col2 AS INTEGER ) + - 56 FROM tab1 AS cor0
----
103
88
91

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

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

query I rowsort
SELECT ALL + 48 + col2 + + col2 FROM tab0
----
142
246
68

query I rowsort
SELECT + 73 + 23 + col1 AS col2 FROM tab1
----
101
110
143

query II rowsort
SELECT ALL + col1, col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT col1 * - + 1 AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT 61 + + COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-350
SELECT 61 + + COUNT ( * ) FROM tab0
----
64

query I rowsort
SELECT - col0 + col1 * + 25 FROM tab2 WHERE ( NULL IS NULL )
----
1229
1600
1861

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NOT + col2 * + col0 <= ( col0 )
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 53 * 84 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-355
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 53 * 84 IS NOT NULL
----
9

query I rowsort
SELECT col1 - + 63 * - ( - col1 ) FROM tab0
----
-1302
-5022
-62

query I rowsort
SELECT DISTINCT - 42 - - - col1 FROM tab1
----
-47
-56
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 - 72 col2, col1 + - 89 FROM tab1
----
-35
-42
-35
-75
-35
-84

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT ALL + 50 DIV MIN( DISTINCT + 76 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + 50 / MIN ( DISTINCT + 76 ) FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT 5 AS col1 FROM tab1 cor0 WHERE NOT ( + col0 - - 13 - - col1 * 62 * col2 NOT IN ( - 89 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-364
SELECT + 56 DIV + col0 AS col2, - 33 FROM tab0 AS cor0
----
0
-33
0
-33
3
-33

skipif mysql # not compatible
query II rowsort label-364
SELECT + 56 / + col0 AS col2, - 33 FROM tab0 AS cor0
----
0
-33
0
-33
3
-33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < + 12
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - - col2 * 0 / ( + col0 )
----

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

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

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

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

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

query I rowsort
SELECT - col1 * + - col1 AS col1 FROM tab2
----
2601
4489
5929

query II rowsort
SELECT - 46 AS col0, 95 FROM tab0
----
-46
95
-46
95
-46
95

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 - - 1 - - 19 + - col1 * 23 + - + col1 + + 10 >= NULL
----

query I rowsort
SELECT ALL + 64 FROM tab2 WHERE NOT - col0 <> NULL
----

query II rowsort
SELECT ( ( 8 ) ), 63 - - col1 * ( + + col2 ) AS col1 FROM tab0
----
8
162
8
273
8
3870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-375
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-375
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN ( 85 ) AND col2
----
23
40
58

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-378
SELECT DISTINCT + 9 col1 FROM tab0 AS cor0 WHERE NOT + col0 * CAST( col0 AS DECIMAL ) IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-378
SELECT DISTINCT + 9 col1 FROM tab0 AS cor0 WHERE NOT + col0 * CAST ( col0 AS REAL ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT MIN( ALL col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-379
SELECT MIN ( ALL col1 ) FROM tab2
----
51

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 39 * + 94 + + 96 FROM tab1 cor0
----
172398
18426
51420

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL COUNT( * ) + + 93 AS col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL COUNT ( * ) + + 93 AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT 67 * col0 + - + col1 + - col0 FROM tab1 AS cor0
----
3352
5605
5959

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

query I rowsort
SELECT + + 62 AS col0 FROM tab0 AS cor0
----
62
62
62

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND 98
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > + 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * - col2 * + col0 col1 FROM tab1
----
-352512
-361080
-445536

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

query I rowsort
SELECT ALL - 91 + - 66 FROM tab2 AS cor0
----
-157
-157
-157

query I rowsort
SELECT - col0 * + ( 47 ) - - 6 AS col1 FROM tab0 AS cor0
----
-4083
-4553
-699

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-395
SELECT * FROM tab2 WHERE NOT ( - ( col2 ) ) BETWEEN NULL AND - ( + - CAST( NULL AS SIGNED ) ) OR NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-395
SELECT * FROM tab2 WHERE NOT ( - ( col2 ) ) BETWEEN NULL AND - ( + - CAST ( NULL AS INTEGER ) ) OR NULL IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT col2, col2 + - - col1 FROM tab2 AS cor0
----
23
74
40
117
58
125

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

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT - - 63 DIV + 6 FROM tab1 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-401
SELECT - - 63 / + 6 FROM tab1 AS cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 95 AS col0 FROM tab2 AS cor0
----
46
95
64
95
75
95

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT DISTINCT + col1 * col1 * + 5 + col0 FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) <> col2 * col1 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - + col2 + col0
----

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + col1 * col1 * + 5 + col0 FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) <> col2 * col1 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + col2 + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 73 NOT IN ( - col1, 84, - 83, + col1 )
----

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

query I rowsort
SELECT ALL - col2 * + + ( - col2 ) FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-410
SELECT ALL - 66 DIV - col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - 66 / - col0 AS col1 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL <= 58 * - + ( col2 ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-411
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL <= 58 * - + ( col2 ) + col1
----
0

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

query I rowsort
SELECT 81 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
81
81
81

query I rowsort
SELECT + 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - col2 FROM tab1 WHERE - col1 BETWEEN NULL AND - 21 * + col0 - + - col2
----

query II rowsort
SELECT + col0 AS col1, 0 AS col1 FROM tab2
----
46
0
64
0
75
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 cor1 ON ( NULL IS NOT NULL )
----

query I rowsort
SELECT - 6 + - 95 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d0ef0a1d81af4018c86ba51e4b5f20f

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT DISTINCT - - 33 DIV 7 - + 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT - - 33 / 7 - + 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - SUM( - 59 ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-420
SELECT - SUM ( - 59 ) FROM tab2 AS cor0
----
177

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

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

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

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

query I rowsort
SELECT ALL ( + AVG ( + col1 ) ) FROM tab1 AS cor0 WHERE - col1 <> ( NULL )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT + + ( + col1 ) DIV col0 + col0 col0 FROM tab0 cor0
----
20
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-427
SELECT + + ( + col1 ) / col0 + col0 col0 FROM tab0 cor0
----
20
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT DISTINCT - 6 + col0 DIV + col0 AS col2 FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - 6 + col0 / + col0 AS col2 FROM tab2 cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 25 col2 FROM tab1
----
121
84
93

query I rowsort
SELECT ALL 30 + + - col0 FROM tab1 WHERE - 61 * + + col1 IS NULL
----

query I rowsort
SELECT col0 + 81 AS col0 FROM tab0
----
168
178
96

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-434
SELECT * FROM tab2 WHERE - CAST( + - col1 AS SIGNED ) IN ( + col2, col0 * + + 79 * col2 + 27, - - CAST( + 88 AS SIGNED ) + - 12 )
----

skipif mysql # not compatible
query III rowsort label-434
SELECT * FROM tab2 WHERE - CAST ( + - col1 AS INTEGER ) IN ( + col2, col0 * + + 79 * col2 + 27, - - CAST ( + 88 AS INTEGER ) + - 12 )
----

query I rowsort
SELECT col2 + + col2 + - 59 AS col0 FROM tab2
----
-13
21
57

query I rowsort
SELECT - col2 + - ( + 44 ) AS col1 FROM tab0
----
-143
-54
-91

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + 66 * + col1 AS col2 FROM tab1
----
3102
330
924

query I rowsort
SELECT DISTINCT - + 9 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT 21 * SUM( - ( col1 ) ) FROM tab1 AS cor0
----
-1386

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT 21 * SUM ( - ( col1 ) ) FROM tab1 AS cor0
----
-1386

query I rowsort
SELECT DISTINCT - ( - - col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT SUM( - + 88 ) col0 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-442
SELECT SUM ( - + 88 ) col0 FROM tab2 AS cor0
----
-264

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

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT DISTINCT + 32 * + + 88 + + - 7 + col2 - - col0 + - 94 - col1 DIV - 43 AS col0 FROM tab2 AS cor0
----
2785
2820
2849

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT + 32 * + + 88 + + - 7 + col2 - - col0 + - 94 - col1 / - 43 AS col0 FROM tab2 AS cor0
----
2785
2820
2849

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-449
SELECT ALL 65 DIV COUNT( * ), COUNT( * ) + + - 47 AS col2 FROM tab0
----
21
-44

skipif mysql # not compatible
query II rowsort label-449
SELECT ALL 65 / COUNT ( * ), COUNT ( * ) + + - 47 AS col2 FROM tab0
----
21
-44

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

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

query II rowsort
SELECT col2 * - 45 AS col1, - 52 FROM tab0
----
-2115
-52
-4455
-52
-450
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT DISTINCT - COUNT( * ) * MIN( DISTINCT - + ( - col0 ) ) AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT - + ( - col0 ) ) AS col2 FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-453
SELECT ALL - 23 AS col1, 82 * + COUNT( * ) AS col1 FROM tab0
----
-23
246

skipif mysql # not compatible
query II rowsort label-453
SELECT ALL - 23 AS col1, 82 * + COUNT ( * ) AS col1 FROM tab0
----
-23
246

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

query II rowsort
SELECT DISTINCT - - 85 AS col1, - 48 FROM tab2 AS cor0
----
85
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 * - - col0 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL - MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT SUM( ALL - - 54 ) col1 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-458
SELECT SUM ( ALL - - 54 ) col1 FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 39 * COUNT( * ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-459
SELECT + 39 * COUNT ( * ) FROM tab0 AS cor0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-460
SELECT - - 48 + AVG ( CAST( NULL AS SIGNED ) ) * 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT - - 48 + AVG ( CAST ( NULL AS INTEGER ) ) * 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL 23 * col1 FROM tab0 cor0
----
1863
23
483

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

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

query I rowsort
SELECT DISTINCT + col2 + 14 + col1 FROM tab1 AS cor0
----
124
129
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 69 > NULL
----

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

query II rowsort
SELECT DISTINCT col2 + 36 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
135
-99
46
-10
83
-47

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

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL 56 + 83 * CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + + col2 - - + 52 FROM tab1
----
116
162
167

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

query II rowsort
SELECT col1 - + col1 + - 49 * + ( - col0 ) + + col1, 66 AS col0 FROM tab2
----
2305
66
3213
66
3742
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / - col2 <= + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-473
SELECT - CAST( - 94 AS SIGNED ), col2 FROM tab0 AS cor0
----
94
10
94
47
94
99

skipif mysql # not compatible
query II rowsort label-473
SELECT - CAST ( - 94 AS INTEGER ), col2 FROM tab0 AS cor0
----
94
10
94
47
94
99

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT + - COUNT( * ) * - - COUNT( * ) * 53 - MIN( ALL 94 ) - 76 + + 16 FROM tab0 cor0 WHERE NOT ( NOT NULL BETWEEN - 20 AND col2 * + col2 / - 81 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + - COUNT ( * ) * - - COUNT ( * ) * 53 - MIN ( ALL 94 ) - 76 + + 16 FROM tab0 cor0 WHERE NOT ( NOT NULL BETWEEN - 20 AND col2 * + col2 / - 81 * col2 )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 * + - 98 col1 FROM tab1 AS cor0
----
5292

onlyif mysql # aggregate syntax: 
query II rowsort label-477
SELECT DISTINCT - SUM( DISTINCT + - col0 ) * + - SUM( 17 ) AS col1, 86 AS col2 FROM tab1 cor0
----
-11577
86

skipif mysql # not compatible
query II rowsort label-477
SELECT DISTINCT - SUM ( DISTINCT + - col0 ) * + - SUM ( 17 ) AS col1, 86 AS col2 FROM tab1 cor0
----
-11577
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * + + 63 col1 FROM tab0 AS cor0
----
5481
6111
945

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

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

query II rowsort
SELECT ALL col0, 62 AS col1 FROM tab1
----
51
62
85
62
91
62

query I rowsort
SELECT DISTINCT 0 * + col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, 72 AS col2 FROM tab2
----
46
72
64
72
75
72

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT + COUNT( * ) DIV COUNT( * ) + SUM( - col0 ) col1 FROM tab1
----
-226

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-484
SELECT + COUNT ( * ) / COUNT ( * ) + SUM ( - col0 ) col1 FROM tab1
----
-226

query I rowsort
SELECT - 41 + + + col2 + - + col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NULL BETWEEN 86 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT 20 + - - col2 FROM tab2
----
43
60
78

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT + col2 DIV col0 * - 78 * col1 FROM tab1
----
-1092
0
0

skipif mysql # not compatible
query I rowsort label-489
SELECT + col2 / col0 * - 78 * col1 FROM tab1
----
-1092
0
0

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

query I rowsort
SELECT - col1 FROM tab0 WHERE + + col1 = + col0
----

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

query I rowsort
SELECT ALL + col0 + + 23 FROM tab1 AS cor0
----
108
114
74

query I rowsort
SELECT + col0 * + 18 FROM tab0 AS cor0
----
1566
1746
270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 53 + - + col1
----

query I rowsort
SELECT ALL col2 * - 4 * 53 FROM tab1 AS cor0
----
-12508
-14416
-20352

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

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

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

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

query I rowsort
SELECT ALL col1 + - + col0 AS col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT col1 + + - 70 FROM tab0
----
-49
-69
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT DISTINCT - + col2 * - ( ( 80 ) ) AS col2 FROM tab2 WHERE - 99 NOT IN ( CAST( 54 AS SIGNED ) * + col1, 16 )
----
1840
3200
4640

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - + col2 * - ( ( 80 ) ) AS col2 FROM tab2 WHERE - 99 NOT IN ( CAST ( 54 AS INTEGER ) * + col1, 16 )
----
1840
3200
4640

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT MAX( DISTINCT col1 ) col0 FROM tab2 AS cor0 WHERE NOT - 63 IS NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-505
SELECT DISTINCT MAX ( DISTINCT col1 ) col0 FROM tab2 AS cor0 WHERE NOT - 63 IS NULL
----
77

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

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

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

query II rowsort
SELECT ALL + 37 AS col1, col1 + + + col0 + - col1 * + 21 AS col1 FROM tab1
----
37
-15
37
-229
37
-849

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + col2 * 26 * + + 10 + - 16 * + 2
----

query I rowsort
SELECT ALL - col2 + - 41 + col0 FROM tab2 cor0
----
-17
-18
-24

query I rowsort
SELECT - 77 + + + col2 AS col0 FROM tab1 AS cor0
----
-18
-9
19

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL + COUNT( * ) + - - 87 * SUM( ALL - - ( 87 ) ) FROM tab1 AS cor0
----
22710

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + COUNT ( * ) + - - 87 * SUM ( ALL - - ( 87 ) ) FROM tab1 AS cor0
----
22710

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-515
SELECT 23 DIV 25 * + - CAST( - col1 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-515
SELECT 23 / 25 * + - CAST ( - col1 AS INTEGER ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 57 + + col1 FROM tab2
----
108
124
134

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

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

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

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

query I rowsort
SELECT + 90 * 65 * - 98 * - 49 FROM tab2
----
28091700
28091700
28091700

query I rowsort
SELECT ALL - 68 * - ( + col2 ) FROM tab2
----
1564
2720
3944

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-521
SELECT ALL col1 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( 15 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-521
SELECT ALL col1 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( 15 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 56 FROM tab2 cor0 WHERE ( + 33 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-523
SELECT ALL * FROM tab1 WHERE NOT - - col2 / - + col0 IN ( + col0, CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-523
SELECT ALL * FROM tab1 WHERE NOT - - col2 / - + col0 IN ( + col0, CAST ( NULL AS INTEGER ) + - col2 )
----

query I rowsort
SELECT - col2 * - col0 + - + col2 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT + 93 DIV - 4 AS col2 FROM tab0 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-525
SELECT + 93 / - 4 AS col2 FROM tab0 AS cor0
----
-23
-23
-23

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

skipif mysql # not compatible
query I rowsort label-526
SELECT 97 * COUNT ( * ) FROM tab1 AS cor0
----
291

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT DISTINCT - + col1 DIV + 6 - + ( - col0 ) FROM tab2 AS cor0
----
38
52
64

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT - + col1 / + 6 - + ( - col0 ) FROM tab2 AS cor0
----
38
52
64

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

query I rowsort
SELECT ALL + - 14 + 93 + 82 AS col1 FROM tab2 AS cor0
----
161
161
161

query I rowsort
SELECT + col1 - + 91 + 42 AS col1 FROM tab2 AS cor0
----
18
2
28

query III rowsort
SELECT * FROM tab2 WHERE + 37 > - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col0 >= - - col1 * + 67 * + - col1 * CAST( - 61 AS SIGNED ) * + 16
----
3

skipif mysql # not compatible
query I rowsort label-533
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col0 >= - - col1 * + 67 * + - col1 * CAST ( - 61 AS INTEGER ) * + 16
----
3

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

query I rowsort
SELECT DISTINCT - ( ( - 68 ) ) * - 2 * - 31 FROM tab0
----
4216

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT ALL MAX( + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL MAX ( + col0 ) AS col2 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + 17 col1 FROM tab0
----
15
17
87
17
97
17

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-538
SELECT ALL + MIN ( ALL - col1 ) col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT - + COUNT( * ) * - - 61 col0 FROM tab0 AS cor0 WHERE NOT 52 NOT BETWEEN + 96 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-539
SELECT DISTINCT - + COUNT ( * ) * - - 61 col0 FROM tab0 AS cor0 WHERE NOT 52 NOT BETWEEN + 96 AND NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - - col0 / ( + ( CAST ( NULL AS REAL ) ) ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * - col2 >= col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL - - 64 AS col2 FROM tab2 AS cor0
----
64
64
64

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

query I rowsort
SELECT DISTINCT - 91 FROM tab0 cor0
----
-91

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

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

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

query I rowsort
SELECT + 74 * - 12 * 42 AS col1 FROM tab1
----
-37296
-37296
-37296

query I rowsort
SELECT - col1 + - - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 25 + + col0 FROM tab1
----
110
116
76

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

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

query I rowsort
SELECT 43 + col1 + - col1 - + col1 AS col0 FROM tab2
----
-24
-34
-8

query I rowsort
SELECT + col0 * - 43 + - - col2 AS col2 FROM tab1
----
-2097
-3596
-3845

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

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

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

query I rowsort
SELECT ALL col1 - + 98 FROM tab1
----
-51
-84
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT DISTINCT col2 + - col2 + col2 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT col2 + - col2 + col2 / - col0 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT - - COUNT( * ) + - - COUNT( * ) col1 FROM tab2 WHERE NULL > + col1
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 <= col0 * col0 * + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT - - SUM( ALL - col0 ) + + 46 AS col2 FROM tab1 AS cor0
----
-181

skipif mysql # not compatible
query I rowsort label-567
SELECT - - SUM ( ALL - col0 ) + + 46 AS col2 FROM tab1 AS cor0
----
-181

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col1 * col1 ) <> col1
----
97
1
99

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

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

query I rowsort
SELECT DISTINCT col2 * - - 49 + + + col0 FROM tab0 AS cor0
----
2318
4948
577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-573
SELECT - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ( - MAX( - ( col0 ) ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-576
SELECT ( - MAX ( - ( col0 ) ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL + COUNT( ALL - 41 ) * 94 + + 95 AS col0 FROM tab2
----
377

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + COUNT ( ALL - 41 ) * 94 + + 95 AS col0 FROM tab2
----
377

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

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

query I rowsort
SELECT ALL 47 * col0 * + col1 FROM tab1
----
19975
201019
33558

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-584
SELECT ALL 95 AS col0, COUNT( * ) FROM tab0 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-584
SELECT ALL 95 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT COUNT( * ) * 29 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-585
SELECT COUNT ( * ) * 29 FROM tab1
----
87

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT + 98 * COUNT( * ) AS col0, + 77 AS col2 FROM tab1
----
294
77

skipif mysql # not compatible
query II rowsort label-587
SELECT + 98 * COUNT ( * ) AS col0, + 77 AS col2 FROM tab1
----
294
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col0 IS NULL
----

query I rowsort
SELECT ALL col0 * + + 41 * - + 6 FROM tab0 AS cor0 WHERE NOT - col2 * + + ( + - col0 ) + + + col2 IS NULL AND NOT NULL >= NULL
----

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

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

query I rowsort
SELECT ALL + - 99 + - col2 * + + col2 FROM tab2 AS cor0
----
-1699
-3463
-628

query I rowsort
SELECT DISTINCT 38 - - - col1 + ( + + col1 ) + - col0 * + col0 FROM tab2
----
-2078
-4058
-5587

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - 8 / col1 + - + ( 66 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, 71 * + - col1 AS col2 FROM tab0
----
10
-1491
47
-5751
99
-71

query II rowsort
SELECT DISTINCT + col0 AS col1, - ( + 39 ) FROM tab0 AS cor0
----
15
-39
87
-39
97
-39

query II rowsort
SELECT DISTINCT 29 AS col1, + 24 FROM tab1 AS cor0
----
29
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - 88 <> - 3
----
0

skipif mysql # not compatible
query I rowsort label-598
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - 88 <> - 3
----
0

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

query II rowsort
SELECT ALL - + 10, + ( col2 ) + + - 50 AS col2 FROM tab0 AS cor0
----
-10
-3
-10
-40
-10
49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-602
SELECT - + COUNT( * ) * - ( + 96 ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
288
3

skipif mysql # not compatible
query II rowsort label-602
SELECT - + COUNT ( * ) * - ( + 96 ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
288
3

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT - + MAX( DISTINCT col2 ) * - 34 FROM tab2 AS cor0
----
1972

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - + MAX ( DISTINCT col2 ) * - 34 FROM tab2 AS cor0
----
1972

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT ALL + col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN + + ( - CAST( + 19 AS SIGNED ) ) * + 26 AND ( + col2 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN + + ( - CAST ( + 19 AS INTEGER ) ) * + 26 AND ( + col2 )
----
14
47
5

query I rowsort
SELECT ALL 70 * + col2 * col1 AS col1 FROM tab1
----
20650
223720
94080

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

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT DISTINCT - col2 DIV - - ( + col2 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT - col2 / - - ( + col2 ) AS col0 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT 72 + col2 BETWEEN + col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 * col2 AS col0, - col2 AS col1 FROM tab0
----
-100
-10
-2209
-47
-9801
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL MAX( - 26 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL MAX ( - 26 ) FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT + + 55 * - COUNT( * ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-613
SELECT + + 55 * - COUNT ( * ) FROM tab2 AS cor0
----
-165

query I rowsort
SELECT ALL + + col0 * + ( - + 13 ) FROM tab2 AS cor0
----
-598
-832
-975

query I rowsort
SELECT col2 + ( 15 ) AS col2 FROM tab2 WHERE NOT - col1 BETWEEN - - col0 AND + col0
----
38
55
73

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

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + CAST ( 20 AS INTEGER ) / - - col0 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT COUNT( * ) * - COUNT( * ) * + 48 AS col2 FROM tab2
----
-432

skipif mysql # not compatible
query I rowsort label-618
SELECT COUNT ( * ) * - COUNT ( * ) * + 48 AS col2 FROM tab2
----
-432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE 16 / col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE 16 / col0 IS NOT NULL
----
3

query II rowsort
SELECT col0, - col0 FROM tab2 cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE 59 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-623
SELECT COUNT( * ) DIV CAST( - ( 8 ) AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-623
SELECT COUNT ( * ) / CAST ( - ( 8 ) AS INTEGER ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 / 29 + + - col0 NOT BETWEEN NULL AND - + col2
----
15
81
47
97
1
99

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + col1 * + - col1 AS col2, 67 col1 FROM tab0 AS cor0
----
308367
67
4410
67
99
67

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

query I rowsort
SELECT ( col2 ) FROM tab2 WHERE + + 41 + + 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-630
SELECT col1 + + CAST( - - col2 AS SIGNED ) + - - col1 AS col0, + 2 AS col1 FROM tab1
----
124
2
162
2
69
2

skipif mysql # not compatible
query II rowsort label-630
SELECT col1 + + CAST ( - - col2 AS INTEGER ) + - - col1 AS col0, + 2 AS col1 FROM tab1
----
124
2
162
2
69
2

query III rowsort
SELECT * FROM tab1 WHERE + + 16 * - - 65 * - 69 * - + col2 IS NULL
----

query I rowsort
SELECT col1 + - - col0 + 4 FROM tab1 AS cor0
----
142
69
94

query I rowsort
SELECT col1 + + col1 - + - 32 * - 31 AS col2 FROM tab2 AS cor0
----
-838
-858
-890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-634
SELECT ALL - - col2 AS col1, CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-634
SELECT ALL - - col2 AS col1, CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT - 33 - + - col1 * - col2 FROM tab0
----
-132
-243
-3840

query I rowsort
SELECT + col2 - - 16 AS col2 FROM tab0
----
115
26
63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT + + ( COUNT( * ) ) AS col0, + 21 FROM tab2 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-638
SELECT + + ( COUNT ( * ) ) AS col0, + 21 FROM tab2 AS cor0
----
3
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + + 23 > + col0 )
----

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab0 cor0
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - 59 * + + MIN( - col1 ) FROM tab0 AS cor0
----
4779

skipif mysql # not compatible
query I rowsort label-643
SELECT - 59 * + + MIN ( - col1 ) FROM tab0 AS cor0
----
4779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-644
SELECT + col2 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-644
SELECT + col2 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT + ( ( - 63 ) ) FROM tab0
----
-63
-63
-63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT 55 DIV col0 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-647
SELECT 55 / col0 AS col2 FROM tab0
----
0
0
3

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + 62 = + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT ALL - 12 DIV + col0 * + col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - 12 / + col0 * + col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col0 + - 63 AS col2 FROM tab1 AS cor0
----
-12
22
28

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT COUNT( * ) + + + 79 + + COUNT( * ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT COUNT ( * ) + + + 79 + + COUNT ( * ) FROM tab2 AS cor0
----
85

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL - 23 * + COUNT ( * ) FROM tab2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-662
SELECT DISTINCT + col2 - + 17 * col2 DIV - col0 FROM tab0
----
100
11
116

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT + col2 - + 17 * col2 / - col0 FROM tab0
----
100
11
116

query II rowsort
SELECT DISTINCT col0 AS col1, col2 * - col1 * + col2 AS col2 FROM tab1
----
51
-129024
85
-17405
91
-217328

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

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

query I rowsort
SELECT DISTINCT - col2 * - col0 * - - 29 * col0 FROM tab2 AS cor0
----
1411372
4751360
9461250

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 25, - col1, - - col2, col0 )
----

query I rowsort
SELECT 52 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT MIN( + 62 ) FROM tab2 cor0
----
62

skipif mysql # not compatible
query I rowsort label-669
SELECT MIN ( + 62 ) FROM tab2 cor0
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-670
SELECT DISTINCT col0 AS col2, + col2 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-670
SELECT DISTINCT col0 AS col2, + col2 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT col0 AS col2, 80 FROM tab0 AS cor0
----
15
80
87
80
97
80

query I rowsort
SELECT - 58 AS col1 FROM tab2 cor0
----
-58
-58
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT DISTINCT + + COUNT( * ) + + SUM( DISTINCT col0 ) col2 FROM tab0 cor0 WHERE col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-674
SELECT DISTINCT + + COUNT ( * ) + + SUM ( DISTINCT col0 ) col2 FROM tab0 cor0 WHERE col1 BETWEEN NULL AND NULL
----
NULL

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

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

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

query I rowsort
SELECT + - 20 AS col1 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT 55 * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-678
SELECT 55 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-165

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

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

query I rowsort
SELECT DISTINCT + col0 + + + ( - col2 ) AS col0 FROM tab0 WHERE NOT 89 + - - col2 IS NULL
----
-2
-32
77

query II rowsort
SELECT DISTINCT ( - col0 ), + col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * + - 51 col0 FROM tab0
----
-1785

query I rowsort
SELECT ALL 44 * - - col1 FROM tab0
----
3564
44
924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-684
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND 88
----

skipif mysql # not compatible
query III rowsort label-684
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND 88
----

query I rowsort
SELECT + + 38 * - 76 + - 10 FROM tab2 AS cor0 WHERE NOT - 29 + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 + - + 15 FROM tab1 AS cor0
----
-20
-29
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 59 ) + 72 - - col1 + - + col1 * + col0 col1 FROM tab1 AS cor0
----
-407
-4217
-687

query I rowsort
SELECT DISTINCT col0 * - + 75 AS col1 FROM tab1
----
-3825
-6375
-6825

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

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

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

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

query I rowsort
SELECT - - col2 * + - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT 99 - + 91 - - col1 FROM tab2 AS cor0
----
59
75
85

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-695
SELECT ALL - 22 DIV - - CAST( + col0 AS SIGNED ) + - col2 AS col1 FROM tab0 cor0
----
-10
-48
-99

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL - 22 / - - CAST ( + col0 AS INTEGER ) + - col2 AS col1 FROM tab0 cor0
----
-10
-48
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT DISTINCT + SUM( DISTINCT + + col1 ) * + - 5 + - 71 AS col1 FROM tab2
----
-1046

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT + SUM ( DISTINCT + + col1 ) * + - 5 + - 71 AS col1 FROM tab2
----
-1046

query I rowsort
SELECT DISTINCT - 62 - + col2 + col0 FROM tab2
----
-38
-39
-45

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

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT COUNT ( * ) + + - 99 FROM tab2
----
-96

query I rowsort
SELECT - 69 + - - col2 AS col1 FROM tab0
----
-22
-59
30

query I rowsort
SELECT DISTINCT + 35 - - - col2 FROM tab0
----
-12
-64
25

query I rowsort
SELECT DISTINCT col2 - - - 96 FROM tab0
----
-49
-86
3

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

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

query II rowsort
SELECT + col0 AS col0, + col2 * col1 * col2 FROM tab2
----
46
26979
64
123200
75
225388

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

query I rowsort
SELECT DISTINCT + + 57 FROM tab2 cor0
----
57

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

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

query I rowsort
SELECT + 43 * + + col0 AS col2 FROM tab2 AS cor0
----
1978
2752
3225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT + MIN( + 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-711
SELECT + MIN ( + 16 ) FROM tab2
----
16

query II rowsort
SELECT ALL 68 AS col2, - col1 FROM tab1
----
68
-14
68
-47
68
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab2 WHERE NOT - ( - col1 ) <> NULL
----

query II rowsort
SELECT DISTINCT - col2, - col2 * col0 AS col0 FROM tab1
----
-59
-5015
-68
-6188
-96
-4896

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

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

query II rowsort
SELECT + + 32 AS col0, - col0 FROM tab1 AS cor0
----
32
-51
32
-85
32
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT - col1 + + 69 DIV + + col1 AS col1 FROM tab1 AS cor0
----
-10
-46
8

skipif mysql # not compatible
query I rowsort label-718
SELECT - col1 + + 69 / + + col1 AS col1 FROM tab1 AS cor0
----
-10
-46
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT COUNT( * ) * - - 87 AS col0 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT COUNT ( * ) * - - 87 AS col0 FROM tab0
----
261

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-724
SELECT - CAST( + - col2 AS SIGNED ) * + 59 - - 17 FROM tab2 AS cor0
----
1374
2377
3439

skipif mysql # not compatible
query I rowsort label-724
SELECT - CAST ( + - col2 AS INTEGER ) * + 59 - - 17 FROM tab2 AS cor0
----
1374
2377
3439

query I rowsort
SELECT + col2 - - - 19 FROM tab2
----
21
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT 95 + - MAX( col0 ) FROM tab0 WHERE NULL NOT IN ( - + 54 + - 24, 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT 95 + - MAX ( col0 ) FROM tab0 WHERE NULL NOT IN ( - + 54 + - 24, 32 )
----
NULL

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

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

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

query I rowsort
SELECT - - 4 * + col1 AS col2 FROM tab0 AS cor0
----
324
4
84

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-732
SELECT ALL - CAST( + ( - col1 ) AS SIGNED ) AS col1, col1 col2 FROM tab0 cor0
----
1
1
21
21
81
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-732
SELECT ALL - CAST ( + ( - col1 ) AS INTEGER ) AS col1, col1 col2 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2346
-4928
-5025

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

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

query I rowsort
SELECT 93 AS col1 FROM tab0 WHERE NULL <> ( + 61 )
----

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

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE + col1 * - 17 <> - col2 * 68
----
59
68
96

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

query I rowsort
SELECT DISTINCT + ( col2 ) + col2 AS col1 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT 38 + + 36 FROM tab2
----
74

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 < col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT COUNT( ALL + col0 ) + MIN( DISTINCT - col2 + col1 ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-743
SELECT COUNT ( ALL + col0 ) + MIN ( DISTINCT - col2 + col1 ) FROM tab1
----
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( ( ( col0 ) ) ) AND - col2 * - col1 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col2 FROM tab1 WHERE - 93 IS NULL
----

query I rowsort
SELECT ALL + 37 + + col1 AS col2 FROM tab1
----
42
51
84

query I rowsort
SELECT ALL - 72 FROM tab0 WHERE - col1 NOT BETWEEN - 11 AND ( NULL )
----
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL COUNT( * ) + 43 * - 38 FROM tab2 WHERE NULL NOT BETWEEN - 48 - + 72 AND NULL
----
-1634

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL COUNT ( * ) + 43 * - 38 FROM tab2 WHERE NULL NOT BETWEEN - 48 - + 72 AND NULL
----
-1634

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( + col0 + 35 ) <= ( col1 / col2 )
----
-15
-87
-97

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) BETWEEN col2 AND ( + col2 / - ( + ( - col1 ) ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL SUM( + col0 ) * - 85 + 17 col0 FROM tab1
----
-19278

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-753
SELECT ALL SUM ( + col0 ) * - 85 + 17 col0 FROM tab1
----
-19278

query I rowsort
SELECT - 97 - col0 FROM tab2
----
-143
-161
-172

query I rowsort
SELECT ALL 42 * + col1 AS col1 FROM tab1
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT - COUNT( * ) * 29 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-87

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - COUNT ( * ) * 29 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-87

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

query I rowsort
SELECT DISTINCT 32 * 86 AS col0 FROM tab0
----
2752

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

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

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

query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab0 WHERE col0 IN ( col0 )
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - col2 + + 64 FROM tab1
----
-32
-4
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + COUNT( * ) FROM tab1 WHERE NOT 87 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-764
SELECT + COUNT ( * ) FROM tab1 WHERE NOT 87 + + col0 IS NOT NULL
----
0

query I rowsort
SELECT - col0 + - 89 FROM tab0
----
-104
-176
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + 56 * + COUNT( * ) col2 FROM tab1
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-766
SELECT + 56 * + COUNT ( * ) col2 FROM tab1
----
168

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

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

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

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

query I rowsort
SELECT - 46 * col2 AS col0 FROM tab1
----
-2714
-3128
-4416

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + col0 ) > NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) = + 7
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) = + 7
----
0

query I rowsort
SELECT ALL col1 + + 79 FROM tab1
----
126
84
93

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL + ( + ( - MAX( 23 ) ) ) FROM tab1 WHERE NOT 9 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL + ( + ( - MAX ( 23 ) ) ) FROM tab1 WHERE NOT 9 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT + 22 - 6 AS col1 FROM tab2
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT - + 47 * MAX( ALL col0 ) - + 79 FROM tab2 AS cor0
----
-3604

skipif mysql # not compatible
query I rowsort label-779
SELECT - + 47 * MAX ( ALL col0 ) - + 79 FROM tab2 AS cor0
----
-3604

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 51 col2 FROM tab2 AS cor0
----
102
118
128

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NOT col0 = 94
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( + 80 ) + col2 FROM tab0 AS cor0
----
127
179
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-785
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 91 FROM tab0 AS cor0 WHERE - 90 <= ( + ( - 8 ) * 46 - - col0 * 28 )
----
91
91
91

query I rowsort
SELECT + + 43 * - col2 + 17 AS col2 FROM tab2 AS cor0
----
-1703
-2477
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 = ( col1 )
----
21

query I rowsort
SELECT ALL + 91 + + + 41 - col2 AS col2 FROM tab2
----
109
74
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - SUM( col0 ) FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-792
SELECT - SUM ( col0 ) FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT + MIN( - - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-793
SELECT + MIN ( - - col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT - col0 - + col2 * + col0 FROM tab0 WHERE NOT - 41 * col1 IN ( - 64 )
----
-720
-957
-9700

query I rowsort
SELECT 89 * + ( 80 ) * + col0 FROM tab2
----
327520
455680
534000

query I rowsort
SELECT + ( - - col0 ) FROM tab1
----
51
85
91

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

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

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

query I rowsort
SELECT + 28 * - col0 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT - 14 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query II rowsort
SELECT ALL - 81 AS col2, - col1 AS col1 FROM tab2 cor0
----
-81
-51
-81
-67
-81
-77

query II rowsort
SELECT DISTINCT - 51 AS col0, + ( 72 ) FROM tab1 AS cor0
----
-51
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 5 NOT BETWEEN - col2 AND ( - col2 )
----

query I rowsort
SELECT + - col0 + 86 AS col0 FROM tab2 AS cor0
----
11
22
40

query I rowsort
SELECT ALL - 84 * + 42 * + 15 FROM tab0 AS cor0
----
-52920
-52920
-52920

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-807
SELECT ALL - col0 DIV - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL - col0 / - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT ALL 93 * - 65 + COUNT( * ) col1 FROM tab1 AS cor0
----
-6042

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-809
SELECT ALL 93 * - 65 + COUNT ( * ) col1 FROM tab1 AS cor0
----
-6042

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + MIN( DISTINCT - - 86 ) * + COUNT( ( col1 ) ) AS col1 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + MIN ( DISTINCT - - 86 ) * + COUNT ( ( col1 ) ) AS col1 FROM tab0
----
258

query I rowsort
SELECT ALL - - 42 * - col0 AS col2 FROM tab0 WHERE NOT + 32 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 2 NOT BETWEEN ( + ( - 14 ) ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 + - - col1 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT 87 AS col2 FROM tab2 AS cor0 WHERE col1 NOT IN ( - 83 + - + col1 )
----
87
87
87

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

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

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

query I rowsort
SELECT + ( - - 53 ) * + 92 FROM tab0
----
4876
4876
4876

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT + COUNT( * ) - - 12 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-822
SELECT + COUNT ( * ) - - 12 FROM tab2 AS cor0
----
15

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

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

query I rowsort
SELECT ALL - 32 FROM tab2 WHERE - ( + col1 ) * + 57 <= col1
----
-32
-32
-32

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( NOT col0 IN ( + col1 - + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) * COUNT( * ) FROM tab0, tab1 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) * COUNT ( * ) FROM tab0, tab1 AS cor0
----
729

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

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT 3 > ( col2 )
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL COUNT( DISTINCT 91 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL COUNT ( DISTINCT 91 ) AS col1 FROM tab2 AS cor0
----
1

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

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

query I rowsort
SELECT ALL + 17 * + - col2 AS col1 FROM tab2 AS cor0
----
-391
-680
-986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL + CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT + 10 * 73 * COUNT( * ) AS col2 FROM tab0
----
2190

skipif mysql # not compatible
query I rowsort label-837
SELECT + 10 * 73 * COUNT ( * ) AS col2 FROM tab0
----
2190

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

query I rowsort
SELECT - 71 / - col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > col0
----
85
5
59
91
47
68

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

query I rowsort
SELECT DISTINCT - col0 * + 36 * + + col1 * + 14 AS col1 FROM tab2
----
-1182384
-2483712
-2532600

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

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

query I rowsort
SELECT ALL + 97 * + + ( - col1 ) FROM tab0
----
-2037
-7857
-97

query I rowsort
SELECT 8 + + + ( col0 ) + - - col0 AS col1 FROM tab0
----
182
202
38

query I rowsort
SELECT + 51 + + col1 FROM tab2
----
102
118
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-849
SELECT CAST( + 19 AS SIGNED ) + - - col2 AS col2 FROM tab1
----
115
78
87

skipif mysql # not compatible
query I rowsort label-849
SELECT CAST ( + 19 AS INTEGER ) + - - col2 AS col2 FROM tab1
----
115
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT 16 + - COUNT( * ) AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-850
SELECT 16 + - COUNT ( * ) AS col0 FROM tab2
----
13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT col0 * col1 AS col1 FROM tab2 cor0 WHERE + col2 BETWEEN + col0 + ( 94 ) + CAST( + col1 AS SIGNED ) + 66 AND + 34 + - col2
----

skipif mysql # not compatible
query I rowsort label-852
SELECT col0 * col1 AS col1 FROM tab2 cor0 WHERE + col2 BETWEEN + col0 + ( 94 ) + CAST ( + col1 AS INTEGER ) + 66 AND + 34 + - col2
----

query I rowsort
SELECT DISTINCT col0 * - col1 + - 85 AS col1 FROM tab0 AS cor0
----
-1300
-182
-1912

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-856
SELECT DISTINCT col1 * + + CAST( NULL AS DECIMAL ), - col2 AS col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-856
SELECT DISTINCT col1 * + + CAST ( NULL AS REAL ), - col2 AS col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query II rowsort
SELECT + col2 + + col2, - col0 AS col1 FROM tab2
----
116
-75
46
-46
80
-64

query I rowsort
SELECT + 43 * 76 FROM tab2 WHERE col1 < + + 22
----

query I rowsort
SELECT DISTINCT 43 * - 2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-86

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

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

query I rowsort
SELECT - ( - 6 ) FROM tab2
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 48 AS col2 FROM tab2
----
-46
48
-64
48
-75
48

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL + MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - 34 FROM tab0 cor0
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL + + MAX( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 42 + col2 < + 25
----
77

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + + MAX ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 42 + col2 < + 25
----
77

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

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

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

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

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

query I rowsort
SELECT + 72 - + - 43 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 89 * + col1, ( - + col2 ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-876
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-876
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= ( CAST ( NULL AS INTEGER ) )
----

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

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT - - 31 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT - col2 + - 3 AS col0 FROM tab1 AS cor0
----
-62
-71
-99

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

query I rowsort
SELECT + 87 FROM tab0 AS cor0 WHERE - col2 + - 88 IN ( - col1 )
----

query I rowsort
SELECT ALL - col0 * - col1 + - col2 - + col2 FROM tab2 AS cor0
----
2300
4848
4909

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT - SUM( ALL + 72 ) * 1 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-882
SELECT - SUM ( ALL + 72 ) * 1 FROM tab2 AS cor0
----
-216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL COUNT( * ) + 52 AS col0 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL COUNT ( * ) + 52 AS col0 FROM tab0
----
55

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 41
----

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

query I rowsort
SELECT + 74 + - col1 AS col2 FROM tab2 WHERE ( NOT ( NULL ) IN ( col0 + + 20 ) )
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE 63 * - col2 / col2 - + + col2 + - + col1 * + + 9 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + + 55 * + col1 * col2 * + 35 + - 35 + - + col0 FROM tab1 AS cor0
----
2587114
567755
6152174

query II rowsort
SELECT ALL + - 97 + + col1, col1 FROM tab2 AS cor0
----
-20
77
-30
67
-46
51

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab0 AS cor0
----
-33

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 67 + + - col2 + col1 >= NULL
----

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

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

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

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

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

query I rowsort
SELECT + + 61 FROM tab2 WHERE NOT + col0 * + col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * + col2 <= 15
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT SUM( DISTINCT 4 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-901
SELECT SUM ( DISTINCT 4 ) FROM tab2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-902
SELECT ALL - MAX( ALL - + col1 ) DIV - 69 * - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL - MAX ( ALL - + col1 ) / - 69 * - + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + col1 FROM tab2 WHERE - 61 > NULL
----

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + col1 FROM tab2 WHERE - 61 > NULL
----

query I rowsort
SELECT - ( - col2 ) * col0 * - - col2 AS col0 FROM tab2
----
102400
24334
252300

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-906
SELECT + + 59 + + - CAST( col1 AS SIGNED ) col2 FROM tab2 WHERE NOT NULL NOT IN ( 6, + 44 * + ( + 76 ) * 53 - - 73 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-906
SELECT + + 59 + + - CAST ( col1 AS INTEGER ) col2 FROM tab2 WHERE NOT NULL NOT IN ( 6, + 44 * + ( + 76 ) * 53 - - 73 )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - - col2 * + + col0 - + 82
----

query I rowsort
SELECT 45 * - 3 AS col2 FROM tab1
----
-135
-135
-135

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-912
SELECT + MIN( ALL - + 49 ) DIV - 84 * + 74 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-912
SELECT + MIN ( ALL - + 49 ) / - 84 * + 74 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT COUNT( * ) * + COUNT( * ) * 55 FROM tab0 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-913
SELECT COUNT ( * ) * + COUNT ( * ) * 55 FROM tab0 AS cor0
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT + MIN( ALL + CAST( - + col2 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-914
SELECT + MIN ( ALL + CAST ( - + col2 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT + 77 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-19
18
9

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + 77 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL COUNT( * ) - - SUM( ALL + col2 ) FROM tab0 AS cor0 WHERE - col0 NOT IN ( col1 )
----
159

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL COUNT ( * ) - - SUM ( ALL + col2 ) FROM tab0 AS cor0 WHERE - col0 NOT IN ( col1 )
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT ALL col1 DIV + col0 + - - col2 + + + 53 * - 24 FROM tab0 AS cor0
----
-1173
-1220
-1262

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL col1 / + col0 + - - col2 + + + 53 * - 24 FROM tab0 AS cor0
----
-1173
-1220
-1262

query I rowsort
SELECT DISTINCT + col0 + + + 87 AS col0 FROM tab2 AS cor0
----
133
151
162

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE col1 * - + col2 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT DISTINCT - 28 + - col0 DIV + col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT - 28 + - col0 / + col0 FROM tab0
----
-29

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

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

query I rowsort
SELECT + col2 + + 68 AS col1 FROM tab2
----
108
126
91

query II rowsort
SELECT ALL + col2 AS col1, 2 AS col0 FROM tab0
----
10
2
47
2
99
2

query II rowsort
SELECT + col0, col0 * + col2 FROM tab0
----
15
705
87
870
97
9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 62 ) = NULL
----

query I rowsort
SELECT - + 48 * - col2 FROM tab0 AS cor0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT 42 * - SUM( + 76 ) AS col1 FROM tab1
----
-9576

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT 42 * - SUM ( + 76 ) AS col1 FROM tab1
----
-9576

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 8 ) <= NULL
----

query I rowsort
SELECT ALL + 58 AS col2 FROM tab2 AS cor0
----
58
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT - 17 DIV - col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-937
SELECT - 17 / - col0 FROM tab1 cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - 55 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-2805
-4675
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT ALL + - ( + col2 ) DIV - 93 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL + - ( + col2 ) / - 93 AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT + col1 DIV 35 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-941
SELECT + col1 / 35 FROM tab1 AS cor0
----
0
0
1

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

query II rowsort
SELECT 49 AS col2, + ( - col0 ) * - col0 * + + col0 + - col0 FROM tab1
----
49
132600
49
614040
49
753480

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT + 94 DIV + col0 col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-946
SELECT + 94 / + col0 col0 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query II rowsort label-947
SELECT DISTINCT - COUNT( * ) * - - MAX( - - col2 ) AS col0, MAX( - - 87 ) AS col0 FROM tab2
----
-174
87

skipif mysql # not compatible
query II rowsort label-947
SELECT DISTINCT - COUNT ( * ) * - - MAX ( - - col2 ) AS col0, MAX ( - - 87 ) AS col0 FROM tab2
----
-174
87

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL MIN( ALL - 48 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL MIN ( ALL - 48 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-48

query I rowsort
SELECT DISTINCT 48 + + + col1 FROM tab0
----
129
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT 34 * COUNT( * ) AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT 34 * COUNT ( * ) AS col1 FROM tab0
----
102

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT + + 31 * + COUNT( * ) AS col0, COUNT( * ) col2 FROM tab2 AS cor0
----
93
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-957
SELECT + + 31 * + COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab2 AS cor0
----
93
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT + + 17 DIV - col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-959
SELECT + + 17 / - col1 FROM tab1 AS cor0
----
-1
-3
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT COUNT( * ) + 98 col0 FROM tab2
----
101

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

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

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

query I rowsort
SELECT DISTINCT col1 - + 22 + - col1 * col1 * + - col0 * - + 74 + ( - 30 ) FROM tab0
----
-2839189
-7229
-7282681

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT COUNT( * ) * + - MAX( ALL - col2 ) + + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-965
SELECT COUNT ( * ) * + - MAX ( ALL - col2 ) + + COUNT ( * ) FROM tab1
----
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT 70 + COUNT( * ) * + - 38 * 95 FROM tab2 AS cor0
----
-10760

skipif mysql # not compatible
query I rowsort label-968
SELECT 70 + COUNT ( * ) * + - 38 * 95 FROM tab2 AS cor0
----
-10760

query I rowsort
SELECT col1 * - 74 - - col2 AS col1 FROM tab1 cor0
----
-311
-3410
-940

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

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT col0 DIV + + ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-971
SELECT col0 / + + ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT ALL + 75 + - - 9 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL + 75 + - - 9 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col2 / - col2, - col2 * + ( + 67 ) + - 13 )
----

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

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

query I rowsort
SELECT ALL 4 * + col0 FROM tab0 AS cor0
----
348
388
60

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

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

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

query I rowsort
SELECT + + 58 * + + 99 + + col2 AS col0 FROM tab1 AS cor0
----
5801
5810
5838

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col2 * + col0 + + 42 AS col1 FROM tab2
----
1100
2602
4392

query II rowsort
SELECT ( 18 ) + 34 AS col0, + 12 AS col2 FROM tab1
----
52
12
52
12
52
12

query III rowsort
SELECT * FROM tab0 WHERE col0 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT 50 + - 85 + + MIN( ALL + + 91 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-990
SELECT 50 + - 85 + + MIN ( ALL + + 91 ) FROM tab0
----
56

query I rowsort
SELECT 85 + - col2 + col1 * + 67 FROM tab0 AS cor0
----
1482
53
5465

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT DISTINCT + 63 + + col2 + col0 + - col2 + + col2 DIV - col0 FROM tab1 AS cor0
----
113
148
154

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT + 63 + + col2 + col0 + - col2 + + col2 / - col0 FROM tab1 AS cor0
----
113
148
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT 10 - + COUNT( * ) AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 10 - + COUNT ( * ) AS col0 FROM tab1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - ( 39 ) col0 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - COUNT( * ) - + 42 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-997
SELECT - COUNT ( * ) - + 42 FROM tab2 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL - - 70 * - 38 + + SUM( + ( - 50 ) ) AS col0 FROM tab2 AS cor0
----
-2810

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - - 70 * - 38 + + SUM ( + ( - 50 ) ) AS col0 FROM tab2 AS cor0
----
-2810

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-999
SELECT - 71 + - CAST( NULL AS DECIMAL ) + col0 * - - 35 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT - 71 + - CAST ( NULL AS REAL ) + col0 * - - 35 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + - col2 AS col2 FROM tab2 AS cor0 WHERE - col1 IN ( + 25, col2, + col1 * col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT ALL - col0 + + 77 + - 97 - col0 DIV - col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-2182
-4180
-5719

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - col0 + + 77 + - 97 - col0 / - col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-2182
-4180
-5719

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT - COUNT( * ) + + 25 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT - COUNT ( * ) + + 25 FROM tab1 cor0
----
22

query I rowsort
SELECT col1 + - - col1 * - 55 AS col0 FROM tab1
----
-2538
-270
-756

query I rowsort
SELECT - col2 * - col0 + + + col1 + col2 * - col0 + + col2 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab2 WHERE - + 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT + ( + 64 ) + + - COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT + ( + 64 ) + + - COUNT ( * ) FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT DISTINCT + COUNT( - col2 ), + 4 AS col2 FROM tab0
----
3
4

skipif mysql # not compatible
query II rowsort label-1009
SELECT DISTINCT + COUNT ( - col2 ), + 4 AS col2 FROM tab0
----
3
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL + CAST( - - col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT 98 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + 55 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 NOT BETWEEN NULL AND + + 81
----
51
14
96

query I rowsort
SELECT ALL - - col1 * ( + 6 ) AS col2 FROM tab2 AS cor0
----
306
402
462

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 62 BETWEEN - - 68 * + col2 + col1 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + - 79 col1 FROM tab1 AS cor0
----
-27
-27
-27

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

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

query I rowsort
SELECT DISTINCT col0 * col0 + - 76 AS col0 FROM tab1 cor0
----
2525
7149
8205

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT + 58 * + - col2 FROM tab1 AS cor0
----
-3422
-3944
-5568

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT + SUM ( ALL col0 ) AS col1 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1024
SELECT CAST( - ( + col1 ) AS SIGNED ) * ( + + col1 ) FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-1024
SELECT CAST ( - ( + col1 ) AS INTEGER ) * ( + + col1 ) FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT DISTINCT col0, + 94 - col2 - - 10 * + col1 FROM tab2
----
46
581
64
824
75
706

query I rowsort
SELECT col1 * - col1 * + col0 FROM tab1
----
-201019
-2125
-9996

query II rowsort
SELECT col2 * col0, col0 FROM tab2
----
1058
46
2560
64
4350
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT DISTINCT + 38, 44 * + SUM( ALL + - 13 ) + MAX( - + 72 ) AS col1 FROM tab1
----
38
-1788

skipif mysql # not compatible
query II rowsort label-1028
SELECT DISTINCT + 38, 44 * + SUM ( ALL + - 13 ) + MAX ( - + 72 ) AS col1 FROM tab1
----
38
-1788

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

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

query I rowsort
SELECT DISTINCT col1 + 65 FROM tab1
----
112
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL - COUNT( * ) * - 44 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - COUNT ( * ) * - 44 FROM tab2 AS cor0
----
132

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

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

query I rowsort
SELECT 77 * - col0 * - + col2 AS col1 FROM tab1 AS cor0
----
376992
386155
476476

query I rowsort
SELECT ALL col2 + + col0 * - 12 * 66 AS col2 FROM tab0 AS cor0
----
-11833
-68894
-76725

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

query I rowsort
SELECT DISTINCT 90 * col2 + + col1 - - col1 + - - 78 AS col0 FROM tab1 AS cor0
----
5398
6292
8746

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col2 FROM tab1
----
425
4277
714

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab0 WHERE + 72 - col0 IS NULL
----

query I rowsort
SELECT ALL - ( - 25 ) AS col2 FROM tab2
----
25
25
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + - col0 * - 73
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 58 ) IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT 13 * - 91 * - COUNT( * ) FROM tab2
----
3549

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT 13 * - 91 * - COUNT ( * ) FROM tab2
----
3549

query I rowsort
SELECT ALL - 27 + - col2 FROM tab0 AS cor0
----
-126
-37
-74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1049
SELECT + CAST ( - 70 AS INTEGER ) col2 FROM tab0 AS cor0
----
-70
-70
-70

query II rowsort
SELECT ALL - - 36 + 98, + 11 AS col1 FROM tab0 AS cor0
----
134
11
134
11
134
11

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

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

query I rowsort
SELECT ALL - 0 AS col2 FROM tab2 AS cor0 WHERE + 26 * - 88 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1054
SELECT ALL COUNT( * ) col0, 69 DIV + MAX( - 70 ) AS col0 FROM tab1
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1054
SELECT ALL COUNT ( * ) col0, 69 / + MAX ( - 70 ) AS col0 FROM tab1
----
3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1055
SELECT + CAST( - - SUM( ALL + col0 ) AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-1055
SELECT + CAST ( - - SUM ( ALL + col0 ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2
----
188

query I rowsort
SELECT DISTINCT - col0 + 62 + 14 * + 91 FROM tab1 AS cor0
----
1245
1251
1285

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

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

query I rowsort
SELECT + 1 * + col2 AS col1 FROM tab2 AS cor0 WHERE - col0 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 50 ) * + 29 col2 FROM tab0
----
1450
1450
1450

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

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

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

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

query I rowsort
SELECT col1 - + - col1 FROM tab0
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < col1 AND NOT 62 + - - 11 * + col2 + - col1 + - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - + 14 FROM tab2
----
37
53
63

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

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

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

query I rowsort
SELECT ALL - + 9 AS col1 FROM tab1 cor0
----
-9
-9
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT ALL - + MAX( 98 ) AS col0 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL - + MAX ( 98 ) AS col0 FROM tab0 AS cor0
----
-98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1074
SELECT MAX( 80 ), + 57 col1 FROM tab2
----
80
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1074
SELECT MAX ( 80 ), + 57 col1 FROM tab2
----
80
57

query I rowsort
SELECT DISTINCT 38 * + + ( - + 76 ) FROM tab1
----
-2888

query I rowsort
SELECT ALL 2 - - - col2 * + + col2 FROM tab0 WHERE NULL IS NULL
----
-2207
-9799
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT ALL 50 DIV - col1 * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL 50 / - col1 * + col2 FROM tab2
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + - 2 col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT ( 89 ) FROM tab2
----
89

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1081
SELECT DISTINCT - col1 / - col0 col0 FROM tab0 AS cor0
----
0
5

query II rowsort
SELECT col1 * - col0 AS col2, - 15 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1215
-15
-1827
-15
-97
-15

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

query I rowsort
SELECT ALL + - col1 + 56 FROM tab0 AS cor0
----
-25
35
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1085
SELECT DISTINCT + ( - col2 ) DIV + - 66 + + - 13 * 10 AS col2 FROM tab0 AS cor0
----
-129
-130

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT + ( - col2 ) / + - 66 + + - 13 * 10 AS col2 FROM tab0 AS cor0
----
-129
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT - 82 + - col2 DIV col0 AS col0 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - 82 + - col2 / col0 AS col0 FROM tab2 cor0
----
-82

query I rowsort
SELECT ALL + 81 + + + col1 + 77 AS col2 FROM tab2
----
209
225
235

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL + COUNT( * ) + + 0 col1 FROM tab1
----
3

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

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

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

query I rowsort
SELECT 21 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL + MAX( + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + MAX ( + col1 ) FROM tab0
----
81

query I rowsort
SELECT + 22 * - - col0 AS col0 FROM tab0
----
1914
2134
330

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1093
SELECT ALL MAX ( DISTINCT - col1 ) col0 FROM tab0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + 46 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 46 - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT + COUNT( * ) + - MIN( - 42 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1096
SELECT + COUNT ( * ) + - MIN ( - 42 ) FROM tab1 AS cor0
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT + SUM( 75 ) FROM tab2 cor0
----
225

skipif mysql # not compatible
query I rowsort label-1098
SELECT + SUM ( 75 ) FROM tab2 cor0
----
225

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

query I rowsort
SELECT ALL - col1 * col1 * - + col1 + col0 AS col0 FROM tab1 AS cor0
----
103914
210
2795

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL + MIN( ALL 74 ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + MIN ( ALL 74 ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 72, + 83 col2 FROM tab1
----
72
83
72
83
72
83

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1108
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col2, - 45, - - col1, - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1108
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col2, - 45, - - col1, - + CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT + + 72 DIV + + col2 - - col2 AS col1 FROM tab1 cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-1111
SELECT + + 72 / + + col2 - - col2 AS col1 FROM tab1 cor0
----
60
69
96

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1116
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + col1, - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1116
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + col1, - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + 51 * col2 + - col0 AS col0 FROM tab1 AS cor0 WHERE NULL = + 36
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL COUNT ( * ) + + - 76 FROM tab0
----
-73

query I rowsort
SELECT - 39 + + - 88 AS col0 FROM tab0
----
-127
-127
-127

query I rowsort
SELECT DISTINCT + col0 + + - col0 FROM tab2
----
0

query I rowsort
SELECT ALL col1 - + col2 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1124
SELECT ALL CAST( + 41 AS SIGNED ) FROM tab0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL CAST ( + 41 AS INTEGER ) FROM tab0
----
41
41
41

query II rowsort
SELECT - col1 * - ( col0 ) AS col0, + col2 + - 79 FROM tab1
----
425
-20
4277
-11
714
17

query I rowsort
SELECT ALL - - 41 AS col0 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT - MIN( ALL + - col1 ) + - + COUNT( * ) - - + 66 * - 14 FROM tab1 AS cor0
----
-880

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT - MIN ( ALL + - col1 ) + - + COUNT ( * ) - - + 66 * - 14 FROM tab1 AS cor0
----
-880

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

query I rowsort
SELECT - ( - + col1 ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT COUNT( ALL - 55 ) FROM tab1 WHERE NOT 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1130
SELECT COUNT ( ALL - 55 ) FROM tab1 WHERE NOT 56 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1132
SELECT * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN + + col2 + - - col1 AND - - 65 + - + col0 + + 60 + + CAST( 93 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1132
SELECT * FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN + + col2 + - - col1 AND - - 65 + - + col0 + + 60 + + CAST ( 93 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93 AS col0, + col2 col2 FROM tab0 AS cor0 WHERE NOT col2 + + 39 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 93 * col2 AS col1 FROM tab2
----
148800
312852
49197

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT COUNT( DISTINCT - 56 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1135
SELECT COUNT ( DISTINCT - 56 ) AS col2 FROM tab0
----
1

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

query II rowsort
SELECT col2, - 82 * - col1 + - 52 FROM tab2
----
23
4130
40
6262
58
5442

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT 72 * - - COUNT( * ) AS col1 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-1138
SELECT 72 * - - COUNT ( * ) AS col1 FROM tab2
----
216

query I rowsort
SELECT 64 * 7 FROM tab0
----
448
448
448

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT MIN( DISTINCT + 11 ) AS col1 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT MIN ( DISTINCT + 11 ) AS col1 FROM tab2
----
11

query II rowsort
SELECT ALL + col2, 67 + - 73 FROM tab2
----
23
-6
40
-6
58
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL MIN( DISTINCT + ( - 93 ) ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL MIN ( DISTINCT + ( - 93 ) ) AS col0 FROM tab1
----
-93

query I rowsort
SELECT + - col1 FROM tab1 cor0 WHERE NOT + col2 * - col1 + - col1 > - col1
----
-14
-47
-5

query I rowsort
SELECT ALL - col2 + - 38 FROM tab2 AS cor0
----
-61
-78
-96

query II rowsort
SELECT ALL + 6 + - ( - col1 ), - 43 AS col0 FROM tab2 AS cor0
----
57
-43
73
-43
83
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 53 * - col0 col2 FROM tab2
----
112148
217088
298125

query II rowsort
SELECT DISTINCT + 18, col2 FROM tab2
----
18
23
18
40
18
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 31 >= - col2
----

query II rowsort
SELECT ALL + col0, + col0 * - + 97 FROM tab0
----
15
-1455
87
-8439
97
-9409

query I rowsort
SELECT ( + AVG ( ALL - + ( - 78 ) ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND + - col0
----
NULL

query II rowsort
SELECT + col2, + col1 * + col2 FROM tab0 AS cor0
----
10
210
47
3807
99
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + - - col2 * - - col2 col1 FROM tab0 cor0
----
181
2290
9882

query I rowsort
SELECT - + col0 * - + col1 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT col1 + + + col2 * + 8 * col2 - col0 FROM tab2 AS cor0
----
12813
26904
4237

query II rowsort
SELECT + col2 AS col2, col0 + - - 68 - - 84 FROM tab1 AS cor0
----
59
237
68
243
96
203

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

query I rowsort
SELECT ALL + - 35 * col1 * + col2 AS col2 FROM tab1 cor0 WHERE - 57 IS NOT NULL
----
-10325
-111860
-47040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT DISTINCT + COUNT( - ( + col2 ) ) - - COUNT( * ) * 48 DIV 74 AS col2 FROM tab0 WHERE ( 8 ) * - 92 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT + COUNT ( - ( + col2 ) ) - - COUNT ( * ) * 48 / 74 AS col2 FROM tab0 WHERE ( 8 ) * - 92 + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1160
SELECT - 35 AS col2, ( COUNT( * ) ) AS col1 FROM tab1, tab0 AS cor0
----
-35
9

skipif mysql # not compatible
query II rowsort label-1160
SELECT - 35 AS col2, ( COUNT ( * ) ) AS col1 FROM tab1, tab0 AS cor0
----
-35
9

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

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

query I rowsort
SELECT DISTINCT - 59 - + col2 + col0 + + col0 * - 71 * 22 + + + col0 FROM tab2
----
-117117
-71842
-99939

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

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

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - col1 NOT BETWEEN - 44 AND NULL
----
91
47
68

query I rowsort
SELECT ALL col0 * col2 + + + 17 AS col0 FROM tab2 AS cor0
----
1075
2577
4367

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 78 AND + col2 * + + col1 * + ( col0 ) + - - 56 + col0 * col2 * - ( col2 ) * - ( + ( - col0 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - 96 + - COUNT( + 77 ) + - COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1168
SELECT - 96 + - COUNT ( + 77 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-102

query I rowsort
SELECT - 3 * 75 FROM tab1 AS cor0
----
-225
-225
-225

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1171
SELECT - col1, - 27 DIV - 74 * + col1 AS col1 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
query II rowsort label-1171
SELECT - col1, - 27 / - 74 * + col1 AS col1 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

query I rowsort
SELECT - ( - 68 ) FROM tab1 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + 41 * 83 - MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
3413

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 41 * 83 - MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
3413

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

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

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

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

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT + 20 * + col1 <= + + 52 / - col2 + + col0
----
-51
-85
-91

query I rowsort
SELECT - ( - - col0 ) AS col1 FROM tab2
----
-46
-64
-75

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

query I rowsort
SELECT 71 + + 62 FROM tab2 AS cor0
----
133
133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL - SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL - SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-185

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

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

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

query I rowsort
SELECT ALL 90 + + - 13 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - - 33 * - col0 AS col2 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT + 19 + - + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + 19 + - + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1187
SELECT DISTINCT + ( ( 57 ) ) * COUNT( * ), 69 AS col1 FROM tab2 AS cor0 WHERE col1 + + + col2 * 68 + - col2 - - - 2 * + col1 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
0
69

skipif mysql # not compatible
query II rowsort label-1187
SELECT DISTINCT + ( ( 57 ) ) * COUNT ( * ), 69 AS col1 FROM tab2 AS cor0 WHERE col1 + + + col2 * 68 + - col2 - - - 2 * + col1 * + CAST ( NULL AS REAL ) IS NOT NULL
----
0
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT - + COUNT( * ) - - 95 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
86

skipif mysql # not compatible
query I rowsort label-1189
SELECT - + COUNT ( * ) - - 95 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
86

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT MIN ( DISTINCT + col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT + - 18 - + col0 AS col2 FROM tab1 AS cor0
----
-103
-109
-69

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

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

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

query I rowsort
SELECT + col0 + + + 15 AS col2 FROM tab1 AS cor0
----
100
106
66

query I rowsort
SELECT + + 29 + 27 AS col1 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1196
SELECT * FROM tab1 AS cor0 WHERE - 12 IN ( + 61 * - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1196
SELECT * FROM tab1 AS cor0 WHERE - 12 IN ( + 61 * - CAST ( - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL + - SUM( + + ( + ( 73 ) ) ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL + - SUM ( + + ( + ( 73 ) ) ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT ALL + 66 + col2 FROM tab2 cor0
----
106
124
89

query I rowsort
SELECT DISTINCT 12 + 78 FROM tab2
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT SUM( ALL - 95 ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-1202
SELECT SUM ( ALL - 95 ) FROM tab1
----
-285

query I rowsort
SELECT 14 * ( - col2 ) AS col2 FROM tab1
----
-1344
-826
-952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT DISTINCT + ( - col1 ) * CAST( + + col0 AS SIGNED ) * - + 58 + col1 + - col2 AS col1 FROM tab2
----
136096
285861
291459

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT + ( - col1 ) * CAST ( + + col0 AS INTEGER ) * - + 58 + col1 + - col2 AS col1 FROM tab2
----
136096
285861
291459

query I rowsort
SELECT - 45 AS col1 FROM tab1 WHERE NULL = ( - 71 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1206
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + CAST( - col2 AS DECIMAL ) + - col1 AND + col1 / + col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-1206
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + CAST ( - col2 AS REAL ) + - col1 AND + col1 / + col1 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1207
SELECT 0, - SUM( + + col1 ) AS col2 FROM tab2
----
0
-195

skipif mysql # not compatible
query II rowsort label-1207
SELECT 0, - SUM ( + + col1 ) AS col2 FROM tab2
----
0
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 WHERE NOT - col2 + - 62 IS NULL
----
-14
-47
-5

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

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

query I rowsort
SELECT - col0 * - - col2 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-1212
SELECT ALL + + 61 + + - ( + - 49 ) col1, + col0 - + col0 DIV col0 * + col2 col0 FROM tab2 AS cor0
----
110
17
110
23
110
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1212
SELECT ALL + + 61 + + - ( + - 49 ) col1, + col0 - + col0 / col0 * + col2 col0 FROM tab2 AS cor0
----
110
17
110
23
110
24

query I rowsort
SELECT ALL + - 28 AS col2 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT + COUNT( - ( - col0 ) ) * 55 * 58 FROM tab2
----
9570

skipif mysql # not compatible
query I rowsort label-1214
SELECT + COUNT ( - ( - col0 ) ) * 55 * 58 FROM tab2
----
9570

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT col0 DIV - - col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1215
SELECT col0 / - - col1 FROM tab1
----
1
17
3

query I rowsort
SELECT ALL - 18 * col2 AS col0 FROM tab0
----
-1782
-180
-846

query I rowsort
SELECT DISTINCT - + 88 * 98 FROM tab1 WHERE ( ( NULL <= - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1218
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-1218
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) < NULL
----

query I rowsort
SELECT ALL + ( + 89 ) FROM tab1
----
89
89
89

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

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

query I rowsort
SELECT DISTINCT + 10 * - col2 AS col1 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-1222
SELECT + 88 AS col0, 89 * + COUNT( * ) * - 34 FROM tab0 cor0
----
88
-9078

skipif mysql # not compatible
query II rowsort label-1222
SELECT + 88 AS col0, 89 * + COUNT ( * ) * - 34 FROM tab0 cor0
----
88
-9078

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL + - 10 + - 2 + SUM( col1 ) FROM tab0 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL + - 10 + - 2 + SUM ( col1 ) FROM tab0 cor0
----
91

query I rowsort
SELECT ALL col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT - col1 + + - col1 + - - 28 + 98 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-28
77
-8
67
24
51

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

query I rowsort
SELECT - col1 * ( col2 ) + 87 FROM tab1
----
-1257
-208
-3109

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

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

query I rowsort
SELECT 60 / col2 AS col0 FROM tab1 WHERE col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL COUNT( 59 ) * ( 36 ) AS col1 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL COUNT ( 59 ) * ( 36 ) AS col1 FROM tab1
----
108

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

query I rowsort
SELECT col2 - col0 * + col1 AS col2 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NULL < - 91 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT - 91 / col1 FROM tab0 WHERE NOT - 35 + CAST( NULL AS SIGNED ) * + 67 NOT IN ( + col2 - col2 )
----

skipif mysql # not compatible
query I rowsort label-1235
SELECT - 91 / col1 FROM tab0 WHERE NOT - 35 + CAST ( NULL AS INTEGER ) * + 67 NOT IN ( + col2 - col2 )
----

query I rowsort
SELECT col1 - + ( - col1 + col0 * - col0 ) * - col1 FROM tab2 WHERE NOT + col0 + + 43 IS NULL
----
-110466
-321244
-381297

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT MAX( col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1237
SELECT MAX ( col0 ) FROM tab2
----
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL + COUNT( * ) - 95 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + COUNT ( * ) - 95 FROM tab0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT 41 DIV 82 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1241
SELECT 41 / 82 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1242
SELECT ALL 30 DIV - COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL 30 / - COUNT ( * ) FROM tab0
----
-10

query I rowsort
SELECT col0 * - col2 AS col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1244
SELECT col1 DIV - 10 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1244
SELECT col1 / - 10 FROM tab1
----
-1
-4
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT 53 DIV MAX( col1 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1245
SELECT 53 / MAX ( col1 ) col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 / - ( + col0 * + 81 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE col1 + col2 * + col1 NOT BETWEEN 41 + - 45 AND 13 * - col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT - MIN( DISTINCT + 29 ) FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT - MIN ( DISTINCT + 29 ) FROM tab2 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 52 ) + - ( col0 ) FROM tab2
----
-116
-127
-98

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 11 * + col2 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 / - 17 + - 86 = col1 + ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT COUNT( DISTINCT 31 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1254
SELECT COUNT ( DISTINCT 31 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL 28 DIV col1 col1 FROM tab0
----
0
1
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1255
SELECT ALL 28 / col1 col1 FROM tab0
----
0
1
28

query I rowsort
SELECT ALL col1 * 12 AS col1 FROM tab1 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT 57 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL 75 * 1 AS col2 FROM tab2
----
75
75
75

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

skipif mysql # not compatible
query I rowsort label-1259
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 76 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL + - MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL + - MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1263
SELECT + CAST( NULL AS DECIMAL ) * - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT + CAST ( NULL AS REAL ) * - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT - 60 FROM tab2 AS cor0 WHERE 73 * - ( + 30 * ( - col2 ) ) NOT IN ( 61 )
----
-60

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

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col1 + - 16 ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT - col2 DIV - 72 + - col0 FROM tab0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - col2 / - 72 + - col0 FROM tab0
----
-15
-87
-96

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

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

query I rowsort
SELECT ALL + 58 * - col0 AS col2 FROM tab2
----
-2668
-3712
-4350

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT ALL + 8 DIV - col0 * col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + 8 / - col0 * col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 23 IN ( - 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 98 AS col0 FROM tab1 WHERE NOT + 68 IS NOT NULL
----

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

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

query I rowsort
SELECT col0 + + - 13 - - col1 FROM tab1
----
125
52
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT - 48 + + col0 DIV - col1 AS col1 FROM tab0
----
-145
-48
-52

skipif mysql # not compatible
query I rowsort label-1281
SELECT - 48 + + col0 / - col1 AS col1 FROM tab0
----
-145
-48
-52

query I rowsort
SELECT AVG ( col0 ) FROM tab2 AS cor0 WHERE NULL <> col1 + - 22
----
NULL

query I rowsort
SELECT DISTINCT + - 36 + - 6 AS col0 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 + 50 / col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 + 50 / col1 IS NULL
----
0

query I rowsort
SELECT ALL + 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT DISTINCT - 42 DIV 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT - 42 / 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query II rowsort
SELECT DISTINCT - col0 AS col0, - 45 FROM tab1 AS cor0
----
-51
-45
-85
-45
-91
-45

query I rowsort
SELECT col0 + + 47 + - 7 FROM tab2 AS cor0
----
104
115
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1290
SELECT DISTINCT MAX( ALL + CAST( CAST( - 76 AS DECIMAL ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT MAX ( ALL + CAST ( CAST ( - 76 AS REAL ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT col1 + - + col2 - col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE + 9 + + 46 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT - col2 DIV - + col1 + - col0 + + col0 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1293
SELECT - col2 / - + col1 + - col0 + + col0 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1294
SELECT + col2 FROM tab2 AS cor0 WHERE ( CAST( 27 AS SIGNED ) + col0 / col0 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1294
SELECT + col2 FROM tab2 AS cor0 WHERE ( CAST ( 27 AS INTEGER ) + col0 / col0 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL - + COUNT( * ) * 79 + 46 FROM tab2 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL - + COUNT ( * ) * 79 + 46 FROM tab2 AS cor0
----
-191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1296
SELECT 76 DIV COUNT( col2 ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1296
SELECT 76 / COUNT ( col2 ) AS col1 FROM tab1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL + COUNT( * ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) BETWEEN - ( + ( 8 ) ) AND - 40
----
0

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + COUNT ( * ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - ( + ( 8 ) ) AND - 40
----
0

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT 41 + - col1 + - 35 IS NOT NULL
----

query I rowsort
SELECT - ( - 94 ) FROM tab2
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT MIN( ALL + 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT MIN ( ALL + 27 ) FROM tab2
----
27

query I rowsort
SELECT - col1 * + 4 * - col0 AS col2 FROM tab1
----
1700
17108
2856

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( - 70 ) IN ( - col0 * + 94 / col1 )
----
-10
-47
-99

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab1 cor0
----
14
47
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1306
SELECT col1 DIV - - 81 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1306
SELECT col1 / - - 81 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * + 63 AS col0 FROM tab0
----
1323
5103
63

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 91 col1, col2 * - col0 + + - col0 + + col2 + col2 FROM tab2
----
91
-1058
91
-2544
91
-4309

query II rowsort
SELECT DISTINCT + 37 * + - col2 * - col0, col2 AS col0 FROM tab1
----
181152
96
185555
59
228956
68

query I rowsort
SELECT ALL ( - - 27 ) * + 94 AS col0 FROM tab0 AS cor0
----
2538
2538
2538

query I rowsort
SELECT DISTINCT + col1 + - col1 * 89 AS col0 FROM tab2 AS cor0
----
-4488
-5896
-6776

query I rowsort
SELECT 46 * - col0 + col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

query I rowsort
SELECT col1 * - 1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col2 * - 18 * - 96 FROM tab1
----
101952
117504
165888

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

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

query II rowsort
SELECT DISTINCT 13, col1 + col1 AS col0 FROM tab2
----
13
102
13
134
13
154

query II rowsort
SELECT ALL - col2 AS col2, + ( + 26 ) FROM tab1
----
-59
26
-68
26
-96
26

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

query II rowsort
SELECT DISTINCT 75 + + 36 * - 82 AS col2, 68 AS col2 FROM tab1, tab1 AS cor0
----
-2877
68

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 73 ) = col2
----

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

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

query I rowsort
SELECT ( col2 ) + - + 51 FROM tab0 cor0
----
-4
-41
48

query I rowsort
SELECT - - 8 + col2 AS col1 FROM tab2 AS cor0
----
31
48
66

query I rowsort
SELECT 51 + col0 + + col0 FROM tab0
----
225
245
81

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

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

query I rowsort
SELECT DISTINCT + + 65 AS col0 FROM tab0 cor0
----
65

query I rowsort
SELECT DISTINCT - col0 * + col2 * - 18 + 50 + + 74 FROM tab2 AS cor0
----
19168
46204
78424

query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 30 + - col0 ) > - col1 * col1 * - ( + col0 ) - + 41 * - 49
----
-1058
-2560
-4350

query I rowsort
SELECT - - col2 * + col2 + + 24 - 97 AS col2 FROM tab0 AS cor0
----
2136
27
9728

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

skipif mysql # not compatible
query I rowsort label-1333
SELECT + - MAX ( col0 ) * COUNT ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT + SUM( 90 ) FROM tab1 cor0 WHERE NOT ( - 85 NOT BETWEEN NULL AND - ( col2 ) / - - col1 * ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + SUM ( 90 ) FROM tab1 cor0 WHERE NOT ( - 85 NOT BETWEEN NULL AND - ( col2 ) / - - col1 * ( col0 ) )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL - 50 FROM tab1 AS cor0 WHERE NOT ( col1 + 39 * CAST( NULL AS SIGNED ) * + - col2 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - 50 FROM tab1 AS cor0 WHERE NOT ( col1 + 39 * CAST ( NULL AS INTEGER ) * + - col2 ) <> ( NULL )
----

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

query II rowsort
SELECT DISTINCT - 27 AS col0, 63 FROM tab1
----
-27
63

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

skipif mysql # not compatible
query II rowsort label-1339
SELECT DISTINCT - + COUNT ( * ), COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT DISTINCT - CAST( 50 AS SIGNED ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - CAST ( 50 AS INTEGER ) FROM tab1
----
-50

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - col1 / - 93 * col0
----

query I rowsort
SELECT + - col2 * 66 FROM tab0 AS cor0
----
-3102
-6534
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT col2 DIV + 15 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1346
SELECT col2 / + 15 AS col2 FROM tab2
----
1
2
3

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1349
SELECT CAST( + col1 AS SIGNED ) DIV - 30 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1349
SELECT CAST ( + col1 AS INTEGER ) / - 30 AS col2 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - + 12 AS col2 FROM tab1 AS cor0 WHERE 93 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL - 74 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
631
796
9529

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1356
SELECT ALL 53 + CAST( - ( col1 ) AS SIGNED ) + + + 32 col2 FROM tab1
----
38
71
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1356
SELECT ALL 53 + CAST ( - ( col1 ) AS INTEGER ) + + + 32 col2 FROM tab1
----
38
71
80

query I rowsort
SELECT DISTINCT + ( + 23 ) + col0 FROM tab1
----
108
114
74

query I rowsort
SELECT DISTINCT + col2 * - - 93 AS col1 FROM tab0
----
4371
9207
930

query I rowsort
SELECT 59 + - + col1 FROM tab2
----
-18
-8
8

query I rowsort
SELECT ALL - col0 * - col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + + col2 + - col0 AS col2 FROM tab0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-1362
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT + COUNT( DISTINCT + col2 ) * - 50 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) * - 50 FROM tab1
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT - CAST( + 52 AS SIGNED ) FROM tab0 WHERE - + col2 >= - col1
----
-52
-52

skipif mysql # not compatible
query I rowsort label-1364
SELECT - CAST ( + 52 AS INTEGER ) FROM tab0 WHERE - + col2 >= - col1
----
-52
-52

query I rowsort
SELECT ALL - col1 * + 75 AS col1 FROM tab1
----
-1050
-3525
-375

query I rowsort
SELECT ALL - 48 + 30 + + ( + + col0 ) FROM tab0
----
-3
69
79

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 AS col2, ( + + col2 ) * - 39 col2 FROM tab0 AS cor0 WHERE NOT + 96 IN ( col1 )
----
87
-1833
87
-3861
87
-390

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1376
SELECT - col0 * col1 DIV + - 48, + col2 FROM tab1
----
14
96
8
59
89
68

skipif mysql # not compatible
query II rowsort label-1376
SELECT - col0 * col1 / + - 48, + col2 FROM tab1
----
14
96
8
59
89
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT - 46 DIV + col2 * - 61 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1378
SELECT - 46 / + col2 * - 61 col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT + ( - - ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col1 FROM tab2 AS cor0 WHERE + col0 / - col2 * + 58 IS NOT NULL
----
116
46
80

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

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

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT + ( + - ( COUNT ( * ) ) ) * - - CAST ( + 90 AS INTEGER ) FROM tab0 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL + - COUNT( * ) * - + 15 + + + MAX( - 9 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL + - COUNT ( * ) * - + 15 + + + MAX ( - 9 ) FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL + col2 + - col0 - + + col0 AS col1 FROM tab1 AS cor0
----
-111
-114
-6

query I rowsort
SELECT DISTINCT + 48 + + - col2 AS col0 FROM tab1 AS cor0
----
-11
-20
-48

query I rowsort
SELECT + + 40 FROM tab0 cor0
----
40
40
40

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1392
SELECT + SUM ( ( + col0 ) ) col1 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT + 84 * - CAST( + - col0 AS SIGNED ) FROM tab1
----
4284
7140
7644

skipif mysql # not compatible
query I rowsort label-1393
SELECT + 84 * - CAST ( + - col0 AS INTEGER ) FROM tab1
----
4284
7140
7644

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

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

query II rowsort
SELECT DISTINCT - col2 * + 5 + + col0 * 31 AS col2, col0 AS col2 FROM tab2
----
1311
46
1784
64
2035
75

query I rowsort
SELECT ALL 3 * - + col2 FROM tab0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + MIN( DISTINCT + - ( - col0 ) ) - - MAX( ALL + 6 ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1397
SELECT + MIN ( DISTINCT + - ( - col0 ) ) - - MAX ( ALL + 6 ) AS col0 FROM tab0
----
21

query I rowsort
SELECT ALL - 57 AS col2 FROM tab0 cor0
----
-57
-57
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT MAX( + 57 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT MAX ( + 57 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
57

query I rowsort
SELECT - 91 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1402
SELECT - ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT - col0 - + col1 AS col1 FROM tab0 WHERE NOT - - col2 * 26 / col0 - + col1 <> + 64 + - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1404
SELECT 34 AS col1, + col2 DIV + - col0 FROM tab1
----
34
-1
34
0
34
0

skipif mysql # not compatible
query II rowsort label-1404
SELECT 34 AS col1, + col2 / + - col0 FROM tab1
----
34
-1
34
0
34
0

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

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT MAX ( - 62 ) FROM tab2 AS cor0
----
-62

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

skipif mysql # not compatible
query II rowsort label-1406
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 8 * COUNT ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
NULL
24

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - col1 / - - col2 AS col2 FROM tab1 AS cor0
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL MAX( ALL col0 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1412
SELECT ALL MAX ( ALL col0 ) col2 FROM tab2
----
75

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - + col1 + + col2 + col1 = + + 41
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT DISTINCT + 81 DIV - + col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT + 81 / - + col0 FROM tab0
----
-5
0

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col0 + + col0 FROM tab1
----
-14
102
-47
182
-5
170

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

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

query I rowsort
SELECT DISTINCT - ( + 54 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-54

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab2
----
47

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

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

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

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

query I rowsort
SELECT - col1 + ( 93 ) * + - col1 AS col0 FROM tab0 AS cor0
----
-1974
-7614
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT - MIN( 95 ) + - MIN( - - 2 ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT - MIN ( 95 ) + - MIN ( - - 2 ) FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1427
SELECT MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1428
SELECT DISTINCT col0 * - + col0 DIV CAST( - col0 AS SIGNED ) col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1428
SELECT DISTINCT col0 * - + col0 / CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
51
85
91

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

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

query I rowsort
SELECT - 61 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT - col2 * 7 AS col0 FROM tab1 WHERE NOT - + 11 + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT + SUM ( DISTINCT - + 15 ) FROM tab1 cor0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1434
SELECT ALL ( - - CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL ( - - CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - ( - 94 ) + + - col2 col2 FROM tab0 AS cor0
----
-193
-1984
-7661

onlyif mysql # DIV for integer division: 
query I rowsort label-1437
SELECT ALL - col2 DIV - 91 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - col2 / - 91 FROM tab1
----
0
0
1

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

query I rowsort
SELECT ( + + 14 ) FROM tab0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1440
SELECT ALL ( + col1 ) / - + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + - 18 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL ( + col1 ) / - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + - 18 IS NOT NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT col1 + - + col2 + - col0 BETWEEN NULL AND + + 29 * + col2 + + 39
----

query I rowsort
SELECT - 66 * col0 AS col1 FROM tab0
----
-5742
-6402
-990

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

query I rowsort
SELECT 75 + col2 AS col2 FROM tab1 AS cor0
----
134
143
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - + 47 * - col2 + 49 col2 FROM tab0 AS cor0
----
2177
4701
498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT - MAX( DISTINCT - ( + - col0 ) ) DIV - + 69 col2 FROM tab2
----
1

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

query I rowsort
SELECT DISTINCT + - 67 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-67

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - - - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + 53 col1 FROM tab0 AS cor0
----
134
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1451
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + 8 + + 34 FROM tab0 AS cor0
----
42

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

query II rowsort
SELECT ALL col1 - - - col1, 0 AS col1 FROM tab2 AS cor0
----
0
0
0
0
0
0

query I rowsort
SELECT + col1 - + col1 * + col2 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT + ( - col2 ) - + 96 FROM tab0
----
-106
-143
-195

query I rowsort
SELECT 28 - + 50 - - - col2 + + - col1 + - 99 AS col1 FROM tab2
----
-195
-238
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL ( + - MAX( ALL - - 39 ) ) - - + 17 AS col0 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL ( + - MAX ( ALL - - 39 ) ) - - + 17 AS col0 FROM tab0
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL COUNT( * ) * + 20 - + MIN( - - col2 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL COUNT ( * ) * + 20 - + MIN ( - - col2 ) FROM tab2
----
37

query I rowsort
SELECT + - 3 * ( + col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
-13050
-3174
-7680

query I rowsort
SELECT - col0 * - col0 * col2 AS col1 FROM tab1
----
249696
426275
563108

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 59 + + - col2 > 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 col2 FROM tab2 cor0
----
-2601
-4489
-5929

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1469
SELECT DISTINCT MIN( DISTINCT - + col0 ) AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 30 * - 0 < - col1 * + ( - CAST( NULL AS SIGNED ) ) / + - 74
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1469
SELECT DISTINCT MIN ( DISTINCT - + col0 ) AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 30 * - 0 < - col1 * + ( - CAST ( NULL AS INTEGER ) ) / + - 74
----
NULL
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - 64 + + COUNT( * ) * + - 90 FROM tab2
----
-334

skipif mysql # not compatible
query I rowsort label-1471
SELECT - 64 + + COUNT ( * ) * + - 90 FROM tab2
----
-334

query I rowsort
SELECT - 11 + col0 * col1 * - 22 FROM tab0 AS cor0
----
-2145
-26741
-40205

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT + 35 + + - COUNT( * ) * 89 AS col1 FROM tab0 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT + 35 + + - COUNT ( * ) * 89 AS col1 FROM tab0 AS cor0
----
-232

query II rowsort
SELECT + col2 AS col1, col1 - col1 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT 20 DIV col1 DIV + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1475
SELECT 20 / col1 / + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT 86 + - col2 * col2 + col2 FROM tab0 AS cor0
----
-2076
-4
-9616

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + COUNT( * ) + - - 39 + + + COUNT( * ) AS col0 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-1477
SELECT + COUNT ( * ) + - - 39 + + + COUNT ( * ) AS col0 FROM tab1 cor0
----
45

query I rowsort
SELECT + - 30 + + 55 FROM tab2 AS cor0
----
25
25
25

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

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE col2 > 80
----
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT DISTINCT + 10 - - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT + 10 - - COUNT ( * ) FROM tab1
----
13

query I rowsort
SELECT ALL col0 * + col0 + col0 - - col2 - col1 FROM tab2
----
2134
4123
5691

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT DISTINCT - 7, - SUM( DISTINCT - col0 ) - + 94 AS col1 FROM tab1
----
-7
133

skipif mysql # not compatible
query II rowsort label-1485
SELECT DISTINCT - 7, - SUM ( DISTINCT - col0 ) - + 94 AS col1 FROM tab1
----
-7
133

query II rowsort
SELECT - col0 AS col0, - col1 * col1 AS col0 FROM tab2
----
-46
-2601
-64
-5929
-75
-4489

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE + col1 >= 78
----

query I rowsort
SELECT DISTINCT ( - - 81 ) AS col2 FROM tab1
----
81

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL IN ( - col0 - - col2 + col1 - - + 43 )
----

query II rowsort
SELECT col0, - 66 + col1 FROM tab0
----
15
15
87
-45
97
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT - COUNT( - 70 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1491
SELECT - COUNT ( - 70 ) FROM tab2
----
-3

query II rowsort
SELECT DISTINCT col2 AS col0, 25 * - 92 FROM tab0 AS cor0
----
10
-2300
47
-2300
99
-2300

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT DISTINCT 97 * + COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT 97 * + COUNT ( * ) FROM tab0 AS cor0
----
291

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

query I rowsort
SELECT DISTINCT - - 48 FROM tab0 WHERE NULL <> 37
----

query I rowsort
SELECT DISTINCT - + col1 / 90 * - + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ( + + 31 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col1 col1, + 25 FROM tab0
----
1
25
441
25
6561
25

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

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

query I rowsort
SELECT - col2 + - col1 + - 30 FROM tab2 AS cor0
----
-104
-147
-155

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

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

query I rowsort
SELECT - 16 * - + 1 FROM tab2 AS cor0
----
16
16
16

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

query I rowsort
SELECT DISTINCT - 61 * + col0 + ( - col1 ) FROM tab0 AS cor0
----
-5328
-5918
-996

query I rowsort
SELECT + 7 * + - col1 * - + 2 FROM tab1
----
196
658
70

query I rowsort
SELECT - 25 * - 19 FROM tab1
----
475
475
475

query I rowsort
SELECT + 74 * - col0 AS col1 FROM tab2
----
-3404
-4736
-5550

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

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

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

query I rowsort
SELECT + col0 * + - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

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

query I rowsort
SELECT - col1 * - + col2 AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-1515
SELECT DISTINCT + col1, 80 DIV + col0 AS col0 FROM tab2 cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-1515
SELECT DISTINCT + col1, 80 / + col0 AS col0 FROM tab2 cor0
----
51
1
67
1
77
1

query I rowsort
SELECT col1 + - - col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT 91 * + col2 * + - col0 + col0 AS col1 FROM tab0
----
-64140
-79083
-873776

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 1 - - 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1520
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT ALL - - col1 * + 65 + - + 33 AS col1 FROM tab2 cor0
----
3282
4322
4972

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1523
SELECT - CAST( + ( - CAST( col2 AS DECIMAL ) ) AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1523
SELECT - CAST ( + ( - CAST ( col2 AS REAL ) ) AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col1 + + + 39 * - col2 - + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-1239
-13463
-2457

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT ALL + + 49 DIV col1 + 36 col1 FROM tab0 AS cor0
----
36
38
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1525
SELECT ALL + + 49 / col1 + 36 col1 FROM tab0 AS cor0
----
36
38
85

query I rowsort
SELECT - + col1 - - 58 * 51 AS col1 FROM tab1 AS cor0
----
2911
2944
2953

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 34 >= + col2 AND NOT - col0 = + + col1 + 90
----
-3

skipif mysql # not compatible
query I rowsort label-1527
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 34 >= + col2 AND NOT - col0 = + + col1 + 90
----
-3

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

query I rowsort
SELECT ALL + ( 43 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1530
SELECT ALL 18 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1531
SELECT DISTINCT col0 DIV col1 * - - col2, + CAST( NULL AS SIGNED ) * ( col0 ) DIV + col0 AS col2 FROM tab1
----
1003
NULL
288
NULL
68
NULL

skipif mysql # not compatible
query II rowsort label-1531
SELECT DISTINCT col0 / col1 * - - col2, + CAST ( NULL AS INTEGER ) * ( col0 ) / + col0 AS col2 FROM tab1
----
1003
NULL
288
NULL
68
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1532
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 72 * - CAST( + - 46 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1532
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 72 * - CAST ( + - 46 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT - + COUNT( * ) col0 FROM tab0 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-1535
SELECT - + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-1536
SELECT DISTINCT + 65 col1, + col0 DIV - 71 + + + col2 AS col2 FROM tab1 AS cor0
----
65
58
65
67
65
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1536
SELECT DISTINCT + 65 col1, + col0 / - 71 + + + col2 AS col2 FROM tab1 AS cor0
----
65
58
65
67
65
96

query I rowsort
SELECT DISTINCT 3 + + - 44 + col0 FROM tab2 AS cor0
----
23
34
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL - 41 + - 58 + + COUNT( * ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1540
SELECT ALL - 41 + - 58 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-96

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

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

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

query I rowsort
SELECT + col2 + 46 AS col2 FROM tab2
----
104
69
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1545
SELECT DISTINCT + ( - 77 ), - AVG ( DISTINCT col0 ) * - + CAST( NULL AS SIGNED ) + - COUNT( * ) col2 FROM tab2
----
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1545
SELECT DISTINCT + ( - 77 ), - AVG ( DISTINCT col0 ) * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col2 FROM tab2
----
-77
NULL

query I rowsort
SELECT + ( + 60 ) + + col1 FROM tab1
----
107
65
74

query III rowsort
SELECT * FROM tab2 WHERE + + ( - col1 ) + - col1 * + - col0 NOT BETWEEN - + 57 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col1 FROM tab1
----
37
44
80

query I rowsort
SELECT 90 + col1 * + col2 FROM tab1
----
1434
3286
385

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - COUNT( * ) + + 29 AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1550
SELECT - COUNT ( * ) + + 29 AS col1 FROM tab2
----
26

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

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

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

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

query I rowsort
SELECT col2 * col2 + 98 FROM tab1
----
3579
4722
9314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col0 FROM tab2 cor0
----
-8
13
5

query II rowsort
SELECT - col2 * + 59 * + col2, col2 FROM tab1 AS cor0
----
-205379
59
-272816
68
-543744
96

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

query I rowsort
SELECT DISTINCT 86 * + + 6 * - 85 + 38 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1561
SELECT MAX ( ALL + - 5 ) col1 FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT 41 DIV 82 * + col1 * 89 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT 41 / 82 * + col1 * 89 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 * - + col2 * + 5 FROM tab0
----
-1050
-19035
-495

query I rowsort
SELECT DISTINCT col2 * - 11 AS col0 FROM tab1
----
-1056
-649
-748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT ALL + 66 DIV - MAX( - - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL + 66 / - MAX ( - - col2 ) FROM tab0
----
0

query II rowsort
SELECT ALL col0 * + - 25 AS col2, + col2 AS col0 FROM tab0
----
-2175
10
-2425
99
-375
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT MIN( - - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1567
SELECT MIN ( - - col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT - + col0 - - 0 FROM tab2 WHERE NOT + 48 <> + ( - - col0 )
----

query II rowsort
SELECT ( + 94 ) * - 38, col1 AS col0 FROM tab0
----
-3572
1
-3572
21
-3572
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT DISTINCT + 15 * - + COUNT( * ) + + - COUNT( - col1 ) AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + 15 * - + COUNT ( * ) + + - COUNT ( - col1 ) AS col1 FROM tab1 AS cor0
----
-48

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

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

query I rowsort
SELECT - 14 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT 85 * + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 * + 87 >= + 63
----
-255

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT 85 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 * + 87 >= + 63
----
-255

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

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

query I rowsort
SELECT DISTINCT + ( 74 ) * - 50 + col0 AS col1 FROM tab2 AS cor0
----
-3625
-3636
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT + 21 + + COUNT( col1 ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + 21 + + COUNT ( col1 ) AS col1 FROM tab2
----
24

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

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

query I rowsort
SELECT ALL 52 AS col0 FROM tab0
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT - col1 DIV + - ( - - 33 ) AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1579
SELECT - col1 / + - ( - - 33 ) AS col0 FROM tab0
----
0
0
2

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

query I rowsort
SELECT ( + 30 ) * - + 22 + + - 88 FROM tab1
----
-748
-748
-748

query I rowsort
SELECT ALL - 6 + + col0 - 46 AS col1 FROM tab0
----
-37
35
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1585
SELECT DISTINCT - col1 AS col1, 9 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-1585
SELECT DISTINCT - col1 AS col1, 9 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + 88 * + ( - 7 ) + + 7 + + COUNT( * ) col0 FROM tab2 AS cor0
----
-606

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1586
SELECT + 88 * + ( - 7 ) + + 7 + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-606

query I rowsort
SELECT - 30 FROM tab1 AS cor0 WHERE 71 - + col0 + + ( + + 75 ) < + col2
----
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - 36 + + SUM( ALL - - col2 ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1588
SELECT - 36 + + SUM ( ALL - - col2 ) FROM tab0 AS cor0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1589
SELECT - ( + MAX( col0 ) ) DIV COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1589
SELECT - ( + MAX ( col0 ) ) / COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
-29

query II rowsort
SELECT + 40 + + col1 AS col1, + 94 FROM tab2 AS cor0
----
107
94
117
94
91
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + - col0 col2, + 33 * col1 FROM tab0 AS cor0
----
-66
693
-96
33
66
2673

query II rowsort
SELECT - col2 + + col2 AS col0, col2 * 4 AS col0 FROM tab0 AS cor0
----
0
188
0
396
0
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 + - 45 col1 FROM tab2
----
109
57
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT + - ( 52 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1594
SELECT + - ( 52 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col2 * + - col2 - + col2 < + col0 + - - col0 + + col0 )
----
87
21
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT + - col0 DIV - col2 + + + col1 AS col2 FROM tab0 AS cor0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-1597
SELECT + - col0 / - col2 + + + col1 AS col2 FROM tab0 AS cor0
----
1
29
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1598
SELECT 15 DIV 55, col0 AS col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-1598
SELECT 15 / 55, col0 AS col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1601
SELECT DISTINCT MAX( DISTINCT + - col1 ) * - 25 + 95 DIV - - 35 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT MAX ( DISTINCT + - col1 ) * - 25 + 95 / - - 35 FROM tab0
----
27

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

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

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

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

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

query II rowsort
SELECT ALL col1 AS col1, - col0 * 52 AS col2 FROM tab0
----
1
-5044
21
-4524
81
-780

onlyif mysql # DIV for integer division: 
query II rowsort label-1607
SELECT col1 DIV + ( - 64 ) AS col2, 6 FROM tab1
----
0
6
0
6
0
6

skipif mysql # not compatible
query II rowsort label-1607
SELECT col1 / + ( - 64 ) AS col2, 6 FROM tab1
----
0
6
0
6
0
6

query II rowsort
SELECT DISTINCT + col0, + col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - - 52 * - col2 FROM tab1 AS cor0 WHERE NOT 99 = col2
----
-3068
-3536
-4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 93 col1 FROM tab1 AS cor0
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT MIN( ALL col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT MIN ( ALL col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT - - 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1613
SELECT CAST( NULL AS DECIMAL ) / - 20 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT CAST ( NULL AS REAL ) / - 20 * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT MAX( DISTINCT 17 ) AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT MAX ( DISTINCT 17 ) AS col2 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL - MAX( ALL - 15 ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - MAX ( ALL - 15 ) FROM tab1 cor0
----
15

query I rowsort
SELECT col0 * 95 AS col2 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - - ( - + COUNT( * ) ) + + 2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1618
SELECT - - ( - + COUNT ( * ) ) + + 2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT + 73 + - 62, ( col2 ) AS col1 FROM tab1 AS cor0
----
11
59
11
68
11
96

query I rowsort
SELECT + ( 69 ) + + col2 FROM tab2 AS cor0
----
109
127
92

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

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

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + 24 FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 18 + - col0 AS col0 FROM tab0 AS cor0
----
-69
-79
3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 40 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT COUNT( * ) AS col1 FROM tab1 WHERE + - col2 NOT BETWEEN + 62 * 47 AND 48
----
3

skipif mysql # not compatible
query I rowsort label-1628
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE + - col2 NOT BETWEEN + 62 * 47 AND 48
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT MIN( ALL + col0 ) + + - 1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-1629
SELECT MIN ( ALL + col0 ) + + - 1 FROM tab1
----
50

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab2 WHERE 12 + + + col0 * col0 >= - 79
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - SUM( 20 ) AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-1631
SELECT - SUM ( 20 ) AS col1 FROM tab0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1632
SELECT col2 / - CAST( NULL AS SIGNED ) * - - 17 AS col1, - col1 + + col0 FROM tab1
----
NULL
37
NULL
44
NULL
80

skipif mysql # not compatible
query II rowsort label-1632
SELECT col2 / - CAST ( NULL AS INTEGER ) * - - 17 AS col1, - col1 + + col0 FROM tab1
----
NULL
37
NULL
44
NULL
80

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

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

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT SUM ( DISTINCT + col2 ) FROM tab2
----
121

query I rowsort
SELECT ALL col0 * 10 * - 14 * - + col0 FROM tab1
----
1011500
1159340
364140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT + MIN( ALL + 66 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + MIN ( ALL + 66 ) FROM tab0 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query III rowsort label-1638
SELECT ALL + col0 AS col0, 80 DIV + + 21, + col2 FROM tab0 cor0
----
9 values hashing to 9fc2f022a72eae65687142eee9e20280

skipif mysql # not compatible
query III rowsort label-1638
SELECT ALL + col0 AS col0, 80 / + + 21, + col2 FROM tab0 cor0
----
9 values hashing to 9fc2f022a72eae65687142eee9e20280

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1639
SELECT * FROM tab1 WHERE NOT - + col2 IN ( + 85 * - + ( CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-1639
SELECT * FROM tab1 WHERE NOT - + col2 IN ( + 85 * - + ( CAST ( NULL AS REAL ) ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT + 72 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1642
SELECT + 72 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
216

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1645
SELECT ALL - + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL - + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 15 * ( + - 17 ) FROM tab0
----
-255
-255
-255

query I rowsort
SELECT col2 * - + col2 * + col1 AS col1 FROM tab1
----
-129024
-17405
-217328

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

query I rowsort
SELECT ALL 2 AS col0 FROM tab2
----
2
2
2

query I rowsort
SELECT ALL col2 FROM tab1 WHERE - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT ALL - - col0 + 11 FROM tab1 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) <= - col1
----
102
62
96

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - - col0 + 11 FROM tab1 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) <= - col1
----
102
62
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1653
SELECT ALL col2 * col2 * col0 AS col2, - CAST( + col1 AS SIGNED ) FROM tab2 WHERE NOT ( + col0 * - col1 / col1 + col0 ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-1653
SELECT ALL col2 * col2 * col0 AS col2, - CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NOT ( + col0 * - col1 / col1 + col0 ) <> NULL
----

query I rowsort
SELECT ALL + col0 + + - col0 * - col1 AS col0 FROM tab2
----
2392
4992
5100

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 52 NOT BETWEEN NULL AND - 4 + + col0
----
46
51
23

query I rowsort
SELECT ALL - 4 * - col1 FROM tab2 AS cor0
----
204
268
308

query I rowsort
SELECT DISTINCT - col2 * - col2 * 10 + + 3 FROM tab1 AS cor0
----
34813
46243
92163

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT CAST ( 65 AS INTEGER ) FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + col0 * - + 19 + - 46
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 < NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) - - col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT + col2 - 50 FROM tab1
----
18
46
9

query I rowsort
SELECT ALL col1 * 8 - + 61 AS col1 FROM tab2
----
347
475
555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1668
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col2 AS col2, col0 + + - 81 FROM tab2
----
NULL
-17
NULL
-35
NULL
-6

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col2 AS col2, col0 + + - 81 FROM tab2
----
NULL
-17
NULL
-35
NULL
-6

query I rowsort
SELECT DISTINCT ( + + 94 ) AS col1 FROM tab2
----
94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT + + col1 + + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1671
SELECT + + col1 + + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + ( 71 ), + 94 - - col0 AS col2 FROM tab2 AS cor0
----
71
140
71
158
71
169

query I rowsort
SELECT - ( 89 ) AS col0 FROM tab2
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT ALL CAST( + - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL CAST ( + - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ( - - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1676
SELECT ( - - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - MAX( + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1677
SELECT - MAX ( + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-1678
SELECT - 33 AS col2, + col0 DIV + + col1 FROM tab0 AS cor0
----
-33
0
-33
4
-33
97

skipif mysql # not compatible
query II rowsort label-1678
SELECT - 33 AS col2, + col0 / + + col1 FROM tab0 AS cor0
----
-33
0
-33
4
-33
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + 40 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - + MIN( + col1 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1680
SELECT - + MIN ( + col1 ) AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL 17 * + col2 AS col2 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1682
SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT MIN( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1683
SELECT MIN ( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + - 27 FROM tab0 cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT 31 * - 24 * + col0 AS col1 FROM tab0
----
-11160
-64728
-72168

onlyif mysql # aggregate syntax: 
query II rowsort label-1686
SELECT DISTINCT 86 AS col2, - COUNT( * ) FROM tab2
----
86
-3

skipif mysql # not compatible
query II rowsort label-1686
SELECT DISTINCT 86 AS col2, - COUNT ( * ) FROM tab2
----
86
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT ALL - ( + + ( + + col1 ) ) + + 26 AS col0 FROM tab2 WHERE NOT + + ( - col2 ) + ( + col0 ) = + - CAST( 99 AS SIGNED )
----
-25
-41
-51

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL - ( + + ( + + col1 ) ) + + 26 AS col0 FROM tab2 WHERE NOT + + ( - col2 ) + ( + col0 ) = + - CAST ( 99 AS INTEGER )
----
-25
-41
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT - COUNT( ALL + + col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1688
SELECT - COUNT ( ALL + + col2 ) AS col2 FROM tab1
----
-3

query II rowsort
SELECT ALL col2, col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT - 18 + + 94 + + 71 AS col2 FROM tab1
----
147
147
147

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE - col2 * - col1 IS NULL
----

query I rowsort
SELECT - col2 * + col2 + + - 78 AS col1 FROM tab1 AS cor0
----
-3559
-4702
-9294

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1693
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT + COUNT( 68 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + COUNT ( 68 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT COUNT( * ) * + + 5 AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1695
SELECT COUNT ( * ) * + + 5 AS col2 FROM tab2
----
15

query I rowsort
SELECT ALL col0 * ( col2 ) AS col1 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT ALL 28 + col1, col2 + - + col2 AS col2 FROM tab2 AS cor0
----
105
0
79
0
95
0

query I rowsort
SELECT + + col0 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL - 37 * - + ( - COUNT( * ) ) * - SUM( - + col0 ) FROM tab1 AS cor0
----
-25197

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - 37 * - + ( - COUNT ( * ) ) * - SUM ( - + col0 ) FROM tab1 AS cor0
----
-25197

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT DISTINCT - 20 * + CAST( NULL AS SIGNED ) + col0 - + + col0 / + 56 * - CAST( - 97 AS SIGNED ) * - col2 + - ( - 58 ) * col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT - 20 * + CAST ( NULL AS INTEGER ) + col0 - + + col0 / + 56 * - CAST ( - 97 AS INTEGER ) * - col2 + - ( - 58 ) * col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + 56 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT DISTINCT col2 DIV - 61 + - col1 - - col2 * + 34 FROM tab1
----
2001
2264
3249

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT col2 / - 61 + - col1 - - col2 * + 34 FROM tab1
----
2001
2264
3249

query II rowsort
SELECT col0 AS col0, 88 AS col2 FROM tab0
----
15
88
87
88
97
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT ALL CAST( NULL AS SIGNED ) + + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL CAST ( NULL AS INTEGER ) + + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col0 ) AS col1 FROM tab1 WHERE col1 > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( + + col1 ) col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - 50 - 4 + - - ( + - col0 ) FROM tab2
----
-100
-118
-129

query I rowsort
SELECT ALL 83 - - - col2 + + + 46 FROM tab1
----
33
61
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT DISTINCT - col0 DIV - 62 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT - col0 / - 62 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT ALL col1 * - 58 FROM tab2
----
-2958
-3886
-4466

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + - ( 21 ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT + 78 * 23 AS col2 FROM tab0 AS cor0
----
1794
1794
1794

query I rowsort
SELECT ALL + 79 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT ALL - 60 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-60
3

skipif mysql # not compatible
query II rowsort label-1716
SELECT ALL - 60 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-60
3

query I rowsort
SELECT 25 + + col2 AS col0 FROM tab1
----
121
84
93

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 56 + - 55 * col2 > 81 * 25 + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - col2 NOT BETWEEN col2 * - col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT ALL - ( ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL - ( ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT COUNT( * ) FROM tab1 WHERE NOT col2 * col2 BETWEEN ( col1 + 2 / + 4 ) AND col0 * - 49 + + 44
----
3

skipif mysql # not compatible
query I rowsort label-1722
SELECT COUNT ( * ) FROM tab1 WHERE NOT col2 * col2 BETWEEN ( col1 + 2 / + 4 ) AND col0 * - 49 + + 44
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT MIN( DISTINCT col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1723
SELECT MIN ( DISTINCT col0 ) FROM tab2
----
46

query I rowsort
SELECT ALL 8 + 3 * col1 FROM tab1
----
149
23
50

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 BETWEEN ( 5 ) AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT - ( CAST( 78 AS SIGNED ) ) AS col0 FROM tab2
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-1726
SELECT - ( CAST ( 78 AS INTEGER ) ) AS col0 FROM tab2
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1727
SELECT ALL + CAST( NULL AS SIGNED ) + 72 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + CAST ( NULL AS INTEGER ) + 72 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT COUNT( * ) * COUNT( * ) - + 76 AS col2 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-1728
SELECT COUNT ( * ) * COUNT ( * ) - + 76 AS col2 FROM tab0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - MAX( DISTINCT 44 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-1729
SELECT - MAX ( DISTINCT 44 ) FROM tab1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT ALL 16 * ( SUM( + ( col1 ) ) DIV - 99 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL 16 * ( SUM ( + ( col1 ) ) / - 99 ) FROM tab2
----
-16

query I rowsort
SELECT ALL col0 * 32 + - col2 * - ( + col2 * - 92 ) FROM tab1
----
-317532
-422496
-846240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * 16 IS NULL
----

query I rowsort
SELECT DISTINCT - 40 FROM tab0 WHERE 11 * col1 <> NULL
----

query I rowsort
SELECT 46 * col2 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT MAX( 93 ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT MAX ( 93 ) AS col0 FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1736
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) - 7 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1736
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) - 7 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT + CAST( + CAST( - 0 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 WHERE ( col1 * 38 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1737
SELECT + CAST ( + CAST ( - 0 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 WHERE ( col1 * 38 ) IS NULL
----

query I rowsort
SELECT DISTINCT 44 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 85 * 78 ) BETWEEN ( + col0 ) * 84 AND NULL
----

query I rowsort
SELECT ALL - 92 AS col1 FROM tab2 AS cor0 WHERE 49 IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT ( + CAST( 67 AS SIGNED ) ) FROM tab0 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-1741
SELECT ( + CAST ( 67 AS INTEGER ) ) FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL + MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT col1 * - col2 + col1 AS col1 FROM tab0 cor0
----
-189
-3726
-98

query I rowsort
SELECT 42 + + ( col1 - - 74 ) FROM tab1 AS cor0
----
121
130
163

query I rowsort
SELECT DISTINCT 29 + + 89 AS col0 FROM tab2 AS cor0
----
118

query I rowsort
SELECT + col0 + 41 AS col0 FROM tab2
----
105
116
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT + MIN( ALL 85 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) > ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1747
SELECT + MIN ( ALL 85 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) > ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab0 WHERE NOT col2 = col0
----
39

query I rowsort
SELECT 17 + 1 FROM tab2
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 61 ) col2 FROM tab1
----
61

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT 12 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT col1 * + 87 AS col1 FROM tab1
----
1218
4089
435

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - 24 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - ( + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1754
SELECT - ( + COUNT ( * ) ) FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * 6 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT + + COUNT( DISTINCT col1 ) * ( SUM( DISTINCT col0 ) - + 62 * COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1757
SELECT + + COUNT ( DISTINCT col1 ) * ( SUM ( DISTINCT col0 ) - + 62 * COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT ALL - 2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT ( - col1 ) > ( - 50 * 61 + 75 )
----

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - 2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT ( - col1 ) > ( - 50 * 61 + 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT ALL CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 - + ( col1 ) * - 65 FROM tab1 AS cor0
----
1006
3123
384

query I rowsort
SELECT + col2 * col0 - col0 AS col0 FROM tab0 cor0
----
690
783
9506

query I rowsort
SELECT ALL col2 * + 23 FROM tab1 AS cor0 WHERE NOT + col0 - col0 IS NULL
----
1357
1564
2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col0 < ( col0 + + 85 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1763
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col0 < ( col0 + + 85 )
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT - 87 - MIN( DISTINCT + 78 ) DIV MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-1764
SELECT - 87 - MIN ( DISTINCT + 78 ) / MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT - - 8 * + 13 - col0 AS col0 FROM tab0 cor0
----
17
7
89

query I rowsort
SELECT ALL + + 91 AS col2 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT - col0 > col2
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + 14 - COUNT( ALL 43 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-1768
SELECT + 14 - COUNT ( ALL 43 ) FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 77 col1 FROM tab2
----
-13
-2
-31

query I rowsort
SELECT ALL - col2 - + 66 FROM tab2
----
-106
-124
-89

query I rowsort
SELECT DISTINCT 63 FROM tab1 WHERE - 53 * - 35 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT DISTINCT - 33 * - COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT - 33 * - COUNT ( * ) FROM tab1
----
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 > 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT 59 IN ( 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT ALL col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT + col0 * col0 NOT BETWEEN col2 / col2 AND - 57 * - 93
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN ( - col2 ) * 15 AND col0 + ( - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-1777
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN ( - col2 ) * 15 AND col0 + ( - 88 )
----
0

query I rowsort
SELECT DISTINCT + - ( + 48 ) FROM tab1 AS cor0
----
-48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col2 >= - 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1780
SELECT - COUNT( * ) DIV + 84 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COUNT ( * ) / + 84 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT - + COUNT( * ) col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1781
SELECT - + COUNT ( * ) col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1782
SELECT * FROM tab2 WHERE NOT - + 2 IN ( + CAST( - 25 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1782
SELECT * FROM tab2 WHERE NOT - + 2 IN ( + CAST ( - 25 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( 10 ) * 21 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT COUNT( * ) DIV - 25 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT COUNT ( * ) / - 25 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1786
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, 47 FROM tab0 AS cor0
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-1786
SELECT ALL CAST ( NULL AS REAL ) AS col1, 47 FROM tab0 AS cor0
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 cor0 WHERE 61 * col1 + + 63 NOT BETWEEN + 60 - + col2 AND 95
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 / col1 ) < ( 32 ) + 79 * + 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT ALL col0 + + col0 + 87 + CAST( - 54 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
135
203
215

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL col0 + + col0 + 87 + CAST ( - 54 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
135
203
215

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col0 / + 22 <> 61
----

query II rowsort
SELECT - + col1 AS col0, 4 AS col2 FROM tab2 AS cor0
----
-51
4
-67
4
-77
4

query I rowsort
SELECT + - ( + 74 ) * - col0 * - col1 AS col2 FROM tab2 cor0
----
-173604
-364672
-371850

query I rowsort
SELECT ALL + col0 + - 38 + + + 0 FROM tab2 AS cor0
----
26
37
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NOT NULL IS NOT NULL AND NULL = + col2 * - 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT - 32 DIV - col0 + + col1 + col0 - 15 * + 30 AS col0 FROM tab2
----
-308
-309
-353

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - 32 / - col0 + + col1 + col0 - 15 * + 30 AS col0 FROM tab2
----
-308
-309
-353

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 14 * - col2 ) NOT BETWEEN ( - 68 ) AND col1 * + 68 + - 63
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col0 ) BETWEEN - 74 AND 73
----
87
21
10
97
1
99

query I rowsort
SELECT + 58 + col1 + 91 AS col2 FROM tab0
----
150
170
230

query II rowsort
SELECT col1 + - col2 AS col0, - col0 + + col0 + col1 * + col1 AS col1 FROM tab1
----
-21
2209
-54
25
-82
196

query I rowsort
SELECT DISTINCT ( col0 ) + + col0 AS col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + + MIN( DISTINCT + col1 ) * - COUNT( - + col1 ) - 39 AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1802
SELECT + + MIN ( DISTINCT + col1 ) * - COUNT ( - + col1 ) - 39 AS col0 FROM tab1 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-1803
SELECT + col1 DIV col2 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-1803
SELECT + col1 / col2 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
0
97
1
15
2
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT DISTINCT - col2 * CAST( + ( + col2 ) AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
-3476
-4577
-9202

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT - col2 * CAST ( + ( + col2 ) AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
-3476
-4577
-9202

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE col2 + + + col1 <> ( - 1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT COUNT( * ) * COUNT( * ) FROM tab2 WHERE + 22 + + 96 IN ( 75 )
----
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE + 22 + + 96 IN ( 75 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT DISTINCT - 44 DIV MIN( DISTINCT col2 ) AS col0 FROM tab0 WHERE - + col1 * + - col1 IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - 44 / MIN ( DISTINCT col2 ) AS col0 FROM tab0 WHERE - + col1 * + - col1 IS NOT NULL
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - MAX( DISTINCT - - 76 ) - + 23 + - COUNT( * ) col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1808
SELECT - MAX ( DISTINCT - - 76 ) - + 23 + - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - - MIN( DISTINCT + col0 ) + + - 79 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1809
SELECT - - MIN ( DISTINCT + col0 ) + + - 79 FROM tab1 AS cor0
----
-28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) < NULL
----

query I rowsort
SELECT ALL col2 + + 44 FROM tab2 AS cor0
----
102
67
84

onlyif mysql # DIV for integer division: 
query II rowsort label-1812
SELECT ALL 44 DIV + 91 AS col2, - 71 col1 FROM tab2
----
0
-71
0
-71
0
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1812
SELECT ALL 44 / + 91 AS col2, - 71 col1 FROM tab2
----
0
-71
0
-71
0
-71

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / - - col0 - - - col0 + + col0 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1814
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( + + col1 AS SIGNED ) IN ( - 24 * - col0 + ( + col0 + 30 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1814
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( + + col1 AS INTEGER ) IN ( - 24 * - col0 + ( + col0 + 30 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL - 3 AS col0, col2 FROM tab0 AS cor0
----
-3
10
-3
47
-3
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 74 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1818
SELECT ALL * FROM tab0 WHERE NOT CAST( 26 AS SIGNED ) / + 62 < + + col0 * - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1818
SELECT ALL * FROM tab0 WHERE NOT CAST ( 26 AS INTEGER ) / + 62 < + + col0 * - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, col1 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab2 AS cor0 WHERE + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * 37 * col2, - ( 66 ) col0 FROM tab2 AS cor0
----
-160950
-66
-39146
-66
-94720
-66

query I rowsort
SELECT DISTINCT 72 / + 16 FROM tab1 AS cor0 WHERE ( col2 * - ( - + 86 ) - col2 + - col1 NOT BETWEEN 49 AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT + 12 * - 79 + + - col2 FROM tab1 AS cor0
----
-1007
-1016
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + 68 * - 24 * + COUNT( * ) FROM tab0
----
-4896

skipif mysql # not compatible
query I rowsort label-1824
SELECT + 68 * - 24 * + COUNT ( * ) FROM tab0
----
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT COUNT( ALL - 80 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1825
SELECT COUNT ( ALL - 80 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT ALL - col0 DIV + 57 + - 28 AS col0 FROM tab2
----
-28
-29
-29

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - col0 / + 57 + - 28 AS col0 FROM tab2
----
-28
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL MIN( ALL col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1827
SELECT ALL MIN ( ALL col0 ) col2 FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT DISTINCT 49 + CAST( ( MIN( ALL - col0 ) ) AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-48

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 49 + CAST ( ( MIN ( ALL - col0 ) ) AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1829
SELECT DISTINCT - 72 * + CAST( + - SUM( - 68 ) AS SIGNED ) AS col1 FROM tab2
----
-14688

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT - 72 * + CAST ( + - SUM ( - 68 ) AS INTEGER ) AS col1 FROM tab2
----
-14688

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT 11 + - SUM( DISTINCT + + 52 ) AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1830
SELECT 11 + - SUM ( DISTINCT + + 52 ) AS col2 FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1831
SELECT + + MIN( col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( NULL AS DECIMAL ) AND - col2 + - - 8 + col2 + + col2 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT + + MIN ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS REAL ) AND - col2 + - - 8 + col2 + + col2 * col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL 63 DIV - - col2 - - col0 AS col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL 63 / - - col2 - - col0 AS col2 FROM tab2
----
48
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1833
SELECT - CAST( + + 3 AS SIGNED ) AS col1, - col1 - - col2 * 19 * col2 + - 39 + 58 FROM tab1
----
-3
175109
-3
66153
-3
87828

skipif mysql # not compatible
query II rowsort label-1833
SELECT - CAST ( + + 3 AS INTEGER ) AS col1, - col1 - - col2 * 19 * col2 + - 39 + 58 FROM tab1
----
-3
175109
-3
66153
-3
87828

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT COUNT( * ) - - ( + 35 ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT COUNT ( * ) - - ( + 35 ) FROM tab0 AS cor0
----
38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col1 FROM tab2 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 52 - - 54 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col2 FROM tab2 cor0
----
41
41
41

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 38 NOT BETWEEN NULL AND 13 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT + ( - 54 ) DIV - - 99 + col0 + + 99 + + + 92 * + 17 + - ( - - 7 ) DIV + 2 FROM tab1
----
1711
1745
1751

skipif mysql # not compatible
query I rowsort label-1841
SELECT + ( - 54 ) / - - 99 + col0 + + 99 + + + 92 * + 17 + - ( - - 7 ) / + 2 FROM tab1
----
1711
1745
1751

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT + COUNT( * ) * + + 25 col1 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1842
SELECT DISTINCT + COUNT ( * ) * + + 25 col1 FROM tab1
----
75

query I rowsort
SELECT ALL - + 29 * + 98 * + + col0 * + 61 * + + 77 FROM tab0 WHERE + - col1 IN ( + col1, 98 )
----

query I rowsort
SELECT + + 11 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( ( - col0 ) ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1846
SELECT DISTINCT + 98 AS col2 FROM tab2 WHERE - + ( CAST( NULL AS DECIMAL ) ) * col1 * col1 IS NULL
----
98

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + 98 AS col2 FROM tab2 WHERE - + ( CAST ( NULL AS REAL ) ) * col1 * col1 IS NULL
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1847
SELECT + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT + MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT DISTINCT CAST( + + 5 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT CAST ( + + 5 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT SUM( ALL - 72 ) AS col1 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1849
SELECT SUM ( ALL - 72 ) AS col1 FROM tab1 AS cor0
----
-216

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 - - col0 ) NOT BETWEEN NULL AND ( - col0 - - + col2 )
----
87
21
10
97
1
99

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 + col2 + + + 4 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT - MIN( ALL + 28 ) AS col1 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1852
SELECT - MIN ( ALL + 28 ) AS col1 FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-1853
SELECT DISTINCT 55 DIV 37 AS col1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-1853
SELECT DISTINCT 55 / 37 AS col1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
51
1
67
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT MIN( DISTINCT - - 93 ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1854
SELECT MIN ( DISTINCT - - 93 ) AS col0 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL MIN( DISTINCT 11 ) AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL MIN ( DISTINCT 11 ) AS col1 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT DISTINCT + + ( CAST( + COUNT( * ) AS SIGNED ) ) * + 40 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + + ( CAST ( + COUNT ( * ) AS INTEGER ) ) * + 40 FROM tab1 AS cor0
----
120

query II rowsort
SELECT DISTINCT col0, - col0 AS col0 FROM tab1
----
51
-51
85
-85
91
-91

query II rowsort
SELECT + 88, col1 AS col0 FROM tab1
----
88
14
88
47
88
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT 7, col2 + + col0 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
7
18
7
27
7
66

query I rowsort
SELECT 14 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= + - col0
----

query I rowsort
SELECT ALL - 37 * 27 FROM tab1 AS cor0
----
-999
-999
-999

query I rowsort
SELECT ALL - + col1 + 55 AS col2 FROM tab0 AS cor0
----
-26
34
54

query I rowsort
SELECT 95 + + + 64 FROM tab1 AS cor0
----
159
159
159

query I rowsort
SELECT 30 + + col2 FROM tab2 AS cor0
----
53
70
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL - - 89 * col2 + + CAST( NULL AS SIGNED ) + + 43 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - - 89 * col2 + + CAST ( NULL AS INTEGER ) + + 43 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + - col0, col1 AS col2 FROM tab0 WHERE NOT - 98 > 30 + + col2 * + col0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ALL - col1 + + col1 + col2 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT - 46 / + + CAST( NULL AS SIGNED ) / 80 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT - 46 / + + CAST ( NULL AS INTEGER ) / 80 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT 91 DIV + - 74 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1871
SELECT 91 / + - 74 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT + MAX( ALL + + col0 ) AS col2 FROM tab2 AS cor0 WHERE col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT + MAX ( ALL + + col0 ) AS col2 FROM tab2 AS cor0 WHERE col2 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT DISTINCT ( - 77 ) / - - ( + 90 ) * - 82 * + CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT ( - 77 ) / - - ( + 90 ) * - 82 * + CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - 83 IN ( 37, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - + COUNT( - + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1875
SELECT - + COUNT ( - + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - - COUNT( * ) * MIN( - col1 ) * + 35 + - 88 * - ( + 76 ) FROM tab0 AS cor0
----
-1817

skipif mysql # not compatible
query I rowsort label-1876
SELECT - - COUNT ( * ) * MIN ( - col1 ) * + 35 + - 88 * - ( + 76 ) FROM tab0 AS cor0
----
-1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT DISTINCT 4 / col0 * - ( + - CAST( NULL AS SIGNED ) ) + + ( + - col0 ) + + + 56 + col2 / col1 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT 4 / col0 * - ( + - CAST ( NULL AS INTEGER ) ) + + ( + - col0 ) + + + 56 + col2 / col1 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ( + ( - + COUNT( * ) ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1878
SELECT ( + ( - + COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT 11 - + col2 FROM tab2
----
-12
-29
-47

query II rowsort
SELECT - col0 AS col1, 61 AS col1 FROM tab0
----
-15
61
-87
61
-97
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT + COUNT( * ) * + + 78 AS col2 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-1881
SELECT + COUNT ( * ) * + + 78 AS col2 FROM tab2
----
234

query II rowsort
SELECT col0, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT MIN( - 98 ) AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1883
SELECT MIN ( - 98 ) AS col1 FROM tab1 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + + 21 + - 98 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 25 * + col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT + + SUM( col0 ) * - MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( + ( - + col0 ) IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT + + SUM ( col0 ) * - MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( + ( - + col0 ) IS NOT NULL ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col1 FROM tab2
----
-67
-67
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( ( - + col2 ) ) AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + - 11 * col2 AND ( 22 / + col0 * col2 - + col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + - ( + - col2 ) * + + 75 AS col2 FROM tab2 AS cor0
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + COUNT( col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1893
SELECT + COUNT ( col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1894
SELECT ( COUNT( * ) ) DIV - - COUNT( ALL col0 ) AS col0, 54 - - COUNT( * ) + + - COUNT( * ) * + 98 FROM tab2 cor0
----
1
-237

skipif mysql # not compatible
query II rowsort label-1894
SELECT ( COUNT ( * ) ) / - - COUNT ( ALL col0 ) AS col0, 54 - - COUNT ( * ) + + - COUNT ( * ) * + 98 FROM tab2 cor0
----
1
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT + col0 + ( 73 ) + ( + - col1 ) AS col1 FROM tab1
----
110
117
153

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 16 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 - col2 NOT BETWEEN ( NULL ) AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + 5
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + + 54 <= NULL
----

query I rowsort
SELECT ALL - 29 + + ( col1 ) * ( 39 ) FROM tab2 AS cor0
----
1960
2584
2974

query I rowsort
SELECT ALL col2 * - - 85 + + 5 AS col0 FROM tab1 AS cor0
----
5020
5785
8165

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT - MIN( 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1903
SELECT - MIN ( 62 ) FROM tab0 AS cor0
----
-62

query I rowsort
SELECT DISTINCT 16 + - 41 AS col0 FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + MAX( DISTINCT - 89 ) FROM tab2 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1905
SELECT + MAX ( DISTINCT - 89 ) FROM tab2 cor0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT DISTINCT - col2 DIV col0 DIV + - col1 + col0 AS col2 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - col2 / col0 / + - col1 + col0 AS col2 FROM tab0 AS cor0
----
15
87
98

query I rowsort
SELECT + ( 57 ) AS col1 FROM tab1 cor0
----
57
57
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + + 49 AS col1 FROM tab2
----
-9
26
9

query II rowsort
SELECT - col2, 78 AS col1 FROM tab1
----
-59
78
-68
78
-96
78

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 18 IS NULL
----

query I rowsort
SELECT ALL col1 - - + 93 - + 48 FROM tab1
----
50
59
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - MIN( DISTINCT - col1 ) - - MIN( - - col0 ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-1913
SELECT - MIN ( DISTINCT - col1 ) - - MIN ( - - col0 ) FROM tab2
----
123

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN + 49 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT COUNT( ALL 9 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT COUNT ( ALL 9 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 17 + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + 80 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 36 - 1 * - 20 IS NOT NULL
----

query I rowsort
SELECT + + ( 64 ) AS col2 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1921
SELECT + 10 * + ( 78 ) DIV + COUNT( - CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 10 * + ( 78 ) / + COUNT ( - CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
260

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT + + ( - - 94 ) AS col1 FROM tab2 AS cor0
----
94
94
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + - col0 ) * + col2 / + 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT + + COUNT( ALL + 42 ) * + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1926
SELECT + + COUNT ( ALL + 42 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 40 * 98
----

query I rowsort
SELECT - 23 * - col1 + 80 + - + col0 AS col0 FROM tab2 cor0
----
1207
1546
1787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47, col2 + - - col2 col2 FROM tab0 AS cor0
----
47
198
47
20
47
94

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 19 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL + col1 DIV col2 * - col2 + col0 FROM tab2
----
0
17
24

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + col1 / col2 * - col2 + col0 FROM tab2
----
0
17
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT 20 DIV + - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT 20 / + - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - SUM( DISTINCT + ( - 4 ) ) AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1934
SELECT - SUM ( DISTINCT + ( - 4 ) ) AS col2 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT - SUM( - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - SUM ( - col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT ( 34 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT ( 34 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - 77 * col0 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1938
SELECT + CAST( NULL AS DECIMAL ) + - + col0 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT + CAST ( NULL AS REAL ) + - + col0 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( ( 2 ) ) FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + col1 * + col0 - - ( + + col0 ) + + col0 + + 69 * - + col2 AS col0 FROM tab1 AS cor0
----
-233
-3476
-5808

query I rowsort
SELECT DISTINCT 8 FROM tab1 AS cor0 WHERE NULL IS NULL
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT DISTINCT 84 + - ( - + 99 ) + - col2 + - 10 * + col2 - col2 DIV ( col2 ) * + ( - 43 ) + - col2 FROM tab2 cor0
----
-254
-470
-50

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT 84 + - ( - + 99 ) + - col2 + - 10 * + col2 - col2 / ( col2 ) * + ( - 43 ) + - col2 FROM tab2 cor0
----
-254
-470
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT + 4 DIV - 38 + + col2 AS col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + 4 / - 38 + + col2 AS col1 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 90 * + col0 * - - col0 + - 35 + + + 3 + - ( + col2 ) + - 36 + - + col1 - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL = + - 53
----

query I rowsort
SELECT DISTINCT 53 * + + col1 FROM tab1
----
2491
265
742

query I rowsort
SELECT ( + 90 ) AS col1 FROM tab2
----
90
90
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) - - 11 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) - - 11 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT col2 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT col2 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + col0 ) AS col1 FROM tab0 cor0
----
-15
-87
-97

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 AS col1, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT col2 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 / + col2 IS NOT NULL
----

query II rowsort
SELECT - col2, col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + COUNT( * ) * - 93 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1958
SELECT + COUNT ( * ) * - 93 FROM tab2 AS cor0
----
-279

query I rowsort
SELECT DISTINCT - 46 * - 98 FROM tab0 cor0
----
4508

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT DISTINCT - col0 DIV + 44 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT - col0 / + 44 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT + 77 DIV 52 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1961
SELECT + 77 / 52 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col0 * + 69 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 87 ) * col0 col0 FROM tab0
----
-1305
-7569
-8439

query I rowsort
SELECT - col1 * + - col1 AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT + 39 * - ( - col2 ) * - - 76 + col1 FROM tab2 AS cor0
----
118637
171979
68223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + - 81 ) col0 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT ALL + + 41 * - col0 * + + col0 + + + ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-167896
-230567
-86733

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 63 + + col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT CAST( + col1 AS SIGNED ) + - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT CAST ( + col1 AS INTEGER ) + - + col1 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > + 12 / - - 55 * + + col2
----

query I rowsort
SELECT DISTINCT - col2 * + 18 + col1 FROM tab1 AS cor0
----
-1057
-1177
-1714

query I rowsort
SELECT DISTINCT col0 + + - col1 * + col2 FROM tab0 cor0
----
-123
-2
-3792

query II rowsort
SELECT DISTINCT + col2, + ( - - 23 ) FROM tab1 AS cor0
----
59
23
68
23
96
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL + col2 + col1 DIV col1 + 43 * + col0 col1 FROM tab2 AS cor0
----
2002
2793
3284

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1977
SELECT ALL + col2 + col1 / col1 + 43 * + col0 col1 FROM tab2 AS cor0
----
2002
2793
3284

query I rowsort
SELECT DISTINCT - + col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - 52 - col2 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1087
-2572
-4344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT + ( col1 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT + ( col1 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + ( + col0 ) - + + col0 * + - col1, col2 AS col1 FROM tab0
----
1230
47
1914
10
194
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - - col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 53 FROM tab0 AS cor0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + 44 + SUM( - - col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL > + 65 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT + 44 + SUM ( - - col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL > + 65 + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT 44 * ( + COUNT( * ) ) FROM tab1 cor0
----
132

skipif mysql # not compatible
query I rowsort label-1987
SELECT 44 * ( + COUNT ( * ) ) FROM tab1 cor0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT 34 DIV + COUNT( + col0 ) + 4 * + 22 AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-1988
SELECT 34 / + COUNT ( + col0 ) + 4 * + 22 AS col0 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL SUM( ALL col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL SUM ( ALL col2 ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + ( col0 ) FROM tab0 AS cor0 WHERE NOT - 37 NOT BETWEEN col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT - + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1992
SELECT - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1993
SELECT + ( 33 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 78 - - CAST( NULL AS SIGNED ) * - + 97 ) = - 93
----

skipif mysql # not compatible
query I rowsort label-1993
SELECT + ( 33 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 78 - - CAST ( NULL AS INTEGER ) * - + 97 ) = - 93
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 <> 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 <> 6 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( - CAST( col1 AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1995
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( - CAST ( col1 AS INTEGER ) ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - 20 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 40 > NULL )
----

query I rowsort
SELECT col1 * 57 * + col0 FROM tab2
----
133722
280896
286425

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT ALL + col1 DIV + col1 + - ( + + col2 ) * - col0 * - col2 + - + 73 FROM tab1
----
-295957
-420856
-470088

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + col1 / + col1 + - ( + + col2 ) * - col0 * - col2 + - + 73 FROM tab1
----
-295957
-420856
-470088

query I rowsort
SELECT ALL - 36 AS col2 FROM tab0
----
-36
-36
-36

query I rowsort
SELECT - col1 * + 67 AS col2 FROM tab1
----
-3149
-335
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT DISTINCT + col2 DIV col0 * col2 FROM tab0
----
0
141
99

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + col2 / col0 * col2 FROM tab0
----
0
141
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT ALL col0 / + CAST( NULL AS SIGNED ) / - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL col0 / + CAST ( NULL AS INTEGER ) / - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 * + 26 <> + col2 / - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT col0 + + col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT col0 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT + - 8, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-8
3

skipif mysql # not compatible
query II rowsort label-2006
SELECT + - 8, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-8
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2007
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) * + - 32 + + col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-2007
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) * + - 32 + + col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE - 1 BETWEEN NULL AND - col1 * - 62
----
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE - 1 BETWEEN NULL AND - col1 * - 62
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( + ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( + ( + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT ( - col0 ) DIV - col0 - - 21 AS col1 FROM tab2
----
22
22
22

skipif mysql # not compatible
query I rowsort label-2013
SELECT ( - col0 ) / - col0 - - 21 AS col1 FROM tab2
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT - COUNT( * ) + + 91 AS col1, + COUNT( * ) * - + 91 AS col2 FROM tab0
----
88
-273

skipif mysql # not compatible
query II rowsort label-2014
SELECT - COUNT ( * ) + + 91 AS col1, + COUNT ( * ) * - + 91 AS col2 FROM tab0
----
88
-273

query I rowsort
SELECT DISTINCT + 99 FROM tab1 AS cor0 WHERE ( NULL ) <> - ( - 14 )
----

query I rowsort
SELECT + col1 * - 10 + - + 4 FROM tab1 AS cor0
----
-144
-474
-54

query I rowsort
SELECT + - col1 + + ( + col1 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 89 + - - col0 AS col0 FROM tab0 AS cor0
----
104
176
186

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( + + 5 ) AND + 16 * col2 * - col2 + - 25 - - - col0 + - - ( 59 )
----

query I rowsort
SELECT DISTINCT - - col0 + + 7 FROM tab0 cor0
----
104
22
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - + + 26 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - + + 26 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT DISTINCT + SUM( - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT + SUM ( - - col2 ) FROM tab2
----
121

query II rowsort
SELECT DISTINCT - col1 AS col0, 84 AS col0 FROM tab1
----
-14
84
-47
84
-5
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT - SUM( ALL - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2026
SELECT - SUM ( ALL - col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + 65 * + COUNT( * ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-2027
SELECT + 65 * + COUNT ( * ) FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT 85, - COUNT( * ) AS col1 FROM tab0
----
85
-3

skipif mysql # not compatible
query II rowsort label-2028
SELECT 85, - COUNT ( * ) AS col1 FROM tab0
----
85
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND + + col0
----

query I rowsort
SELECT col1 * + + col0 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - 46 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
35

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - 46 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - COUNT( * ) + - - 54 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2033
SELECT - COUNT ( * ) + - - 54 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT ALL - CAST( - 30 AS SIGNED ) FROM tab2 cor0 WHERE NULL IS NULL
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - CAST ( - 30 AS INTEGER ) FROM tab2 cor0 WHERE NULL IS NULL
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 col0 FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT - - 36 * - + 10 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col0 / - col0 + - col0 + - CAST( col2 AS SIGNED ) * - col1 / col0 * + + 81 + - 77
----

skipif mysql # not compatible
query I rowsort label-2036
SELECT - - 36 * - + 10 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col0 / - col0 + - col0 + - CAST ( col2 AS INTEGER ) * - col1 / col0 * + + 81 + - 77
----

query I rowsort
SELECT DISTINCT col2 * - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL - 90 * + - MIN( ALL - col2 ) AS col2 FROM tab0 cor0
----
-8910

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL - 90 * + - MIN ( ALL - col2 ) AS col2 FROM tab0 cor0
----
-8910

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL - 21 + COUNT( * ) + - 79 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - 21 + COUNT ( * ) + - 79 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - COUNT( col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2041
SELECT - COUNT ( col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + ( + + 58 ) FROM tab0
----
58
58
58

query I rowsort
SELECT 87 * - 10 AS col1 FROM tab0
----
-870
-870
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL MAX( - - col0 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2044
SELECT ALL MAX ( - - col0 ) col2 FROM tab2
----
75

query I rowsort
SELECT 5 * + - 60 AS col1 FROM tab1
----
-300
-300
-300

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT + col0 + + + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + + 71 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - - 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - col1 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2052
SELECT ALL - CAST( - COUNT( col1 ) AS SIGNED ) DIV - 94 * 20 * - 59 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - CAST ( - COUNT ( col1 ) AS INTEGER ) / - 94 * 20 * - 59 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE ( NOT - 69 NOT IN ( - 98 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE ( NOT - 69 NOT IN ( - 98 ) )
----
0

query I rowsort
SELECT - col2 - - col2 * col1 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT + - col2 AS col0, col1 AS col0 FROM tab1 cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + + 93 * + col2 * 69 AS col0 FROM tab1 AS cor0 WHERE NOT - 34 IS NULL
----
378603
436356
616032

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT + - col0, + col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query II rowsort
SELECT + col1 AS col2, + col1 AS col0 FROM tab2 WHERE NOT - 60 * 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT MAX( - col2 ) DIV ( - ( + - COUNT( * ) ) ) AS col2 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-2061
SELECT MAX ( - col2 ) / ( - ( + - COUNT ( * ) ) ) AS col2 FROM tab1
----
-19

query I rowsort
SELECT - 80 FROM tab2 WHERE NOT NULL < - col0 / - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2063
SELECT + col1 + - col0 * col0 / col0 + + col1 + + col0 + - CAST( - 13 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT + - 9 * col1 - + col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2063
SELECT + col1 + - col0 * col0 / col0 + + col1 + + col0 + - CAST ( - 13 AS REAL ) AS col1 FROM tab0 WHERE NOT + - 9 * col1 - + col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND + col2 * 29
----

query I rowsort
SELECT DISTINCT + 22 + col0 FROM tab0 AS cor0 WHERE col0 * + col0 < + ( col1 ) / - col0 - + 71 + + 90 - + + col1
----

query I rowsort
SELECT - + 72 * + col1 * 41 - + + col2 FROM tab0 AS cor0
----
-239159
-3051
-62002

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 24 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 7 ) col0 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT - 12 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT SUM( ALL 66 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
594

skipif mysql # not compatible
query I rowsort label-2070
SELECT SUM ( ALL 66 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
594

query I rowsort
SELECT DISTINCT + 24 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 58 * col1 BETWEEN + col2 AND col2 + - 83
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2073
SELECT DISTINCT - - ( + + col0 ) DIV col0 + - - 64, - ( + col2 ) AS col1 FROM tab0 AS cor0
----
65
-10
65
-47
65
-99

skipif mysql # not compatible
query II rowsort label-2073
SELECT DISTINCT - - ( + + col0 ) / col0 + - - 64, - ( + col2 ) AS col1 FROM tab0 AS cor0
----
65
-10
65
-47
65
-99

query I rowsort
SELECT + ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT - col2 AS col0, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - MAX( ALL + col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - MAX ( ALL + col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT + 40 * - col1 * + 74 + + 84 AS col0 FROM tab0 cor0
----
-239676
-2876
-62076

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL COUNT( * ) + + + 78 AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL COUNT ( * ) + + + 78 AS col2 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col1 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT DISTINCT col0 + + 98 FROM tab2
----
144
162
173

query I rowsort
SELECT DISTINCT + 30 * - col1 AS col0 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT ALL + col0 * + 82 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + col1
----

query I rowsort
SELECT ALL - 8 + + - col0 AS col2 FROM tab1
----
-59
-93
-99

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - MAX( - ( + 65 ) ) * - 32 * - SUM( ALL + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
384800

skipif mysql # not compatible
query I rowsort label-2087
SELECT - MAX ( - ( + 65 ) ) * - 32 * - SUM ( ALL + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
384800

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL - SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL - SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query II rowsort label-2089
SELECT ALL 5 DIV - + col1 + col2 AS col2, col0 FROM tab2 cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-2089
SELECT ALL 5 / - + col1 + col2 AS col2, col0 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ( 14 ) * - MIN( DISTINCT - 73 ) AS col1 FROM tab0 AS cor0
----
1022

skipif mysql # not compatible
query I rowsort label-2090
SELECT ( 14 ) * - MIN ( DISTINCT - 73 ) AS col1 FROM tab0 AS cor0
----
1022

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT - 72 - - 25 FROM tab1 WHERE NOT NULL = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL + ( COUNT( * ) ) * 17 AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL + ( COUNT ( * ) ) * 17 AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2094
SELECT DISTINCT COUNT( * ), - MIN( 17 ) col0 FROM tab0 WHERE ( NULL IS NULL )
----
3
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2094
SELECT DISTINCT COUNT ( * ), - MIN ( 17 ) col0 FROM tab0 WHERE ( NULL IS NULL )
----
3
-17

query I rowsort
SELECT DISTINCT ( 59 ) FROM tab0
----
59

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * col2 + + col2 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2097
SELECT DISTINCT + 97 AS col1, + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-2097
SELECT DISTINCT + 97 AS col1, + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
97
3

query I rowsort
SELECT - col0 * + 96 AS col0 FROM tab1
----
-4896
-8160
-8736

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 BETWEEN - col2 AND + + 88
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN + + 83 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + col2 FROM tab1 WHERE NOT + col2 / col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 41 + - col0 - col0 / col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col0 FROM tab2 AS cor0
----
-82

query II rowsort
SELECT DISTINCT - col1 AS col2, - 12 + + + col1 AS col0 FROM tab1 AS cor0 WHERE + 40 * col1 * 30 < + 5 * + col0
----

query I rowsort
SELECT ALL col1 * + - col1 - + col2 * + 23 AS col1 FROM tab2 AS cor0
----
-3130
-5823
-6849

query III rowsort
SELECT * FROM tab0 cor0 WHERE 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - - col0 + - col2 FROM tab0 AS cor0
----
658
860
9504

query II rowsort
SELECT + 37, 45 / - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - 52 + 28 * + + 48, col0 AS col1 FROM tab1 AS cor0
----
1292
51
1292
85
1292
91

query I rowsort
SELECT ALL 70 + + col1 FROM tab1
----
117
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2111
SELECT - 61 AS col2, - CAST( 17 AS SIGNED ) AS col0 FROM tab2
----
-61
-17
-61
-17
-61
-17

skipif mysql # not compatible
query II rowsort label-2111
SELECT - 61 AS col2, - CAST ( 17 AS INTEGER ) AS col0 FROM tab2
----
-61
-17
-61
-17
-61
-17

query III rowsort
SELECT * FROM tab1 WHERE + - col0 BETWEEN + + 32 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT SUM( col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT SUM ( col2 ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT 43 * + - COUNT( DISTINCT col1 ) AS col1 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT 43 * + - COUNT ( DISTINCT col1 ) AS col1 FROM tab1
----
-129

query I rowsort
SELECT ALL + 69 * + col2 * 89 FROM tab2
----
141243
245640
356178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab1 WHERE - + 1 + + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2119
SELECT + - 91 + + MIN( - col0 ) AS col0, 78 FROM tab0 AS cor0
----
-188
78

skipif mysql # not compatible
query II rowsort label-2119
SELECT + - 91 + + MIN ( - col0 ) AS col0, 78 FROM tab0 AS cor0
----
-188
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2120
SELECT - - CAST( NULL AS SIGNED ) + - SUM( ALL - 59 ) AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2120
SELECT - - CAST ( NULL AS INTEGER ) + - SUM ( ALL - 59 ) AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

query II rowsort
SELECT ALL - 91 AS col0, col1 FROM tab1 AS cor0
----
-91
14
-91
47
-91
5

query I rowsort
SELECT DISTINCT + - 47 * - col0 + + col2 FROM tab2 AS cor0
----
2185
3048
3583

query I rowsort
SELECT + ( - - 81 ) + col2 * + col2 FROM tab0 AS cor0
----
181
2290
9882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 + col1 + col2 - - + 33 col0 FROM tab1
----
170
216
221

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL + MAX( - + 98 ) AS col2 FROM tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + MAX ( - + 98 ) AS col2 FROM tab1 cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT - COUNT( DISTINCT + col1 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT - COUNT ( DISTINCT + col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT col0 * + col0 * - - col1 FROM tab0 AS cor0
----
158949
18225
9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 8 >= NULL
----

query I rowsort
SELECT 13 * - 21 FROM tab0 AS cor0
----
-273
-273
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT ALL + 45 DIV + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
3
9

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + 45 / + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
3
9

query I rowsort
SELECT DISTINCT - - col0 * + col2 * - col0 - + 96 AS col1 FROM tab0 AS cor0
----
-10671
-75786
-931587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL + CAST( + 12 AS SIGNED ) * - col2 * col2 - + col1 * - - ( CAST( NULL AS SIGNED ) ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + CAST ( + 12 AS INTEGER ) * - col2 * col2 - + col1 * - - ( CAST ( NULL AS INTEGER ) ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 57 * - col0 AS col2 FROM tab1 AS cor0
----
2907
4845
5187

query I rowsort
SELECT ALL - 63 * + col2 AS col1 FROM tab2
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2137
SELECT - 76 DIV 82 * COUNT( DISTINCT + - col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2137
SELECT - 76 / 82 * COUNT ( DISTINCT + - col1 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - - col2 + - 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT COUNT( - - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2140
SELECT COUNT ( - - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col1 * ( - - 47 ) FROM tab0 cor0
----
3807
47
987

query I rowsort
SELECT ALL + + 65 FROM tab2 AS cor0 WHERE NOT col1 < - + col1
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab0 AS cor0 WHERE NOT + 91 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL SUM( ALL col2 ) col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2144
SELECT ALL SUM ( ALL col2 ) col2 FROM tab2 cor0
----
121

query I rowsort
SELECT - col0 * + 18 FROM tab1 AS cor0
----
-1530
-1638
-918

query I rowsort
SELECT DISTINCT + - col2 + - - 34 AS col1 FROM tab2 AS cor0
----
-24
-6
11

query I rowsort
SELECT ALL - - 32 AS col1 FROM tab0 WHERE 55 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT col0 + - ( CAST( - col0 AS SIGNED ) ) FROM tab1 cor0 WHERE NULL IS NULL
----
102
170
182

skipif mysql # not compatible
query I rowsort label-2148
SELECT col0 + - ( CAST ( - col0 AS INTEGER ) ) FROM tab1 cor0 WHERE NULL IS NULL
----
102
170
182

query I rowsort
SELECT + + col2 + + + col0 * col0 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT - MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2151
SELECT DISTINCT + col0 DIV CAST( col1 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT + col0 / CAST ( col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
69
76
99

query I rowsort
SELECT - + col2 + + col0 - - 21 AS col2 FROM tab1 AS cor0
----
-24
44
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL + + MAX( - + col1 ) + COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + + MAX ( - + col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + - col1 col0 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL MIN( - 78 ) AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL MIN ( - 78 ) AS col1 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT - COUNT( DISTINCT - + ( - ( + col2 ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2156
SELECT - COUNT ( DISTINCT - + ( - ( + col2 ) ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + 88 * + 91 * + - 76 * 35 FROM tab1
----
-21301280
-21301280
-21301280

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + COUNT( * ) col0 FROM tab0 WHERE - - 43 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2158
SELECT + COUNT ( * ) col0 FROM tab0 WHERE - - 43 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 - + + col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE col0 + + col2 - col0 IS NULL
----

query III rowsort
SELECT ALL col1, - col2 * col0 * col0 AS col2, col2 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 963225b2a0329a85f6cd30ab3a4955db

query I rowsort
SELECT ALL + ( + + col1 ) + - col0 AS col0 FROM tab1 AS cor0 WHERE + 28 * - col0 BETWEEN + 5 + - 97 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT col0 * + + col0 < + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * + 38 col1 FROM tab2 cor0
----
1520
2204
874

query II rowsort
SELECT DISTINCT + + col1, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 49 col1 FROM tab2 AS cor0
----
2254
3136
3675

query I rowsort
SELECT ALL 21 * - + col1 FROM tab1 cor0
----
-105
-294
-987

query I rowsort
SELECT ALL col1 * + - 34 - - col0 AS col0 FROM tab1 AS cor0
----
-1507
-425
-85

query II rowsort
SELECT ( 0 ), col0 * + 41 * col0 + + col1 AS col2 FROM tab0
----
0
310350
0
385770
0
9306

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT + CAST( - COUNT( ALL col2 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2171
SELECT + CAST ( - COUNT ( ALL col2 ) AS INTEGER ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= NULL OR NULL NOT IN ( + col1, - col0 / - + col1 * - - ( + - 84 ) )
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * + + ( - + col0 ) FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT ALL + - CAST( NULL AS SIGNED ) + - 74 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 74 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT + SUM( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-2176
SELECT + SUM ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 14 col1 FROM tab1
----
-37
-71
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2178
SELECT 34 + + - ( + col0 ) DIV - CAST( - col0 AS SIGNED ) + + - col1 AS col0 FROM tab2
----
-18
-34
-44

skipif mysql # not compatible
query I rowsort label-2178
SELECT 34 + + - ( + col0 ) / - CAST ( - col0 AS INTEGER ) + + - col1 AS col0 FROM tab2
----
-18
-34
-44

query II rowsort
SELECT DISTINCT ( + + 39 ), 53 AS col1 FROM tab1, tab1 AS cor0
----
39
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col1 ) >= col2 * - col1 * - col2 - - col1
----

query I rowsort
SELECT ALL 79 + col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT ALL col0 * - col0 * - - col1 AS col0, - 63 FROM tab0 cor0
----
-158949
-63
-18225
-63
-9409
-63

query I rowsort
SELECT ALL + - col2 * - - ( - col0 ) + col0 + - + col0 - col2 + - 5 FROM tab2 AS cor0
----
1030
2515
4287

query I rowsort
SELECT + ( + + 25 ) * + 85 AS col1 FROM tab2 AS cor0 WHERE col0 * - - 71 NOT IN ( - 66 )
----
2125
2125
2125

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) + + 19 FROM tab1 AS cor0
----
4296
444
733

query I rowsort
SELECT ( - + 89 ) FROM tab0 cor0
----
-89
-89
-89

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE NULL IN ( - 17 )
----

query I rowsort
SELECT col2 - + col1 * + + col0 * col1 AS col2 FROM tab2 cor0
----
-119623
-336617
-379416

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT MAX( - + 92 ) + - + COUNT( * ) * 71 FROM tab0
----
-305

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT MAX ( - + 92 ) + - + COUNT ( * ) * 71 FROM tab0
----
-305

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT DISTINCT - col2 DIV - - col1 - col0 + col1 * + col0 AS col2 FROM tab2
----
2300
4864
4950

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - col2 / - - col1 - col0 + col1 * + col0 AS col2 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT ALL - col0 + - col0 + - + col1 FROM tab2
----
-143
-205
-217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT DISTINCT + col1 * + + col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + col1 * + + col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * col1 - + 55 AS col0 FROM tab1
----
-30
141
2154

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT - COUNT( * ) + + ( 18 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT - COUNT ( * ) + + ( 18 ) FROM tab2
----
15

query I rowsort
SELECT ALL ( - + col1 ) * - 75 * + 46 - 98 FROM tab1
----
162052
17152
48202

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ( - 45 ) + COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2196
SELECT ( - 45 ) + COUNT ( * ) FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2197
SELECT ALL + - 55 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + - 55 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT - - col1 DIV + col0 col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2198
SELECT - - col1 / + col0 col0 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab1 cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND 51
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2201
SELECT + col2 DIV - 87 AS col0, + 14 AS col1 FROM tab0 AS cor0
----
-1
14
0
14
0
14

skipif mysql # not compatible
query II rowsort label-2201
SELECT + col2 / - 87 AS col0, + 14 AS col1 FROM tab0 AS cor0
----
-1
14
0
14
0
14

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 93 AS col2 FROM tab2 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT + col1 * col2 DIV - + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-253

skipif mysql # not compatible
query I rowsort label-2206
SELECT + col1 * col2 / - + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + - SUM( + - col1 ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-2207
SELECT + - SUM ( + - col1 ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
198

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT NULL <= - col1 - + col0
----

query I rowsort
SELECT col0 + - col1 * col2 AS col1 FROM tab0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT + 85 FROM tab1 WHERE NOT col2 BETWEEN + - CAST( + col0 AS SIGNED ) AND - + col2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-2210
SELECT + 85 FROM tab1 WHERE NOT col2 BETWEEN + - CAST ( + col0 AS INTEGER ) AND - + col2
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 43 ) col0 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT ALL + col2 * + 30 FROM tab1 AS cor0
----
1770
2040
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2213
SELECT - SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 + - 16 IS NULL
----

query I rowsort
SELECT + col0 - col2 AS col2 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 + col2 IN ( ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 54 * + col0 + col0 AS col2 FROM tab0
----
4785
5335
825

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - AVG ( DISTINCT - 45 + col0 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - AVG ( DISTINCT - 45 + col0 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * col2 col1 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT DISTINCT + ( - 68 ) FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT COUNT( DISTINCT - col0 ) + - 75 * + 66 FROM tab2
----
-4947

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT COUNT ( DISTINCT - col0 ) + - 75 * + 66 FROM tab2
----
-4947

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT COUNT( * ) - + COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2223
SELECT COUNT ( * ) - + COUNT ( * ) col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - MAX( DISTINCT 52 ) * + 98 col2 FROM tab0
----
-5096

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2225
SELECT DISTINCT - MAX ( DISTINCT 52 ) * + 98 col2 FROM tab0
----
-5096

query I rowsort
SELECT ALL ( - col2 ) * - col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT NULL < col2 - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT DISTINCT + 64 DIV + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + 64 / + COUNT ( * ) FROM tab2
----
21

query III rowsort
SELECT * FROM tab0 WHERE - col0 > + col1 / + 10
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) = 71 - - col1 * + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab1 WHERE + 2 > + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT DISTINCT 27 DIV + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT 27 / + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( col2 / - col2 ) BETWEEN ( - 33 ) AND NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - col1 * - col1 + 70 * 96 NOT BETWEEN NULL AND 81 + + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= ( col2 * col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT ALL + 63 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + 63 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2238
SELECT ALL COUNT( + col2 ) DIV 39 FROM tab0 AS cor0 WHERE NOT - col0 DIV CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL COUNT ( + col2 ) / 39 FROM tab0 AS cor0 WHERE NOT - col0 / CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( 46 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 99 * col2 BETWEEN col2 + + col1 AND + col2 + + 46 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT - col2 DIV + col1 FROM tab0 cor0 WHERE NOT - 27 IS NULL
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT - col2 / + col1 FROM tab0 cor0 WHERE NOT - 27 IS NULL
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + 28 ) IN ( - col0 * - 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab2 AS cor0 WHERE NOT 86 IS NOT NULL
----

query I rowsort
SELECT + AVG ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 97 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 33 + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL - COUNT( * ) + + 9 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - COUNT ( * ) + + 9 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2250
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) + 82 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) + 82 FROM tab1 AS cor0
----
79

query I rowsort
SELECT + ( 98 ) FROM tab1
----
98
98
98

query I rowsort
SELECT 63 * + - col2 AS col1 FROM tab2
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT ALL + MAX( - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL + MAX ( - col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + 13 * - COUNT( * ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 13 * - COUNT ( * ) AS col0 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT SUM( + 78 ) AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-2255
SELECT SUM ( + 78 ) AS col1 FROM tab2
----
234

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + col1 / + col2 IS NULL OR ( col0 ) IS NULL
----

query I rowsort
SELECT ALL 32 * + - 11 FROM tab1
----
-352
-352
-352

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col1 / col1 - + col2 ) AND ( col0 - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 91 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT col1 + + ( col0 ) + 19 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT col1 + + ( col0 ) + 19 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 97 AS col0 FROM tab2 AS cor0 WHERE NULL < 16
----

query I rowsort
SELECT ALL + - 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) <> ( 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 35 + + 2 AS col1 FROM tab0
----
37
37
37

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL + MIN( ALL + + 26 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL + MIN ( ALL + + 26 ) FROM tab0 AS cor0
----
26

query I rowsort
SELECT 82 AS col1 FROM tab0 cor0 WHERE - col0 / - 99 * col0 IN ( 71 )
----

query I rowsort
SELECT - 93 * - col1 FROM tab2 AS cor0 WHERE 43 IS NOT NULL
----
4743
6231
7161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2270
SELECT + COUNT( * ) DIV + 91 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2270
SELECT + COUNT ( * ) / + 91 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 84 - - - col2 AS col2 FROM tab1 AS cor0
----
-12
16
25

query I rowsort
SELECT - col1 / col2 + 53 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 51 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab0 AS cor0 WHERE + col2 / - + 25 IS NOT NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2275
SELECT ALL COUNT( * ), COUNT( * ) col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2275
SELECT ALL COUNT ( * ), COUNT ( * ) col0 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + + col0 - - 29 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + COUNT( * ) - 50 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2277
SELECT + COUNT ( * ) - 50 FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT 35 - + ( + col0 ) DIV - col2 AS col1 FROM tab2 AS cor0
----
36
36
37

skipif mysql # not compatible
query I rowsort label-2278
SELECT 35 - + ( + col0 ) / - col2 AS col1 FROM tab2 AS cor0
----
36
36
37

query I rowsort
SELECT DISTINCT + 91 * + col2 AS col1 FROM tab1
----
5369
6188
8736

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT DISTINCT col1 DIV col1 DIV - - col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT col1 / col1 / - - col2 FROM tab0
----
0

query I rowsort
SELECT - ( - 26 ) * - 42 FROM tab1 WHERE NOT ( - + ( - + col0 ) ) BETWEEN ( NULL ) AND col0 / + col1
----
-1092
-1092
-1092

query I rowsort
SELECT DISTINCT 37 * + + col1 AS col0 FROM tab2
----
1887
2479
2849

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2283
SELECT DISTINCT * FROM tab2 WHERE + CAST( col1 AS SIGNED ) + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-2283
SELECT DISTINCT * FROM tab2 WHERE + CAST ( col1 AS INTEGER ) + col0 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + COUNT( * ) * - COUNT( * ) + 54 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2285
SELECT + COUNT ( * ) * - COUNT ( * ) + 54 FROM tab2 AS cor0
----
45

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 > NULL
----

query I rowsort
SELECT - ( - - col2 ) FROM tab1 cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + - 77 col2 FROM tab2 AS cor0
----
-3773
-3773
-3773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT - 15 * - CAST( NULL AS SIGNED ) + + col2 + - col1 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2290
SELECT DISTINCT - 15 * - CAST ( NULL AS INTEGER ) + + col2 + - col1 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 / col0 FROM tab0 cor0 WHERE NULL > - col0
----

query I rowsort
SELECT - col1 + - - col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT + + col2 DIV - ( + + col1 ) + ( 34 ) AS col1 FROM tab1 AS cor0
----
23
28
33

skipif mysql # not compatible
query I rowsort label-2293
SELECT + + col2 / - ( + + col1 ) + ( 34 ) AS col1 FROM tab1 AS cor0
----
23
28
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 NOT BETWEEN + col0 AND - - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - + col0 + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2296
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT col1 / 51 FROM tab2 WHERE NOT ( NOT NULL BETWEEN col0 / + 38 * - 87 + col1 AND col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + COUNT( DISTINCT col2 ) * - COUNT( * ) + + - COUNT( * ) + 96 AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-2298
SELECT + COUNT ( DISTINCT col2 ) * - COUNT ( * ) + + - COUNT ( * ) + 96 AS col1 FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2299
SELECT ALL + col2 FROM tab1 WHERE NOT + col1 * + - CAST( 0 AS DECIMAL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL + col2 FROM tab1 WHERE NOT + col1 * + - CAST ( 0 AS REAL ) >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT SUM( - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2300
SELECT SUM ( - col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + + SUM( ALL col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2301
SELECT + + SUM ( ALL col1 ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 AS col0, - col2 + + col0 col2 FROM tab0 AS cor0
----
-10
77
-47
-32
-99
-2

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE ( + 72 + 95 ) < col1 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT col2 DIV col0 - - 96 AS col1 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-2304
SELECT col2 / col0 - - 96 AS col1 FROM tab2
----
96
96
96

query II rowsort
SELECT ALL - 35 - col2, col2 AS col1 FROM tab1
----
-103
68
-131
96
-94
59

query I rowsort
SELECT ( col1 ) - 43 * + - 69 AS col2 FROM tab0
----
2968
2988
3048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL - MIN( DISTINCT col2 ) - - + 95 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - MIN ( DISTINCT col2 ) - - + 95 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 * + - 89 + col1 FROM tab1
----
-1232
-4136
-440

query I rowsort
SELECT ALL + 79 AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col2 * - col1 col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL MAX ( + col0 ) FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - + col1 col0, ( + + 8 ) AS col0 FROM tab0 AS cor0
----
-66
8
66
8
96
8

query I rowsort
SELECT 89 + + ( - - col0 ) AS col0 FROM tab0 cor0
----
104
176
186

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 56 + 96 * - col2 * 83 * col1 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + col2 ) + - + 43 AS col1 FROM tab1 cor0
----
-102
-111
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT - COUNT( * ) + + COUNT( * ) AS col2, COUNT( * ) col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2316
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT + - ( col0 ) + - 77 AS col2 FROM tab2 AS cor0
----
-123
-141
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL MAX( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL MAX ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 31 * - col1 FROM tab0 cor0
----
-2511
-31
-651

query I rowsort
SELECT ALL - 82 * + ( + + col2 ) FROM tab1 AS cor0
----
-4838
-5576
-7872

query I rowsort
SELECT DISTINCT col1 * - 25 FROM tab0
----
-2025
-25
-525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - 44 col1 FROM tab1
----
924
924
924

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - + ( - - col1 ) IN ( 69, - 56 * + 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 88 AS col2, col0 AS col2 FROM tab2
----
88
46
88
64
88
75

query I rowsort
SELECT DISTINCT ( + 1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT - CAST( - MAX( + + 87 ) AS SIGNED ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2327
SELECT - CAST ( - MAX ( + + 87 ) AS INTEGER ) AS col0 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT - - COUNT( * ) * - 24 AS col0 FROM tab1 WHERE - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - - COUNT ( * ) * - 24 AS col0 FROM tab1 WHERE - - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, 63 col1 FROM tab2
----
-23
63
-40
63
-58
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2330
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL ( + - 25 ) FROM tab1
----
-25
-25
-25

query I rowsort
SELECT - col0 * + 42 + - col0 - - 27 / + col1 + - - col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL - + COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2334
SELECT ALL - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT ALL - col2 + + - 55 DIV - 6 AS col1 FROM tab1 AS cor0
----
-50
-59
-87

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - col2 + + - 55 / - 6 AS col1 FROM tab1 AS cor0
----
-50
-59
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 col0 FROM tab1 AS cor0
----
33
33
33

query III rowsort
SELECT * FROM tab0 WHERE + 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT DISTINCT + 29 + - col0 * + 58 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT + 29 + - col0 * + 58 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2340
SELECT col2, col2 DIV + col1 AS col0 FROM tab1 WHERE + - col2 * col2 IS NOT NULL
----
59
11
68
1
96
6

skipif mysql # not compatible
query II rowsort label-2340
SELECT col2, col2 / + col1 AS col0 FROM tab1 WHERE + - col2 * col2 IS NOT NULL
----
59
11
68
1
96
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT ALL col1 DIV - + col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL col1 / - + col1 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col0 AS col2, + col2 + 74 AS col1 FROM tab0
----
15
121
87
84
97
173

query I rowsort
SELECT ALL + col1 + + 71 + col0 * + + col2 + ( - - col0 ) AS col0 FROM tab1
----
5032
5176
6397

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL MIN( ALL - 67 ) col2 FROM tab2
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2344
SELECT ALL MIN ( ALL - 67 ) col2 FROM tab2
----
-67

query I rowsort
SELECT 91 + 10 AS col1 FROM tab0 AS cor0
----
101
101
101

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + 52 - + - col2 < + col0 + 56
----

query I rowsort
SELECT 27 / - col0 FROM tab2 cor0 WHERE + 10 * - - col0 IN ( col1 * - 17 + + 68 * - col0 )
----

query I rowsort
SELECT ALL - ( - col0 ) + - - col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT - MIN( col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2349
SELECT - MIN ( col0 ) col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2350
SELECT DISTINCT - COUNT( * ), + 56 + - ( - 31 ) AS col0 FROM tab2 AS cor0
----
-3
87

skipif mysql # not compatible
query II rowsort label-2350
SELECT DISTINCT - COUNT ( * ), + 56 + - ( - 31 ) AS col0 FROM tab2 AS cor0
----
-3
87

query II rowsort
SELECT DISTINCT + col0 AS col0, - 6 AS col2 FROM tab1 AS cor0
----
51
-6
85
-6
91
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + - SUM( ALL + - col0 ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT + - SUM ( ALL + - col0 ) col1 FROM tab1 AS cor0
----
227

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 < - - col0 - + 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 38 AS col1, ( col1 ) AS col1 FROM tab2 AS cor0
----
38
51
38
67
38
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT CAST( MIN( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2355
SELECT CAST ( MIN ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2356
SELECT + COUNT( * ) AS col1, COUNT( + - col2 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2356
SELECT + COUNT ( * ) AS col1, COUNT ( + - col2 ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT + 19 * + 60 + + col1 FROM tab0 AS cor0
----
1141
1161
1221

query I rowsort
SELECT - col0 * - col0 + + 87 + - ( + col0 ) * + col0 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT + - col0 * - + col1 - + - col2 + + col1 FROM tab1 AS cor0
----
4392
489
824

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT - 25 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 13 AS col0 FROM tab0, tab0 AS cor0
----
-13

query III rowsort
SELECT * FROM tab1 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2363
SELECT ALL CAST( 8 AS SIGNED ), + 31 * + col2 AS col1 FROM tab1
----
8
1829
8
2108
8
2976

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL CAST ( 8 AS INTEGER ), + 31 * + col2 AS col1 FROM tab1
----
8
1829
8
2108
8
2976

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT MAX( - col2 ) col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2365
SELECT MAX ( - col2 ) col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT ALL 64 DIV + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL 64 / + COUNT ( * ) FROM tab2
----
21

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 86 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 55 col0 FROM tab0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT + COUNT( ALL + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2369
SELECT + COUNT ( ALL + col1 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( + 94 ) + + col2 + - col0 + + + 9 * col2 AS col1, col2 col2 FROM tab1 AS cor0
----
411
59
495
68
815
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT SUM( - - 43 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT SUM ( - - 43 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + + MIN( col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + + MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + + col2 + 60 - + - col0 + + 66 + + + col1 FROM tab1 cor0
----
275
287
332

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> NULL
----

query I rowsort
SELECT + col1 + - - col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - - col0 + + ( - + ( - col2 ) ) + col0 AS col2 FROM tab2 AS cor0
----
115
168
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT - - CAST( NULL AS SIGNED ) + - col1 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-2377
SELECT - - CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - - ( + col1 ) FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT - col0 + col0 + + 98 + + col0 AS col2 FROM tab0 AS cor0
----
113
185
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT col2 + col0 * col2 FROM tab1 WHERE + col2 + CAST( - 60 AS SIGNED ) IN ( + 24 )
----

skipif mysql # not compatible
query I rowsort label-2380
SELECT col2 + col0 * col2 FROM tab1 WHERE + col2 + CAST ( - 60 AS INTEGER ) IN ( + 24 )
----

query I rowsort
SELECT col1 + col0 + col2 AS col2 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL + - col2 - col1 FROM tab0 WHERE NOT 85 + 98 IS NOT NULL
----

query I rowsort
SELECT 39 * col1 FROM tab1
----
1833
195
546

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT COUNT( * ) + - 59 AS col0 FROM tab1, tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT COUNT ( * ) + - 59 AS col0 FROM tab1, tab1 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT ALL - col1 * 42 DIV - col0 - + col1 + col1 * col1 FROM tab0
----
0
430
6706

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - col1 * 42 / - col0 - + col1 + col1 * col1 FROM tab0
----
0
430
6706

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT + - 22 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT + - 22 + + col0 IS NOT NULL
----
0

query I rowsort
SELECT col2 * + - 55 AS col1 FROM tab1 AS cor0
----
-3245
-3740
-5280

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2389
SELECT * FROM tab1 AS cor0 WHERE NOT - 83 * + + CAST( NULL AS SIGNED ) NOT BETWEEN + - col0 + + - 90 + col0 * - col0 + + ( 18 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2389
SELECT * FROM tab1 AS cor0 WHERE NOT - 83 * + + CAST ( NULL AS INTEGER ) NOT BETWEEN + - col0 + + - 90 + col0 * - col0 + + ( 18 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT DISTINCT - COUNT( + - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT - COUNT ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT 79 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 16 * + 11 + + col1 FROM tab1 AS cor0
----
181
190
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT + MIN( CAST( NULL AS SIGNED ) ) / + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2394
SELECT ALL + CAST( - + SUM( - + ( + col2 ) ) AS SIGNED ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL + CAST ( - + SUM ( - + ( + col2 ) ) AS INTEGER ) FROM tab2
----
121

query II rowsort
SELECT col1 AS col1, col0 + - 79 AS col1 FROM tab2
----
51
-33
67
-4
77
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT + col1 DIV + 18 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2396
SELECT + col1 / + 18 FROM tab0
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2397
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 28 FROM tab1
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-2397
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 FROM tab1
----
NULL
28
NULL
28
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT + + COUNT( * ) FROM tab1 WHERE NOT + + col0 * - col1 NOT BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT + + col0 * - col1 NOT BETWEEN NULL AND - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - + ( - COUNT( * ) ) FROM tab2 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - + ( - COUNT ( * ) ) FROM tab2 WHERE col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 74 col0 FROM tab0
----
1
74
21
74
81
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2401
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + + col1 > + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2401
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + + col1 > + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL - - COUNT( ALL + 40 ) FROM tab0 cor0 WHERE + 53 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL - - COUNT ( ALL + 40 ) FROM tab0 cor0 WHERE + 53 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 31 * - ( + + col1 ) AS col1 FROM tab0
----
-2511
-31
-651

query I rowsort
SELECT DISTINCT - - ( col0 ) * + - 38 FROM tab2 AS cor0
----
-1748
-2432
-2850

query I rowsort
SELECT DISTINCT - col0 + + col0 - - + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab0 AS cor0 WHERE col2 * col2 * col2 IS NOT NULL
----
7
7
7

query I rowsort
SELECT DISTINCT - + col2 + + + col0 * + 28 FROM tab0 AS cor0
----
2426
2617
373

query I rowsort
SELECT ALL + 9 AS col0 FROM tab2 AS cor0 WHERE + col2 = + - col0
----

query II rowsort
SELECT - col0 * - - col1 * + 86 * + col2 AS col1, 27 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - ( + ( - - 65 ) ) * col1 AS col2 FROM tab1
----
-3008
-320
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT 14 DIV + + 32 - col1 + 52 FROM tab2
----
-15
-25
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT 14 / + + 32 - col1 + 52 FROM tab2
----
-15
-25
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT - 95 DIV + col0 - - - col0 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-2414
SELECT - 95 / + col0 - - - col0 FROM tab1
----
-52
-86
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT col0 + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT col0 + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2416
SELECT 44 + - 0 + + 1 * CAST( - 43 AS SIGNED ) * + + ( - + 66 ) DIV - COUNT( * ) AS col0 FROM tab0
----
-902

skipif mysql # not compatible
query I rowsort label-2416
SELECT 44 + - 0 + + 1 * CAST ( - 43 AS INTEGER ) * + + ( - + 66 ) / - COUNT ( * ) AS col0 FROM tab0
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT 98 * - MAX( + col1 ) FROM tab0
----
-7938

skipif mysql # not compatible
query I rowsort label-2417
SELECT 98 * - MAX ( + col1 ) FROM tab0
----
-7938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2418
SELECT - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col1, 51 * + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2418
SELECT - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col1, 51 * + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT COUNT( ALL + - 25 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2419
SELECT COUNT ( ALL + - 25 ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + - ( - col2 ) + + 49 NOT IN ( + 84, + col1, - + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + col2 ), + 37 col0 FROM tab0 AS cor0
----
10
37
47
37
99
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT MIN( - - 8 ) * SUM( col0 ) FROM tab0 AS cor0
----
1592

skipif mysql # not compatible
query I rowsort label-2422
SELECT MIN ( - - 8 ) * SUM ( col0 ) FROM tab0 AS cor0
----
1592

query II rowsort
SELECT DISTINCT - col2 + 94, + col1 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
-2
14
26
47
35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT 88 * - COUNT( * ) * MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-21384

skipif mysql # not compatible
query I rowsort label-2424
SELECT 88 * - COUNT ( * ) * MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-21384

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT COUNT( * ) * + 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-2425
SELECT COUNT ( * ) * + 85 FROM tab1
----
255

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 50 AND + + col2
----

query I rowsort
SELECT 92 + + + col2 FROM tab0
----
102
139
191

query I rowsort
SELECT DISTINCT - 15 + + col0 + - col2 + + - ( - col2 ) * - ( - + col0 ) * col2 AS col1 FROM tab1 AS cor0
----
295896
420792
469956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT MAX( - 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-2430
SELECT MAX ( - 47 ) FROM tab2
----
-47

query I rowsort
SELECT - 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2432
SELECT * FROM tab2 WHERE NULL NOT IN ( - col2 - - - col1 + CAST( col1 AS SIGNED ), + CAST( NULL AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-2432
SELECT * FROM tab2 WHERE NULL NOT IN ( - col2 - - - col1 + CAST ( col1 AS INTEGER ), + CAST ( NULL AS INTEGER ), + col0 )
----

query I rowsort
SELECT - + 26 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < 4
----

query I rowsort
SELECT - - col1 + + + col2 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 >= + ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - 69 + COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2437
SELECT - 69 + COUNT ( * ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL col0 + - col0 + 73 + + 33 * + + col1 FROM tab2 AS cor0
----
1756
2284
2614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL - - col0 + + 95 * - CAST( - 51 AS SIGNED ) * col2 + + - col2 + + col0 * + col2 FROM tab2 AS cor0
----
112516
196384
285377

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL - - col0 + + 95 * - CAST ( - 51 AS INTEGER ) * col2 + + - col2 + + col0 * + col2 FROM tab2 AS cor0
----
112516
196384
285377

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - - COUNT( * ) + - - 88 FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - - COUNT ( * ) + - - 88 FROM tab2 cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT - col0 DIV - 77 + + 22 - + - col1 * 80 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
1142
3783
423

skipif mysql # not compatible
query I rowsort label-2442
SELECT - col0 / - 77 + + 22 - + - col1 * 80 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
1142
3783
423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2443
SELECT + MIN( - - col1 ) DIV + 46 + + ( - 41 ) FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2443
SELECT + MIN ( - - col1 ) / + 46 + + ( - 41 ) FROM tab0 cor0
----
-41

query I rowsort
SELECT DISTINCT - - 19 + ( col0 ) FROM tab1 AS cor0
----
104
110
70

query I rowsort
SELECT + 72 * 54 + 56 FROM tab0 AS cor0
----
3944
3944
3944

query I rowsort
SELECT ALL - col2 + - + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL + COUNT( * ) FROM tab1 WHERE - 67 * - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + COUNT ( * ) FROM tab1 WHERE - 67 * - col2 >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - ( col0 ) - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( col1 ) - - 31 AS col2 FROM tab1
----
-16
17
26

query I rowsort
SELECT ALL - col0 * - col1 * + - col0 AS col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT MIN( DISTINCT 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT MIN ( DISTINCT 0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 48 * + col0 FROM tab0
----
4176
4656
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2454
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT DISTINCT - SUM( - + col0 ) * - 40, 92 AS col2 FROM tab0 AS cor0
----
-7960
92

skipif mysql # not compatible
query II rowsort label-2455
SELECT DISTINCT - SUM ( - + col0 ) * - 40, 92 AS col2 FROM tab0 AS cor0
----
-7960
92

query II rowsort
SELECT ALL 93 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
93
-51
93
-67
93
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL SUM( - + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL SUM ( - + col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2458
SELECT + 49 col2, COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
49
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2458
SELECT + 49 col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
49
0

query I rowsort
SELECT ALL col1 * + - 91 FROM tab0
----
-1911
-7371
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-2460
SELECT 4 DIV + 91 AS col1, 76 AS col1 FROM tab0
----
0
76
0
76
0
76

skipif mysql # not compatible
query II rowsort label-2460
SELECT 4 / + 91 AS col1, 76 AS col1 FROM tab0
----
0
76
0
76
0
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT DISTINCT - ( + 62 ) DIV + col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT - ( + 62 ) / + col2 FROM tab0
----
-1
-6
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL = - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT ALL + col2 / + - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL + col2 / + - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 55 FROM tab0
----
-2585
-5445
-550

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT - - col0 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT - MAX( + - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2466
SELECT - MAX ( + - col2 ) FROM tab1
----
59

query II rowsort
SELECT 19 + + col2 + + col0 * + col0 AS col1, 90 * - + col2 AS col2 FROM tab0 cor0
----
291
-4230
7598
-900
9527
-8910

query I rowsort
SELECT - ( - col2 ) + + - 76 + col0 AS col1 FROM tab2 AS cor0
----
-7
28
57

query I rowsort
SELECT col0 + - 11 FROM tab1
----
40
74
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2470
SELECT + COUNT( * ) + - 86 AS col0 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) BETWEEN + 94 AND NULL
----
-86

skipif mysql # not compatible
query I rowsort label-2470
SELECT + COUNT ( * ) + - 86 AS col0 FROM tab2 WHERE + CAST ( NULL AS REAL ) BETWEEN + 94 AND NULL
----
-86

query II rowsort
SELECT ALL + + 89, col2 + - - ( - - 73 ) - 40 FROM tab2 AS cor0 WHERE NOT - 14 NOT BETWEEN NULL AND - 12 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT COUNT( 42 ) AS col0 FROM tab1 AS cor0 WHERE 26 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT COUNT ( 42 ) AS col0 FROM tab1 AS cor0 WHERE 26 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + + - 56 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + + - 56 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT - MIN( - 70 ) - + 42 + + - MIN( + 53 ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2474
SELECT - MIN ( - 70 ) - + 42 + + - MIN ( + 53 ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT DISTINCT + 28 * - col1 + + - col1 * - - col2 AS col1 FROM tab2 AS cor0
----
-2601
-5236
-5762

query I rowsort
SELECT DISTINCT 28 + col2 + + 53 + + col2 * - col2 FROM tab1 AS cor0
----
-3341
-4475
-9039

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 AND - 20 + + col2
----

query I rowsort
SELECT - col1 - + - 86 AS col1 FROM tab0
----
5
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT COUNT( * ) + ( - 67 ) AS col1 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-2480
SELECT COUNT ( * ) + ( - 67 ) AS col1 FROM tab1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT - ( - SUM( - + 84 ) ) - - + COUNT( * ) AS col2 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - ( - SUM ( - + 84 ) ) - - + COUNT ( * ) AS col2 FROM tab2
----
-249

query II rowsort
SELECT - col0, + col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT 39 * - col1 FROM tab2
----
-1989
-2613
-3003

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 93 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT - - ( - - ( - col0 ) ) DIV - col1 AS col2 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2486
SELECT - - ( - - ( - col0 ) ) / - col1 AS col2 FROM tab1 AS cor0
----
1
17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col2, + col1 + - col0 * + col1 col0 FROM tab2 AS cor0
----
-1058
-2295
-2560
-4851
-4350
-4958

query I rowsort
SELECT + - col1 * - + col2 * + 39 AS col0 FROM tab0 AS cor0
----
148473
3861
8190

query I rowsort
SELECT - 14 * 68 FROM tab2 AS cor0
----
-952
-952
-952

query I rowsort
SELECT ALL col2 * - + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT col1, col0 + col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 66 )
----

query I rowsort
SELECT + + col2 * 24 AS col0 FROM tab0 cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ALL + 1 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + 1 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2494
SELECT ALL + CAST( NULL AS SIGNED ) / - 72 * + col2 * - col1 / - col0 col2, 80 AS col1 FROM tab0 AS cor0
----
NULL
80
NULL
80
NULL
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2494
SELECT ALL + CAST ( NULL AS INTEGER ) / - 72 * + col2 * - col1 / - col0 col2, 80 AS col1 FROM tab0 AS cor0
----
NULL
80
NULL
80
NULL
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT - - CAST( NULL AS SIGNED ) + + 66 + - + 31 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT - - CAST ( NULL AS INTEGER ) + + 66 + - + 31 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( 56 ) AND NOT - col0 * 19 = - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 10 IN ( + ( - col1 ) - + - 3 + + + col2, 73 / 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL + ( + - COUNT( * ) ) * - 53 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + ( + - COUNT ( * ) ) * - 53 FROM tab2
----
159

query I rowsort
SELECT + 83 + + + col0 FROM tab0
----
170
180
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT MIN( ALL + + col2 ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT MIN ( ALL + + col2 ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 + + 2 + - col1 AS col0, col0 col2 FROM tab1 AS cor0
----
23
91
56
85
84
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL + - 1 * + ( - SUM( DISTINCT col0 ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + - 1 * + ( - SUM ( DISTINCT col0 ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
227

query I rowsort
SELECT ALL - + col1 + - + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col1 + - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT SUM( + ( - + col0 ) ) + - ( + + 69 ) col1 FROM tab2
----
-254

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2505
SELECT SUM ( + ( - + col0 ) ) + - ( + + 69 ) col1 FROM tab2
----
-254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE NOT 44 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT ( + + MAX( + - 58 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2509
SELECT ( + + MAX ( + - 58 ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2510
SELECT MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT 44 * - - COUNT( * ) AS col0 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-2512
SELECT 44 * - - COUNT ( * ) AS col0 FROM tab0
----
132

query I rowsort
SELECT ALL 70 * - 54 AS col1 FROM tab0
----
-3780
-3780
-3780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2515
SELECT - col1 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2515
SELECT - col1 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + ( - + COUNT( * ) ) * 96 + 67 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----
67

skipif mysql # not compatible
query I rowsort label-2516
SELECT + ( - + COUNT ( * ) ) * 96 + 67 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 AND + + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col0 ) <= NULL
----

query I rowsort
SELECT ALL ( - 8 ) + - + 84 + col2 - + 30 FROM tab0 cor0
----
-112
-23
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL + - SUM( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + - SUM ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col2 * col0 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2522
SELECT ALL - - 66 DIV - col1 + 13 + + - col0 + + col2 + + - col2, col0 FROM tab2 AS cor0
----
-34
46
-51
64
-62
75

skipif mysql # not compatible
query II rowsort label-2522
SELECT ALL - - 66 / - col1 + 13 + + - col0 + + col2 + + - col2, col0 FROM tab2 AS cor0
----
-34
46
-51
64
-62
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT + + MIN( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2523
SELECT DISTINCT + + MIN ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT DISTINCT + ( - 14 ) AS col1, - COUNT( * ) FROM tab0
----
-14
-3

skipif mysql # not compatible
query II rowsort label-2524
SELECT DISTINCT + ( - 14 ) AS col1, - COUNT ( * ) FROM tab0
----
-14
-3

query I rowsort
SELECT - col0 * - + col2 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col1 + col1 * - col1 - + col0 FROM tab0
----
-507
-6495
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab2
----
-94

query III rowsort
SELECT * FROM tab0 WHERE + 9 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL - col0 * col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - col0 * col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT + CAST( + - col0 AS SIGNED ) + - - col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2530
SELECT + CAST ( + - col0 AS INTEGER ) + - - col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 / 9 + - + col1 + - col2 * + 36 FROM tab1 AS cor0 WHERE NOT col2 + 0 / - col0 * - + 54 > + 62 AND 36 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL + COUNT( * ) + + 1 * + 3 AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + COUNT ( * ) + + 1 * + 3 AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + 47 + + 85 + - col1 * 83 FROM tab1 AS cor0
----
-1030
-283
-3769

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2535
SELECT ALL + 28 AS col2, + CAST( NULL AS SIGNED ) * - + ( - - 19 ) FROM tab1 AS cor0
----
28
NULL
28
NULL
28
NULL

skipif mysql # not compatible
query II rowsort label-2535
SELECT ALL + 28 AS col2, + CAST ( NULL AS INTEGER ) * - + ( - - 19 ) FROM tab1 AS cor0
----
28
NULL
28
NULL
28
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 62 + + 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2537
SELECT ALL CAST( NULL AS DECIMAL ) + - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL CAST ( NULL AS REAL ) + - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT + - col0 AS col1, - col1 FROM tab1 cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2540
SELECT - SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT + ( + - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - col1, - col2 * - 66 AS col0 FROM tab1 WHERE NULL > + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - SUM( - ( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2543
SELECT - SUM ( - ( col0 ) ) FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab1 WHERE NOT NULL BETWEEN + col0 + col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL - SUM( DISTINCT - + ( - col2 ) ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - SUM ( DISTINCT - + ( - col2 ) ) AS col1 FROM tab0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 * - 83 <= NULL
----

query I rowsort
SELECT col2 * - - col2 + 33 AS col0 FROM tab0 AS cor0
----
133
2242
9834

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2549
SELECT DISTINCT * FROM tab2 cor0 WHERE + 68 IN ( + - col0 * - 68 * + CAST( NULL AS DECIMAL ), 37, - 32 )
----

skipif mysql # not compatible
query III rowsort label-2549
SELECT DISTINCT * FROM tab2 cor0 WHERE + 68 IN ( + - col0 * - 68 * + CAST ( NULL AS REAL ), 37, - 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + + MIN( - col2 ) + + 49 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2550
SELECT + + MIN ( - col2 ) + + 49 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 88 + - + col2 FROM tab2 cor0
----
30
48
65

query I rowsort
SELECT + + col1 * + col1 + - ( - 41 ) FROM tab1 AS cor0
----
2250
237
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL + COUNT( + col2 ) * ( 30 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + COUNT ( + col2 ) * ( 30 ) FROM tab0
----
90

query I rowsort
SELECT col2 * - 15 FROM tab2
----
-345
-600
-870

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - col1 + - - 81 - + 69 + + 8 = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * - 25 col2 FROM tab2
----
-1450
-1450
-1450

query II rowsort
SELECT ALL col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT COUNT( + col1 ) * - 85 col1 FROM tab0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2560
SELECT COUNT ( + col1 ) * - 85 col1 FROM tab0
----
-255

query II rowsort
SELECT 25, + col2 FROM tab1
----
25
59
25
68
25
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + COUNT( * ) * + ( - + ( + - COUNT( DISTINCT - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2562
SELECT + COUNT ( * ) * + ( - + ( + - COUNT ( DISTINCT - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 6 + + col1 FROM tab1 AS cor0
----
11
20
53

query I rowsort
SELECT ALL - - col0 - - + col2 AS col2 FROM tab0 cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 31 col1, - col2 AS col2 FROM tab0
----
-50
-47
10
-10
30
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + MIN( + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + MIN ( + col0 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + - col0 * - ( + - col1 ) * + + col0 AS col0 FROM tab1 cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2569
SELECT - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2571
SELECT ALL COUNT( * ) DIV + - COUNT( ALL + col2 ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-2571
SELECT ALL COUNT ( * ) / + - COUNT ( ALL + col2 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT DISTINCT - MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + col1 * 65 FROM tab1
----
3055
325
910

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT DISTINCT - COUNT( * ) col0, COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2574
SELECT DISTINCT - COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT col0 FROM tab0 WHERE NOT + col1 > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2575
SELECT col0 FROM tab0 WHERE NOT + col1 > ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT MAX( + + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2576
SELECT MAX ( + + col0 ) AS col2 FROM tab0
----
97

query II rowsort
SELECT 92, + 5 AS col0 FROM tab1
----
92
5
92
5
92
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + ( - 18 ) FROM tab2 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 / + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL + + COUNT( ALL + 21 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + + COUNT ( ALL + 21 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT - + 34 * CAST( + ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2583
SELECT - + 34 * CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-102

query I rowsort
SELECT - col0 * + + col2 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - col2 + + - col2 + col1 FROM tab0
----
-13
-197
1

query I rowsort
SELECT + - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
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-2587
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) col1 FROM tab2
----
9

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col1, + 3 FROM tab1 AS cor0
----
59
3
68
3
96
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - ( - 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT + CAST( + ( + + ( col1 ) ) AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2590
SELECT + CAST ( + ( + + ( col1 ) ) AS INTEGER ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL 34 * - col2 FROM tab2
----
-1360
-1972
-782

query I rowsort
SELECT 94 - 44 + - col2 FROM tab2
----
-8
10
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT - CAST( + col0 AS SIGNED ) col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2593
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT 35 + - - MAX( + + col2 ) * 82 AS col1 FROM tab2
----
4791

skipif mysql # not compatible
query I rowsort label-2594
SELECT 35 + - - MAX ( + + col2 ) * 82 AS col1 FROM tab2
----
4791

query I rowsort
SELECT DISTINCT + - 13 FROM tab2 cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 * col2 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 83 >= + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT MIN( ALL + 23 ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT MIN ( ALL + 23 ) FROM tab1 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT + + 30 + - - MAX( - col1 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2599
SELECT + + 30 + - - MAX ( - col1 ) FROM tab0 AS cor0
----
29

query I rowsort
SELECT + ( - - col0 ) * - - 77 AS col1 FROM tab2 AS cor0
----
3542
4928
5775

query I rowsort
SELECT - ( - + col1 ) / + 51 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2602
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + SUM( DISTINCT - + 61 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + SUM ( DISTINCT - + 61 ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 37 > NULL
----

query I rowsort
SELECT DISTINCT - 98 - 92 AS col1 FROM tab0
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT DISTINCT + col0 DIV + + col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + col0 / + + col2 FROM tab2
----
1
2

query II rowsort
SELECT DISTINCT col0, + 92 FROM tab0 AS cor0
----
15
92
87
92
97
92

query I rowsort
SELECT - col2 * + + 12 - + col0 FROM tab2 AS cor0
----
-322
-544
-771

query I rowsort
SELECT col1 * + col1 + + + 36 AS col0 FROM tab2 AS cor0
----
2637
4525
5965

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * - - col0 * + col1 * + - col2 AND NULL
----

query II rowsort
SELECT ALL col2, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT + ( + col0 ) * - 0 + - + col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT + - 30 DIV + - COUNT( * ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2612
SELECT + - 30 / + - COUNT ( * ) FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2613
SELECT - + CAST( NULL AS DECIMAL ) / - + col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT - + CAST ( NULL AS REAL ) / - + col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT - COUNT( * ) * + + ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT - COUNT ( * ) * + + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT + COUNT( * ) AS col1, + ( + + SUM( ALL - col2 ) ) * COUNT( * ) * 63 AS col2 FROM tab0 cor0
----
3
-29484

skipif mysql # not compatible
query II rowsort label-2615
SELECT + COUNT ( * ) AS col1, + ( + + SUM ( ALL - col2 ) ) * COUNT ( * ) * 63 AS col2 FROM tab0 cor0
----
3
-29484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 57 AS col0, + col2 * - 82 col0 FROM tab0
----
-1197
-820
-4617
-3854
-57
-8118

query I rowsort
SELECT ALL col2 * + - col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2618
SELECT DISTINCT col1 * - + 12 AS col1, + ( col1 ) / + CAST( NULL AS SIGNED ), - ( + col1 ) AS col2 FROM tab1
----
9 values hashing to 82be42abb66e92ae04dbb30418eae632

skipif mysql # not compatible
query III rowsort label-2618
SELECT DISTINCT col1 * - + 12 AS col1, + ( col1 ) / + CAST ( NULL AS INTEGER ), - ( + col1 ) AS col2 FROM tab1
----
9 values hashing to 82be42abb66e92ae04dbb30418eae632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2619
SELECT COUNT( * ) DIV + COUNT( DISTINCT + col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2619
SELECT COUNT ( * ) / + COUNT ( DISTINCT + col1 ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 col0 FROM tab2 cor0
----
-60
-60
-60

query III rowsort
SELECT * FROM tab0 WHERE + 59 < - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT + + COUNT( - - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + + COUNT ( - - col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT - - 26 + + col2 FROM tab1 cor0
----
122
85
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT - + CAST( - - 27 AS SIGNED ) * + + 39 + + col1 + col2 * + - col2 + - col2 - - + 96 col2 FROM tab1 AS cor0
----
-10255
-4492
-5602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2625
SELECT - + CAST ( - - 27 AS INTEGER ) * + + 39 + + col1 + col2 * + - col2 + - col2 - - + 96 col2 FROM tab1 AS cor0
----
-10255
-4492
-5602

query I rowsort
SELECT col2 + - + col0 AS col1 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT 17 + 29 * col2 FROM tab0 cor0
----
1380
2888
307

onlyif mysql # aggregate syntax: 
query II rowsort label-2628
SELECT DISTINCT - COUNT( * ), 89 AS col0 FROM tab1 AS cor0
----
-3
89

skipif mysql # not compatible
query II rowsort label-2628
SELECT DISTINCT - COUNT ( * ), 89 AS col0 FROM tab1 AS cor0
----
-3
89

onlyif mysql # DIV for integer division: 
query II rowsort label-2629
SELECT DISTINCT - col0 DIV - col0 + + col0 col2, col2 AS col1 FROM tab0 AS cor0
----
16
47
88
10
98
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2629
SELECT DISTINCT - col0 / - col0 + + col0 col2, col2 AS col1 FROM tab0 AS cor0
----
16
47
88
10
98
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 87 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 cor0 WHERE - col2 / col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - col2 / col2 <> NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2632
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2632
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS REAL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 59 * - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2634
SELECT DISTINCT 92 * - AVG ( ALL + col1 ) - CAST( NULL AS SIGNED ) * - COUNT( * ) + 54 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT 92 * - AVG ( ALL + col1 ) - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 54 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT - col1 * 46 DIV ( + - col1 ) AS col0 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2636
SELECT - col1 * 46 / ( + - col1 ) AS col0 FROM tab0
----
46
46
46

query I rowsort
SELECT + + col1 * + 46 - + 8 AS col2 FROM tab2 AS cor0
----
2338
3074
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + MAX( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + MAX ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + 85 >= - + col1 / + - col1 - + 7 + + - 27 * + - 12 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col1 * 73 FROM tab1 AS cor0
----
1022
3431
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 * - col0 + + - 53 col2 FROM tab1 AS cor0
----
-4847
-8043
-8607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT + 92 * - MIN( DISTINCT + - col0 ) AS col2 FROM tab1
----
8372

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + 92 * - MIN ( DISTINCT + - col0 ) AS col2 FROM tab1
----
8372

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 31 * col0 IS NULL
----

query II rowsort
SELECT col2 AS col1, col1 * + col1 * + - 23 AS col1 FROM tab1
----
59
-575
68
-50807
96
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT 18 * + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT 18 * + COUNT ( * ) FROM tab2
----
54

query I rowsort
SELECT 87 * - 16 AS col0 FROM tab1
----
-1392
-1392
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT + 65 * - COUNT( ALL - + col0 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT + 65 * - COUNT ( ALL - + col0 ) FROM tab2
----
-195

query I rowsort
SELECT ALL - AVG ( ALL + col1 ) AS col2 FROM tab1 WHERE NOT - col2 - + + col1 <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT + col2 DIV + - 22 col0 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2652
SELECT + col2 / + - 22 col0 FROM tab1
----
-2
-3
-4

query I rowsort
SELECT - col1 + - 41 * + 61 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT MAX( + col1 ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2654
SELECT DISTINCT MAX ( + col1 ) col0 FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 > + col0 - + + 79 * col1 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2657
SELECT - ( - 96 ) + COUNT( * ) * SUM( ALL col2 ) * - + 5 AS col2, - MAX( DISTINCT CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-2244
-97

skipif mysql # not compatible
query II rowsort label-2657
SELECT - ( - 96 ) + COUNT ( * ) * SUM ( ALL col2 ) * - + 5 AS col2, - MAX ( DISTINCT CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-2244
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + 51 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
51

query I rowsort
SELECT ALL - 86 * - 67 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6b82f8957dfad9aa21a4c44afb111974

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 50 AND + 7
----

query I rowsort
SELECT 81 FROM tab0 AS cor0 WHERE + col2 - + col1 <= + 58
----
81
81

query I rowsort
SELECT ALL + + 26 * ( + 81 ) * - col2 + + 90 + - col1 AS col1 FROM tab2 AS cor0
----
-122125
-48399
-84227

query I rowsort
SELECT ALL - col1 + - col1 * - - col1 FROM tab1 AS cor0
----
-210
-2256
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT COUNT( * ) - - + 44 AS col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2665
SELECT COUNT ( * ) - - + 44 AS col0 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT + 21 - - - ( + + COUNT( * ) ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2666
SELECT + 21 - - - ( + + COUNT ( * ) ) AS col2 FROM tab0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT col2 * 84 DIV - col0 - 84 AS col0 FROM tab0
----
-169
-347
-93

skipif mysql # not compatible
query I rowsort label-2667
SELECT col2 * 84 / - col0 - 84 AS col0 FROM tab0
----
-169
-347
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL 9 - + COUNT( col0 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 9 - + COUNT ( col0 ) AS col1 FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 86 > col2 + col1
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT + COUNT( * ) + + 19 AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-2670
SELECT + COUNT ( * ) + + 19 AS col1 FROM tab0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT + col2 DIV + col1 + - - col1 col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2671
SELECT + col2 / + col1 + - - col1 col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 56 * - + col2 <= ( + 16 ) + - 46
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT DISTINCT - ( col2 ) + + CAST( + ( col1 ) + - 64 AS SIGNED ) FROM tab0
----
-162
-30
-53

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - ( col2 ) + + CAST ( + ( col1 ) + - 64 AS INTEGER ) FROM tab0
----
-162
-30
-53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN ( col0 - + 4 ) AND - col1
----

query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 70 + 19 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN ( col2 ) AND - 40
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 / col2 ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT 39 + MIN( ALL - col0 ) DIV COUNT( * ) col1 FROM tab2
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2680
SELECT 39 + MIN ( ALL - col0 ) / COUNT ( * ) col1 FROM tab2
----
14

query I rowsort
SELECT 77 + - ( - 79 ) FROM tab0
----
156
156
156

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 29 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * 13 FROM tab1 WHERE NOT ( 45 ) IS NULL
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( 31 ) >= ( + col2 ) / col1 + col0
----
3

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( 31 ) >= ( + col2 ) / col1 + col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 * col1 - + col2 AND 84 + col1 * + ( 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - MAX( col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2688
SELECT - MAX ( col2 ) col2 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 57 ) col0 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + 35 * COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2690
SELECT + 35 * COUNT ( * ) FROM tab1
----
105

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE - col1 <> ( + 43 - - col1 )
----
59
68
96

query I rowsort
SELECT ( col2 ) * col0 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT ( SUM( col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT ( SUM ( col2 ) ) FROM tab1
----
223

query I rowsort
SELECT col0 - 77 FROM tab2
----
-13
-2
-31

query III rowsort
SELECT * FROM tab0 WHERE - col1 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT ALL 76 DIV 12 + + col2 * col1 FROM tab0 AS cor0
----
105
216
3813

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL 76 / 12 + + col2 * col1 FROM tab0 AS cor0
----
105
216
3813

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND 30 + + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col1 + + 61
----

query I rowsort
SELECT DISTINCT ( + 50 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
50

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 18 * - ( + 36 ) FROM tab2
----
-648
-648
-648

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT OUTER JOIN tab0 ON 10 <> ( + 32 )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + + COUNT( 54 ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2705
SELECT + + COUNT ( 54 ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 21 + col0 * 91 FROM tab1 AS cor0
----
4662
7756
8302

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + MIN( DISTINCT + 2 ) + 23 col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2707
SELECT + MIN ( DISTINCT + 2 ) + 23 col2 FROM tab2 AS cor0
----
25

query I rowsort
SELECT 10 * - 42 FROM tab0 AS cor0 WHERE 40 NOT BETWEEN col0 * - col1 AND NULL
----

query I rowsort
SELECT + 70 + - col1 AS col2 FROM tab1 AS cor0
----
23
56
65

query I rowsort
SELECT + 71 + 9 AS col1 FROM tab1 AS cor0
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT - 68 * + 40 + - SUM( ALL col2 + - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - 68 * + 40 + - SUM ( ALL col2 + - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - + 7 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2713
SELECT - + 7 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - 80 + + COUNT( * ) * - 42 AS col2 FROM tab0 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 80 + + COUNT ( * ) * - 42 AS col2 FROM tab0 AS cor0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - 31 + 0 * + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2715
SELECT - 31 + 0 * + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL - MIN( 18 ) + 4 FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL - MIN ( 18 ) + 4 FROM tab2 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT + + COUNT( * ) * 5 + - 88 AS col0 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT + + COUNT ( * ) * 5 + - 88 AS col0 FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2719
SELECT DISTINCT + + COUNT( * ) DIV - 75 - - 4 col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2719
SELECT DISTINCT + + COUNT ( * ) / - 75 - - 4 col2 FROM tab1 AS cor0
----
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 * - 18 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT col0 * + - col1 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT col0 * + - col1 * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 35 FROM tab0 WHERE ( + col0 * col1 ) >= ( col1 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL <= col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL CAST( NULL AS SIGNED ) + 1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL CAST ( NULL AS INTEGER ) + 1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + - col0 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT + CAST( + ( 5 ) AS SIGNED ) FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-2727
SELECT + CAST ( + ( 5 ) AS INTEGER ) FROM tab1
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT DISTINCT - MAX( ALL 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT - MAX ( ALL 60 ) FROM tab2
----
-60

query I rowsort
SELECT + 4 * + col1 FROM tab2
----
204
268
308

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL SUM( + col1 ) AS col0 FROM tab0 AS cor0 WHERE 99 BETWEEN - col2 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL SUM ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE 99 BETWEEN - col2 AND col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT COUNT( DISTINCT - 84 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT COUNT ( DISTINCT - 84 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT DISTINCT - COUNT( * ) * MAX( DISTINCT 70 ) AS col0 FROM tab2 cor0 WHERE NOT 65 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT - COUNT ( * ) * MAX ( DISTINCT 70 ) AS col0 FROM tab2 cor0 WHERE NOT 65 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( 50 ) AS col0 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT - + 13 AS col0 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT 62 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2736
SELECT 62 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2737
SELECT ALL COUNT( * ), + COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2737
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - - ( COUNT( * ) ) * 65 + - 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
556

skipif mysql # not compatible
query I rowsort label-2738
SELECT - - ( COUNT ( * ) ) * 65 + - 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
556

query I rowsort
SELECT ( - - 99 ) AS col0 FROM tab2
----
99
99
99

query I rowsort
SELECT DISTINCT + + 50 * - col1 FROM tab0 AS cor0
----
-1050
-4050
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + 7 * + 77 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 + col0 + col1 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT CAST( NULL AS SIGNED ) * - + 30 + 28 * col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT CAST ( NULL AS INTEGER ) * - + 30 + 28 * col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( - - col2 ) * + ( + col1 / + col0 - col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL SUM( ALL + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL SUM ( ALL + col2 ) FROM tab2
----
121

query I rowsort
SELECT + col2 * - 4 * + col2 AS col0 FROM tab1
----
-13924
-18496
-36864

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN + 39 AND col2 * - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <> NULL AND NOT col2 * ( - 20 ) + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE + ( ( + col1 ) ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 70 * col1 + col2 AS col0 FROM tab0 cor0
----
-1460
-5623
29

query I rowsort
SELECT ALL ( - - 86 ) + + 36 * - 30 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 939a6cfa0a7c248d27079b641b3a9dcb

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col0 / col2 ) IS NULL ) OR NULL NOT IN ( + col2 + col2 * ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 33 - - - 47 FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT COUNT( * ) * - 32 - - - MAX( ALL col0 ) * + 99 FROM tab2 AS cor0
----
-7521

skipif mysql # not compatible
query I rowsort label-2754
SELECT COUNT ( * ) * - 32 - - - MAX ( ALL col0 ) * + 99 FROM tab2 AS cor0
----
-7521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT CAST( - 75 AS SIGNED ) - - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2755
SELECT CAST ( - 75 AS INTEGER ) - - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0 + + - 89 * - 85, + ( + col0 ) * + col0 AS col0 FROM tab0 cor0
----
7580
225
7652
7569
7662
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT + col2 DIV - + col2 + - col1 - + - 47 + col1 AS col0 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2757
SELECT + col2 / - + col2 + - col1 - + - 47 + col1 AS col0 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT 0 - - 48 * + 96 * + COUNT( * ) FROM tab2 AS cor0
----
13824

skipif mysql # not compatible
query I rowsort label-2758
SELECT 0 - - 48 * + 96 * + COUNT ( * ) FROM tab2 AS cor0
----
13824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT COUNT( * ) / ( + 87 ) * 10 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT COUNT ( * ) / ( + 87 ) * 10 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + col1 * + - 99 * col0 * + col0 AS col2 FROM tab0
----
-10
-15735951
-47
-1804275
-99
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT ALL + ( - 71 ) * ( + CAST( NULL AS SIGNED ) ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + ( - 71 ) * ( + CAST ( NULL AS INTEGER ) ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT ALL 49 DIV - - col2 col1 FROM tab0
----
0
1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2763
SELECT ALL 49 / - - col2 col1 FROM tab0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT - COUNT( * ) * - 64 FROM tab2 WHERE NOT NULL BETWEEN + - col0 * - 78 AND 81 * + - ( 12 )
----
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT - COUNT ( * ) * - 64 FROM tab2 WHERE NOT NULL BETWEEN + - col0 * - 78 AND 81 * + - ( 12 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 68 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 15 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT MIN( - - CAST( col2 AS SIGNED ) ) * + + 73 * - COUNT( * ) FROM tab0
----
-2190

skipif mysql # not compatible
query I rowsort label-2769
SELECT MIN ( - - CAST ( col2 AS INTEGER ) ) * + + 73 * - COUNT ( * ) FROM tab0
----
-2190

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2770
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND ( - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-2770
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) NOT BETWEEN NULL AND ( - CAST ( NULL AS REAL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2771
SELECT + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + - col2 * 41 FROM tab1 AS cor0
----
-2419
-2788
-3936

query II rowsort
SELECT DISTINCT - + col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 67 > NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2778
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) / + + 5 / - 48 * + - 22 + + + SUM( col2 ) FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) / + + 5 / - 48 * + - 22 + + + SUM ( col2 ) FROM tab0
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - - 9 <= - - 90 - + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT ALL + - ( - 35 ) DIV col0 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2780
SELECT ALL + - ( - 35 ) / col0 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND ( col0 )
----
51
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT 65 DIV - + MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT 65 / - + MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT 25 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT 25 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 26 + - col0 >= NULL
----

query I rowsort
SELECT col0 + + - col0 + + 11 * - + col0 FROM tab0 AS cor0
----
-1067
-165
-957

query II rowsort
SELECT col2, - col1 * + + 49 * col0 FROM tab1 AS cor0 WHERE ( NULL NOT IN ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT - MAX( DISTINCT - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT - MAX ( DISTINCT - col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT + 3 * - 17 * col2 + col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT + COUNT( * ) + - + 59 AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT + COUNT ( * ) + - + 59 AS col2 FROM tab2 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-2790
SELECT + + 82, col2 DIV + - col2 AS col2 FROM tab1 AS cor0
----
82
-1
82
-1
82
-1

skipif mysql # not compatible
query II rowsort label-2790
SELECT + + 82, col2 / + - col2 AS col2 FROM tab1 AS cor0
----
82
-1
82
-1
82
-1

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + + col0 >= col0 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 4 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL 87 FROM tab2 WHERE NOT ( NOT - col1 NOT IN ( ( - col2 ) * - + 37 ) )
----
87
87
87

query I rowsort
SELECT DISTINCT + col0 * + 23 - + col0 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT - - 67 DIV + ( COUNT( * ) ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2795
SELECT - - 67 / + ( COUNT ( * ) ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2796
SELECT DISTINCT 46 * + ( 65 ) + + - 43 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
2976

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT 46 * + ( 65 ) + + - 43 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2976

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + ( - col0 ) * + + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( col0 ) <> - 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL SUM( + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL SUM ( + col0 ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL + 15 * + COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + 15 * + COUNT ( * ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT MIN( - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2803
SELECT MIN ( - col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2804
SELECT ALL CAST( + + col1 AS SIGNED ) * + col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL CAST ( + + col1 AS INTEGER ) * + col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT 40 * ( ( col2 ) ) AS col2 FROM tab0
----
1880
3960
400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2806
SELECT ALL * FROM tab0 WHERE NOT - - CAST( + col0 AS SIGNED ) * + + 10 * + 87 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2806
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( + col0 AS INTEGER ) * + + 10 * + 87 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 ) > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT - 31 + + - COUNT( * ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-2808
SELECT - 31 + + - COUNT ( * ) FROM tab2
----
-34

query I rowsort
SELECT ALL ( + 6 ) FROM tab2
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT DISTINCT ( - - col0 ) + - - col1 DIV + 23 FROM tab0 AS cor0
----
18
87
97

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT ( - - col0 ) + - - col1 / + 23 FROM tab0 AS cor0
----
18
87
97

query I rowsort
SELECT - + col0 * + col1 + ( col2 ) * - 6 FROM tab2 AS cor0
----
-2484
-5168
-5373

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT DISTINCT - 40 * - - 6 + + col0 + col1 + + col2 DIV + 88 col1 FROM tab2
----
-143
-98
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2812
SELECT DISTINCT - 40 * - - 6 + + col0 + col1 + + col2 / + 88 col1 FROM tab2
----
-143
-98
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-2813
SELECT ALL col0 DIV + 64, 77 AS col1 FROM tab1
----
0
77
1
77
1
77

skipif mysql # not compatible
query II rowsort label-2813
SELECT ALL col0 / + 64, 77 AS col1 FROM tab1
----
0
77
1
77
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - 2 * COUNT( * ) * COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-2814
SELECT - 2 * COUNT ( * ) * COUNT ( * ) FROM tab0
----
-18

query I rowsort
SELECT + col2 + 18 * + 3 + - + col0 FROM tab1 AS cor0
----
28
31
99

query I rowsort
SELECT DISTINCT - ( - - col1 ) + col0 FROM tab1 AS cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 - - - col2 - - - 15 * - col1 * - ( - col1 ) col1 FROM tab0 AS cor0
----
-41
6648
98411

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col2 FROM tab2
----
71
71
71

query I rowsort
SELECT ALL col1 - + - col0 - + col0 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 83 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 69 AS col1 FROM tab2 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2824
SELECT + SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT ( + col0 ) + + 57 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 * col1 + + col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab2 cor0
----
10
10
10

query II rowsort
SELECT - col2, 56 + - + col0 + + + ( col0 ) AS col1 FROM tab0 AS cor0
----
-10
56
-47
56
-99
56

onlyif mysql # DIV for integer division: 
query II rowsort label-2829
SELECT col2 DIV + col0 AS col1, + col0 FROM tab1
----
0
85
0
91
1
51

skipif mysql # not compatible
query II rowsort label-2829
SELECT col2 / + col0 AS col1, + col0 FROM tab1
----
0
85
0
91
1
51

query II rowsort
SELECT + 2 * - - 82 AS col1, - ( + - col0 ) + - 52 AS col2 FROM tab0
----
164
-37
164
35
164
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 60 ) * + + col1 + + 90 col1 FROM tab1
----
2910
390
930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT - col2 * - col0 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT - col2 * - col0 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 61 / col1, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 38 < NULL
----

query I rowsort
SELECT + 14 AS col2 FROM tab2 cor0
----
14
14
14

query II rowsort
SELECT ALL - + col2 * + 89 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
-5251
59
-6052
68
-8544
96

query I rowsort
SELECT - 38 + 19 FROM tab1 cor0 WHERE NOT ( + ( 20 ) * + 44 + - col0 + + ( + 59 ) + + col1 + - - col0 * - col0 * - col1 * col1 - col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT ALL + col2 / - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + col2 / - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 26 * col0 FROM tab1
----
1326
2210
2366

query I rowsort
SELECT - 95 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-4991
-5110
-6283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL + ( - MIN( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + ( - MIN ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT 5 * + MAX( ALL col0 ) AS col0 FROM tab0 AS cor0
----
485

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT 5 * + MAX ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
485

query I rowsort
SELECT + col1 + + 73 AS col2 FROM tab2 AS cor0
----
124
140
150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - + COUNT( col0 ) FROM tab1 cor0 WHERE + 71 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT - + COUNT ( col0 ) FROM tab1 cor0 WHERE + 71 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 80 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT ALL - 81 DIV + + 45 - + col1 - + 6 * + col2 DIV - + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-145
-43
3

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - 81 / + + 45 - + col1 - + 6 * + col2 / - + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-145
-43
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT ALL - 5, ( + COUNT( - col1 ) ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2848
SELECT ALL - 5, ( + COUNT ( - col1 ) ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
-5
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 38 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + col1 * + + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + + col2 * col2
----

query I rowsort
SELECT ALL 74 - + - col1 FROM tab1
----
121
79
88

query II rowsort
SELECT ALL 65 AS col0, 96 * + col0 + col2 FROM tab0
----
65
1487
65
8362
65
9411

query II rowsort
SELECT - col1 AS col1, col1 * + col1 FROM tab0
----
-1
1
-21
441
-81
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * col1 col0 FROM tab2 AS cor0
----
2193
2881
3311

query I rowsort
SELECT ALL 50 + - 54 + + + col0 FROM tab1 AS cor0
----
47
81
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT DISTINCT + + 74 * + CAST( NULL AS SIGNED ) * col1 + + - col1 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + + 74 * + CAST ( NULL AS INTEGER ) * col1 + + - col1 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT + CAST( col1 AS SIGNED ) - + 82 AS col1 FROM tab1 cor0
----
-35
-68
-77

skipif mysql # not compatible
query I rowsort label-2858
SELECT + CAST ( col1 AS INTEGER ) - + 82 AS col1 FROM tab1 cor0
----
-35
-68
-77

query II rowsort
SELECT col1, 46 AS col1 FROM tab2 AS cor0 WHERE col1 / - 49 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 28 = col1
----

query I rowsort
SELECT ALL - 99 + + 14 FROM tab2 cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT DISTINCT - CAST( + MAX( col2 ) AS SIGNED ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2862
SELECT DISTINCT - CAST ( + MAX ( col2 ) AS INTEGER ) col0 FROM tab2
----
-58

query I rowsort
SELECT - 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + + COUNT( * ) * - ( + 5 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2864
SELECT + + COUNT ( * ) * - ( + 5 ) FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT - ( + + 99 ) * COUNT( * ) FROM tab2 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - ( + + 99 ) * COUNT ( * ) FROM tab2 cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT MIN( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * - 18 * + col0 + + col0 = + col0 * + ( col2 )
----
-81

skipif mysql # not compatible
query I rowsort label-2866
SELECT MIN ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * - 18 * + col0 + + col0 = + col0 * + ( col2 )
----
-81

query II rowsort
SELECT ( - col0 ) AS col1, col1 FROM tab2 cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT COUNT( * ) * 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT COUNT ( * ) * 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( 68 ) + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT col2 DIV - 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT col2 / - 94 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 47 * - 1 AS col2 FROM tab0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT - MIN( + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - MIN ( + col1 ) FROM tab2
----
-51

query II rowsort
SELECT ALL - col0 AS col0, + ( + 5 ) AS col0 FROM tab1 AS cor0
----
-51
5
-85
5
-91
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT - SUM( - + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT - SUM ( - + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2876
SELECT - 33 / CAST( NULL AS SIGNED ) + - + 99 - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT - 33 / CAST ( NULL AS INTEGER ) + - + 99 - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * ( + - 31 ) <> 19 + + + col1 + - + col1 * + + col2
----

query II rowsort
SELECT - col0 * + 62, col1 * - 20 * + col0 AS col2 FROM tab1 AS cor0
----
-3162
-14280
-5270
-8500
-5642
-85540

query I rowsort
SELECT DISTINCT + - 73 FROM tab1 cor0
----
-73

query I rowsort
SELECT DISTINCT - 53 * 72 + + col0 FROM tab0 AS cor0
----
-3719
-3729
-3801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col2 + + col0 col0 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2882
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - 41 + - 29 - + + col0 + - col1 * col0 * + 8 * col0 FROM tab2 AS cor0
----
-2523270
-3015145
-863444

query I rowsort
SELECT ALL - 11 + + 21 + + col1 - 14 * + - col0 FROM tab1 AS cor0
----
1205
1331
738

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col0 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT col1 DIV + col0 - 30 AS col0 FROM tab2
----
-29
-29
-30

skipif mysql # not compatible
query I rowsort label-2886
SELECT col1 / + col0 - 30 AS col0 FROM tab2
----
-29
-29
-30

query III rowsort
SELECT * FROM tab2 WHERE - col1 - + ( + - col2 ) / + 73 + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT + 4 + - - COUNT( * ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2888
SELECT + 4 + - - COUNT ( * ) AS col0 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + MAX( + - col2 ) + - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-2889
SELECT + MAX ( + - col2 ) + - COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT DISTINCT col2 * + col0 * + col1 AS col2 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT 9 - + - SUM( 4 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT 9 - + - SUM ( 4 ) FROM tab0
----
21

query III rowsort
SELECT * FROM tab1 WHERE col2 < ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL COUNT( * ) - - 80 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL COUNT ( * ) - - 80 FROM tab2
----
83

query I rowsort
SELECT - - 20 + - 76 AS col0 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 50 + - ( - - 31 ) * + 90 * + col2 * 78 FROM tab0 AS cor0
----
-10228190
-21544430
-2176250

query I rowsort
SELECT ALL 24 + - + col1 + - col1 + - col2 FROM tab1 AS cor0
----
-100
-138
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT + COUNT( * ) * + - 15 AS col0 FROM tab2 WHERE NOT NULL > col1
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT + COUNT ( * ) * + - 15 AS col0 FROM tab2 WHERE NOT NULL > col1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 66 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT - + 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT - - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2903
SELECT - - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 16 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) * + + 95 FROM tab1 AS cor0
----
-127680
-28025
-303620

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT + COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT + COUNT ( - col1 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) * - - 70 - + 69 + - col1 - - col1 col0 FROM tab0 AS cor0
----
-139
-1539
-5739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT DISTINCT + COUNT( * ) DIV - 21 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + COUNT ( * ) / - 21 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL - MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT + - 3 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT + COUNT( - - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT + COUNT ( - - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * + + 80 AS col1 FROM tab0
----
-1680
-6480
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT - 28 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT - 28 / + - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 * - - col2 AS col0 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + - col2 + + 59 + + 48 IN ( 99 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + + col0 * - 0 - - - col2 + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT MAX( DISTINCT col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2918
SELECT MAX ( DISTINCT col0 ) FROM tab2
----
75

query I rowsort
SELECT 3 - - 15 AS col1 FROM tab0 WHERE NOT ( - ( - - col0 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 + + 99 FROM tab2 AS cor0
----
-34
-5
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - 54, col2 + + - col2, + - col0, + 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT DISTINCT + 39 * + COUNT( * ) + - + COUNT( * ) DIV - 54 AS col1 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + 39 * + COUNT ( * ) + - + COUNT ( * ) / - 54 AS col1 FROM tab0 AS cor0
----
117

query I rowsort
SELECT - col0 + + 83 AS col2 FROM tab2
----
19
37
8

query II rowsort
SELECT - - col0 + 18 + - col1, col0 FROM tab0 AS cor0
----
-48
15
114
97
84
87

query I rowsort
SELECT + + col0 + - 82 FROM tab1 cor0
----
-31
3
9

query I rowsort
SELECT ALL + col2 + col0 + - + col1 + + col0 FROM tab2 AS cor0
----
141
64
91

query I rowsort
SELECT - col2 + + 55 - + col1 FROM tab0 AS cor0
----
-45
-73
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 14 - - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL ( + 75 ) - + - col0 * - - col0 + - 42 AS col2 FROM tab1
----
2634
7258
8314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2933
SELECT - 11 DIV - + COUNT( * ) col1 FROM tab2, tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2933
SELECT - 11 / - + COUNT ( * ) col1 FROM tab2, tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL = - - ( + col2 )
----

query I rowsort
SELECT ALL col0 - col2 * + ( - 93 ) FROM tab0
----
1017
4386
9304

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT + col0 DIV col1 - col1 FROM tab1 AS cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-2936
SELECT + col0 / col1 - col1 FROM tab1 AS cor0
----
-11
-46
12

query II rowsort
SELECT 34 * - 30 AS col1, col0 AS col2 FROM tab0 AS cor0
----
-1020
15
-1020
87
-1020
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT + 61 * + + COUNT( * ) FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + 61 * + + COUNT ( * ) FROM tab0
----
183

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL COUNT( DISTINCT + ( + col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL COUNT ( DISTINCT + ( + col1 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT ALL + col0 DIV col0 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + col0 / col0 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT - - 80 AS col1 FROM tab2 AS cor0 WHERE NOT - 57 IS NULL
----
80
80
80

query I rowsort
SELECT ALL + ( - ( col0 ) ) FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + ( - col1 ) + + col1 + + 73 + + + col1 FROM tab2 AS cor0
----
124
140
150

query II rowsort
SELECT DISTINCT - col2, - 91 AS col2 FROM tab1 AS cor0
----
-59
-91
-68
-91
-96
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT ALL - col1 * + CAST( - + col0 AS SIGNED ) AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - col1 * + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 95 * + 80 FROM tab0 WHERE NOT + col0 NOT BETWEEN col2 AND col0
----
7600

query II rowsort
SELECT col2 * col2, - col2 * - - 74 AS col2 FROM tab0
----
100
-740
2209
-3478
9801
-7326

onlyif mysql # DIV for integer division: 
query I rowsort label-2951
SELECT - col2 DIV - 17 FROM tab1
----
3
4
5

skipif mysql # not compatible
query I rowsort label-2951
SELECT - col2 / - 17 FROM tab1
----
3
4
5

query I rowsort
SELECT ALL + col2 * + + 39 FROM tab0
----
1833
3861
390

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT DISTINCT - ( - ( - col0 ) ) DIV - 91 + col2 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - ( - ( - col0 ) ) / - 91 + col2 FROM tab0
----
10
100
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 * col0 col1 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT 97 col2, + MIN( - col1 ) FROM tab0
----
97
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2955
SELECT 97 col2, + MIN ( - col1 ) FROM tab0
----
97
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col1 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + 4 AS col1 FROM tab2
----
4

query III rowsort
SELECT * FROM tab0 WHERE + 55 IS NULL
----

query I rowsort
SELECT ALL + + 79 FROM tab1 cor0
----
79
79
79

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT 97 + - col0 AS col0 FROM tab1 AS cor0
----
12
46
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL + 46 + - MIN( ALL + - col1 ) - CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + 46 + - MIN ( ALL + - col1 ) - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
130

query I rowsort
SELECT DISTINCT 50 + + + 14 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT COUNT( * ) * + - 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-207

skipif mysql # not compatible
query I rowsort label-2964
SELECT COUNT ( * ) * + - 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-207

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 12 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT col0 + - - 86 AS col1, + col1 AS col1 FROM tab2
----
132
51
150
77
161
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col0 - - + col1 + 40 * 75 AS col0, - col1 col2 FROM tab1
----
-4220
-5
-5234
-47
413
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + - ( 94 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT - + 50 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 28 AS col0, - col1 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT - - col1 * 81 > - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 >= + - col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + COUNT( DISTINCT - + col0 ) - + - COUNT( * ) AS col2 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2973
SELECT + COUNT ( DISTINCT - + col0 ) - + - COUNT ( * ) AS col2 FROM tab1 cor0
----
6

query I rowsort
SELECT ALL 22 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT col0 DIV + + col0 + + - col2 + col2 DIV col0 + - col0 col2 FROM tab2 AS cor0
----
-103
-132
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2975
SELECT col0 / + + col0 + + - col2 + col2 / col0 + - col0 col2 FROM tab2 AS cor0
----
-103
-132
-68

query I rowsort
SELECT - ( - - col0 ) * - col2 + + 51 AS col1 FROM tab2
----
1109
2611
4401

query I rowsort
SELECT ALL col1 - 43 + + 52 * col2 AS col0 FROM tab0
----
2482
498
5106

query I rowsort
SELECT - col0 + - + col2 AS col2 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NULL AND NOT ( + col1 BETWEEN NULL AND + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT COUNT( ALL col2 ) + + - 30 AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2980
SELECT COUNT ( ALL col2 ) + + - 30 AS col0 FROM tab1
----
-27

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + ( - 24 ) NOT BETWEEN - + 41 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 - - col0 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col1 FROM tab1 cor0 WHERE NOT + col0 * - ( - ( - col2 ) ) > - - col1 - col2 * + 28
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT - SUM( - 54 ) * - - COUNT( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
486

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - SUM ( - 54 ) * - - COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
486

query I rowsort
SELECT col1 * - 89 AS col0 FROM tab1 AS cor0
----
-1246
-4183
-445

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + - col1 * + - 82 + - col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - - 28 FROM tab1 cor0
----
28
28
28

query I rowsort
SELECT ALL 18 * col2 + - col0 FROM tab2 AS cor0 WHERE col0 <> + + col0
----

query II rowsort
SELECT DISTINCT - + col2 + - - col0, col2 FROM tab2 AS cor0
----
17
58
23
23
24
40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN ( 70 ) AND NULL
----

query I rowsort
SELECT ALL + 9 + + + col2 FROM tab0 AS cor0
----
108
19
56

query I rowsort
SELECT 42 + col1 AS col1 FROM tab2
----
109
119
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT MAX( ALL - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT MAX ( ALL - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ALL - 32 AS col2 FROM tab0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2999
SELECT * FROM tab0 WHERE col0 * + CAST( 57 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2999
SELECT * FROM tab0 WHERE col0 * + CAST ( 57 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + - col2 / 30 + - 87 FROM tab2 WHERE + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3001
SELECT + MAX( ALL - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT + MAX ( ALL - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL ( MAX( ALL - 92 ) ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL ( MAX ( ALL - 92 ) ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT DISTINCT - 58 + + col2 FROM tab0 AS cor0
----
-11
-48
41

query II rowsort
SELECT + col1, + ( - + 6 ) FROM tab1 AS cor0
----
14
-6
47
-6
5
-6

query I rowsort
SELECT DISTINCT + col2 + - - col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT col2 * + + 78 + col1 FROM tab0
----
3747
7723
801

query I rowsort
SELECT + col0 + - 49 AS col2 FROM tab1 AS cor0
----
2
36
42

query II rowsort
SELECT ALL col2 AS col0, 57 AS col0 FROM tab2 AS cor0
----
23
57
40
57
58
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + col2, col0 col2 FROM tab1 AS cor0
----
21
91
54
85
82
51

query II rowsort
SELECT DISTINCT + 33, + 36 AS col2 FROM tab1 AS cor0
----
33
36

query I rowsort
SELECT + col0 * - - col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3013
SELECT * FROM tab0 AS cor0 WHERE CAST( - - col0 AS SIGNED ) * col2 NOT IN ( - col1, 63 + 33, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3013
SELECT * FROM tab0 AS cor0 WHERE CAST ( - - col0 AS INTEGER ) * col2 NOT IN ( - col1, 63 + 33, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + + col2 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT ALL + - 91 AS col2, COUNT( * ) col1 FROM tab0 AS cor0
----
-91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3015
SELECT ALL + - 91 AS col2, COUNT ( * ) col1 FROM tab0 AS cor0
----
-91
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3017
SELECT DISTINCT - 95 * + CAST( NULL AS SIGNED ) AS col1, col0 * + col2 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-3017
SELECT DISTINCT - 95 * + CAST ( NULL AS INTEGER ) AS col1, col0 * + col2 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT MIN( - 19 ) AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT MIN ( - 19 ) AS col0 FROM tab1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + 60 AS col0, - col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - COUNT( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3022
SELECT - COUNT ( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col2 ) col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - - 66 * + col1 + + col2 AS col1 FROM tab0 AS cor0
----
1396
165
5393

query I rowsort
SELECT 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + ( - 1 ) AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 59 * 14 AS col0 FROM tab2
----
826

query II rowsort
SELECT - 83 AS col0, col0 AS col1 FROM tab1
----
-83
51
-83
85
-83
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( - 69 ) AS col2, - col0 * - col0 col2 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + - SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3030
SELECT + - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + + col2 * 28 * + 96 NOT IN ( - col2, + 44 * - col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - 65 * MIN( ALL + col0 ) FROM tab0
----
-975

skipif mysql # not compatible
query I rowsort label-3032
SELECT - 65 * MIN ( ALL + col0 ) FROM tab0
----
-975

query I rowsort
SELECT ALL ( - 79 ) + + - 72 FROM tab1
----
-151
-151
-151

query I rowsort
SELECT 11 * + + col1 AS col0 FROM tab2
----
561
737
847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 31 * 43 col1, + 10 * + col1 AS col0 FROM tab1
----
1333
140
1333
470
1333
50

query I rowsort
SELECT + col0 * + 54 FROM tab1
----
2754
4590
4914

query II rowsort
SELECT col2 + 64 AS col0, + 2 AS col1 FROM tab0
----
111
2
163
2
74
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT + CAST( 44 AS SIGNED ) * + 92 + + col1 + + - col0 AS col2 FROM tab1
----
3968
4004
4011

skipif mysql # not compatible
query I rowsort label-3038
SELECT + CAST ( 44 AS INTEGER ) * + 92 + + col1 + + - col0 AS col2 FROM tab1
----
3968
4004
4011

query I rowsort
SELECT 60 + col2 * + - 71 * col0 FROM tab1
----
-347556
-356005
-439288

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + COUNT( * ) + + 32 * 33 AS col0 FROM tab2
----
1059

skipif mysql # not compatible
query I rowsort label-3040
SELECT + COUNT ( * ) + + 32 * 33 AS col0 FROM tab2
----
1059

query I rowsort
SELECT ALL + 16 FROM tab2 AS cor0 WHERE NOT ( - col0 IS NULL )
----
16
16
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 50 = NULL )
----

query II rowsort
SELECT DISTINCT - 95 AS col1, 17 AS col2 FROM tab1
----
-95
17

query I rowsort
SELECT ALL + - col0 * + - 85 AS col2 FROM tab0 cor0
----
1275
7395
8245

query I rowsort
SELECT + 66 + + col0 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col1, 89 AS col2 FROM tab2 AS cor0
----
-51
89
-67
89
-77
89

query II rowsort
SELECT DISTINCT + col0, - col1 + col1 * col0 FROM tab0
----
15
1134
87
1806
97
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT + 18 DIV - col1 * + - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3048
SELECT + 18 / - col1 * + - col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT + SUM( DISTINCT + ( - - 56 ) ) col0 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3049
SELECT + SUM ( DISTINCT + ( - - 56 ) ) col0 FROM tab0
----
56

query II rowsort
SELECT DISTINCT - col1 AS col2, - col2 * 66 FROM tab1
----
-14
-6336
-47
-4488
-5
-3894

query I rowsort
SELECT ALL - col2 * - - 97 FROM tab0
----
-4559
-9603
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab1, tab0 AS cor0
----
26

query I rowsort
SELECT ALL 36 * - + 8 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 68701a55b675f6d73d54079f99c349f1

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT MAX( + 44 ) FROM tab2, tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3054
SELECT MAX ( + 44 ) FROM tab2, tab2 AS cor0
----
44

query II rowsort
SELECT + col1 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL + COUNT( - - 84 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + COUNT ( - - 84 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT COUNT( DISTINCT + col2 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3057
SELECT COUNT ( DISTINCT + col2 ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * col1 * - col1 col2 FROM tab1 AS cor0
----
-6664
-75106
-850

onlyif mysql # aggregate syntax: 
query II rowsort label-3059
SELECT ALL + + 1 AS col2, COUNT( * ) FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-3059
SELECT ALL + + 1 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
1
3

query II rowsort
SELECT DISTINCT + - 10, col0 FROM tab1 AS cor0
----
-10
51
-10
85
-10
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3062
SELECT DISTINCT * FROM tab0 WHERE - 56 IN ( + col1, - col1 * + 80, + col0 * + col0 + - - col0 * - - 25 * col2 * + ( col2 ) / CAST( NULL AS SIGNED ) * ( + col2 ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-3062
SELECT DISTINCT * FROM tab0 WHERE - 56 IN ( + col1, - col1 * + 80, + col0 * + col0 + - - col0 * - - 25 * col2 * + ( col2 ) / CAST ( NULL AS INTEGER ) * ( + col2 ) + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 - col1 col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + - col1 + ( + - 84 ) FROM tab2 AS cor0
----
-135
-151
-161

query I rowsort
SELECT + col1 * + + col0 * 58 + 92 AS col0 FROM tab2 AS cor0
----
136160
285916
291542

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL - SUM( - col0 ) + + + 97 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
518

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - SUM ( - col0 ) + + + 97 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
518

query I rowsort
SELECT + - col1 * 14 * + 78 + + col1 AS col1 FROM tab1 AS cor0
----
-15274
-51277
-5455

query II rowsort
SELECT col1 + - col0 * + - 74, col0 AS col0 FROM tab2 cor0
----
3455
46
4813
64
5617
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT + COUNT( + col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT DISTINCT + COUNT ( + col2 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL COUNT( * ) * + 29 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 * - + col1 ) IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL COUNT ( * ) * + 29 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 * - + col1 ) IS NULL
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + AVG ( - 61 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + AVG ( - 61 ) FROM tab0
----
NULL

query I rowsort
SELECT - + col1 AS col0 FROM tab2 cor0 WHERE + 30 - + col1 + - 51 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col1 col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) * + 88 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) * + 88 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND + 81
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 95 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + 84 FROM tab0 AS cor0
----
171
181
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT - MAX( 61 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT - MAX ( 61 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-61

query II rowsort
SELECT col0 * - 27, 75 - - 67 AS col2 FROM tab2 AS cor0
----
-1242
142
-1728
142
-2025
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT - + ( + - col0 ) * - + 6 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT + 67 * ( - col2 ) FROM tab1 cor0
----
-3953
-4556
-6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3085
SELECT DISTINCT + - 23 DIV MIN( ALL - 38 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + - 23 / MIN ( ALL - 38 ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col0 ), + col2 col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3088
SELECT CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) + - COUNT( ( + col1 ) ) * + MIN( ALL col1 ) AS col2 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3088
SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) + - COUNT ( ( + col1 ) ) * + MIN ( ALL col1 ) AS col2 FROM tab2
----
NULL
NULL

query I rowsort
SELECT - 48 + + ( + col2 ) / + + ( - - 83 ) + - col2 FROM tab0 WHERE NOT NULL < col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + MIN( DISTINCT + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3090
SELECT + MIN ( DISTINCT + col2 ) FROM tab0
----
10

query I rowsort
SELECT ALL 33 * + 39 * - col1 AS col1 FROM tab2
----
-65637
-86229
-99099

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3092
SELECT * FROM tab2 WHERE NOT - CAST( + 45 AS SIGNED ) BETWEEN + + 10 AND + 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3092
SELECT * FROM tab2 WHERE NOT - CAST ( + 45 AS INTEGER ) BETWEEN + + 10 AND + 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT COUNT( DISTINCT 21 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3093
SELECT COUNT ( DISTINCT 21 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT ( - 97 ) AS col1 FROM tab0
----
-97
-97
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3097
SELECT ALL + COUNT ( * ) col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3098
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col0 >= + 11
----
3

skipif mysql # not compatible
query I rowsort label-3099
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col0 >= + 11
----
3

query I rowsort
SELECT 89 + - ( + + 55 ) FROM tab0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, 42 col2 FROM tab1
----
51
42
85
42
91
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * - - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * - - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3103
SELECT DISTINCT + col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3103
SELECT DISTINCT + col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3104
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - - 87 + + + col0 * + col0 BETWEEN + CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-3104
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - - 87 + + + col0 * + col0 BETWEEN + CAST ( NULL AS INTEGER ) AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE 68 IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE 68 IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 + + col1 * - - 87 col2 FROM tab2 cor0
----
4443
5835
6705

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 / 47 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3108
SELECT + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - col1 AS col2, col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1
-9409
-21
-7569
-81
-225

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + col0 > - col2
----

query I rowsort
SELECT DISTINCT col1 * - 71 FROM tab0 AS cor0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL COUNT( * ) + + 53 AS col2 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL COUNT ( * ) + + 53 AS col2 FROM tab0 AS cor0
----
56

query I rowsort
SELECT ( col1 ) - - - col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0 + 24
----

query II rowsort
SELECT col0 + + 41 AS col0, 58 AS col2 FROM tab1
----
126
58
132
58
92
58

query I rowsort
SELECT ALL 72 - col2 AS col0 FROM tab1
----
-24
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL COUNT( * ) * ( - - COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL COUNT ( * ) * ( - - COUNT ( * ) ) FROM tab0
----
9

query I rowsort
SELECT - 33 * - - col2 + + - 39 AS col2 FROM tab0
----
-1590
-3306
-369

query I rowsort
SELECT DISTINCT 27 * 50 FROM tab2
----
1350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 21 < + col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT COUNT( * ) AS col1, ( + 62 ) FROM tab0
----
3
62

skipif mysql # not compatible
query II rowsort label-3122
SELECT COUNT ( * ) AS col1, ( + 62 ) FROM tab0
----
3
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT + 23 * + col1 DIV - col1 AS col0 FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-3123
SELECT + 23 * + col1 / - col1 AS col0 FROM tab0
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3124
SELECT DISTINCT + - 44 DIV 25 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT + - 44 / 25 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - 31 AS col2, col0 + - - 10 FROM tab2 cor0
----
-31
56
-31
74
-31
85

query I rowsort
SELECT + col2 * - ( col2 ) * - col1 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + col1, - col1 * - - col2 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3129
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-3129
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT + ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT - - 89 * + col1 FROM tab1 AS cor0
----
1246
4183
445

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL MAX( + - 56 ) * COUNT( - 1 ) FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL MAX ( + - 56 ) * COUNT ( - 1 ) FROM tab2 AS cor0
----
-168

query I rowsort
SELECT 86 * col1 AS col0 FROM tab1 AS cor0
----
1204
4042
430

query I rowsort
SELECT DISTINCT + 77 * - - col1 FROM tab1
----
1078
3619
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL - CAST( NULL AS SIGNED ) / + COUNT( * ) * + 80 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * + 80 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 52 ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT + 18 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # DIV for integer division: 
query II rowsort label-3140
SELECT ALL + col2 DIV 47 + + col1, col0 DIV + - col1 AS col2 FROM tab1 AS cor0
----
16
-3
48
-1
6
-17

skipif mysql # not compatible
query II rowsort label-3140
SELECT ALL + col2 / 47 + + col1, col0 / + - col1 AS col2 FROM tab1 AS cor0
----
16
-3
48
-1
6
-17

query I rowsort
SELECT ALL + - 6 AS col0 FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT - 16 DIV - + col0 + - + 26 + - 87 col1 FROM tab0 AS cor0
----
-112
-113
-113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT - 16 / - + col0 + - + 26 + - 87 col1 FROM tab0 AS cor0
----
-112
-113
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT ALL - CAST( + col0 AS SIGNED ) + + ( - 32 ) AS col0 FROM tab2 AS cor0
----
-107
-78
-96

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - CAST ( + col0 AS INTEGER ) + + ( - 32 ) AS col0 FROM tab2 AS cor0
----
-107
-78
-96

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NULL >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT CAST( + 56 AS SIGNED ) * + col0 + col2 - 75 + col2 * + col2 * col0 + + + col2 * col2 + 99 col2 FROM tab0 AS cor0
----
13706
36255
966053

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3145
SELECT CAST ( + 56 AS INTEGER ) * + col0 + col2 - 75 + col2 * + col2 * col0 + + + col2 * col2 + 99 col2 FROM tab0 AS cor0
----
13706
36255
966053

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - + COUNT( * ) + - 50 AS col1 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3146
SELECT - + COUNT ( * ) + - 50 AS col1 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT ( - + col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3148
SELECT ALL ( + - ( - - COUNT( + CAST( NULL AS SIGNED ) ) ) ), 72 AS col0 FROM tab2
----
0
72

skipif mysql # not compatible
query II rowsort label-3148
SELECT ALL ( + - ( - - COUNT ( + CAST ( NULL AS INTEGER ) ) ) ), 72 AS col0 FROM tab2
----
0
72

query I rowsort
SELECT ( col1 ) * + + 3 FROM tab2
----
153
201
231

query I rowsort
SELECT DISTINCT ( 57 ) FROM tab1
----
57

query II rowsort
SELECT DISTINCT + col0 AS col1, 38 + - col1 AS col1 FROM tab0
----
15
-43
87
17
97
37

query I rowsort
SELECT col2 * col0 - - col1 AS col2 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT - col0 * + col1 - + - col1 AS col1 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT + col1 * + - 62 - 24 FROM tab1 AS cor0
----
-2938
-334
-892

query I rowsort
SELECT DISTINCT - 10 * col1 + - - ( + 62 ) + + 75 AS col0 FROM tab2 AS cor0
----
-373
-533
-633

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + ( - ( - col0 ) ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT MIN( ALL - ( col1 ) ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3157
SELECT MIN ( ALL - ( col1 ) ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - + COUNT( 20 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3158
SELECT - + COUNT ( 20 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT - + COUNT( + CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3159
SELECT - + COUNT ( + CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab0 cor0
----
85

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 AS cor0 WHERE - col2 * + - col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT ( + CAST( + + ( COUNT( * ) ) AS SIGNED ) ) * 28 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT ( + CAST ( + + ( COUNT ( * ) ) AS INTEGER ) ) * 28 FROM tab0
----
84

query I rowsort
SELECT + 79 AS col1 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT ALL 28 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 28 / + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT + MIN( + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + MIN ( + + col2 ) FROM tab1
----
59

query II rowsort
SELECT col2, 6 AS col0 FROM tab1
----
59
6
68
6
96
6

query I rowsort
SELECT - + col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT + 29 DIV 25 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 29 / 25 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + col2 * + col2 * + col2 * 18 AS col0 FROM tab0
----
17465382
18000
1868814

query I rowsort
SELECT DISTINCT ( + 34 ) AS col1 FROM tab2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL MIN( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( + 19 ) AS col2 FROM tab1
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT - COUNT( ALL ( - 23 ) ) FROM tab0 WHERE 33 NOT BETWEEN - col0 AND + ( + ( - col2 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - COUNT ( ALL ( - 23 ) ) FROM tab0 WHERE 33 NOT BETWEEN - col0 AND + ( + ( - col2 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3174
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - MIN( + 60 ) AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-3175
SELECT - MIN ( + 60 ) AS col2 FROM tab1
----
-60

query I rowsort
SELECT + ( + col1 ) + - 5 AS col0 FROM tab2
----
46
62
72

query I rowsort
SELECT + ( - ( col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + MAX( ( 21 ) ) + + 69 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3178
SELECT + MAX ( ( 21 ) ) + + 69 FROM tab1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3179
SELECT DISTINCT + 45 * 40 FROM tab0 WHERE NOT ( + CAST( col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT + 45 * 40 FROM tab0 WHERE NOT ( + CAST ( col0 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 69 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT - SUM( 72 ) AS col2 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT - SUM ( 72 ) AS col2 FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT + COUNT( * ) * + 33 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + COUNT ( * ) * + 33 FROM tab2
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( 45 )
----

query I rowsort
SELECT DISTINCT 53 * - 33 FROM tab0
----
-1749

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT + SUM( ALL col0 ) AS col2 FROM tab1 WHERE NULL NOT IN ( - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT + SUM ( ALL col0 ) AS col2 FROM tab1 WHERE NULL NOT IN ( - 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 WHERE col0 + 71 NOT BETWEEN NULL AND col2 + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 WHERE col0 + 71 NOT BETWEEN NULL AND col2 + + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT 87 DIV + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3187
SELECT 87 / + col2 AS col1 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE + 93 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT - 32 DIV - 18 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3189
SELECT - 32 / - 18 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT ( 65 ) DIV + col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-3190
SELECT ( 65 ) / + col2 AS col2 FROM tab0
----
0
1
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + 47 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT ALL 11 DIV - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL 11 / - col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 22 + col1 AS col1 FROM tab2
----
29
45
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3195
SELECT DISTINCT * FROM tab1 WHERE - 15 NOT BETWEEN col1 AND - CAST( + ( col2 ) AS SIGNED ) * - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3195
SELECT DISTINCT * FROM tab1 WHERE - 15 NOT BETWEEN col1 AND - CAST ( + ( col2 ) AS INTEGER ) * - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3196
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT ALL col0 DIV + 38 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL col0 / + 38 FROM tab0
----
0
2
2

query I rowsort
SELECT ALL + col2 * col2 FROM tab1 WHERE NOT + 0 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - 2 * COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3199
SELECT - 2 * COUNT ( * ) FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> col2
----

query I rowsort
SELECT ALL col1 * + col0 + - 50 AS col1 FROM tab1 WHERE NOT col0 >= + col0
----

query I rowsort
SELECT DISTINCT + 41 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT + 84 DIV + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3203
SELECT + 84 / + col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT 23 * + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3204
SELECT 23 * + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 26 >= - col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN - col2 / 27 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + SUM( DISTINCT - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3208
SELECT + SUM ( DISTINCT - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL >= col1 + 52
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3210
SELECT - SUM( DISTINCT col2 ) - + 71 FROM tab2 AS cor0 WHERE NOT + col2 * - CAST( NULL AS DECIMAL ) < + 38 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT - SUM ( DISTINCT col2 ) - + 71 FROM tab2 AS cor0 WHERE NOT + col2 * - CAST ( NULL AS REAL ) < + 38 + 70
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 90 col1 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + 91 * + col0 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * col1 col2 FROM tab0 cor0
----
1596
6156
76

query I rowsort
SELECT + - ( col0 ) * 65 FROM tab2 AS cor0
----
-2990
-4160
-4875

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3216
SELECT col1 DIV 9 col0 FROM tab0 AS cor0 WHERE NOT ( 21 * - 14 + col1 * col1 ) IS NULL
----
0
2
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3216
SELECT col1 / 9 col0 FROM tab0 AS cor0 WHERE NOT ( 21 * - 14 + col1 * col1 ) IS NULL
----
0
2
9

query I rowsort
SELECT - + col1 * 73 AS col2 FROM tab2 AS cor0
----
-3723
-4891
-5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT + SUM( col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + col2 * - + 63 + - ( + col0 ) AS col1 FROM tab2
----
-1495
-2584
-3729

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT COUNT( * ) FROM tab1 WHERE NOT col2 * - ( + 99 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3222
SELECT COUNT ( * ) FROM tab1 WHERE NOT col2 * - ( + 99 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT + MIN( ALL - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + MIN ( ALL - col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT + 24 > + col2
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE - 60 < ( NULL )
----

query I rowsort
SELECT + 89 * + 26 * col2 FROM tab1
----
136526
157352
222144

query I rowsort
SELECT ALL - 47 FROM tab1 cor0
----
-47
-47
-47

query I rowsort
SELECT ALL + col1 * 32 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col2 AND ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 1 * + 21 AND ( - col2 * - ( col2 ) )
----

query I rowsort
SELECT - 27 AS col2 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT col1 * + 61 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3111
4087
4697

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( 16 * + 15 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE + col0 * CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE + col0 * CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 89 col2 FROM tab1
----
-5251
-6052
-8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 + col0 col2 FROM tab2
----
68
86
97

query I rowsort
SELECT DISTINCT col1 - + 90 FROM tab1
----
-43
-76
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT - COUNT( * ) + 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - COUNT ( * ) + 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
35

query I rowsort
SELECT ( - ( - 46 ) ) + col0 AS col1 FROM tab0 WHERE ( col2 ) = ( - 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3240
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT 50 + 71 * - 64 AS col2 FROM tab0
----
-4494
-4494
-4494

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN col2 AND col2 * - 14
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > - col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL + 99 + + - MIN( + 68 ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + 99 + + - MIN ( + 68 ) FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT - COUNT( * ) + - 10 AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3245
SELECT - COUNT ( * ) + - 10 AS col0 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + + col0 * + 93 FROM tab1 AS cor0
----
4743
7905
8463

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < 28 + - 91
----

query I rowsort
SELECT col0 + - - col1 * 15 FROM tab1 AS cor0
----
160
261
796

query I rowsort
SELECT col1 + col1 * - 48 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-2397
-3149
-3619

query I rowsort
SELECT - 76 + - col0 AS col1 FROM tab2 cor0
----
-122
-140
-151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 + col1 + - col0 * + col1 + - col1 col1 FROM tab0 AS cor0
----
-196
-2037
-5022

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( + col1 * + 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT COUNT( * ) + + - 94 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT COUNT ( * ) + + - 94 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT 22 * - 14 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
-250
-268
-285

query II rowsort
SELECT - 29, + col0 FROM tab0 AS cor0
----
-29
15
-29
87
-29
97

query I rowsort
SELECT + col0 * col1 + 15 + - 32 FROM tab0 AS cor0
----
1198
1810
80

query III rowsort
SELECT * FROM tab0 WHERE ( - + ( - + 48 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - ( - 13 ) - - COUNT( * ) AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - ( - 13 ) - - COUNT ( * ) AS col2 FROM tab2
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 6 col0 FROM tab1
----
-354
-408
-576

query I rowsort
SELECT col2 * - + ( + 80 ) * 53 AS col0 FROM tab0
----
-199280
-419760
-42400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * - col0 col1 FROM tab0
----
-4698
-5238
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT 72 * + - CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT 72 * + - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 90 ) AS col1 FROM tab2 AS cor0 WHERE ( - col1 ) BETWEEN - col0 * - 96 AND 7
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 + 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + col1 * - - col1 AS col0 FROM tab2 AS cor0
----
-132651
-300763
-456533

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 39 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT - 11 * MIN( + 47 / col1 ) FROM tab0 WHERE NOT + + col1 / + 60 BETWEEN ( NULL ) AND ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT - 11 * MIN ( + 47 / col1 ) FROM tab0 WHERE NOT + + col1 / + 60 BETWEEN ( NULL ) AND ( + col1 )
----
NULL

query I rowsort
SELECT ALL + ( - col0 ) * - + 93 + + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / - + col2 * 63 IS NOT NULL
----

query I rowsort
SELECT - - col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3271
SELECT DISTINCT + + CAST( + - col1 AS SIGNED ) DIV + 67 + 84 FROM tab0 cor0
----
83
84

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT + + CAST ( + - col1 AS INTEGER ) / + 67 + 84 FROM tab0 cor0
----
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3272
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT ALL ( - 24 ) AS col1, + ( 79 ) FROM tab2
----
-24
79
-24
79
-24
79

query I rowsort
SELECT - + col2 FROM tab1 WHERE + + col0 / col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3275
SELECT * FROM tab2 WHERE ( NOT - col2 * - + col2 * + CAST( NULL AS DECIMAL ) + col0 NOT BETWEEN col1 + - col1 AND - 82 + - col0 / col1 )
----

skipif mysql # not compatible
query III rowsort label-3275
SELECT * FROM tab2 WHERE ( NOT - col2 * - + col2 * + CAST ( NULL AS REAL ) + col0 NOT BETWEEN col1 + - col1 AND - 82 + - col0 / col1 )
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT COUNT( + 74 ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT COUNT ( + 74 ) FROM tab1, tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT + - CAST( - - 49 AS SIGNED ) FROM tab1 WHERE - 94 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3278
SELECT + - CAST ( - - 49 AS INTEGER ) FROM tab1 WHERE - 94 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT NULL = ( 63 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT NULL = ( 63 + - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT CAST( NULL AS SIGNED ) + + - 66 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT CAST ( NULL AS INTEGER ) + + - 66 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT DISTINCT 90 + + - col0 FROM tab0 AS cor0
----
-7
3
75

query I rowsort
SELECT ALL col0 - col0 + - ( + col0 ) * - - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - col0 * - + col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT DISTINCT + 52 + + ( CAST( NULL AS SIGNED ) ) + - col2 + + + 54 - + col0 / + - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + 52 + + ( CAST ( NULL AS INTEGER ) ) + - col2 + + + 54 - + col0 / + - col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 - + col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE ( NOT - col2 * 52 IS NULL )
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query III rowsort label-3288
SELECT ALL + + 46 + - ( + col1 ) AS col2, - 64 + - 38 AS col1, - ( + + col2 ) DIV - col2 + - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 215f25d7da99ca331def9d69b4a66718

skipif mysql # not compatible
query III rowsort label-3288
SELECT ALL + + 46 + - ( + col1 ) AS col2, - 64 + - 38 AS col1, - ( + + col2 ) / - col2 + - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 215f25d7da99ca331def9d69b4a66718

query I rowsort
SELECT 43 + 65 + - - col0 AS col1 FROM tab2 AS cor0
----
154
172
183

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 < col0 * 14 * - - col1 * + - col1 + + - ( - 18 ) + col2 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * + + 24 col1 FROM tab0
----
-144
-144
-144

query I rowsort
SELECT - col2 / + + 53 FROM tab2 WHERE NOT NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL - COUNT( * ) * 32 AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - COUNT ( * ) * 32 AS col2 FROM tab0
----
-96

query I rowsort
SELECT ALL col0 + - col2 FROM tab0 WHERE NULL >= NULL
----

query II rowsort
SELECT + col2, 45 + + + col1 AS col0 FROM tab2
----
23
96
40
122
58
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - 88 * + MAX( col0 ) + - 12 AS col2 FROM tab2 WHERE NOT NULL = - + col0 * - - col1 - + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 88 * + MAX ( col0 ) + - 12 AS col2 FROM tab2 WHERE NOT NULL = - + col0 * - - col1 - + - col2
----
NULL

query I rowsort
SELECT col0 + + col1 AS col0 FROM tab0 WHERE NOT NULL IN ( + - col0 * + col2 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * - + col0 >= ( + 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 16, + col1 FROM tab1
----
-16
14
-16
47
-16
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3300
SELECT DISTINCT col2, col0 + + col2 * + + col0 + ( col2 ) DIV - 36 FROM tab2 AS cor0
----
23
1104
40
2623
58
4424

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT col2, col0 + + col2 * + + col0 + ( col2 ) / - 36 FROM tab2 AS cor0
----
23
1104
40
2623
58
4424

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3301
SELECT ALL + CAST( - + col0 AS SIGNED ) DIV + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + CAST ( - + col0 AS INTEGER ) / + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1

query II rowsort
SELECT ALL - col2 AS col2, col0 + + + 58 FROM tab1 AS cor0
----
-59
143
-68
149
-96
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + COUNT( * ) * + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3303
SELECT + COUNT ( * ) * + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL 72 * - MAX( ( + col2 ) ) * + 75 FROM tab0 AS cor0
----
-534600

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL 72 * - MAX ( ( + col2 ) ) * + 75 FROM tab0 AS cor0
----
-534600

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col2 * - 49
----

query II rowsort
SELECT + 50, - col2 AS col1 FROM tab2 cor0
----
50
-23
50
-40
50
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT 31 * + COUNT( * ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3308
SELECT 31 * + COUNT ( * ) AS col1 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT - SUM( DISTINCT 49 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - SUM ( DISTINCT 49 ) FROM tab2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT ALL col0 DIV col2 * + col0 FROM tab2
----
64
75
92

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL col0 / col2 * + col0 FROM tab2
----
64
75
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3311
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) / - + col1 + - col2 NOT BETWEEN - CAST( NULL AS SIGNED ) AND + + col2
----

skipif mysql # not compatible
query III rowsort label-3311
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) / - + col1 + - col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + + col2
----

query I rowsort
SELECT 87 + + ( + col2 ) AS col1 FROM tab2 cor0
----
110
127
145

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 80 + - col1 AS col0 FROM tab1 cor0
----
-127
-85
-94

query I rowsort
SELECT ALL - - col0 + 28 * - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
137139
140505
173355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT DISTINCT - COUNT( + ( + - col1 ) ) * - - 1 + - ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - COUNT ( + ( + - col1 ) ) * - - 1 + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT ( - + COUNT( * ) ) col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3319
SELECT DISTINCT ( - + COUNT ( * ) ) col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT ALL 44 + col1 - + col0 AS col2 FROM tab2
----
36
49
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL COUNT( + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL COUNT ( + col2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT + 97 DIV - col1 AS col1 FROM tab0
----
-1
-4
-97

skipif mysql # not compatible
query I rowsort label-3322
SELECT + 97 / - col1 AS col1 FROM tab0
----
-1
-4
-97

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 98 * + - col1 FROM tab0
----
-2058
-7938
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 < col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3326
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT ALL + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( - col0 ) + - col0
----

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( - col0 ) + - col0
----

query I rowsort
SELECT DISTINCT - + 57 + + col2 FROM tab0 AS cor0
----
-10
-47
42

query I rowsort
SELECT DISTINCT - + col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - 83 * + 75 + - 88 AS col0 FROM tab2 cor0
----
-6313
-6313
-6313

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 9 + + col1 * 1 AS col2 FROM tab2
----
60
76
86

query I rowsort
SELECT col1 + + + col0 - + - col0 * col2 FROM tab0
----
801
9701
978

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = ( NULL ) OR NOT NULL BETWEEN - + 96 AND + col2 + - 61 - ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3335
SELECT * FROM tab0 cor0 WHERE + col0 * + CAST( + - col1 AS SIGNED ) + + 78 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3335
SELECT * FROM tab0 cor0 WHERE + col0 * + CAST ( + - col1 AS INTEGER ) + + 78 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col2 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT + + MAX( ALL - col1 ) + - + ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 40, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + + MAX ( ALL - col1 ) + - + ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 40, col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT + + SUM( DISTINCT - col0 ) * + 33 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6102

skipif mysql # not compatible
query I rowsort label-3338
SELECT + + SUM ( DISTINCT - col0 ) * + 33 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6102

query II rowsort
SELECT ALL - - col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3340
SELECT + COUNT( CAST( - ( - 14 ) AS SIGNED ) ), - 95 AS col2 FROM tab1 AS cor0
----
3
-95

skipif mysql # not compatible
query II rowsort label-3340
SELECT + COUNT ( CAST ( - ( - 14 ) AS INTEGER ) ), - 95 AS col2 FROM tab1 AS cor0
----
3
-95

query II rowsort
SELECT DISTINCT + + 78 * + col1 - - - col1 AS col2, col1 + - col0 AS col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT 98 - - ( col0 ) IN ( + col1, + col2 )
----
14
47
5

query I rowsort
SELECT ALL + 82 FROM tab1 WHERE NULL NOT BETWEEN + + col1 * - 68 + - ( + 71 ) / + + col0 AND + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3344
SELECT 92 + + + col0 AS col0, + 52 FROM tab2 WHERE NOT ( + CAST( + 78 AS SIGNED ) ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-3344
SELECT 92 + + + col0 AS col0, + 52 FROM tab2 WHERE NOT ( + CAST ( + 78 AS INTEGER ) ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 / + 56 IS NULL
----

query I rowsort
SELECT DISTINCT 35 * - 11 * + 95 AS col2 FROM tab1
----
-36575

query II rowsort
SELECT ALL - col0 AS col1, + 30 FROM tab0 WHERE - 67 >= - + 80
----
-15
30
-87
30
-97
30

onlyif mysql # DIV for integer division: 
query II rowsort label-3348
SELECT ALL - col2 DIV + + 21, col1 AS col2 FROM tab0
----
-2
81
-4
1
0
21

skipif mysql # not compatible
query II rowsort label-3348
SELECT ALL - col2 / + + 21, col1 AS col2 FROM tab0
----
-2
81
-4
1
0
21

query I rowsort
SELECT + 2 * - + 6 FROM tab1
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT DISTINCT + ( 96 ) DIV - 23 AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + ( 96 ) / - 23 AS col1 FROM tab0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3351
SELECT - col0 * + col1 AS col1, CAST( - - 0 AS SIGNED ) AS col2 FROM tab0
----
-1215
0
-1827
0
-97
0

skipif mysql # not compatible
query II rowsort label-3351
SELECT - col0 * + col1 AS col1, CAST ( - - 0 AS INTEGER ) AS col2 FROM tab0
----
-1215
0
-1827
0
-97
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT IN ( col2 + + + 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 70 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( 53 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 47 / - col0 + col0 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + + col1 + - + col1 * - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ( - - MAX( - - col0 ) ) + - + 30 col2 FROM tab1
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3356
SELECT ( - - MAX ( - - col0 ) ) + - + 30 col2 FROM tab1
----
61

query I rowsort
SELECT col2 * + 43 + - + ( + + col1 ) + + col0 AS col2 FROM tab2
----
1707
2502
984

query I rowsort
SELECT - 68 + + + 20 AS col1 FROM tab0
----
-48
-48
-48

query II rowsort
SELECT 50 AS col1, - col1 FROM tab1
----
50
-14
50
-47
50
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT + + MIN( ALL 72 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT + + MIN ( ALL 72 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT + - COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3361
SELECT + - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT + col2 * col1 + + 17 + + ( col2 ) DIV - 68 AS col2 FROM tab1
----
1360
312
3212

skipif mysql # not compatible
query I rowsort label-3362
SELECT + col2 * col1 + + 17 + + ( col2 ) / - 68 AS col2 FROM tab1
----
1360
312
3212

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT ALL col2 DIV + col0 + + + 20 AS col2 FROM tab1
----
20
20
21

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL col2 / + col0 + + + 20 AS col2 FROM tab1
----
20
20
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <= + col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT 86 + - 32 + + + MAX( - + col2 ) + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-3365
SELECT 86 + - 32 + + + MAX ( - + col2 ) + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT DISTINCT MAX( ALL - 24 ) * + COUNT( * ) * COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT MAX ( ALL - 24 ) * + COUNT ( * ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL col2 + + 10 / + col0 * + + CAST( NULL AS SIGNED ) + - 50 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL col2 + + 10 / + col0 * + + CAST ( NULL AS INTEGER ) + - 50 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 25 ) AS col0 FROM tab0
----
25
25
25

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT - 40 - - col2 AS col0 FROM tab1
----
19
28
56

query I rowsort
SELECT - 22 + - - 9 * + 2 * + - 13 * + 78 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 010de28d2f16452657f8ea24ffbb6a9f

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( + col1 ) IN ( - col1, + col1 + - ( + 66 ) )
----
10
47
99

query I rowsort
SELECT ALL 29 FROM tab1 AS cor0 WHERE NOT - 5 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 5 AS col0 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 * + 32 - 44 + - col2 col0 FROM tab0 AS cor0
----
2161
2213
2250

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + col2 >= - + 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3377
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + + CAST( NULL AS SIGNED ) + col1 AND - 44
----

skipif mysql # not compatible
query III rowsort label-3377
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + + CAST ( NULL AS INTEGER ) + col1 AND - 44
----

query I rowsort
SELECT + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - 68 AND - + ( + + 8 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 61 AS col0, + col2 col2 FROM tab2 AS cor0
----
-61
23
-61
40
-61
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3380
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, COUNT( DISTINCT 74 ) + ( - - 66 ) + 83 AS col0 FROM tab1 AS cor0
----
NULL
150

skipif mysql # not compatible
query II rowsort label-3380
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT 74 ) + ( - - 66 ) + 83 AS col0 FROM tab1 AS cor0
----
NULL
150

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 * col1 FROM tab0
----
10
-210
47
-3807
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + 12 * + ( COUNT( * ) ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3382
SELECT + 12 * + ( COUNT ( * ) ) AS col2 FROM tab0
----
36

query II rowsort
SELECT + 56 AS col2, - ( + - 2 ) AS col1 FROM tab0
----
56
2
56
2
56
2

query I rowsort
SELECT DISTINCT 99 * + + col0 FROM tab0
----
1485
8613
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 28 BETWEEN - 64 AND - - 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * + - col1 col1, - col2 FROM tab0
----
-1215
-47
-1827
-10
-97
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT SUM( + 97 ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
291
3

skipif mysql # not compatible
query II rowsort label-3388
SELECT SUM ( + 97 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
291
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL col2 * - 23 FROM tab1
----
-1357
-1564
-2208

query I rowsort
SELECT - 46 * col0 * + - col2 AS col1 FROM tab0
----
32430
40020
441738

query I rowsort
SELECT ALL 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + 71 + + + 89 + - col2 AS col0 FROM tab0
----
113
150
61

query I rowsort
SELECT + 96 + + ( col0 ) + + 99 FROM tab0 cor0
----
210
282
292

query II rowsort
SELECT - 1 + - col2 AS col2, - 51 + + + col2 + - 23 FROM tab2 AS cor0
----
-24
-51
-41
-34
-59
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT + 47 DIV + 91 + + - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3396
SELECT + 47 / + 91 + + - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + + col2 + + ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 34 ) + + 77 * - - col2 * - col1 * - col1 col2 FROM tab0 AS cor0
----
23744225
339536
7589

query I rowsort
SELECT - + col1 * - + col1 FROM tab0 AS cor0 WHERE col2 * + 62 * - + col0 = 96
----

query I rowsort
SELECT + col0 + col0 + + col0 AS col0 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT ALL - - CAST( NULL AS SIGNED ) + - - 86 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - - CAST ( NULL AS INTEGER ) + - - 86 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 22 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT + ( - col0 ) FROM tab1 cor0 WHERE ( col2 ) BETWEEN col1 * 71 * col2 / + - col1 AND + 26 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col2 + col0 + + + col0 - - + col2 * col1, 94 col2 FROM tab2
----
1339
94
3325
94
4161
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3406
SELECT - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3407
SELECT 7 DIV - + COUNT( * ) col1 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3407
SELECT 7 / - + COUNT ( * ) col1 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT COUNT( * ) * - ( + + 69 ) col0 FROM tab0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3408
SELECT COUNT ( * ) * - ( + + 69 ) col0 FROM tab0
----
-207

query II rowsort
SELECT + col1 AS col2, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT + 22 - + col2 FROM tab2 AS cor0
----
-1
-18
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3411
SELECT CAST( NULL AS DECIMAL ) - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT CAST ( NULL AS REAL ) - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * + + 17 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + 76 * - - 32 + - col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT SUM( col2 ) * + CAST( NULL AS SIGNED ) + + 83 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT SUM ( col2 ) * + CAST ( NULL AS INTEGER ) + + 83 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col2 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + - COUNT( + col2 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3416
SELECT + - COUNT ( + col2 ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - 64 * - - COUNT( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3417
SELECT - 64 * - - COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + - col0 >= - - 91
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 43 <= 55 / + - col0 * - - 20 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 43 <= 55 / + - col0 * - - 20 * - col0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 < + + 13
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - col1 AND + - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3423
SELECT ALL 35 * + CAST( NULL AS SIGNED ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3423
SELECT ALL 35 * + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT + 63 DIV + - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT + 63 / + - col2 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL MAX( - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL MAX ( - col1 ) FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + MAX( ALL + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3427
SELECT + MAX ( ALL + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT SUM( ALL + - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT SUM ( ALL + - col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT ALL + col2 * - ( - 42 ) AS col2 FROM tab0 AS cor0
----
1974
4158
420

query II rowsort
SELECT - col0 AS col1, 72 AS col0 FROM tab0 cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT - 29 + - COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3431
SELECT - 29 + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
-29

query I rowsort
SELECT 82 + - - col0 + - + col0 AS col2 FROM tab2
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL - MIN( DISTINCT - - 69 ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - MIN ( DISTINCT - - 69 ) AS col2 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL + COUNT( * ) + + + 79 col0 FROM tab1 AS cor0 WHERE + col1 = - col2 - - col1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3435
SELECT ALL + COUNT ( * ) + + + 79 col0 FROM tab1 AS cor0 WHERE + col1 = - col2 - - col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col1 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col1 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL + col2 * - col2 AS col2, col1 AS col2 FROM tab1 cor0
----
-3481
5
-4624
47
-9216
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT ALL - col2 DIV 1 + + + 82 AS col1 FROM tab0 AS cor0
----
-17
35
72

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - col2 / 1 + + + 82 AS col1 FROM tab0 AS cor0
----
-17
35
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL 46 + - COUNT( * ) + COUNT( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 46 + - COUNT ( * ) + COUNT ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( - col1 ), + ( - - ( col2 ) ) * - col0 )
----

query I rowsort
SELECT 61 + 82 FROM tab1
----
143
143
143

query I rowsort
SELECT - col0 * 41 + - 82 + 94 AS col0 FROM tab1
----
-2079
-3473
-3719

query I rowsort
SELECT 68 + ( col1 ) + + col2 FROM tab0
----
168
196
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * col2 col1 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3447
SELECT col2 + - - 92 AS col2, col1 + + CAST( - - col2 AS SIGNED ) - + 90 * - col2 AS col1 FROM tab1
----
151
5374
160
6235
188
8750

skipif mysql # not compatible
query II rowsort label-3447
SELECT col2 + - - 92 AS col2, col1 + + CAST ( - - col2 AS INTEGER ) - + 90 * - col2 AS col1 FROM tab1
----
151
5374
160
6235
188
8750

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3448
SELECT ALL + CAST( - col0 AS SIGNED ) DIV + col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + CAST ( - col0 AS INTEGER ) / + col1 FROM tab0
----
-4
-97
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 59 <> - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 NOT BETWEEN - - col2 AND col1 )
----

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 85 + + 35 < - ( + col2 ) - - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT + 29 AS col2, + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
29
9

skipif mysql # not compatible
query II rowsort label-3453
SELECT + 29 AS col2, + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
29
9

query II rowsort
SELECT - 86, col2 AS col0 FROM tab0 AS cor0
----
-86
10
-86
47
-86
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + ( + COUNT( + - 4 ) ) col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3455
SELECT + ( + COUNT ( + - 4 ) ) col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT - SUM( - + col1 ) * + COUNT( * ) + + - MIN( - - col2 ) FROM tab1 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-3456
SELECT - SUM ( - + col1 ) * + COUNT ( * ) + + - MIN ( - - col2 ) FROM tab1 AS cor0
----
139

query I rowsort
SELECT + col0 + - + col0 + + ( + + col0 ) AS col1 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + col1, col2 + - col2 * col0 col1 FROM tab0 WHERE NOT ( - col1 + + col0 + col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2 WHERE col1 >= NULL
----

query I rowsort
SELECT - col1 + + 14 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 63 + + - 77 col2 FROM tab0 AS cor0
----
-14
1246
5026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 47 ) col2 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + 52 + + col1 FROM tab1
----
57
66
99

query I rowsort
SELECT - col0 + + + 15 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + - 89 ) * + ( col2 ) + - col2 AND 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3465
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST( + + 27 AS SIGNED ) NOT IN ( + col2, + 92, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3465
SELECT DISTINCT * FROM tab2 cor0 WHERE + CAST ( + + 27 AS INTEGER ) NOT IN ( + col2, + 92, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 37 + + col0 FROM tab1 AS cor0
----
14
48
54

query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT 19 + - MAX( col1 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3468
SELECT 19 + - MAX ( col1 ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - - 58 + - col0 FROM tab0 AS cor0
----
-29
-39
43

query I rowsort
SELECT DISTINCT col1 + - 74 AS col0 FROM tab0 AS cor0
----
-53
-73
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL + COUNT( * ) * + MAX( ALL - + CAST( + col1 AS SIGNED ) ) + - 79 FROM tab2 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + COUNT ( * ) * + MAX ( ALL - + CAST ( + col1 AS INTEGER ) ) + - 79 FROM tab2 AS cor0
----
-232

query I rowsort
SELECT + + 91 AS col2 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT - col2 col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) <= + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3473
SELECT - col2 col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) <= + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3475
SELECT ALL 59 + col2 DIV + col0 + col2 AS col0, + 31 AS col1 FROM tab1
----
118
31
127
31
156
31

skipif mysql # not compatible
query II rowsort label-3475
SELECT ALL 59 + col2 / + col0 + col2 AS col0, + 31 AS col1 FROM tab1
----
118
31
127
31
156
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT COUNT( * ) * + 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT COUNT ( * ) * + 66 FROM tab2
----
198

query I rowsort
SELECT DISTINCT + col1 * + col2 - 7 FROM tab2
----
1166
3073
3879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col1 * + col2 * + col2 col2 FROM tab0
----
421443
7693947
90300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT 63 * - COUNT( ALL + col0 ) * + COUNT( * ) DIV + + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3479
SELECT 63 * - COUNT ( ALL + col0 ) * + COUNT ( * ) / + + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL COUNT( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3480
SELECT ALL COUNT ( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 - + col2 < + - 8
----
87
21
10

query II rowsort
SELECT + 50 * + col0 AS col0, - col1 FROM tab0
----
4350
-21
4850
-1
750
-81

query I rowsort
SELECT ALL - - 28 AS col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT - - 99 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT - col1 * ( + col2 ) + col2 AS col0 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3487
SELECT ALL col1 * ( - col1 ) col2, + CAST( 37 AS SIGNED ) * - col0 AS col2 FROM tab1
----
-196
-1887
-2209
-3367
-25
-3145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3487
SELECT ALL col1 * ( - col1 ) col2, + CAST ( 37 AS INTEGER ) * - col0 AS col2 FROM tab1
----
-196
-1887
-2209
-3367
-25
-3145

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - + col2 < NULL
----

query I rowsort
SELECT 36 * + - col1 FROM tab1
----
-1692
-180
-504

query II rowsort
SELECT ALL col0 * col1 AS col2, + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1215
15
1827
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL MAX( ALL + - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL MAX ( ALL + - col2 ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE 87 NOT BETWEEN - col1 AND - col0 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 77 + + col2 FROM tab2
----
1794
3120
4524

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - ( + + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - - MAX( 76 ) + 2 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3495
SELECT - - MAX ( 76 ) + 2 FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3496
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 + - + CAST( NULL AS DECIMAL ) * - ( - col1 ) * col2 * + - col1 * - col2 BETWEEN ( col0 / + col1 * col0 ) AND 39
----

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 + - + CAST ( NULL AS REAL ) * - ( - col1 ) * col2 * + - col1 * - col2 BETWEEN ( col0 / + col1 * col0 ) AND 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3497
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3497
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT DISTINCT + ( - - ( + - col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col2 + - ( - col0 ) AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL col0 + 41 AS col0 FROM tab0
----
128
138
56

query I rowsort
SELECT DISTINCT + 80 * - + col0 * col0 FROM tab1
----
-208080
-578000
-662480

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT 7 * - + COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT 7 * - + COUNT ( * ) FROM tab2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - - ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3505
SELECT - col2 * - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT - col2 * - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - col2 >= 94
----
10
47
99

query I rowsort
SELECT - 50 * + - col1 FROM tab1 AS cor0
----
2350
250
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col0 FROM tab0
----
19
19
19

query II rowsort
SELECT + 31 AS col2, ( - col1 ) AS col0 FROM tab2
----
31
-51
31
-67
31
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + + SUM( + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3510
SELECT + + SUM ( + + col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3511
SELECT + + COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3511
SELECT + + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT col2 * - + col1 - - col1 + - - col2 * col1 + - + col2 + + 68 * + - col2 AS col1 FROM tab2 AS cor0
----
-1536
-2683
-3935

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3513
SELECT - CAST( - col1 AS SIGNED ) * - col1 - - - 1 * + col0, + 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-3513
SELECT - CAST ( - col1 AS INTEGER ) * - col1 - - - 1 * + col0, + 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + + 69 FROM tab1 AS cor0
----
116
74
83

query I rowsort
SELECT + + 71 + + col1 AS col1 FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT - col1 + - 11 FROM tab2 AS cor0
----
-62
-78
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT DISTINCT 14 DIV - col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT 14 / - col1 AS col2 FROM tab2
----
0

query I rowsort
SELECT + col2 + + col0 + + 93 FROM tab0
----
155
190
289

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT MAX( + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT MAX ( + col1 ) FROM tab1
----
47

query I rowsort
SELECT ALL + 72 AS col1 FROM tab1
----
72
72
72

query III rowsort
SELECT * FROM tab1 WHERE - + 14 / + - col2 + + - col2 IS NULL
----

query I rowsort
SELECT ALL + + 94 FROM tab0 WHERE NOT - + col1 IS NULL
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + COUNT( * ) * + COUNT( + col2 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3523
SELECT + COUNT ( * ) * + COUNT ( + col2 ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + + MAX( ALL - col0 ) + + 78 AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + + MAX ( ALL - col0 ) + + 78 AS col0 FROM tab0 AS cor0
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 54 < NULL
----

query I rowsort
SELECT + ( + - 58 ) FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3528
SELECT + - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 72 + - 73 FROM tab1 AS cor0
----
-145
-145
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT + MIN( ALL - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3530
SELECT + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - 73 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
3358
4672
5475

query II rowsort
SELECT - col1 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT DISTINCT col0, col0 + col0 FROM tab0 AS cor0
----
15
30
87
174
97
194

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + ( - - col0 ) >= 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) > 67 / - + col0
----

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab2 cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - - 76
----

query I rowsort
SELECT ALL + + col2 + + ( col1 ) * + col2 * - col1 + - col0 FROM tab0 WHERE - col2 * + col2 * + - col1 * + col1 IS NOT NULL
----
-308335
-4487
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT SUM( ALL + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT SUM ( ALL + col1 ) FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + 76 * - 60 * 32 IS NOT NULL
----

query I rowsort
SELECT 37 * ( - 23 ) FROM tab1
----
-851
-851
-851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL + CAST( NULL AS SIGNED ) * - - col1 - - col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3543
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col1 - - col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - 58 ) * - + col2 + + + col2 = NULL
----

query II rowsort
SELECT ALL - 68 * + col1 AS col2, - 58 AS col2 FROM tab1 AS cor0
----
-3196
-58
-340
-58
-952
-58

query I rowsort
SELECT DISTINCT col1 * - ( - 78 ) AS col1 FROM tab1 AS cor0
----
1092
3666
390

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 65 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL BETWEEN 26 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + 37 col1 FROM tab0 AS cor0
----
118
38
58

query I rowsort
SELECT DISTINCT 60 + - col0 AS col2 FROM tab2 AS cor0
----
-15
-4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL - COUNT( * ) + - - 71 AS col0 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - COUNT ( * ) + - - 71 AS col0 FROM tab1 AS cor0
----
68

query I rowsort
SELECT + col0 * - - col2 FROM tab0 cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NOT 98 + + col1 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT - 21 AS col1, + COUNT( * ) FROM tab2
----
-21
3

skipif mysql # not compatible
query II rowsort label-3554
SELECT - 21 AS col1, + COUNT ( * ) FROM tab2
----
-21
3

query I rowsort
SELECT - col0 + - 96 + + col0 * col1 * + col1 FROM tab1
----
1944
200832
9849

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT MIN( DISTINCT + - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT MIN ( DISTINCT + - col0 ) AS col0 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col0 FROM tab1
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT 16 DIV - col0 + - ( + col0 ) DIV 63 * - col1 FROM tab0
----
-1
1
21

skipif mysql # not compatible
query I rowsort label-3558
SELECT 16 / - col0 + - ( + col0 ) / 63 * - col1 FROM tab0
----
-1
1
21

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT - COUNT( * ) + - - 74 * COUNT( * ) * + 29 FROM tab2
----
6435

skipif mysql # not compatible
query I rowsort label-3560
SELECT - COUNT ( * ) + - - 74 * COUNT ( * ) * + 29 FROM tab2
----
6435

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 46 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3562
SELECT + col2 * 53 DIV + col1 col0, + col2 + - col0 + col1 FROM tab1
----
363
59
625
-21
76
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3562
SELECT + col2 * 53 / + col1 col0, + col2 + - col0 + col1 FROM tab1
----
363
59
625
-21
76
24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3564
SELECT - 52 * COUNT( * ) AS col0, + 65 FROM tab2 AS cor0
----
-156
65

skipif mysql # not compatible
query II rowsort label-3564
SELECT - 52 * COUNT ( * ) AS col0, + 65 FROM tab2 AS cor0
----
-156
65

query I rowsort
SELECT DISTINCT + + 87 * + 63 * - - 38 FROM tab0 AS cor0
----
208278

query I rowsort
SELECT - 14 * - - ( col2 ) AS col2 FROM tab0
----
-1386
-140
-658

query II rowsort
SELECT DISTINCT col1, - 2 FROM tab1
----
14
-2
47
-2
5
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT + ( + ( - COUNT( * ) ) ), - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3568
SELECT + ( + ( - COUNT ( * ) ) ), - COUNT ( * ) FROM tab2
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, col2 col0 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + 41 + col2 + - col0 + 12 * - col1 FROM tab0 WHERE NOT 18 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 col0 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL col2 AS col1, - col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL col0 * + + col2 * + 26 + 32 + + + 54 * 44 FROM tab0 AS cor0
----
20738
25028
252086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * + col2 + + + col2 col1 FROM tab2 AS cor0
----
1081
2600
4408

query II rowsort
SELECT DISTINCT + col2, - col0 * 26 AS col1 FROM tab2 AS cor0
----
23
-1196
40
-1664
58
-1950

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + 91, + col1 AS col1 FROM tab2 cor0
----
91
51
91
67
91
77

query I rowsort
SELECT DISTINCT + 78 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT 3 * - MAX( 66 ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-3580
SELECT 3 * - MAX ( 66 ) FROM tab0
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT ALL + MAX( - + CAST( + 69 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + MAX ( - + CAST ( + 69 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT - + 55 + - col1 + 94 + + col2 FROM tab0 AS cor0
----
137
28
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 37 + + col0 - col1 col1 FROM tab0 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT ALL - 5 * col2 + + 2 AS col1 FROM tab1 cor0
----
-293
-338
-478

query I rowsort
SELECT + - col0 + + 24 * - 30 AS col0 FROM tab2 AS cor0
----
-766
-784
-795

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 / - 73 * + ( - col0 ) * - 31 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3587
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE + 74 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE + 74 IS NOT NULL
----
NULL

query I rowsort
SELECT - 27 + - col1 FROM tab0 AS cor0
----
-108
-28
-48

query I rowsort
SELECT 72 * + 14 * - + col0 FROM tab0
----
-15120
-87696
-97776

query I rowsort
SELECT ALL 7 + - col2 AS col0 FROM tab1
----
-52
-61
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col0 - 77 * + 96 * + - col0 FROM tab0
----
110895
643191
717121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3593
SELECT - SUM( - 69 ) AS col1 FROM tab2 WHERE + + CAST( col0 AS SIGNED ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT - SUM ( - 69 ) AS col1 FROM tab2 WHERE + + CAST ( col0 AS INTEGER ) >= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - 21 - - 71 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - col1
----

query I rowsort
SELECT DISTINCT + col0 - 16 + 0 - col0 - + 61 * 82 AS col2 FROM tab0
----
-5018

query II rowsort
SELECT 87, + col0 FROM tab1
----
87
51
87
85
87
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * 11 * - + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * 11 * - + COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT 31 * - 95 FROM tab0
----
-2945
-2945
-2945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT - COUNT( * ) * + COUNT( * ) * + COUNT( * ) - + CAST( - - 26 AS SIGNED ) * + COUNT( * ) + + + COUNT( * ) FROM tab2 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3600
SELECT - COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) - + CAST ( - - 26 AS INTEGER ) * + COUNT ( * ) + + + COUNT ( * ) FROM tab2 cor0
----
-102

query I rowsort
SELECT 39 - col0 + col2 AS col2 FROM tab0 AS cor0
----
-38
41
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT DISTINCT + ( - - ( + col1 ) ) DIV 47 * + - col0 + col1 col1 FROM tab1 AS cor0
----
-44
14
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3602
SELECT DISTINCT + ( - - ( + col1 ) ) / 47 * + - col0 + col1 col1 FROM tab1 AS cor0
----
-44
14
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT - CAST( - - 31 AS SIGNED ) * + + col1 FROM tab0 cor0
----
-2511
-31
-651

skipif mysql # not compatible
query I rowsort label-3603
SELECT - CAST ( - - 31 AS INTEGER ) * + + col1 FROM tab0 cor0
----
-2511
-31
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT 92 * - - SUM( + 74 ) AS col2 FROM tab2 AS cor0
----
20424

skipif mysql # not compatible
query I rowsort label-3604
SELECT 92 * - - SUM ( + 74 ) AS col2 FROM tab2 AS cor0
----
20424

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT col2 DIV + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT col2 / + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 35 = - col0 * - col1 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3607
SELECT ALL COUNT( * ) col0, 61 FROM tab2 AS cor0
----
3
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3607
SELECT ALL COUNT ( * ) col0, 61 FROM tab2 AS cor0
----
3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL COUNT( ALL col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL COUNT ( ALL col2 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL + COUNT( + + ( + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + COUNT ( + + ( + col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3610
SELECT * FROM tab1 WHERE NOT ( NOT NULL IN ( + col0 / + - CAST( NULL AS SIGNED ), col2, - + col2 * col2 + + col2, - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-3610
SELECT * FROM tab1 WHERE NOT ( NOT NULL IN ( + col0 / + - CAST ( NULL AS INTEGER ), col2, - + col2 * col2 + + col2, - CAST ( NULL AS REAL ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col2 - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 25 * - 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN col0 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col0 FROM tab0 WHERE NOT - col1 * - ( - 76 ) <= 1
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( 43 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT 44 AS col1, COUNT( * ) AS col0 FROM tab2
----
44
3

skipif mysql # not compatible
query II rowsort label-3616
SELECT 44 AS col1, COUNT ( * ) AS col0 FROM tab2
----
44
3

query I rowsort
SELECT + 87 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT + col2 DIV - 67 + col2 AS col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3618
SELECT + col2 / - 67 + col2 AS col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL + ( + + 55 ) * - - ( + 66 ) * COUNT( DISTINCT - col1 ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
10887

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + ( + + 55 ) * - - ( + 66 ) * COUNT ( DISTINCT - col1 ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
10887

query I rowsort
SELECT + col2 * + + col2 * - + col0 + + col0 - + 95 FROM tab1 AS cor0 WHERE 61 IS NOT NULL
----
-295895
-420788
-470060

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + 33 * - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT + 33 * - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT ALL col1 + - - col2 AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + col1 - col1 + col1 + - col2 * - 14 + - col2 AS col1 FROM tab0 AS cor0
----
1288
151
692

query I rowsort
SELECT ALL col1 + + + col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3627
SELECT - 96 - + 76 + - col1 AS col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-223
NULL
-239
NULL
-249
NULL

skipif mysql # not compatible
query II rowsort label-3627
SELECT - 96 - + 76 + - col1 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-223
NULL
-239
NULL
-249
NULL

query II rowsort
SELECT ALL + 89 * + - col2 + 3, - col1 AS col1 FROM tab2 cor0
----
-2044
-51
-3557
-77
-5159
-67

query I rowsort
SELECT DISTINCT + col1 + + col0 * - col2 + + - col2 * - col2 AS col1 FROM tab0
----
-749
1585
199

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3630
SELECT CAST( NULL AS SIGNED ) + - col0 + - col1 - 12 - + - col1, CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3630
SELECT CAST ( NULL AS INTEGER ) + - col0 + - col1 - 12 - + - col1, CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT DISTINCT col1 - - CAST( - ( - 95 ) AS SIGNED ) * 64 + col1 FROM tab2
----
6182
6214
6234

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT col1 - - CAST ( - ( - 95 ) AS INTEGER ) * 64 + col1 FROM tab2
----
6182
6214
6234

query I rowsort
SELECT + ( - - 89 ) + col0 * - col0 FROM tab2
----
-2027
-4007
-5536

query I rowsort
SELECT col1 + + + col2 + + 16 FROM tab2
----
133
141
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3634
SELECT DISTINCT - col0 * + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - col0 * + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * + col1 * 67 * col2 + + 91 + + - col2 * 14 AS col0 FROM tab1
----
1165400
14560115
8643355

query II rowsort
SELECT ALL col0 * - col2 AS col1, col1 * - col0 AS col0 FROM tab0
----
-705
-1215
-870
-1827
-9603
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL - COUNT( * ) * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 29 + + 50 AS col1 FROM tab0
----
79
79
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3639
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + + CAST ( NULL AS REAL ) + + + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL - col1 + CAST( NULL AS SIGNED ) + - 75 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) + - 75 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + 29 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3641
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + 29 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 / + col1 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT DISTINCT - col1 DIV - + col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - col1 / - + col2 FROM tab0
----
0
1
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 38, col2 - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT - CAST( NULL AS SIGNED ) * + - col2 * - - 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT - CAST ( NULL AS INTEGER ) * + - col2 * - - 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT - - CAST( - - col2 AS SIGNED ) + + col0 + - 12 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3647
SELECT - - CAST ( - - col2 AS INTEGER ) + + col0 + - 12 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * + - 10 AS col1 FROM tab2 AS cor0
----
510
670
770

query I rowsort
SELECT + - 80 AS col1 FROM tab0 cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT + SUM( ALL + CAST( + 33 AS SIGNED ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3650
SELECT + SUM ( ALL + CAST ( + 33 AS INTEGER ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - 51 * - 11 FROM tab2 AS cor0
----
561
561
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT + 92 * + - 91 + + 97 + + + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT + 92 * + - 91 + + 97 + + + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - ( + ( COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3653
SELECT - ( + ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL col2, 71 * - - 28 FROM tab2 AS cor0
----
23
1988
40
1988
58
1988

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT - 67 DIV - + 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT - 67 / - + 90 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col1 * - + 88 * ( - + col0 ), + col0 FROM tab1
----
37400
85
376376
91
62832
51

query II rowsort
SELECT 89 AS col1, col2 AS col1 FROM tab1
----
89
59
89
68
89
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT + COUNT( * ) DIV + 35 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT + COUNT ( * ) / + 35 FROM tab0
----
0

query II rowsort
SELECT DISTINCT ( - + col2 ), col1 AS col0 FROM tab0
----
-10
21
-47
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + 54 * + col1 col2 FROM tab0
----
15
4374
87
1134
97
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL ( + + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL ( + + COUNT ( * ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + col2 BETWEEN NULL AND + 19
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 NOT BETWEEN - - col2 AND NULL
----

query II rowsort
SELECT col2 AS col0, - col2 AS col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT - ( + col0 ) DIV - + col1 AS col2 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT - ( + col0 ) / - + col1 AS col2 FROM tab1 AS cor0
----
1
17
3

query II rowsort
SELECT + col0 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT - COUNT( - col1 ) + MAX( ALL + - col2 ) col1 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3669
SELECT DISTINCT - COUNT ( - col1 ) + MAX ( ALL + - col2 ) col1 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT DISTINCT col0 + + + col2 * 71 * 80 - - 30 FROM tab2
----
130716
227294
329545

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT col2 + col2 * col2 DIV - col1 + - col2 FROM tab1
----
-658
-696
-98

skipif mysql # not compatible
query I rowsort label-3671
SELECT col2 + col2 * col2 / - col1 + - col2 FROM tab1
----
-658
-696
-98

query II rowsort
SELECT ALL + 77 + - 27 AS col1, + col0 FROM tab2 AS cor0
----
50
46
50
64
50
75

query I rowsort
SELECT ALL - ( - col1 ) + + 19 FROM tab1 AS cor0
----
24
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT MIN( DISTINCT + - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3674
SELECT MIN ( DISTINCT + - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT + 79 * - - col2 AS col2 FROM tab0
----
3713
7821
790

query II rowsort
SELECT ALL + col1 AS col2, col1 * - - col1 FROM tab1
----
14
196
47
2209
5
25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 18 IN ( - col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 - 66 AS col2 FROM tab1
----
-7
2
30

query I rowsort
SELECT ALL col0 - + + col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 76 * - + col0 - 17 AS col1 FROM tab1
----
3859
6443
6899

query I rowsort
SELECT + - col2 FROM tab1 cor0 WHERE NULL >= - ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT ALL - 28 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-28
3

skipif mysql # not compatible
query II rowsort label-3682
SELECT ALL - 28 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-28
3

query II rowsort
SELECT - 24 * - + 89 * - col2 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
-126024
-59
-145248
-68
-205056
-96

query I rowsort
SELECT ALL 17 + col2 AS col1 FROM tab0 WHERE NOT 45 IN ( 62 )
----
116
27
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 38 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT 74 + - 74 * + COUNT( * ) FROM tab1 WHERE - col0 * col1 < + 42
----
-148

skipif mysql # not compatible
query I rowsort label-3686
SELECT 74 + - 74 * + COUNT ( * ) FROM tab1 WHERE - col0 * col1 < + 42
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( ALL col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( ALL col0 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT - 70 + - col2 DIV - col0 FROM tab1
----
-69
-70
-70

skipif mysql # not compatible
query I rowsort label-3688
SELECT - 70 + - col2 / - col0 FROM tab1
----
-69
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT 38 - COUNT( - 90 + col2 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3689
SELECT 38 - COUNT ( - 90 + col2 ) AS col1 FROM tab2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + 60 + MIN( DISTINCT - col1 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3690
SELECT + 60 + MIN ( DISTINCT - col1 ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT SUM( ALL + 30 ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3691
SELECT SUM ( ALL + 30 ) AS col2 FROM tab0
----
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + ( + 38 ) / col0 AND col0
----

query I rowsort
SELECT 80 AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT - col2 * + col0 AS col1 FROM tab0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-3694
SELECT - col2 * + col0 AS col1 FROM tab0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT + 94 - ( MIN( + col1 ) ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3695
SELECT + 94 - ( MIN ( + col1 ) ) AS col2 FROM tab0
----
93

query I rowsort
SELECT DISTINCT + ( 86 ) * + col1 + 19 * col0 FROM tab2
----
5260
7187
7838

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * - col0 <= col1 / + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT - COUNT( * ) + + 57 * CAST( + 14 AS SIGNED ) FROM tab1
----
795

skipif mysql # not compatible
query I rowsort label-3698
SELECT - COUNT ( * ) + + 57 * CAST ( + 14 AS INTEGER ) FROM tab1
----
795

query III rowsort
SELECT * FROM tab2 WHERE 58 * 81 IS NULL
----

query I rowsort
SELECT + ( 18 ) AS col2 FROM tab1 WHERE + 14 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( - 16 )
----

query I rowsort
SELECT col0 * col1 - + col1 FROM tab1
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT SUM( - ( 50 ) ) FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT SUM ( - ( 50 ) ) FROM tab2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT COUNT( * ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE 26 * col1 <> col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 WHERE + col0 * + 75 <= 60 * - col2 + + 56
----

query I rowsort
SELECT ALL - 3 FROM tab1 WHERE NOT ( - col1 + col2 ) IS NULL
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( 98 ) * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT SUM( col1 ) - - 54 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT SUM ( col1 ) - - 54 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - ( col2 )
----
NULL

query I rowsort
SELECT ( + ( col0 ) ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 IN ( + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT + COUNT( DISTINCT col2 ) * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT + COUNT ( DISTINCT col2 ) * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT DISTINCT CAST( NULL AS SIGNED ) + 9 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 9 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + + 29 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + + 29 FROM tab1 AS cor0
----
32

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - 73 + - 43 FROM tab0
----
-1138
-6394
-7124

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - 23 * - MIN( ALL - col1 ) AS col0 FROM tab0
----
-1863

skipif mysql # not compatible
query I rowsort label-3718
SELECT - 23 * - MIN ( ALL - col1 ) AS col0 FROM tab0
----
-1863

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT 39 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT * FROM tab0 WHERE 47 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL - col1 DIV col2 + col1 AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - col1 / col2 + col1 AS col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT + - 97 DIV - col0 - 41 FROM tab1 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-3723
SELECT + - 97 / - col0 - 41 FROM tab1 AS cor0
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 * + col2 - col2 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 - 56 col0 FROM tab0 AS cor0 WHERE - col2 + col0 <= ( col0 )
----
1159
1771
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT - - MAX( ALL col2 ) * + 41 + - 98 AS col0 FROM tab0 AS cor0
----
3961

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT - - MAX ( ALL col2 ) * + 41 + - 98 AS col0 FROM tab0 AS cor0
----
3961

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - 69 + col1 BETWEEN + col2 * + col2 AND ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( 19 ) * - 55 BETWEEN - col1 AND + 98 / + 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT + COUNT( * ) - + 0 * - CAST( COUNT( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + COUNT ( * ) - + 0 * - CAST ( COUNT ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 56 + col2 + col1 FROM tab0
----
-25
44
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT + col2 + - + 18 DIV 13 AS col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-3731
SELECT + col2 + - + 18 / 13 AS col0 FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT + 46 - - COUNT( * ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT + 46 - - COUNT ( * ) FROM tab0
----
49

query I rowsort
SELECT 33 + - - col2 AS col2 FROM tab2
----
56
73
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL ( - 48 ) AS col0 FROM tab1
----
-48
-48
-48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 60 * - + col1 + + col1 AS col2 FROM tab1 AS cor0
----
2867
305
854

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - COUNT( DISTINCT 94 ) * 59 AS col2 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3738
SELECT - COUNT ( DISTINCT 94 ) * 59 AS col2 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( col0 * + 56 + - col0 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT col1 DIV + + col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3740
SELECT col1 / + + col1 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - ( - - ( - 93 ) ) * + col0 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT - MAX( 58 ) * - 19 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1102

skipif mysql # not compatible
query I rowsort label-3743
SELECT - MAX ( 58 ) * - 19 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3744
SELECT ALL + col2, - CAST( + + col2 AS SIGNED ) + - col0 FROM tab0
----
10
-97
47
-62
99
-196

skipif mysql # not compatible
query II rowsort label-3744
SELECT ALL + col2, - CAST ( + + col2 AS INTEGER ) + - col0 FROM tab0
----
10
-97
47
-62
99
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-3745
SELECT DISTINCT - COUNT( * ) AS col2, 75 AS col0 FROM tab2
----
-3
75

skipif mysql # not compatible
query II rowsort label-3745
SELECT DISTINCT - COUNT ( * ) AS col2, 75 AS col0 FROM tab2
----
-3
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3746
SELECT ALL - COUNT( * ) AS col2, - MIN( DISTINCT 87 ) col0 FROM tab2 cor0
----
-3
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3746
SELECT ALL - COUNT ( * ) AS col2, - MIN ( DISTINCT 87 ) col0 FROM tab2 cor0
----
-3
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL + + ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab0 AS cor0
----
-91
-91
-91

query II rowsort
SELECT - col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 50 / + 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + + 97 + COUNT( * ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3752
SELECT + + 97 + COUNT ( * ) FROM tab0 AS cor0
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 * col1 col2 FROM tab2 AS cor0
----
-2907
-3819
-4389

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) * col2 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 28 + + - col2 FROM tab0 AS cor0
----
-19
-71
18

query I rowsort
SELECT 88 + - col1 FROM tab1 cor0
----
41
74
83

query I rowsort
SELECT + col0 + + + col1 * + + col2 - + 67 * 66 AS col1 FROM tab2 AS cor0
----
-1278
-3203
-461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT ALL ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3760
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3760
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 IN ( col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab0 WHERE ( - col1 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT + COUNT( * ) + - 44 AS col2 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + COUNT ( * ) + - 44 AS col2 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL + + 80 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + + 80 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
83

query I rowsort
SELECT ALL col2 + - - 37 FROM tab0 AS cor0
----
136
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----
0

query I rowsort
SELECT DISTINCT 35 - + + ( + col1 ) AS col2 FROM tab0
----
-46
14
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT DISTINCT COUNT( * ) * + - ( + + 53 ) AS col0 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT COUNT ( * ) * + - ( + + 53 ) AS col0 FROM tab1
----
-159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3769
SELECT - col0 * - CAST( NULL AS DECIMAL ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT - col0 * - CAST ( NULL AS REAL ) + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT 61 * SUM( + 63 ) + - MIN( - col1 ) * + 69 FROM tab2
----
16842

skipif mysql # not compatible
query I rowsort label-3770
SELECT 61 * SUM ( + 63 ) + - MIN ( - col1 ) * + 69 FROM tab2
----
16842

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - ( + + 55 ) + + MIN( ALL col1 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3771
SELECT - ( + + 55 ) + + MIN ( ALL col1 ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT + + col1 + col0 * 9 FROM tab0 AS cor0
----
216
804
874

query I rowsort
SELECT DISTINCT + col0 + 72 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT ALL - + col2 * col2 + + + ( col2 ) AS col0 FROM tab0 AS cor0
----
-2162
-90
-9702

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND ( + - col0 * ( + - ( col2 ) ) )
----

query I rowsort
SELECT ALL + col2 + - 74 * + + col2 AS col1 FROM tab2 AS cor0
----
-1679
-2920
-4234

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT DISTINCT 28 - - - col1 DIV col0 FROM tab0 AS cor0
----
23
28

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT 28 - - - col1 / col0 FROM tab0 AS cor0
----
23
28

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NULL IN ( 32 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 >= + + 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT MAX( DISTINCT - 29 ) col0 FROM tab1, tab0 AS cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3780
SELECT DISTINCT MAX ( DISTINCT - 29 ) col0 FROM tab1, tab0 AS cor0
----
-29

query I rowsort
SELECT - ( + - col0 ) AS col0 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 1 ) col1 FROM tab2
----
1

query II rowsort
SELECT ALL col1 AS col2, - col0 AS col0 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + COUNT( + + 20 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3784
SELECT + COUNT ( + + 20 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL - + SUM( - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL - + SUM ( - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT COUNT( * ) AS col0, COUNT( * ) col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3788
SELECT COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE 62 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT ALL + - 51, - 5 * col0 AS col0 FROM tab1 AS cor0
----
-51
-255
-51
-425
-51
-455

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT + - MAX( - + 95 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT + - MAX ( - + 95 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col2 FROM tab0
----
73
73
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT ALL - + CAST( NULL AS SIGNED ) + + 95 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 95 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT 93 DIV 55 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3799
SELECT 93 / 55 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + col1 > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col2 * + + 50 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col2 * + + 50 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT + - COUNT( * ) + + ( COUNT( DISTINCT - ( + + col0 ) ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT + - COUNT ( * ) + + ( COUNT ( DISTINCT - ( + + col0 ) ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT col1 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3805
SELECT col1 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
51
67
77

query I rowsort
SELECT - col1 + - - 38 + 75 + - - col2 + col1 FROM tab1 cor0 WHERE + 98 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 0 col0, 94 AS col2 FROM tab2 AS cor0
----
0
94
0
94
0
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 33 * + 20 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f4c5a5ddcfa683320c686f8f5ac92cbd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT ALL - CAST( NULL AS SIGNED ) - + col1 * - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL - CAST ( NULL AS INTEGER ) - + col1 * - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - - 18 + + col1 FROM tab1
----
108
156
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ALL + col2 * + + col1 * - col1 + - + col2 DIV 44 AS col0 FROM tab2 AS cor0
----
-237160
-260363
-59823

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + col2 * + + col1 * - col1 + - + col2 / 44 AS col0 FROM tab2 AS cor0
----
-237160
-260363
-59823

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT DISTINCT + 5 DIV col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT + 5 / col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + - 9 + + MAX( + col1 ) AS col0 FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + - 9 + + MAX ( + col1 ) AS col0 FROM tab0 cor0
----
72

query I rowsort
SELECT + 45 + col1 / - - ( - 54 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 20 BETWEEN - + col0 AND col1
----

query I rowsort
SELECT + + 57 AS col1 FROM tab1 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3818
SELECT ALL * FROM tab0 WHERE CAST( + + col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3818
SELECT ALL * FROM tab0 WHERE CAST ( + + col2 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL 30 * + SUM( col1 ) FROM tab0
----
3090

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL 30 * + SUM ( col1 ) FROM tab0
----
3090

query I rowsort
SELECT ALL + + col1 * - col0 FROM tab0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + COUNT( DISTINCT col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3822
SELECT ALL + COUNT ( DISTINCT col0 ) col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT DISTINCT col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT col0 / + col0 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 - - 36 FROM tab0 AS cor0 WHERE NOT NULL > - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT - COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3826
SELECT - COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN + col0 AND + col2
----
15
81
47
97
1
99

query I rowsort
SELECT - ( 66 ) FROM tab2
----
-66
-66
-66

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > 15
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 67 col0 FROM tab2 AS cor0
----
113
131
142

query I rowsort
SELECT + col0 + + 42 FROM tab0 cor0
----
129
139
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT ALL col1 + + CAST( ( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL col1 + + CAST ( ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3833
SELECT ALL + 82 AS col1, ( - CAST( NULL AS SIGNED ) ) * - col1 / col2 + - - col0 + ( + + col0 ) FROM tab0 AS cor0
----
82
NULL
82
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL + 82 AS col1, ( - CAST ( NULL AS INTEGER ) ) * - col1 / col2 + - - col0 + ( + + col0 ) FROM tab0 AS cor0
----
82
NULL
82
NULL
82
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 - 79 = NULL
----

query I rowsort
SELECT ( - - 51 ) + - - col0 + + col0 AS col0 FROM tab0
----
225
245
81

query I rowsort
SELECT ALL - 72 FROM tab2 WHERE NOT 42 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - 74 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT + 87 * - - 2 col2, + MAX( ALL - - 4 ) FROM tab0
----
174
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3839
SELECT + 87 * - - 2 col2, + MAX ( ALL - - 4 ) FROM tab0
----
174
4

query I rowsort
SELECT + col2 - 28 - - + col2 AS col0 FROM tab1 AS cor0
----
108
164
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + SUM( DISTINCT + 64 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3841
SELECT + SUM ( DISTINCT + 64 ) FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT MAX( ALL - 7 ) DIV 50 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT MAX ( ALL - 7 ) / 50 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT - col1 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT - col1 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 26, col2 AS col1 FROM tab0 AS cor0
----
26
10
26
47
26
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT DISTINCT - + col0 * - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 / + + 95 NOT BETWEEN - + col0 - + CAST( NULL AS SIGNED ) - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT - + col0 * - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 / + + 95 NOT BETWEEN - + col0 - + CAST ( NULL AS INTEGER ) - - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * + + 88 / + 31 >= - ( + 22 )
----

query I rowsort
SELECT 61 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + ( + 63 ) FROM tab1
----
3213
5355
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT COUNT( * ) * - 87 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT COUNT ( * ) * - 87 FROM tab1
----
-261

query I rowsort
SELECT - 66 * + 58 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - 97 + - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT - MIN( ALL + 93 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3852
SELECT - MIN ( ALL + 93 ) FROM tab0
----
-93

query I rowsort
SELECT - 46 + col1 * + ( + col0 ) FROM tab0
----
1169
1781
51

query I rowsort
SELECT - col0 * + - col2 * + - ( + ( col1 ) ) AS col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT MAX( - + ( + - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3855
SELECT MAX ( - + ( + - col2 ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT MIN( DISTINCT + - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT MIN ( DISTINCT + - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT - + MAX( - - 6 ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3857
SELECT - + MAX ( - - 6 ) AS col1 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT ALL + 86 * + 10 / CAST( - col1 AS SIGNED ) AS col1, - col1 col1 FROM tab2 AS cor0 WHERE NOT 20 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3858
SELECT ALL + 86 * + 10 / CAST ( - col1 AS INTEGER ) AS col1, - col1 col1 FROM tab2 AS cor0 WHERE NOT 20 = NULL
----

query I rowsort
SELECT DISTINCT col0 + - 94 AS col0 FROM tab1 AS cor0
----
-3
-43
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - 81
----

query II rowsort
SELECT ALL + + col1 + - col1 + col0 AS col1, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ( + 12 ) + col0 AS col1 FROM tab1
----
103
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3863
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT 39 AS col0 FROM tab2 WHERE + 72 - + 16 * col2 IS NULL
----

query I rowsort
SELECT ALL col1 * - - 52 AS col1 FROM tab2
----
2652
3484
4004

query I rowsort
SELECT DISTINCT + 8 - - + col1 FROM tab0
----
29
89
9

query I rowsort
SELECT - col1 + - col2 * - + col0 FROM tab0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT ALL - 83, SUM( + + 25 ) AS col2 FROM tab2
----
-83
75

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL - 83, SUM ( + + 25 ) AS col2 FROM tab2
----
-83
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT col1 * col2 * - + col1 + col1 AS col0 FROM tab0
----
-308286
-4389
-98

query I rowsort
SELECT + col0 + + + col1 AS col1 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT + col2 + + + CAST( NULL AS SIGNED ) + col0 - ( + + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT + col2 + + + CAST ( NULL AS INTEGER ) + col0 - ( + + col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL - 30 + COUNT( * ) * 87 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - 30 + COUNT ( * ) * 87 FROM tab1 AS cor0
----
231

query I rowsort
SELECT col2 + 9 - - col0 FROM tab2 cor0 WHERE col1 / - - 68 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + SUM( DISTINCT - 76 ) AS col2 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3875
SELECT + SUM ( DISTINCT - 76 ) AS col2 FROM tab1 cor0
----
-76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * col1 IS NULL OR + + 26 + 45 <= + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT SUM( - + 55 ) AS col2 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-3877
SELECT SUM ( - + 55 ) AS col2 FROM tab1
----
-165

query I rowsort
SELECT 66 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3879
SELECT - col0 DIV col2 * + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
80

skipif mysql # not compatible
query I rowsort label-3879
SELECT - col0 / col2 * + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ( - col0 ) AS col0, 36 FROM tab0 AS cor0
----
-15
36
-87
36
-97
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col1 <> - ( + 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + 62 * - MIN( + - col1 ) AS col2 FROM tab1 AS cor0
----
2914

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 62 * - MIN ( + - col1 ) AS col2 FROM tab1 AS cor0
----
2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3884
SELECT - + CAST( + + 66 AS SIGNED ) * - 48 DIV COUNT( * ) FROM tab0 AS cor0
----
1056

skipif mysql # not compatible
query I rowsort label-3884
SELECT - + CAST ( + + 66 AS INTEGER ) * - 48 / COUNT ( * ) FROM tab0 AS cor0
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 60 + + col0 < + col0
----
3

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 60 + + col0 < + col0
----
3

query II rowsort
SELECT DISTINCT + col0 * + col2 AS col0, - col0 FROM tab0 AS cor0
----
705
-15
870
-87
9603
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL - col2 DIV + 28 AS col0 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - col2 / + 28 AS col0 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL + 83 * ( 45 ) * + + col1 FROM tab0
----
302535
3735
78435

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + COUNT( * ) * ( + + 43 ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-3889
SELECT + COUNT ( * ) * ( + + 43 ) FROM tab0
----
129

query III rowsort
SELECT ALL * FROM tab1 WHERE - 66 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 62 AS col0, col2 + col2 FROM tab0
----
-62
198
-62
20
-62
94

query I rowsort
SELECT - col2 * + - col1 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT DISTINCT + 98 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) * col1 * - 16 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT + 98 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * col1 * - 16 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab0, tab1 AS cor0
----
37

query II rowsort
SELECT ALL col2, - col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query II rowsort
SELECT col2 AS col0, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT + col1 AS col2, col1 AS col0 FROM tab0 cor0
----
1
1
21
21
81
81

query II rowsort
SELECT - col2 AS col0, - col2 + col1 + col0 AS col1 FROM tab0 AS cor0
----
-10
98
-47
49
-99
-1

query I rowsort
SELECT col2 * + col2 + - col0 + + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
1664
3439
575

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - - col0 ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-21

query I rowsort
SELECT - 73 * - col0 + + col2 + col1 FROM tab1
----
3833
6269
6758

query I rowsort
SELECT ALL - - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT 35 / 51 <> + col2 + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + 67 + 18 + COUNT( * ) * - 18 * - COUNT( col2 ) FROM tab2 AS cor0
----
247

skipif mysql # not compatible
query I rowsort label-3905
SELECT + 67 + 18 + COUNT ( * ) * - 18 * - COUNT ( col2 ) FROM tab2 AS cor0
----
247

query I rowsort
SELECT ALL + + 18 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT - - col0 + - 62 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3208
4229
4838

skipif mysql # not compatible
query I rowsort label-3907
SELECT - - col0 + - 62 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3208
4229
4838

query I rowsort
SELECT ALL 77 * + + col0 FROM tab2 AS cor0
----
3542
4928
5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT DISTINCT + col2 + + col1 * + + CAST( - + col0 AS SIGNED ) * ( col1 ) * + + col1 FROM tab1 AS cor0
----
-10566
-139848
-9447825

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT + col2 + + col1 * + + CAST ( - + col0 AS INTEGER ) * ( col1 ) * + + col1 FROM tab1 AS cor0
----
-10566
-139848
-9447825

query III rowsort
SELECT ALL + col0 AS col1, col2, + col2 AS col2 FROM tab1 AS cor0 WHERE + 82 - col1 * - col1 / + col2 + col1 - - col0 + + 38 IS NOT NULL
----
9 values hashing to efe8b1ba49a3a9b053a965d06d59b703

query I rowsort
SELECT + col0 + 81 * - col2 * - + col0 AS col2 FROM tab1 cor0
----
396627
406300
501319

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT DISTINCT + col1 DIV - col2 * ( - col0 ) DIV col0 * - - col2 + - 4 FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT + col1 / - col2 * ( - col0 ) / col0 * - - col2 + - 4 FROM tab1 cor0
----
-4

query I rowsort
SELECT - 57 + + + col0 AS col2 FROM tab2 cor0
----
-11
18
7

query I rowsort
SELECT col0 + col1 AS col2 FROM tab0 cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 88 * col0 + 36 col0 FROM tab2 AS cor0
----
-3961
-5519
-6497

query III rowsort
SELECT * FROM tab0 WHERE + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab0 WHERE NOT + + 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 97 ) - + col0 * + 30 * + col2 FROM tab0
----
-21053
-26003
-287993

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT 74 - + + 73 - - COUNT( * ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT 74 - + + 73 - - COUNT ( * ) AS col2 FROM tab0
----
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL - COUNT( DISTINCT + - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - COUNT ( DISTINCT + - col2 ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3922
SELECT + 83 DIV - col1 - + col2, + 78 col1 FROM tab0
----
-13
78
-182
78
-48
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3922
SELECT + 83 / - col1 - + col2, + 78 col1 FROM tab0
----
-13
78
-182
78
-48
78

query I rowsort
SELECT + col1 - + 44 FROM tab1 AS cor0
----
-30
-39
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3924
SELECT - - CAST( NULL AS SIGNED ) - + CAST( COUNT( * ) AS DECIMAL ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT - - CAST ( NULL AS INTEGER ) - + CAST ( COUNT ( * ) AS REAL ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + + 39 + + COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3925
SELECT + + 39 + + COUNT ( * ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT - col1 + + 20 + + col1 AS col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT 51 * - col0 FROM tab1
----
-2601
-4335
-4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT ALL - 19 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - 19 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 AS col0 FROM tab2 WHERE ( NOT NULL BETWEEN - col1 AND + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT + MAX( - 47 ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT + MAX ( - 47 ) AS col0 FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT MIN( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + + col1 ) > NULL OR ( col1 ) < + + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + + col2 * - col1 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 64 - + col1 NOT BETWEEN NULL AND - - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - MAX( - - 29 ) AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-3937
SELECT - MAX ( - - 29 ) AS col1 FROM tab0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT + CAST( col0 AS SIGNED ) * - + col1 - 21 AS col1 FROM tab1
----
-4298
-446
-735

skipif mysql # not compatible
query I rowsort label-3938
SELECT + CAST ( col0 AS INTEGER ) * - + col1 - 21 AS col1 FROM tab1
----
-4298
-446
-735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 79 ) col1 FROM tab2
----
79
79
79

query I rowsort
SELECT + 53 * + col1 FROM tab1
----
2491
265
742

query II rowsort
SELECT ALL - col1 + + + col1, 24 + + - col1 AS col1 FROM tab2 AS cor0
----
0
-27
0
-43
0
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col2 + + 12 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col2 + + 12 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( ( col0 / + + col1 ) IS NULL )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 46 * - col1 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + col0 * col1 * + col0 * - col2 * col2 + 48 + - col2 AS col1, - col0 * + 4 col2 FROM tab0
----
-15894852
-348
-40258977
-60
-92217561
-388

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 82 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT 48 * col2 * + ( - 25 ) AS col1 FROM tab1
----
-115200
-70800
-81600

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT - MAX( - + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT - MAX ( - + col1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT col0 * + + col2 AS col1 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN col0 * - + col1 AND ( col1 + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL + 85 * - MIN( ALL - col1 ) AS col2 FROM tab1 cor0
----
3995

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + 85 * - MIN ( ALL - col1 ) AS col2 FROM tab1 cor0
----
3995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3954
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT + - col0 NOT IN ( + - col2 / - 42 + ( - 52 ), - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3954
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT + - col0 NOT IN ( + - col2 / - 42 + ( - 52 ), - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 + + + col1 col2 FROM tab2 AS cor0
----
117
133
143

query I rowsort
SELECT - AVG ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - + 5 + col2 AS col2 FROM tab1 AS cor0
----
54
63
91

query II rowsort
SELECT - - 67 * - col0 + - - col1, - col1 AS col1 FROM tab1 AS cor0
----
-3403
-14
-5690
-5
-6050
-47

query I rowsort
SELECT ALL 93 + + col2 + + 19 + - col1 + - ( 90 ) * col2 FROM tab0
----
-4152
-799
-8700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 * - col0 col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT - col1 + col1 * - col1 FROM tab0
----
-2
-462
-6642

query I rowsort
SELECT + col2 + - - ( + + 14 ) + + + col0 + col2 * + 57 FROM tab1
----
3521
4049
5633

query I rowsort
SELECT + col0 * - - col2 + + 49 AS col0 FROM tab2
----
1107
2609
4399

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL - MIN( + + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - MIN ( + + col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 37 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 54 ) IN ( + ( 30 ) / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND 6
----

skipif mysql # not compatible
query I rowsort label-3968
SELECT col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND 6
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + + 40 ) = NULL
----

query I rowsort
SELECT DISTINCT ( 74 ) FROM tab1 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3971
SELECT ALL + - col1 * - - col2 + col1 DIV - col1 + - + col2, - ( - col0 ) * + + col0 * - + col0 + + - col2 + - 17 AS col2 FROM tab1 AS cor0
----
-1441
-132764
-3265
-753656
-355
-614201

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL + - col1 * - - col2 + col1 / - col1 + - + col2, - ( - col0 ) * + + col0 * - + col0 + + - col2 + - 17 AS col2 FROM tab1 AS cor0
----
-1441
-132764
-3265
-753656
-355
-614201

query I rowsort
SELECT ( - 40 ) FROM tab2 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT - SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT - SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT - - 74 AS col2 FROM tab1 cor0
----
74
74
74

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT ALL col2 + ( - col0 ) AS col2 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3978
SELECT + 35, 18 + CAST( + + col1 AS SIGNED ) FROM tab2 WHERE NULL <> + 92
----

skipif mysql # not compatible
query II rowsort label-3978
SELECT + 35, 18 + CAST ( + + col1 AS INTEGER ) FROM tab2 WHERE NULL <> + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT - - COUNT( * ) + - 66 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - - COUNT ( * ) + - 66 FROM tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + 91 col0 FROM tab2 AS cor0
----
137
155
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT DISTINCT - 43 DIV - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT - 43 / - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT - - col0 + CAST( + - ( + 61 ) AS SIGNED ) + - + 81 FROM tab2 AS cor0
----
-67
-78
-96

skipif mysql # not compatible
query I rowsort label-3983
SELECT - - col0 + CAST ( + - ( + 61 ) AS INTEGER ) + - + 81 FROM tab2 AS cor0
----
-67
-78
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - COUNT( * ) + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3984
SELECT - COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT - col0 * 4 * col2 + - - col2 * - + ( - - CAST( NULL AS SIGNED ) ) * + 27 + - + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT - col0 * 4 * col2 + - - col2 * - + ( - - CAST ( NULL AS INTEGER ) ) * + 27 + - + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * - col2 + 64 AS col2 FROM tab1 AS cor0
----
-4832
-4951
-6124

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT 25 - - ( + + col0 ) < + 86
----
-85
-91

query II rowsort
SELECT ALL - + col2 AS col0, 69 AS col0 FROM tab0 WHERE NULL IS NULL
----
-10
69
-47
69
-99
69

query II rowsort
SELECT col0 AS col0, 50 FROM tab1
----
51
50
85
50
91
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * col1 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col2, col1 * + 0 FROM tab0
----
10
0
47
0
99
0

query I rowsort
SELECT ALL - col2 * - 64 AS col1 FROM tab1
----
3776
4352
6144

query II rowsort
SELECT ALL col0 AS col2, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + - COUNT( + col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3994
SELECT + - COUNT ( + col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3995
SELECT DISTINCT + ( + + AVG ( ALL CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT + ( + + AVG ( ALL CAST ( NULL AS REAL ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 34 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
34
34
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 78 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 18 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col2 + + col2 col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT DISTINCT + - ( COUNT( * ) ) + 16 AS col0 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT + - ( COUNT ( * ) ) + 16 AS col0 FROM tab2 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 WHERE ( NULL <= + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT - + MIN( DISTINCT + + col1 ) + + + 72 FROM tab0 WHERE - 27 <> 2
----
71

skipif mysql # not compatible
query I rowsort label-4002
SELECT - + MIN ( DISTINCT + + col1 ) + + + 72 FROM tab0 WHERE - 27 <> 2
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 66 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, 39 FROM tab0
----
10
39
47
39
99
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 12 - + col1 col1 FROM tab0
----
-54
108
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4006
SELECT col2 col0, - 77 + + col1 + + + col1 / col1 * + CAST( NULL AS SIGNED ) * col0 / col1 FROM tab2 AS cor0 WHERE + 88 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4006
SELECT col2 col0, - 77 + + col1 + + + col1 / col1 * + CAST ( NULL AS INTEGER ) * col0 / col1 FROM tab2 AS cor0 WHERE + 88 IS NULL
----

query I rowsort
SELECT ALL - col0 + - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + COUNT( ALL - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT 0 AS col2, + 59 * - + 12 * col2 FROM tab2
----
0
-16284
0
-28320
0
-41064

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT + + col0 + - ( - - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT + + col0 + - ( - - col2 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + 66 * - col0 * col2 AS col2 FROM tab1
----
-323136
-330990
-408408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * 5, col2 col1 FROM tab1 AS cor0
----
255
96
425
59
455
68

query I rowsort
SELECT DISTINCT ( + + 90 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT COUNT( * ) + + 77 + + 49 AS col2 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-4014
SELECT COUNT ( * ) + + 77 + + 49 AS col2 FROM tab2 AS cor0
----
129

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 35 * col2, col2 )
----

query II rowsort
SELECT ALL - - col2 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT col2 + 81 + 45 * + col2 AS col1 FROM tab1 AS cor0
----
2795
3209
4497

query I rowsort
SELECT DISTINCT col0 * + ( - + 6 ) AS col2 FROM tab2
----
-276
-384
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT MAX( ALL + col2 ) col0, 23 * 73 AS col1 FROM tab2
----
58
1679

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4019
SELECT MAX ( ALL + col2 ) col0, 23 * 73 AS col1 FROM tab2
----
58
1679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( + MIN( - + col0 ) AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( + MIN ( - + col0 ) AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4021
SELECT ALL COUNT( - 18 ) DIV - + MAX( ALL + col0 ) * - 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL COUNT ( - 18 ) / - + MAX ( ALL + col0 ) * - 19 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4022
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - 14 = - 34
----

skipif mysql # not compatible
query III rowsort label-4022
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - 14 = - 34
----

query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + - col2 ) AND NULL
----

query I rowsort
SELECT ALL - ( + 3 ) AS col0 FROM tab2
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT ALL CAST( NULL AS SIGNED ) * col0 / - + col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4025
SELECT ALL CAST ( NULL AS INTEGER ) * col0 / - + col2 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4026
SELECT ALL col2 * + - col0 / - ( + ( + 91 ) ), - 62 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 54 + + col2 < col0 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4026
SELECT ALL col2 * + - col0 / - ( + ( + 91 ) ), - 62 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 54 + + col2 < col0 + - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT - + col2 * + CAST( - - col1 AS SIGNED ) * + 80 DIV 2 * + + col1 AS col1 FROM tab2 AS cor0
----
-10414480
-2392920
-9486400

skipif mysql # not compatible
query I rowsort label-4027
SELECT - + col2 * + CAST ( - - col1 AS INTEGER ) * + 80 / 2 * + + col1 AS col1 FROM tab2 AS cor0
----
-10414480
-2392920
-9486400

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT COUNT( + col0 ) + + + ( - - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT COUNT ( + col0 ) + + + ( - - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - MAX( + - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4029
SELECT - MAX ( + - col0 ) FROM tab0 cor0
----
15

query II rowsort
SELECT + + col0 * - + col0 AS col2, + 59 AS col1 FROM tab2 AS cor0
----
-2116
59
-4096
59
-5625
59

query I rowsort
SELECT DISTINCT col0 + - 78 + - col0 AS col2 FROM tab2
----
-78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - + col2 / - col0 <= NULL
----

query I rowsort
SELECT + col2 + - - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + 63 * + - col0 * - - col1 * + + col0 + col2 AS col0 FROM tab0 AS cor0
----
-10013777
-1148128
-592668

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ( + COUNT( ALL - 39 ) ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4035
SELECT ( + COUNT ( ALL - 39 ) ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - col0 + - - 39 + - + col2 + + - col2 FROM tab2 cor0
----
-105
-152
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT + col0 DIV - 51 + + ( - - col2 ) + 61 + col0 AS col2 FROM tab2 AS cor0
----
130
164
193

skipif mysql # not compatible
query I rowsort label-4037
SELECT + col0 / - 51 + + ( - - col2 ) + 61 + col0 AS col2 FROM tab2 AS cor0
----
130
164
193

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 * - col0 IS NOT NULL OR ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 89 + - col1 AS col2 FROM tab0
----
68
8
88

onlyif mysql # DIV for integer division: 
query II rowsort label-4040
SELECT 97 * col1, ( + - 47 ) DIV col1 AS col2 FROM tab2
----
4947
0
6499
0
7469
0

skipif mysql # not compatible
query II rowsort label-4040
SELECT 97 * col1, ( + - 47 ) / col1 AS col2 FROM tab2
----
4947
0
6499
0
7469
0

query I rowsort
SELECT col0 * + - 88 * + col2 FROM tab0
----
-62040
-76560
-845064

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4042
SELECT ALL col0 DIV - CAST( + 23 AS SIGNED ) AS col1 FROM tab0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL col0 / - CAST ( + 23 AS INTEGER ) AS col1 FROM tab0
----
-3
-4
0

query I rowsort
SELECT 15 * 51 AS col1 FROM tab2
----
765
765
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT - COUNT( + col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4044
SELECT - COUNT ( + col0 ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * - col0 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT + MAX( col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4047
SELECT + MAX ( col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT ALL - 85 - + COUNT( * ) + MAX( ALL - col2 ) * - - 21 AS col0, 17 * - + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT 85 + col2 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4048
SELECT ALL - 85 - + COUNT ( * ) + MAX ( ALL - col2 ) * - - 21 AS col0, 17 * - + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT 85 + col2 IS NOT NULL
----
NULL
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4050
SELECT * FROM tab0 WHERE NOT ( - 86 * - CAST( NULL AS SIGNED ) + + 42 + - col0 - 59 + col1 + col1 * - 34 ) NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4050
SELECT * FROM tab0 WHERE NOT ( - 86 * - CAST ( NULL AS INTEGER ) + + 42 + - col0 - 59 + col1 + col1 * - 34 ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE 96 < - col1 / col2 / 96 - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4052
SELECT + COUNT( * ) col0, 72 DIV 6 col0 FROM tab0
----
3
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4052
SELECT + COUNT ( * ) col0, 72 / 6 col0 FROM tab0
----
3
12

query II rowsort
SELECT col2 * + col2 AS col1, ( + col2 ) FROM tab0
----
100
10
2209
47
9801
99

query II rowsort
SELECT DISTINCT 77, 71 AS col2 FROM tab0
----
77
71

query II rowsort
SELECT - 23 * - col1, + 6 AS col2 FROM tab0 AS cor0
----
1863
6
23
6
483
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 99 NOT BETWEEN - col1 AND + ( col0 ) * - + col2 + + - col0
----

query II rowsort
SELECT ALL 3 AS col2, col0 + 90 - + + col0 AS col1 FROM tab1 cor0
----
3
90
3
90
3
90

query II rowsort
SELECT + col1 * - - 89 AS col0, col1 AS col2 FROM tab0
----
1869
21
7209
81
89
1

query II rowsort
SELECT + col1 * + - 36, col2 AS col1 FROM tab1
----
-1692
68
-180
59
-504
96

query II rowsort
SELECT - ( - - col0 ), - 68 AS col0 FROM tab0 AS cor0
----
-15
-68
-87
-68
-97
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT ALL + SUM( DISTINCT CAST( - + ( + col1 ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + SUM ( DISTINCT CAST ( - + ( + col1 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT ALL - col1 + + col0 DIV + 44 FROM tab1 AS cor0
----
-13
-4
-45

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - col1 + + col0 / + 44 FROM tab1 AS cor0
----
-13
-4
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 col2 FROM tab1 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + MIN( ALL + + 2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT + MIN ( ALL + + 2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col2 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT ALL + 76 DIV + col1 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + 76 / + col1 AS col0 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE col1 / ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 72 * - 95 FROM tab2 WHERE NOT NULL = - col2
----

query I rowsort
SELECT ALL + 42 AS col0 FROM tab1 WHERE col1 NOT BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT + 12 + col2 - + 35 * + 89 FROM tab0
----
-3004
-3056
-3093

query I rowsort
SELECT DISTINCT 99 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
99

query I rowsort
SELECT 95 * col2 AS col1 FROM tab0 AS cor0
----
4465
9405
950

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

query II rowsort
SELECT ALL - col0 + - - 3 AS col1, + ( - col2 ) / + - 73 + - col1 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col1 ) col1 FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + 78 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4076
SELECT * FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) - - col1 IN ( - col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4076
SELECT * FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) - - col1 IN ( - col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT + 17 DIV - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT + 17 / - + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - COUNT( + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4078
SELECT - COUNT ( + col1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL - MAX( + + 92 ) FROM tab2 WHERE col2 * - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - MAX ( + + 92 ) FROM tab2 WHERE col2 * - - col1 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 24 AS col1, + 84 + 36 FROM tab1
----
24
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL + 34 * + + ( - COUNT( * ) ) col0 FROM tab1
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4081
SELECT ALL + 34 * + + ( - COUNT ( * ) ) col0 FROM tab1
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4082
SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
3

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT + col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT + + 14 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4085
SELECT DISTINCT + + 14 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-4086
SELECT DISTINCT + col2, 6 DIV - col0 * + - 11 * + - col1 AS col1 FROM tab0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-4086
SELECT DISTINCT + col2, 6 / - col0 * + - 11 * + - col1 AS col1 FROM tab0
----
10
0
47
0
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4087
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4087
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * + - col1 * + 8 * + - col2 col0 FROM tab2 AS cor0
----
262752
689920
870464

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - COUNT( * ) + - + COUNT( DISTINCT + 87 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4089
SELECT - COUNT ( * ) + - + COUNT ( DISTINCT + 87 ) FROM tab2 AS cor0
----
-4

query II rowsort
SELECT + 14 + + 56 AS col2, - 3 AS col0 FROM tab1 AS cor0
----
70
-3
70
-3
70
-3

query I rowsort
SELECT 25 + ( col2 ) FROM tab1 AS cor0
----
121
84
93

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL col1 * - - 92 FROM tab1
----
1288
4324
460

query I rowsort
SELECT ALL + + col0 + + + ( + 22 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 10
----

query I rowsort
SELECT - col2 - + 47 FROM tab1 AS cor0
----
-106
-115
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT ALL - SUM( ALL + col0 ) + - 91 AS col1, 68 FROM tab0 cor0
----
-290
68

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - SUM ( ALL + col0 ) + - 91 AS col1, 68 FROM tab0 cor0
----
-290
68

query I rowsort
SELECT DISTINCT + - 79 - - col0 + - 6 + + + col2 * + + col2 AS col0 FROM tab2 AS cor0
----
1579
3354
490

query I rowsort
SELECT ALL 17 * + col2 FROM tab0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT + SUM( - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4100
SELECT + SUM ( - col0 ) AS col0 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + - col0 * - 5
----

query I rowsort
SELECT - 63 * + col2 FROM tab0
----
-2961
-6237
-630

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, col1 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + - 25 * + col0, - 27, col1 - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL CAST( - MAX( + - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL CAST ( - MAX ( + - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4106
SELECT - + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT MAX( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT MAX ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----
NULL

query II rowsort
SELECT - + col0 AS col2, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT ALL + col2 AS col1, + 10 * + - col2 * - 58 + - 60 + - col1 * + - col2 AS col0 FROM tab1 AS cor0
----
59
34455
68
42576
96
56964

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - + 13 IS NULL )
----

query I rowsort
SELECT - - 32 AS col0 FROM tab1 WHERE NOT - 8 < - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT ( - MAX( ALL + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT ( - MAX ( ALL + col1 ) ) FROM tab1
----
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + 62 < + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE + col2 + - + col1 NOT BETWEEN NULL AND col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT DISTINCT + 26 DIV - MAX( DISTINCT col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + 26 / - MAX ( DISTINCT col2 ) AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 WHERE + + col1 < 19
----
99

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( 40 )
----

query I rowsort
SELECT DISTINCT - 22 FROM tab1 AS cor0 WHERE - col2 = + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + SUM( - col0 ) FROM tab1 AS cor0 WHERE col1 > + col0 + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + SUM ( - col0 ) FROM tab1 AS cor0 WHERE col1 > + col0 + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT - ( - 35 ) / + col1 * - col1 * - 35 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - ( - 35 ) / + col1 * - col1 * - 35 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 18 + col1 - + col0 + + 17 * + col2 * 57 AS col2 FROM tab0 cor0
----
45627
95853
9642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT 9 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT 9 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 23
----

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 AS col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT ALL 40 + + - MIN( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL 40 + + - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL ( - 61 ) * - COUNT( * ) FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL ( - 61 ) * - COUNT ( * ) FROM tab0
----
183

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE + col1 BETWEEN + ( - 19 ) AND 76
----
1
21

query I rowsort
SELECT DISTINCT col0 * - - 92 AS col0 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT ( - col1 ) + - - 74 FROM tab2
----
-3
23
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL 26 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL 26 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4132
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL MIN( col1 ) * - - ( + + 50 ) AS col0 FROM tab2
----
2550

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL MIN ( col1 ) * - - ( + + 50 ) AS col0 FROM tab2
----
2550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4134
SELECT DISTINCT * FROM tab1 WHERE - 50 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4134
SELECT DISTINCT * FROM tab1 WHERE - 50 <> CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 46 * - + 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4137
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4137
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT - + 52 * COUNT( DISTINCT - 44 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT - + 52 * COUNT ( DISTINCT - 44 ) FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4140
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0, - 27 AS col1 FROM tab0 AS cor0
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-4140
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0, - 27 AS col1 FROM tab0 AS cor0
----
NULL
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT MAX( - - col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4141
SELECT MAX ( - - col0 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - SUM( DISTINCT - col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT ALL - SUM ( DISTINCT - col0 ) col0 FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query II rowsort label-4143
SELECT 4 AS col0, + col0 DIV - 96 AS col2 FROM tab2
----
4
0
4
0
4
0

skipif mysql # not compatible
query II rowsort label-4143
SELECT 4 AS col0, + col0 / - 96 AS col2 FROM tab2
----
4
0
4
0
4
0

query I rowsort
SELECT - + 94 FROM tab0 WHERE NOT ( 71 IS NULL )
----
-94
-94
-94

query II rowsort
SELECT col2 AS col0, + 45 FROM tab1
----
59
45
68
45
96
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT - SUM( DISTINCT + 30 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT - SUM ( DISTINCT + 30 ) FROM tab0
----
-30

query I rowsort
SELECT 84 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
107
124
142

query II rowsort
SELECT DISTINCT - + col2, + 66 AS col2 FROM tab0 AS cor0
----
-10
66
-47
66
-99
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - + SUM( DISTINCT + col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4150
SELECT - + SUM ( DISTINCT + col1 ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + + COUNT( ALL col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4151
SELECT + + COUNT ( ALL col2 ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4152
SELECT - col1 DIV CAST( - 60 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4152
SELECT - col1 / CAST ( - 60 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col1 * 61 FROM tab2
----
3111
4087
4697

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT CAST( NULL AS SIGNED ) * + COUNT( + col0 * 80 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( + col0 * 80 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 67 + + col1 FROM tab1
----
114
72
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * col1 col1 FROM tab0
----
1944
24
504

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) IN ( - 88 + + col0 * - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT 61 * COUNT( * ) AS col1 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-4159
SELECT 61 * COUNT ( * ) AS col1 FROM tab1
----
183

query III rowsort
SELECT ALL * FROM tab1 WHERE + 94 = + col1
----

query I rowsort
SELECT ALL - col2 * + 15 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1020
-1440
-885

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND - col0
----

query I rowsort
SELECT + 81 * - col2 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + MAX( ALL 48 ) * + SUM( + 60 ) AS col1 FROM tab1
----
8640

skipif mysql # not compatible
query I rowsort label-4164
SELECT + MAX ( ALL 48 ) * + SUM ( + 60 ) AS col1 FROM tab1
----
8640

query I rowsort
SELECT ( 97 ) AS col1 FROM tab2
----
97
97
97

query I rowsort
SELECT + 71 + col0 FROM tab1
----
122
156
162

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + col2 NOT BETWEEN ( NULL ) AND ( + col0 )
----

query I rowsort
SELECT ALL + 97 * col1 FROM tab1
----
1358
4559
485

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 19 IN ( - col2 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + 0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT col2 * + 4 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - COUNT( * ) * - 1 + - COUNT( * ) FROM tab0 WHERE ( col0 / col0 ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT - COUNT ( * ) * - 1 + - COUNT ( * ) FROM tab0 WHERE ( col0 / col0 ) >= ( NULL )
----
0

query I rowsort
SELECT - 38 FROM tab1 WHERE - 89 * - col1 >= 19
----
-38
-38
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4175
SELECT CAST( NULL AS DECIMAL ) - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT CAST ( NULL AS REAL ) - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 BETWEEN + col0 * col2 - 74 * - col2 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4177
SELECT DISTINCT 41 DIV MAX( DISTINCT + ( col0 ) * + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT 41 / MAX ( DISTINCT + ( col0 ) * + col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4178
SELECT COUNT( * ) DIV - 50 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT COUNT ( * ) / - 50 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + 55 * + 17 AS col2 FROM tab2
----
935
935
935

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4181
SELECT + 20 DIV COUNT( 90 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4181
SELECT + 20 / COUNT ( 90 ) AS col1 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT MAX( DISTINCT 45 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT MAX ( DISTINCT 45 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 - + col2 * - col0 AS col2 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT ALL 23 * + col1 FROM tab2 AS cor0
----
1173
1541
1771

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 94 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4186
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) > + CAST( NULL AS SIGNED ) / 70
----

skipif mysql # not compatible
query III rowsort label-4186
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) > + CAST ( NULL AS INTEGER ) / 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - MIN( DISTINCT + 49 ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4187
SELECT - MIN ( DISTINCT + 49 ) FROM tab0 AS cor0
----
-49

query I rowsort
SELECT DISTINCT 33 / col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * col0 col0 FROM tab1 AS cor0
----
1836
3060
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT DISTINCT 23 DIV 77 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4190
SELECT DISTINCT 23 / 77 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4191
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - SUM( - 45 ) col0 FROM tab2
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4192
SELECT - SUM ( - 45 ) col0 FROM tab2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT ( CAST( NULL AS SIGNED ) ) / + 31 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= ( + col0 * col0 )
----

skipif mysql # not compatible
query I rowsort label-4193
SELECT ( CAST ( NULL AS INTEGER ) ) / + 31 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= ( + col0 * col0 )
----

query I rowsort
SELECT DISTINCT - - ( - 49 ) FROM tab1 cor0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT ALL - - COUNT( col2 ) DIV - COUNT( DISTINCT + 27 + col2 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - - COUNT ( col2 ) / - COUNT ( DISTINCT + 27 + col2 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT ALL + col1 * - ( col2 DIV - 19 ) col0 FROM tab0 AS cor0
----
0
162
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4196
SELECT ALL + col1 * - ( col2 / - 19 ) col0 FROM tab0 AS cor0
----
0
162
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT - COUNT( * ) * + 92 AS col1 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT - COUNT ( * ) * + 92 AS col1 FROM tab0 AS cor0
----
-276

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4199
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) NOT IN ( CAST( + col2 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-4199
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) NOT IN ( CAST ( + col2 AS INTEGER ) * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - 59 - - col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT CAST( + 19 AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT CAST ( + 19 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
57

query I rowsort
SELECT DISTINCT - col0 * col2 * - col1 AS col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT - col0 * col1 + 97 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-328
-4180
-617

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT ALL ( + col2 ) DIV - 39 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL ( + col2 ) / - 39 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT COUNT( * ) DIV - + ( ( 97 ) ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4205
SELECT COUNT ( * ) / - + ( ( 97 ) ) col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * col0 BETWEEN NULL AND ( - 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL MIN( + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL MIN ( + col0 ) FROM tab2
----
46

query I rowsort
SELECT + 22 + - + 85 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT + 41 * col2 + col2 AS col0 FROM tab2
----
1680
2436
966

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT DISTINCT col2 DIV - + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT col2 / - + col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4211
SELECT ALL * FROM tab1 WHERE NOT - 81 + + col2 BETWEEN ( 82 * + 83 ) AND ( CAST( NULL AS SIGNED ) * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4211
SELECT ALL * FROM tab1 WHERE NOT - 81 + + col2 BETWEEN ( 82 * + 83 ) AND ( CAST ( NULL AS INTEGER ) * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 cor0 WHERE ( - ( 85 ) - 91 ) NOT BETWEEN ( NULL ) AND + 98
----

query I rowsort
SELECT ALL + 6 AS col2 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT - 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT COUNT( * ) * - 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-387

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT COUNT ( * ) * - 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-387

query I rowsort
SELECT ALL + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT + 45 * + - COUNT( * ) + 90 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + 45 * + - COUNT ( * ) + 90 FROM tab2
----
-45

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 + - - 57 + col2 + col2 FROM tab0 cor0
----
198
354
87

query I rowsort
SELECT col1 + + ( - col1 ) * 30 FROM tab1 AS cor0
----
-1363
-145
-406

query I rowsort
SELECT - col0 * + col2 AS col1 FROM tab1 cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT ALL + + 43 * - col2 + - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1680
-2436
-966

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + + 43 * - col2 + - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1680
-2436
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 68 * - + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 68 * - + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 16 - - col2 * + 61 + - 86 FROM tab0
----
2765
508
5937

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT + COUNT( * ) - - - ( - 63 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + COUNT ( * ) - - - ( - 63 ) FROM tab0
----
66

query I rowsort
SELECT col2 + + - 21 + + - col1 FROM tab2
----
-30
-49
-58

query II rowsort
SELECT ALL ( + - col1 ) AS col2, col2 AS col2 FROM tab0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN - col2 * 30 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + COUNT( ALL - + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4230
SELECT + COUNT ( ALL - + col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - + 92 AS col0 FROM tab1 cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4232
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4232
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ( + - COUNT( - + col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4233
SELECT ( + - COUNT ( - + col1 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT - + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT - + col1 / col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NOT col1 BETWEEN NULL AND ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT col2 * col2 - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IN ( + 51 )
----

skipif mysql # not compatible
query I rowsort label-4236
SELECT col2 * col2 - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IN ( + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + MAX( ALL col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT + MAX ( ALL col2 ) col2 FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + - col2 * - col2 - 88 * - col0
----

query I rowsort
SELECT ALL 62 AS col0 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT col1 * ( - 53 ) * - col0 FROM tab2
----
124338
261184
266325

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT - COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4242
SELECT - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT 18 + col1 FROM tab2 AS cor0
----
69
85
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT ALL col0 DIV + col0 - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL col0 / + col0 - col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 cor0 WHERE NOT col1 IN ( - 81 * - 7 )
----
51
85
91

query I rowsort
SELECT ALL - col0 * - 45 - col2 AS col1 FROM tab1 AS cor0 WHERE + 27 BETWEEN NULL AND + - 73
----

query I rowsort
SELECT + - col1 * col1 + 41 + + + col0 FROM tab1 AS cor0
----
-104
-2077
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL col1 * - CAST( + col2 AS SIGNED ) * - + col2 - + + 89 FROM tab0
----
178840
2011
9712

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL col1 * - CAST ( + col2 AS INTEGER ) * - + col2 - + + 89 FROM tab0
----
178840
2011
9712

query I rowsort
SELECT 80 + - 8 FROM tab2
----
72
72
72

query II rowsort
SELECT ALL col2 AS col1, + 69 FROM tab2
----
23
69
40
69
58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT DISTINCT - COUNT( - 22 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT - COUNT ( - 22 ) FROM tab2
----
-3

query II rowsort
SELECT DISTINCT col2, + 95 AS col1 FROM tab1
----
59
95
68
95
96
95

query I rowsort
SELECT DISTINCT ( + + col0 ) * - col0 - - 20 FROM tab0
----
-205
-7549
-9389

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE + + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + col1 * + + 15 * + + 45 FROM tab2
----
34425
45225
51975

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT ( + col2 IS NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + - col2 * 92 DIV + col2 FROM tab2 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-4257
SELECT + - col2 * 92 / + col2 FROM tab2 AS cor0
----
-92
-92
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 64 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - COUNT( ALL + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - COUNT ( ALL + col1 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL - - COUNT( * ) * - 23 + COUNT( col2 ) + + MIN( - col2 ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - - COUNT ( * ) * - 23 + COUNT ( col2 ) + + MIN ( - col2 ) FROM tab0 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4261
SELECT CAST( 16 AS SIGNED ) AS col1, col1 AS col1 FROM tab0 AS cor0
----
16
1
16
21
16
81

skipif mysql # not compatible
query II rowsort label-4261
SELECT CAST ( 16 AS INTEGER ) AS col1, col1 AS col1 FROM tab0 AS cor0
----
16
1
16
21
16
81

query I rowsort
SELECT + 27 AS col1 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT 75 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * - - ( col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( col1 - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NOT ( + - col1 ) <= ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NOT ( + - col1 ) <= ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( 12 ) * col1 IN ( 59 * + 41 + - col2 - + 96 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( DISTINCT col2 ) - - AVG ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT col2 ) - - AVG ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( + col0 + - col1 * + + col2 * - col2 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT 60 BETWEEN col0 + + + col1 * - col1 AND + col0 )
----
87
21
10

query II rowsort
SELECT ALL - col2, - 61 AS col1 FROM tab1
----
-59
-61
-68
-61
-96
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + ( + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4273
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT DISTINCT col1 * - 58 FROM tab1
----
-2726
-290
-812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 52 + col1 + ( - col2 ) col1 FROM tab1 cor0
----
51
-30
85
-2
91
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4278
SELECT COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - + 66 AS col1, + col0 FROM tab2 AS cor0
----
-66
46
-66
64
-66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + + - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + + - col1 > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4281
SELECT + CAST( NULL AS SIGNED ) * 99 + - MAX( + ( + - 98 ) ) + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT + CAST ( NULL AS INTEGER ) * 99 + - MAX ( + ( + - 98 ) ) + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT - ( - col0 ) AS col1, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 > - col0 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + + col2 >= col1 * 69
----
-2

skipif mysql # not compatible
query I rowsort label-4285
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + + col2 >= col1 * 69
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + - 61 col2 FROM tab1 AS cor0
----
-152
-152
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT col2 * 23 AS col0 FROM tab1 AS cor0
----
1357
1564
2208

query II rowsort
SELECT - + col2, col2 FROM tab0 AS cor0 WHERE NOT 19 < - - 59
----

query I rowsort
SELECT col0 + - col0 FROM tab1 AS cor0 WHERE NOT - ( col0 ) * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4291
SELECT DISTINCT + + col2 + + + CAST( NULL AS SIGNED ) AS col1, + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-4291
SELECT DISTINCT + + col2 + + + CAST ( NULL AS INTEGER ) AS col1, + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query II rowsort
SELECT - + 42 * + + col1 + - + 45 AS col0, col1 FROM tab2 AS cor0 WHERE - col0 - + col2 + - - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + ( + + 38 )
----

query I rowsort
SELECT ALL + ( + - col1 ) + + - col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT + col0 * - + CAST( NULL AS SIGNED ) / col1 FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT + col0 * - + CAST ( NULL AS INTEGER ) / col1 FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT MAX( ALL - CAST( + 53 AS SIGNED ) ) * ( - SUM( col2 ) ) + - - 28 * CAST( 85 AS SIGNED ) AS col1 FROM tab0
----
10648

skipif mysql # not compatible
query I rowsort label-4297
SELECT MAX ( ALL - CAST ( + 53 AS INTEGER ) ) * ( - SUM ( col2 ) ) + - - 28 * CAST ( 85 AS INTEGER ) AS col1 FROM tab0
----
10648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - col2 col1 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - 17 + + + COUNT( * ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 17 + + + COUNT ( * ) AS col0 FROM tab1
----
-14

query I rowsort
SELECT 18 + - - 89 AS col1 FROM tab0
----
107
107
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - 48 + COUNT( * ) AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-4301
SELECT - 48 + COUNT ( * ) AS col0 FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT DISTINCT col0 * - CAST( + col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT col0 * - CAST ( + col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT DISTINCT + 88 + col2 DIV 4 AS col1 FROM tab1 cor0
----
102
105
112

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + 88 + col2 / 4 AS col1 FROM tab1 cor0
----
102
105
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4304
SELECT + - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
92

query II rowsort
SELECT col1, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT + col2 DIV + 30 col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4309
SELECT + col2 / + 30 col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + MIN( ALL - ( col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4310
SELECT + MIN ( ALL - ( col0 ) ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT + CAST( NULL AS SIGNED ) / + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT + CAST ( NULL AS INTEGER ) / + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4314
SELECT COUNT( * ) DIV MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT COUNT ( * ) / MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT - - COUNT( * ), SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-4315
SELECT - - COUNT ( * ), SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
3
227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4316
SELECT DISTINCT + CAST( NULL AS SIGNED ), 85 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
144
NULL
153
NULL
181

skipif mysql # not compatible
query II rowsort label-4316
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 85 + + col2 AS col0 FROM tab1 AS cor0
----
NULL
144
NULL
153
NULL
181

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT + col2 DIV - - col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4317
SELECT + col2 / - - col1 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - 53 * - - COUNT( * ) * COUNT( * ) FROM tab1
----
-477

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 53 * - - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - MAX( + 26 ) FROM tab0, tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4319
SELECT - MAX ( + 26 ) FROM tab0, tab2 AS cor0
----
-26

query I rowsort
SELECT ALL + 41 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 * + - col0 col2 FROM tab0 AS cor0
----
-4176
-4656
-720

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 <> + + 10
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 >= ( NULL )
----

query I rowsort
SELECT - - 67 * - col0 + - col1 FROM tab2 AS cor0 WHERE 97 * - - col2 * + 29 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT ( CAST( NULL AS SIGNED ) ) + COUNT( - col0 ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ( CAST ( NULL AS INTEGER ) ) + COUNT ( - col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 54 + + + col1 * - col1 FROM tab1 AS cor0
----
-142
-2155
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT + col0 + 13 DIV - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4329
SELECT + col0 + 13 / - col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT + 97 + - - ( - 43 ) AS col1, + COUNT( * ) + - 79 AS col0 FROM tab2 AS cor0
----
54
-76

skipif mysql # not compatible
query II rowsort label-4331
SELECT + 97 + - - ( - 43 ) AS col1, + COUNT ( * ) + - 79 AS col0 FROM tab2 AS cor0
----
54
-76

query I rowsort
SELECT DISTINCT ( 42 ) + 83 FROM tab0
----
125

query II rowsort
SELECT ALL 46 + + col1 AS col0, col1 AS col2 FROM tab2
----
113
67
123
77
97
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - MAX( col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4334
SELECT - MAX ( col1 ) AS col0 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT 79 * - 84 * col2 DIV + col2 AS col0 FROM tab1
----
-6636
-6636
-6636

skipif mysql # not compatible
query I rowsort label-4336
SELECT 79 * - 84 * col2 / + col2 AS col0 FROM tab1
----
-6636
-6636
-6636

query I rowsort
SELECT DISTINCT 98 * + + col2 * + col0 FROM tab2
----
103684
250880
426300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4338
SELECT - CAST( + 46 AS SIGNED ) - - - col1 + - col0 AS col2, - col0 - col0 * - ( + col1 ) * + 26 AS col1 FROM tab0 AS cor0
----
-142
31575
-144
2425
-154
47415

skipif mysql # not compatible
query II rowsort label-4338
SELECT - CAST ( + 46 AS INTEGER ) - - - col1 + - col0 AS col2, - col0 - col0 * - ( + col1 ) * + 26 AS col1 FROM tab0 AS cor0
----
-142
31575
-144
2425
-154
47415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT ALL + 70 * - 75 + - - col0 - + CAST( NULL AS SIGNED ) + + + col0 * - 73 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + 70 * - 75 + - - col0 - + CAST ( NULL AS INTEGER ) + + + col0 * - 73 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + COUNT( * ) - 35 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + COUNT ( * ) - 35 FROM tab2
----
-32

query I rowsort
SELECT 15 + + + 41 AS col1 FROM tab0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4342
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT col1 - 57 FROM tab1
----
-10
-43
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL 64 * + MAX( - + col2 ) FROM tab1
----
-3776

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL 64 * + MAX ( - + col2 ) FROM tab1
----
-3776

query I rowsort
SELECT ( 10 ) FROM tab2 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT COUNT( * ) * 66 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4347
SELECT COUNT ( * ) * 66 FROM tab1 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4348
SELECT + col0 AS col0, + CAST( NULL AS SIGNED ) * - - col2 * + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4348
SELECT + col0 AS col0, + CAST ( NULL AS INTEGER ) * - - col2 * + col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4351
SELECT ALL * FROM tab0 WHERE ( - - 89 / - - CAST( + col0 AS SIGNED ) + col2 - 65 ) NOT BETWEEN - col2 * + col2 * - col2 + col2 AND col0 + - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4351
SELECT ALL * FROM tab0 WHERE ( - - 89 / - - CAST ( + col0 AS INTEGER ) + col2 - 65 ) NOT BETWEEN - col2 * + col2 * - col2 + col2 AND col0 + - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, ( - + col1 ) FROM tab1
----
59
-5
68
-47
96
-14

query II rowsort
SELECT col1 AS col2, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT - ( + 47 ) * + col0 AS col2 FROM tab0
----
-4089
-4559
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT ALL 37 DIV - 48 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL 37 / - 48 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * - - col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + - col0 * + 34 FROM tab1 AS cor0
----
-1734
-2890
-3094

query I rowsort
SELECT DISTINCT - - col0 + - - col1 + + col0 AS col0 FROM tab1 cor0
----
116
175
229

query I rowsort
SELECT ALL + 3 + + col1 FROM tab1 AS cor0
----
17
50
8

query I rowsort
SELECT ALL + 73 * - 42 AS col1 FROM tab0 AS cor0
----
-3066
-3066
-3066

query I rowsort
SELECT + 88 + 67 FROM tab0 AS cor0
----
155
155
155

query II rowsort
SELECT DISTINCT ( + 4 ) AS col1, col0 FROM tab2
----
4
46
4
64
4
75

query I rowsort
SELECT - 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4365
SELECT ALL * FROM tab0 WHERE NOT + col1 / + 8 - + + CAST( 97 AS SIGNED ) NOT BETWEEN NULL AND - - col2
----

skipif mysql # not compatible
query III rowsort label-4365
SELECT ALL * FROM tab0 WHERE NOT + col1 / + 8 - + + CAST ( 97 AS INTEGER ) NOT BETWEEN NULL AND - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT - ( + COUNT( * ) ) AS col2, COUNT( * ) - - + COUNT( * ) AS col2 FROM tab0
----
-3
6

skipif mysql # not compatible
query II rowsort label-4366
SELECT - ( + COUNT ( * ) ) AS col2, COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab0
----
-3
6

query I rowsort
SELECT DISTINCT - - col2 * - 89 * - col1 * + - 89 + ( 56 ) AS col0 FROM tab2 AS cor0
----
-24396624
-30780950
-9291277

query I rowsort
SELECT 45 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT ALL ( - - COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL ( - - COUNT ( * ) ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT col0 - col0 + + 23, 87 * - - ( - - 65 ) AS col0 FROM tab2
----
23
5655

query I rowsort
SELECT col0 + - + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 41 + + 8 FROM tab2
----
49
49
49

query I rowsort
SELECT ( + col2 ) * - 54 + + - col0 FROM tab0
----
-2553
-5443
-627

query II rowsort
SELECT ALL 77 AS col2, - 43 * + col1 AS col2 FROM tab1
----
77
-2021
77
-215
77
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT COUNT( * ) + + COUNT( * ) + SUM( + + col1 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4375
SELECT COUNT ( * ) + + COUNT ( * ) + SUM ( + + col1 ) FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4376
SELECT * FROM tab1 WHERE ( CAST( 52 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4376
SELECT * FROM tab1 WHERE ( CAST ( 52 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL ( + COUNT( DISTINCT col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL ( + COUNT ( DISTINCT col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 + + 0 * - 91 AS col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT - col2 AS col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4380
SELECT + MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + 87 - col2 FROM tab2 AS cor0
----
29
47
64

query I rowsort
SELECT 38 - - ( - + col1 ) FROM tab0
----
-43
17
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT ALL ( + col1 ) DIV + col1 + + + col0 * 32 + + 84 AS col0 FROM tab2
----
1557
2133
2485

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL ( + col1 ) / + col1 + + + col0 * 32 + + 84 AS col0 FROM tab2
----
1557
2133
2485

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4384
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT DISTINCT MAX( + 98 ) AS col0 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT MAX ( + 98 ) AS col0 FROM tab2
----
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 / + col0 + + 59 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT + - CAST( + 38 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-4387
SELECT + - CAST ( + 38 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 89 * - 54 AS col1 FROM tab0 cor0
----
-4806
-4806
-4806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4389
SELECT + ( + + 15 ) FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 + - col2 AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-4389
SELECT + ( + + 15 ) FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 + - col2 AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT MIN( + ( + col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT MIN ( + ( + col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT - 46 DIV - + 29 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4391
SELECT - 46 / - + 29 FROM tab0
----
1
1
1

query I rowsort
SELECT 32 * - 77 AS col1 FROM tab2
----
-2464
-2464
-2464

query II rowsort
SELECT - 94 AS col0, col2 FROM tab0
----
-94
10
-94
47
-94
99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 + 39 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + COUNT( * ) * - - 30 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + COUNT ( * ) * - - 30 FROM tab1
----
90

query I rowsort
SELECT ALL 11 AS col1 FROM tab0 WHERE 65 IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL - ( - - COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - ( - - COUNT ( * ) ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT ALL - 45 * 73 + - 99 FROM tab1 AS cor0
----
-3384
-3384
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col2 + - + col1 + col2 * + col0 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col2 + - + col1 + col2 * + col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT + COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4401
SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT 46 * - col1 AS col0 FROM tab0 AS cor0
----
-3726
-46
-966

query I rowsort
SELECT + col1 * col0 + 25 + + 70 FROM tab0 AS cor0
----
1310
192
1922

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4404
SELECT DISTINCT * FROM tab2 WHERE NOT - 56 * - col0 * - col2 * - CAST( NULL AS DECIMAL ) * - 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4404
SELECT DISTINCT * FROM tab2 WHERE NOT - 56 * - col0 * - col2 * - CAST ( NULL AS REAL ) * - 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 98 ) + - col1 AS col1 FROM tab1
----
-103
-112
-145

query I rowsort
SELECT ALL + - ( - 65 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT - MAX( ALL - - 27 ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT - MAX ( ALL - - 27 ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - 69 + - col1 AS col0 FROM tab1 AS cor0
----
-116
-74
-83

query I rowsort
SELECT - ( + col1 ) + 64 FROM tab1 AS cor0
----
17
50
59

query I rowsort
SELECT ALL col2 + 8 FROM tab1 AS cor0
----
104
67
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col2 ) + + 45 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT - - ( + - ( + col1 ) ) * + CAST( NULL AS SIGNED ) * - ( - 80 ) AS col0 FROM tab0 WHERE NOT + col0 * + + col2 BETWEEN - col0 AND NULL AND ( NULL ) BETWEEN + + 36 + - col2 AND + col1 * - 19 / + col2
----

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - - ( + - ( + col1 ) ) * + CAST ( NULL AS INTEGER ) * - ( - 80 ) AS col0 FROM tab0 WHERE NOT + col0 * + + col2 BETWEEN - col0 AND NULL AND ( NULL ) BETWEEN + + 36 + - col2 AND + col1 * - 19 / + col2
----

query I rowsort
SELECT 45 * col0 - 66 * + 38 FROM tab1
----
-213
1317
1587

query I rowsort
SELECT 82 AS col2 FROM tab1 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col1 ) col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT + - ( - COUNT( * ) ) - + 71 AS col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
-68

skipif mysql # not compatible
query I rowsort label-4417
SELECT + - ( - COUNT ( * ) ) - + 71 AS col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT col2 - CAST( - col0 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT col2 - CAST ( - col0 AS INTEGER ) FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4419
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col2, + 30 FROM tab1 AS cor0 WHERE ( NOT - col0 - - col2 IS NULL )
----
NULL
30

skipif mysql # not compatible
query II rowsort label-4419
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col2, + 30 FROM tab1 AS cor0 WHERE ( NOT - col0 - - col2 IS NULL )
----
NULL
30

query I rowsort
SELECT col2 * - col2 - col1 AS col2 FROM tab1 cor0
----
-3486
-4671
-9230

query II rowsort
SELECT + col2 + + col1 AS col1, 61 FROM tab0 AS cor0
----
100
61
128
61
31
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col2 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL - + 80 AS col1 FROM tab0 cor0
----
-80
-80
-80

query II rowsort
SELECT DISTINCT + - col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT MIN( - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4426
SELECT MIN ( - col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT DISTINCT - - col0 * + ( - ( - col1 ) ) + + - 22 + + 26 * - col1 * + col1 + - col1 / - col2 * + CAST( NULL AS SIGNED ) / col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - - col0 * + ( - ( - col1 ) ) + + - 22 + + 26 * - col1 * + col1 + - col1 / - col2 * + CAST ( NULL AS INTEGER ) / col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( 6 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT + ( 74 ) * + COUNT( * ) FROM tab1 cor0
----
222

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT + ( 74 ) * + COUNT ( * ) FROM tab1 cor0
----
222

query I rowsort
SELECT DISTINCT col0 * + ( + col1 ) FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - MAX( ALL 2 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4431
SELECT - MAX ( ALL 2 ) FROM tab0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col1 col1, 2 AS col2 FROM tab2
----
2601
2
4489
2
5929
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL - COUNT( ALL col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL - COUNT ( ALL col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4434
SELECT + 62 DIV + + col1 AS col0, - CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
1
NULL
12
NULL
4
NULL

skipif mysql # not compatible
query II rowsort label-4434
SELECT + 62 / + + col1 AS col0, - CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
1
NULL
12
NULL
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT - - MIN( ALL + col2 ) FROM tab0 WHERE NOT - 69 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT - - MIN ( ALL + col2 ) FROM tab0 WHERE NOT - 69 < NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 53 AND NULL
----

query I rowsort
SELECT DISTINCT 48 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * 4 AS col0 FROM tab1 cor0
----
236
272
384

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 79 + - - col0 AS col0 FROM tab2 AS cor0
----
-15
-33
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT SUM( DISTINCT + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT SUM ( DISTINCT + col1 ) FROM tab2
----
195

query I rowsort
SELECT ALL + col0 + - 11 AS col1 FROM tab1
----
40
74
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT - col0 + + col0 FROM tab2 cor0 WHERE ( + + CAST( - col0 AS SIGNED ) < NULL )
----

skipif mysql # not compatible
query I rowsort label-4443
SELECT - col0 + + col0 FROM tab2 cor0 WHERE ( + + CAST ( - col0 AS INTEGER ) < NULL )
----

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
10
47
99

query I rowsort
SELECT DISTINCT 18 + + - 9 AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 9 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4447
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-4447
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col2
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE - 2 IS NULL
----

query I rowsort
SELECT col1 * + + 21 + 6 * col0 - + col0 FROM tab0
----
1776
506
876

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - + col2 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT 29 DIV col1 + col1 FROM tab1
----
10
16
47

skipif mysql # not compatible
query I rowsort label-4451
SELECT 29 / col1 + col1 FROM tab1
----
10
16
47

query II rowsort
SELECT ALL + col1 - + 17 AS col0, 89 FROM tab1
----
-12
89
-3
89
30
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + COUNT( ALL + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + COUNT ( ALL + col2 ) FROM tab0
----
3

query II rowsort
SELECT + col0 AS col2, + col2 AS col1 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT col0 - + 45 AS col2 FROM tab0
----
-30
42
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 > - - col2
----
87
21
10

query I rowsort
SELECT ALL col1 * - 72 AS col2 FROM tab2
----
-3672
-4824
-5544

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + - 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4459
SELECT ALL + COUNT( * ) DIV + ( 15 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + COUNT ( * ) / + ( 15 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4460
SELECT - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 ) AND col2 + ( + col2 ) <= ( + - 97 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + - col0 * 9 + - + 93 AND col1 - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col0 < 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 23 * - col2 > - col1
----

query I rowsort
SELECT ALL + + 19 AS col1 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT COUNT( + col1 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4466
SELECT DISTINCT COUNT ( + col1 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4467
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT - 97 + COUNT( * ) AS col2, + 91 AS col1 FROM tab1 AS cor0
----
-94
91

skipif mysql # not compatible
query II rowsort label-4468
SELECT - 97 + COUNT ( * ) AS col2, + 91 AS col1 FROM tab1 AS cor0
----
-94
91

query II rowsort
SELECT - - col0 * col0 AS col0, - 23 AS col0 FROM tab0 AS cor0
----
225
-23
7569
-23
9409
-23

query I rowsort
SELECT + 99 * + col0 FROM tab2
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + COUNT( * ) * + ( + - 6 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COUNT ( * ) * + ( + - 6 ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL - COUNT( DISTINCT + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - COUNT ( DISTINCT + col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + MIN( ALL + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4473
SELECT + MIN ( ALL + col1 ) FROM tab2
----
51

query I rowsort
SELECT - col2 * + - 21 * col1 AS col1 FROM tab2 AS cor0 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT - + COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4475
SELECT - + COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT COUNT( * ) * + - COUNT( * ) col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4476
SELECT COUNT ( * ) * + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT DISTINCT + col2 * - - col1 + + ( CAST( - - 90 AS SIGNED ) ) FROM tab0 AS cor0
----
189
300
3897

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + col2 * - - col1 + + ( CAST ( - - 90 AS INTEGER ) ) FROM tab0 AS cor0
----
189
300
3897

query II rowsort
SELECT + col1 AS col2, + 86 FROM tab1 AS cor0
----
14
86
47
86
5
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + 23 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT + - COUNT( * ), 56 AS col1 FROM tab0 AS cor0
----
-3
56

skipif mysql # not compatible
query II rowsort label-4480
SELECT + - COUNT ( * ), 56 AS col1 FROM tab0 AS cor0
----
-3
56

query I rowsort
SELECT col2 * + 43 + - col1 AS col0 FROM tab2 cor0
----
1643
2427
938

query I rowsort
SELECT ALL - 67 + - 49 FROM tab0
----
-116
-116
-116

query I rowsort
SELECT DISTINCT + col2 * - + col0 / - col0 AS col1 FROM tab0 WHERE NOT ( - 87 ) < ( NULL )
----

query I rowsort
SELECT 8 + col2 + + col1 + + col1 AS col1 FROM tab0
----
109
217
60

query I rowsort
SELECT col2 + + col0 + + + ( - col0 ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT ( + col2 ) + + col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT ALL ( col1 ) + 37 AS col0 FROM tab1 AS cor0
----
42
51
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL - ( + 80 ) * MIN( + - col2 ) AS col2 FROM tab1 AS cor0
----
7680

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL - ( + 80 ) * MIN ( + - col2 ) AS col2 FROM tab1 AS cor0
----
7680

query I rowsort
SELECT DISTINCT 89 + col2 * - col2 FROM tab2 AS cor0
----
-1511
-3275
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT + COUNT( - 94 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4490
SELECT + COUNT ( - 94 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT ALL - CAST( + - col0 AS SIGNED ) + + 20 FROM tab2 AS cor0
----
66
84
95

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - CAST ( + - col0 AS INTEGER ) + + 20 FROM tab2 AS cor0
----
66
84
95

query I rowsort
SELECT ALL + 98 + + col1 FROM tab1 AS cor0
----
103
112
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT ALL col1 * + + col2 - + ( + CAST( - - 25 AS SIGNED ) ) FROM tab0 AS cor0
----
185
3782
74

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL col1 * + + col2 - + ( + CAST ( - - 25 AS INTEGER ) ) FROM tab0 AS cor0
----
185
3782
74

query I rowsort
SELECT - ( 2 ) FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT COUNT( col1 ) - 37 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT COUNT ( col1 ) - 37 FROM tab2
----
-34

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <> + 49 + col0
----

query I rowsort
SELECT DISTINCT - col1 * - - 69 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT ALL - ( ( 67 ) ) * col0 + + - col0 DIV + ( + - col0 ) + + 66 AS col0 FROM tab1
----
-3350
-5628
-6030

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - ( ( 67 ) ) * col0 + + - col0 / + ( + - col0 ) + + 66 AS col0 FROM tab1
----
-3350
-5628
-6030

query I rowsort
SELECT 84 * 27 AS col0 FROM tab1
----
2268
2268
2268

query I rowsort
SELECT DISTINCT 12 * + col2 AS col2 FROM tab0
----
1188
120
564

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - 64 FROM tab0
----
1344
5184
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT ALL COUNT( * ) DIV - 82 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4503
SELECT ALL COUNT ( * ) / - 82 col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 43 IN ( - - col0, col2 * + col2 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL - COUNT( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT 86 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - COUNT ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT 86 IS NULL
----
-3

query I rowsort
SELECT - 34 * + ( - col1 ) FROM tab0 AS cor0
----
2754
34
714

query I rowsort
SELECT DISTINCT 58 * - col1 AS col0 FROM tab2
----
-2958
-3886
-4466

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + ( - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT 20 DIV MIN( - col0 ) + COUNT( ALL + col2 ) * + + 82 AS col1 FROM tab0 AS cor0 WHERE NOT 7 IS NULL
----
246

skipif mysql # not compatible
query I rowsort label-4509
SELECT 20 / MIN ( - col0 ) + COUNT ( ALL + col2 ) * + + 82 AS col1 FROM tab0 AS cor0 WHERE NOT 7 IS NULL
----
246

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4510
SELECT ALL - - CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - - CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * col1 col1, - 13 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) <> 2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT + CAST( NULL AS SIGNED ) * + - ( + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT + CAST ( NULL AS INTEGER ) * + - ( + col2 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT COUNT( * ) DIV - MIN( - + ( + - 28 ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT COUNT ( * ) / - MIN ( - + ( + - 28 ) ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + 84 + + - 82 - + COUNT( * ) col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4515
SELECT + 84 + + - 82 - + COUNT ( * ) col2 FROM tab2
----
-1

query I rowsort
SELECT 75 + + - 89 - + col1 * + col1 FROM tab0
----
-15
-455
-6575

query I rowsort
SELECT 91 + col1 AS col0 FROM tab1
----
105
138
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4518
SELECT * FROM tab1 WHERE NULL <= 45 * + - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4518
SELECT * FROM tab1 WHERE NULL <= 45 * + - ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4519
SELECT + COUNT( * ) + COUNT( * ), + 45 * - CAST( NULL AS SIGNED ) * MIN( ALL - 22 ) col2 FROM tab0
----
6
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4519
SELECT + COUNT ( * ) + COUNT ( * ), + 45 * - CAST ( NULL AS INTEGER ) * MIN ( ALL - 22 ) col2 FROM tab0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL COUNT( DISTINCT - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL COUNT ( DISTINCT - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + ( - COUNT( * ) ) FROM tab1 WHERE - - 22 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4521
SELECT + ( - COUNT ( * ) ) FROM tab1 WHERE - - 22 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col1 + + - col2 + col2 + - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 33 + - col1 + + + 27 AS col0 FROM tab0 cor0
----
-27
-7
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - + MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4524
SELECT - + MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT DISTINCT - SUM( - 83 ) + + + COUNT( * ) + - 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
734

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT - SUM ( - 83 ) + + + COUNT ( * ) + - 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
734

query I rowsort
SELECT ALL + - 64 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT - 50 * + col2 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT 15 * + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT 15 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT DISTINCT - 14 * + 32 + - - COUNT( * ) DIV - + MAX( + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-448

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - 14 * + 32 + - - COUNT ( * ) / - + MAX ( + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL COUNT( * ) * + - 46 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL COUNT ( * ) * + - 46 FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL 69 * - - COUNT( * ) + COUNT( * ) + + 8 FROM tab1 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL 69 * - - COUNT ( * ) + COUNT ( * ) + + 8 FROM tab1 AS cor0
----
218

query II rowsort
SELECT col2 * - col0 + - + 71, col2 FROM tab0 AS cor0
----
-776
47
-941
10
-9674
99

query I rowsort
SELECT - ( 15 ) + - col2 AS col1 FROM tab2 AS cor0
----
-38
-55
-73

query I rowsort
SELECT 7 FROM tab0 AS cor0 WHERE NOT - ( + 72 ) + + 19 + + - col2 BETWEEN NULL AND - + 45
----

query I rowsort
SELECT - col1 * + col0 + + 65 FROM tab0 WHERE NOT col2 + + + col2 * + col2 IS NULL
----
-1150
-1762
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT - - col1 FROM tab0 WHERE + CAST( - - 10 AS SIGNED ) / + 63 NOT BETWEEN - col1 * - 39 AND + - col2
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - - col1 FROM tab0 WHERE + CAST ( - - 10 AS INTEGER ) / + 63 NOT BETWEEN - col1 * - 39 AND + - col2
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + ( - MIN( + + col1 ) ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + ( - MIN ( + + col1 ) ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT col0 IS NULL AND NULL > NULL
----

query I rowsort
SELECT ALL - + 90 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT DISTINCT ( - col0 ) DIV - 36 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT ( - col0 ) / - 36 FROM tab2
----
1
2

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT AVG ( + col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4544
SELECT + - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + - col0 + - 78 FROM tab0 cor0
----
-165
-175
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( + 60 ) col1 FROM tab1 AS cor0
----
-25
-31
9

query I rowsort
SELECT + col2 + 88 AS col1 FROM tab2 AS cor0
----
111
128
146

onlyif mysql # DIV for integer division: 
query II rowsort label-4548
SELECT DISTINCT - ( + + col0 ) * + col2 + - col0 - + col1 DIV 4, + 64 col2 FROM tab1
----
-4950
64
-5101
64
-6290
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4548
SELECT DISTINCT - ( + + col0 ) * + col2 + - col0 - + col1 / 4, + 64 col2 FROM tab1
----
-4950
64
-5101
64
-6290
64

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4550
SELECT ALL 40 DIV - 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL 40 / - 95 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT DISTINCT + col2 DIV - ( - col1 ) AS col1 FROM tab2 WHERE NOT - - col1 NOT BETWEEN 35 + + ( + col2 ) DIV - col0 AND - - 17 + + 46
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + col2 / - ( - col1 ) AS col1 FROM tab2 WHERE NOT - - col1 NOT BETWEEN 35 + + ( + col2 ) / - col0 AND - - 17 + + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT COUNT( * ) * - COUNT( - - col2 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4552
SELECT COUNT ( * ) * - COUNT ( - - col2 ) AS col2 FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 4 ) col2 FROM tab1 WHERE ( NOT - col2 IS NULL )
----
4
4
4

query III rowsort
SELECT * FROM tab1 WHERE + - 65 + 30 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0, - 53 AS col1 FROM tab1
----
51
-53
85
-53
91
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT - + MAX( + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - + MAX ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - ( col2 ) - col0 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT - - COUNT( * ) * 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
828

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - - COUNT ( * ) * 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab2 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * + col1 col0 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 + + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT 87 DIV + col0 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4563
SELECT 87 / + col0 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - MAX( - + ( - 40 ) ) AS col0 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - MAX ( - + ( - 40 ) ) AS col0 FROM tab0 AS cor0
----
-40

query II rowsort
SELECT DISTINCT - col2 * + ( - - 34 ) AS col2, + 47 FROM tab2
----
-1360
47
-1972
47
-782
47

query I rowsort
SELECT ALL - col1 * - 15 FROM tab2
----
1005
1155
765

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN + col2 - + 66 AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT SUM( + 37 ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4569
SELECT SUM ( + 37 ) FROM tab0
----
111

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 / + + 29 ) NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT + col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + SUM( + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4572
SELECT + SUM ( + col0 ) AS col1 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT MIN( DISTINCT - + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT MIN ( DISTINCT - + col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL + MAX( - col1 ) * - ( - - COUNT( * ) ) col1 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4574
SELECT ALL + MAX ( - col1 ) * - ( - - COUNT ( * ) ) col1 FROM tab2
----
153

query I rowsort
SELECT - 17 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT col0 - - + col2 FROM tab0 WHERE NOT ( NOT ( col2 ) IS NOT NULL )
----
196
62
97

query I rowsort
SELECT ALL 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + + 10 AS col1 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT ALL 23 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL - SUM( ALL + - 92 ) col1 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4580
SELECT ALL - SUM ( ALL + - 92 ) col1 FROM tab2 AS cor0
----
276

query I rowsort
SELECT ALL + col1 + - - ( - + ( + 46 ) ) + - col2 FROM tab0 AS cor0
----
-12
-144
-35

query I rowsort
SELECT 27 + - + col0 FROM tab1
----
-24
-58
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT + CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + - 55 + - col1 + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT + CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - 55 + - col1 + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 34 + - ( + col0 ) AS col1 FROM tab2
----
-12
-30
-41

query I rowsort
SELECT + col1 * + col1 + - ( col1 ) - + col0 AS col0 FROM tab0
----
-97
333
6465

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col1, - col1 * - - col0, - - 46 + - - col0 )
----

query I rowsort
SELECT + 77 + - col2 FROM tab0
----
-22
30
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 47 IS NOT NULL
----

query I rowsort
SELECT 75 + - - col0 + + + col2 * + - 71 * + + col2 AS col1 FROM tab2
----
-113461
-238694
-37438

query I rowsort
SELECT DISTINCT ( - 45 ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT - + COUNT( - + 57 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - + COUNT ( - + 57 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE + col0 <> + 26
----
1
21
81

query I rowsort
SELECT 44 * col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 < ( - - col0 * - + col2 * + col2 ) )
----

query II rowsort
SELECT 29 - + col2, - 21 AS col0 FROM tab2
----
-11
-21
-29
-21
6
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - SUM( + ( col0 ) ) - MAX( DISTINCT - 7 ) AS col1 FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-4595
SELECT - SUM ( + ( col0 ) ) - MAX ( DISTINCT - 7 ) AS col1 FROM tab1
----
-220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL SUM( - 93 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL SUM ( - 93 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4598
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4598
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 < + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL - COUNT( DISTINCT - 85 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - COUNT ( DISTINCT - 85 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - ( + - 89 ) FROM tab1 AS cor0
----
89
89
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT ALL + CAST( - - MIN( ALL col0 ) AS SIGNED ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL + CAST ( - - MIN ( ALL col0 ) AS INTEGER ) AS col1 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE + col0 + 96 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE + col0 + 96 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - MAX( - - col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4606
SELECT - MAX ( - - col0 ) col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT + MAX( DISTINCT col2 ) + - ( - 58 ) AS col2 FROM tab2 cor0
----
116

skipif mysql # not compatible
query I rowsort label-4608
SELECT + MAX ( DISTINCT col2 ) + - ( - 58 ) AS col2 FROM tab2 cor0
----
116

query I rowsort
SELECT ALL + col1 * - 12 AS col2 FROM tab1 cor0
----
-168
-564
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT 89 + + + col0 DIV + col0 + + - col1 + - 67 FROM tab1 AS cor0
----
-24
18
9

skipif mysql # not compatible
query I rowsort label-4610
SELECT 89 + + + col0 / + col0 + + - col1 + - 67 FROM tab1 AS cor0
----
-24
18
9

query I rowsort
SELECT DISTINCT 18 + 84 + + col2 AS col1 FROM tab2 AS cor0
----
125
142
160

query I rowsort
SELECT - ( 1 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 18 + + - 49 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 + 65 AS col1 FROM tab1 AS cor0
----
124
133
161

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4616
SELECT ALL * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4616
SELECT ALL * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT SUM( - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT SUM ( - col0 ) AS col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT + - COUNT( * ) col2 FROM tab1 WHERE NOT + 52 + + 63 + - + col1 * 55 * - + 0 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4618
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab1 WHERE NOT + 52 + + 63 + - + col1 * 55 * - + 0 < NULL
----
0

query I rowsort
SELECT ALL - col0 - + + 27 AS col1 FROM tab1
----
-112
-118
-78

query I rowsort
SELECT DISTINCT - 17 * col2 FROM tab0
----
-1683
-170
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT - 67 + MIN( + 30 ) AS col1 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - 67 + MIN ( + 30 ) AS col1 FROM tab0 cor0
----
-37

query I rowsort
SELECT - - col2 + ( - + col1 ) FROM tab0 cor0
----
-11
-34
98

query II rowsort
SELECT - col2 + col1 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
-98
-99
11
-10
34
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT - COUNT( + col2 ) + + + 70 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT - COUNT ( + col2 ) + + + 70 FROM tab2 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + MIN( ALL - 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4625
SELECT + MIN ( ALL - 32 ) FROM tab1
----
-32

query I rowsort
SELECT col1 * - + col0 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT COUNT( * ) * - COUNT( * ) + - + CAST( - 8 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4627
SELECT COUNT ( * ) * - COUNT ( * ) + - + CAST ( - 8 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col2 BETWEEN + col1 + - col1 AND + ( + col2 ) * + col2 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT ALL + ( - 4 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + ( - 4 ) / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - - ( + + col2 ) ) * + + col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + + col1 IS NULL
----
46

query I rowsort
SELECT DISTINCT + - ( + 42 ) AS col1 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL ( + MAX( DISTINCT - col2 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL ( + MAX ( DISTINCT - col2 ) ) AS col1 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT DISTINCT + 10 AS col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4635
SELECT DISTINCT + 10 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT - SUM( ALL col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - SUM ( ALL col0 ) AS col1 FROM tab2
----
-185

query II rowsort
SELECT + 98, col0 AS col0 FROM tab0
----
98
15
98
87
98
97

query II rowsort
SELECT col0, - col1 AS col0 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ( + ( - - 52 ) ) AS col1 FROM tab0
----
52
52
52

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( NOT - col0 < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL + COUNT( * ) col2 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-4641
SELECT ALL + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col1 * + col0 * col1 AS col1 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4644
SELECT DISTINCT - col2 * - col1 AS col0, CAST( 4 AS SIGNED ) FROM tab1 AS cor0
----
1344
4
295
4
3196
4

skipif mysql # not compatible
query II rowsort label-4644
SELECT DISTINCT - col2 * - col1 AS col0, CAST ( 4 AS INTEGER ) FROM tab1 AS cor0
----
1344
4
295
4
3196
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL - col1 + CAST( NULL AS SIGNED ) - + - ( + 1 ) + + 78 + - 76 * + - ( - 43 ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) - + - ( + 1 ) + + 78 + - 76 * + - ( - 43 ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT DISTINCT - 50 * - CAST( NULL AS SIGNED ) + ( + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - 50 * - CAST ( NULL AS INTEGER ) + ( + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT col0 DIV + col0 + - ( col2 ) * - col0 - - 72 AS col1 FROM tab2
----
1131
2633
4423

skipif mysql # not compatible
query I rowsort label-4647
SELECT col0 / + col0 + - ( col2 ) * - col0 - - 72 AS col1 FROM tab2
----
1131
2633
4423

query I rowsort
SELECT DISTINCT 32 + - 62 FROM tab1
----
-30

query I rowsort
SELECT + ( + 11 ) + - col2 * - col1 + col1 FROM tab1
----
1369
311
3254

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab0 WHERE + 44 IS NOT NULL
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT 42 * + COUNT( * ) + + 8 AS col0 FROM tab2
----
134

skipif mysql # not compatible
query I rowsort label-4651
SELECT 42 * + COUNT ( * ) + + 8 AS col0 FROM tab2
----
134

query I rowsort
SELECT + col0 + + 79 AS col2 FROM tab2
----
125
143
154

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT DISTINCT - 56 - + 0 + - + col0 DIV + col2 FROM tab0
----
-56
-64

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT - 56 - + 0 + - + col0 / + col2 FROM tab0
----
-56
-64

query I rowsort
SELECT DISTINCT 66 * + col0 * + ( + col2 ) + + + 11 + 56 - + col2 AS col0 FROM tab0
----
46550
57477
633766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT DISTINCT + 30 * MAX( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + 30 * MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( col2 ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - 90 + + 48 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT ALL + + 10 AS col2 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT DISTINCT col2 + CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT col2 + CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
0

query I rowsort
SELECT col1 + 96 * + col1 AS col1 FROM tab2
----
4947
6499
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL col1 * 98 + CAST( + col1 AS SIGNED ) * 95 FROM tab2
----
12931
14861
9843

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL col1 * 98 + CAST ( + col1 AS INTEGER ) * 95 FROM tab2
----
12931
14861
9843

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL MAX( DISTINCT + 63 ) col0 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4662
SELECT ALL MAX ( DISTINCT + 63 ) col0 FROM tab1
----
63

query I rowsort
SELECT - 99 + col1 FROM tab2
----
-22
-32
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT col1 <= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4664
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT col1 <= ( NULL )
----
0

query I rowsort
SELECT - col0 * + col0 AS col1 FROM tab2 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT ALL ( ( + col0 ) ) + - col1 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT + MIN( ALL 43 ) + 40 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + MIN ( ALL 43 ) + 40 FROM tab0
----
83

query I rowsort
SELECT 48 + col0 FROM tab2
----
112
123
94

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * col0 + col1 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col1 + 95 FROM tab1
----
100
109
142

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 84 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + 99 * col0 AS col0 FROM tab0
----
1566
8634
9604

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + 29 NOT BETWEEN 64 * col2 AND NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT - COUNT( col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4675
SELECT - COUNT ( col0 ) AS col0 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col1 FROM tab1 WHERE NOT ( + col2 * - col2 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4677
SELECT 18 * ( - CAST( 3 AS SIGNED ) * - 46 ) + MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
2542

skipif mysql # not compatible
query I rowsort label-4677
SELECT 18 * ( - CAST ( 3 AS INTEGER ) * - 46 ) + MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN col2 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN col2 AND col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 39 ) NOT IN ( 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - col2 FROM tab1 WHERE + ( 51 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 94 col0 FROM tab1
----
-3
-43
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4682
SELECT ALL * FROM tab1 WHERE ( 89 + CAST( NULL AS SIGNED ) * + 7 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4682
SELECT ALL * FROM tab1 WHERE ( 89 + CAST ( NULL AS INTEGER ) * + 7 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 WHERE ( col0 ) = + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col0 * col1 BETWEEN + col1 * col1 + - 57 AND - 85
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT 91 / - CAST( + 27 AS SIGNED ) AS col2 FROM tab2 WHERE NOT 5 * - col2 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4686
SELECT 91 / - CAST ( + 27 AS INTEGER ) AS col2 FROM tab2 WHERE NOT 5 * - col2 = ( NULL )
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + col2 * - 85 <= NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL <> ( + 86 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 AS col2 FROM tab1 cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col2 FROM tab0 AS cor0 WHERE ( - col0 ) < + col0 * + col1
----
-76

query I rowsort
SELECT DISTINCT col1 * - col2 + col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT 94 * col1 AS col1 FROM tab0 AS cor0
----
1974
7614
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT + col0 * ( - col1 DIV + col1 ) + + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT + col0 * ( - col1 / + col1 ) + + col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE col2 * 81 + - col2 IN ( + col2 + - col2 * 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL SUM( + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL SUM ( + col1 ) FROM tab1 cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * col2 col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT ALL + ( col2 ) * + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + ( col2 ) * + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT ( col2 ) DIV 13 AS col2 FROM tab2 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-4699
SELECT ( col2 ) / 13 AS col2 FROM tab2 AS cor0
----
1
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT DISTINCT - + CAST( col2 AS SIGNED ) + - 79 AS col2 FROM tab2 AS cor0
----
-102
-119
-137

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) + - 79 AS col2 FROM tab2 AS cor0
----
-102
-119
-137

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0 WHERE + 82 * col0 NOT IN ( col1 )
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT 64 - col2 DIV col1 FROM tab0 AS cor0
----
-35
64

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT 64 - col2 / col1 FROM tab0 AS cor0
----
-35
64

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT MIN( DISTINCT col0 ) * - COUNT( * ) + + 56 AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT MIN ( DISTINCT col0 ) * - COUNT ( * ) + + 56 AS col2 FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL 28 - + - 38 AS col2 FROM tab2
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT - COUNT( * ) + 85 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - COUNT ( * ) + 85 FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT - COUNT( * ) - COUNT( 2 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT - COUNT ( * ) - COUNT ( 2 ) FROM tab1
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 3 + + col0 BETWEEN col2 * + col0 - col2 / + col0 AND col1 * 34 + - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4710
SELECT * FROM tab1 WHERE CAST( + 31 AS DECIMAL ) IN ( col0 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-4710
SELECT * FROM tab1 WHERE CAST ( + 31 AS REAL ) IN ( col0 * - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT + col0 * 33 FROM tab2 WHERE - col0 + + col0 IS NULL
----

query I rowsort
SELECT 66 * col1 + ( col2 + 71 * + col0 ) AS col0 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4714
SELECT - ( + + COUNT( * ) ) * COUNT( * ) - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT - ( + + COUNT ( * ) ) * COUNT ( * ) - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( ( 8 ) ) <> ( ( + 34 ) )
----

query I rowsort
SELECT ALL + col0 * - 71 FROM tab2
----
-3266
-4544
-5325

query I rowsort
SELECT + ( - col1 ) * - col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( col0 ) IN ( - col1 + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 25 - + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col0 FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4721
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 10 - 49 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4721
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 10 - 49 * + CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 44 BETWEEN NULL AND ( col0 + + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 95 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col2 FROM tab2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT + 33 + + 69 FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) * 44 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 33 + + 69 FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) * 44 + + col1 IS NULL
----

query II rowsort
SELECT DISTINCT col2, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( + + 78 / col0 )
----

query I rowsort
SELECT ALL - ( - col1 ) FROM tab2 AS cor0 WHERE NOT - 38 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + ( - col0 ) ) NOT BETWEEN ( - 31 ) AND ( - col0 )
----

query I rowsort
SELECT ALL col1 * - - col1 FROM tab2 cor0
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 12 ) < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 18 - 6 AS col0 FROM tab0 WHERE NOT + 12 + - 34 BETWEEN + col0 AND NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL - MAX( ALL + 84 ) * ( + - 82 ) AS col2 FROM tab2
----
6888

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - MAX ( ALL + 84 ) * ( + - 82 ) AS col2 FROM tab2
----
6888

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT + 63 * - - COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + 63 * - - COUNT ( * ) FROM tab1
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT - 34 DIV - 38 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT - 34 / - 38 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT - COUNT( * ) + + COUNT( * ) * - - CAST( - 26 AS SIGNED ) + ( + 81 ) * - ( + CAST( NULL AS SIGNED ) * + COUNT( * ) - CAST( 67 AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT - COUNT ( * ) + + COUNT ( * ) * - - CAST ( - 26 AS INTEGER ) + ( + 81 ) * - ( + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - CAST ( 67 AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT ALL + col0 / - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + col0 / - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 8 * ( col1 ) + - + ( 43 ) FROM tab2
----
365
493
573

query I rowsort
SELECT col1 + + - col2 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT + 52 * 86 + + col2 FROM tab1
----
4531
4540
4568

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL 87 + SUM( - + 25 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL 87 + SUM ( - + 25 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT + col1 + col2 AS col1 FROM tab2 AS cor0 WHERE - col1 * - col2 + - + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 71 * + 83 + + 44 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4746
SELECT DISTINCT CAST( - COUNT( ALL 82 ) AS SIGNED ) FROM tab1 AS cor0 WHERE col2 >= + 89
----
-1

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT CAST ( - COUNT ( ALL 82 ) AS INTEGER ) FROM tab1 AS cor0 WHERE col2 >= + 89
----
-1

query I rowsort
SELECT ALL - ( 94 ) AS col2 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL ( + col2 ) - - 69 AS col1 FROM tab1
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 31 ) col2 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT + - 55 + ( + - col0 ) FROM tab1 AS cor0
----
-106
-140
-146

query I rowsort
SELECT col0 * + - 99 * + col1 FROM tab2 cor0 WHERE ( + col1 - - - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + COUNT( * ) + 62 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-4752
SELECT + COUNT ( * ) + 62 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - 25 + - - COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 25 + - - COUNT ( * ) FROM tab2
----
-22

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT COUNT( DISTINCT + - ( - col1 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4755
SELECT COUNT ( DISTINCT + - ( - col1 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - 5 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - 38 ) FROM tab1
----
-38
-38
-38

query II rowsort
SELECT ALL 11 AS col1, col0 + - 79 AS col2 FROM tab0
----
11
-64
11
18
11
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL - COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) * - + 70 AS col0 FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) * - + 70 AS col0 FROM tab0, tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 38 ) IN ( + col2, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col1, + 87 * ( + col1 ) + - - col0 FROM tab0 AS cor0
----
15
7062
87
1914
97
184

query I rowsort
SELECT ALL + + col1 * - - col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + col2 * + 36 + + col1 + + ( 26 ) + col1 + ( - 59 + - col1 ) FROM tab2 AS cor0
----
1484
2122
846

query III rowsort
SELECT * FROM tab0 WHERE NOT + 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( ( 25 ) ) / - ( col0 * col2 ) FROM tab2 WHERE NOT + col0 NOT IN ( + + ( - 81 ) + 97 )
----

query I rowsort
SELECT - 55 * col1 AS col1 FROM tab1
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE 38 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE 38 * col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 > ( NULL )
----
0

query I rowsort
SELECT ALL 17 FROM tab0 AS cor0 WHERE - ( + col0 ) * + ( - col2 ) + + col1 NOT IN ( col1 + - 65 )
----
17
17
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4770
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col2 + col2 * 70 * 81 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN ( col2 ) AND NULL )
----

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT CAST ( NULL AS REAL ) + + col2 + col2 * 70 * 81 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN ( col2 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - - SUM( - col0 ) + - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
-232

skipif mysql # not compatible
query I rowsort label-4771
SELECT - - SUM ( - col0 ) + - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-232

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - COUNT( + col2 ) + - COUNT( * ) + - 61 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4773
SELECT - COUNT ( + col2 ) + - COUNT ( * ) + - 61 FROM tab1 AS cor0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT ALL + COUNT( * ) * + ( + ( - + COUNT( ALL + + col2 ) ) ) * COUNT( * ) / + COUNT( * ) * + SUM( + 29 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + COUNT ( * ) * + ( + ( - + COUNT ( ALL + + col2 ) ) ) * COUNT ( * ) / + COUNT ( * ) * + SUM ( + 29 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - + col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-4776
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT 56 + - COUNT( * ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT 56 + - COUNT ( * ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT - col1 + - 42 AS col1 FROM tab2 AS cor0
----
-109
-119
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + - 13 col1 FROM tab2 AS cor0
----
-64
-80
-90

query I rowsort
SELECT + col2 + + ( - - col1 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + 91 * + - col1 + col2 * col1 FROM tab1 cor0
----
-1081
-160
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT MAX( ALL - - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT MAX ( ALL - - col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4784
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col2 AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4784
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col2 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT 73 * - SUM( ALL col2 ) AS col0 FROM tab0
----
-11388

skipif mysql # not compatible
query I rowsort label-4785
SELECT 73 * - SUM ( ALL col2 ) AS col0 FROM tab0
----
-11388

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 NOT BETWEEN + col1 AND + ( col1 )
----

query II rowsort
SELECT ALL - 13 + + 67 * - + 77 * 40, col1 FROM tab1 AS cor0
----
-206373
14
-206373
47
-206373
5

query I rowsort
SELECT DISTINCT ( + col1 ) + - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query III rowsort label-4789
SELECT - col0 DIV 51 + ( 18 ) AS col2, + col0 AS col1, + + col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to b69db3ef90e4105c25ea137cd6ff754a

skipif mysql # not compatible
query III rowsort label-4789
SELECT - col0 / 51 + ( 18 ) AS col2, + col0 AS col1, + + col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to b69db3ef90e4105c25ea137cd6ff754a

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT - - col2 DIV + col2 + + ( + 80 ) - + col0 FROM tab0 AS cor0
----
-16
-6
66

skipif mysql # not compatible
query I rowsort label-4790
SELECT - - col2 / + col2 + + ( + 80 ) - + col0 FROM tab0 AS cor0
----
-16
-6
66

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT NULL = 23
----

query I rowsort
SELECT DISTINCT - ( + 81 ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-71
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 82 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN + col2 AND col1
----
75
67
58

query I rowsort
SELECT ALL + - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT + COUNT( * ) AS col2, + SUM( + + col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4797
SELECT + COUNT ( * ) AS col2, + SUM ( + + col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - SUM( 68 ) AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - SUM ( 68 ) AS col0 FROM tab0
----
-204

query I rowsort
SELECT + ( - 16 ) FROM tab1
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + col0 * + + ( col1 ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT SUM( 90 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-4802
SELECT SUM ( 90 ) FROM tab2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT COUNT( + + ( 19 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4803
SELECT COUNT ( + + ( 19 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT MAX( ALL + 97 ) AS col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4804
SELECT MAX ( ALL + 97 ) AS col1 FROM tab2 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT col0, 44 AS col0 FROM tab0
----
15
44
87
44
97
44

query III rowsort
SELECT * FROM tab2 WHERE NOT 93 - 89 + + - 89 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4810
SELECT DISTINCT * FROM tab1 cor0 WHERE + 98 - - col2 / + CAST( + col0 AS SIGNED ) BETWEEN NULL AND - 9
----

skipif mysql # not compatible
query III rowsort label-4810
SELECT DISTINCT * FROM tab1 cor0 WHERE + 98 - - col2 / + CAST ( + col0 AS INTEGER ) BETWEEN NULL AND - 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT + 53 * - MAX( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
2438

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + 53 * - MAX ( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
2438

query I rowsort
SELECT col2 + - ( col2 ) * + 73 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + 13 - - 94 + + - col1 )
----

query I rowsort
SELECT DISTINCT 99 FROM tab1 AS cor0 WHERE col1 * col0 <= - - col2 + - 35 + 98
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * - + col2 NOT IN ( + 28 * col1 + - + col0 + - - 13 - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT + + 10 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 96 + + ( 73 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col2
----

skipif mysql # not compatible
query I rowsort label-4815
SELECT + + 10 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 96 + + ( 73 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + + COUNT( ALL 9 ) * 90 FROM tab0 cor0
----
270

skipif mysql # not compatible
query I rowsort label-4816
SELECT + + COUNT ( ALL 9 ) * 90 FROM tab0 cor0
----
270

query II rowsort
SELECT ALL - 51 AS col0, 25 AS col1 FROM tab1 AS cor0
----
-51
25
-51
25
-51
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 17 + 90 FROM tab0
----
107
107
107

query I rowsort
SELECT col0 * - col1 + + 15 FROM tab1
----
-410
-4262
-699

query I rowsort
SELECT ALL col1 * - - col1 AS col0 FROM tab2 WHERE NOT + + 27 IN ( - 30, ( 36 ) )
----
2601
4489
5929

query I rowsort
SELECT - 53 + - col0 * col1 AS col1 FROM tab2
----
-2399
-4981
-5078

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - MAX( DISTINCT - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT ALL MIN( ALL + col0 ), - 25 col0 FROM tab1
----
51
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4824
SELECT ALL MIN ( ALL + col0 ), - 25 col0 FROM tab1
----
51
-25

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT 71 BETWEEN - col2 AND NULL
----

query II rowsort
SELECT col1 + + col0 * - col2, - col0 AS col2 FROM tab1
----
-4882
-51
-5010
-85
-6141
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT COUNT( * ) col2 FROM tab1 cor0 WHERE + 88 > 7
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4827
SELECT COUNT ( * ) col2 FROM tab1 cor0 WHERE + 88 > 7
----
3

query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab0 AS cor0 WHERE 25 NOT BETWEEN + 81 AND NULL
----
15
87
97

query I rowsort
SELECT ALL 44 + - - col0 AS col1 FROM tab2
----
108
119
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + 86 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + 86 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 - - ( + 95 ) AS col2 FROM tab0
----
-2
8
80

query II rowsort
SELECT DISTINCT + 91 * - 70 - - + col2 AS col0, col2 FROM tab2
----
-6312
58
-6330
40
-6347
23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4833
SELECT DISTINCT - col1, + 25 AS col0, - col0 * + col2 - - ( 13 ) + + 62 * col1 FROM tab1 cor0 WHERE NOT ( NOT - col1 / + 21 * + CAST( NULL AS DECIMAL ) + col0 <> NULL )
----

skipif mysql # not compatible
query III rowsort label-4833
SELECT DISTINCT - col1, + 25 AS col0, - col0 * + col2 - - ( 13 ) + + 62 * col1 FROM tab1 cor0 WHERE NOT ( NOT - col1 / + 21 * + CAST ( NULL AS REAL ) + col0 <> NULL )
----

query I rowsort
SELECT DISTINCT + col2 * + + col0 * + - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT col0 + - 62 < - + col1
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT + col2 DIV - - col0 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4836
SELECT + col2 / - - col0 AS col2 FROM tab0 AS cor0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) BETWEEN 2 * col2 AND + + 41 )
----

query I rowsort
SELECT 30 * + 89 AS col2 FROM tab1 AS cor0
----
2670
2670
2670

query II rowsort
SELECT ALL - 75 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-75
14
-75
47
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT MAX( DISTINCT - col0 ) * + 82 * + - COUNT( ALL - col2 ) FROM tab2 cor0
----
11316

skipif mysql # not compatible
query I rowsort label-4840
SELECT MAX ( DISTINCT - col0 ) * + 82 * + - COUNT ( ALL - col2 ) FROM tab2 cor0
----
11316

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col1 FROM tab0
----
-70
-70
-70

query I rowsort
SELECT 47 * + ( - 71 ) AS col2 FROM tab1
----
-3337
-3337
-3337

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - col1 * + 81
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 < + col2 * + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 <= ( NULL )
----

query I rowsort
SELECT ALL - - 93 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 73 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT ALL - + col1 + col0 + + col1 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 38 col0 FROM tab1 cor0
----
43
52
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL + - MAX( 54 ) + + 0 AS col2 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + - MAX ( 54 ) + + 0 AS col2 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL + - 75 * col2 AS col1 FROM tab2 AS cor0
----
-1725
-3000
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4856
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab0 WHERE NULL = col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4856
SELECT CAST ( NULL AS REAL ) col0 FROM tab0 WHERE NULL = col0
----

query I rowsort
SELECT ALL 89 FROM tab1 WHERE NOT NULL IS NOT NULL
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 81 col0, + 56 FROM tab1
----
81
56

query I rowsort
SELECT - - col0 AS col2 FROM tab2 WHERE - 89 NOT BETWEEN col1 AND NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL + 57 + - + COUNT( * ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + 57 + - + COUNT ( * ) AS col0 FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT ALL MIN( DISTINCT - 31 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL MIN ( DISTINCT - 31 ) FROM tab0
----
-31

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + 31 + + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL + COUNT( * ) * 3 AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + COUNT ( * ) * 3 AS col0 FROM tab2
----
9

query II rowsort
SELECT + col0 AS col2, 83 + col0 FROM tab2
----
46
129
64
147
75
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 78 * + ( - 72 ) AS col2 FROM tab0 AS cor0
----
-5616
-5616
-5616

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 21 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + - col2 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 71 ) > + col0
----

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4871
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT COUNT( ALL + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4872
SELECT COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + COUNT( * ) * - - 63 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-4873
SELECT + COUNT ( * ) * - - 63 FROM tab0 AS cor0
----
189

query II rowsort
SELECT DISTINCT + 23, 39 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT + 46 * - COUNT( * ) col1, + COUNT( * ) * - 0 FROM tab1 cor0
----
-138
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4875
SELECT + 46 * - COUNT ( * ) col1, + COUNT ( * ) * - 0 FROM tab1 cor0
----
-138
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT + 51 * + MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
510

skipif mysql # not compatible
query I rowsort label-4876
SELECT + 51 * + MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT - - ( CAST( NULL AS SIGNED ) ) * - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) * - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( col2 ) * + col0 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT DISTINCT ( - col1 ), - 64 AS col2 FROM tab2 AS cor0
----
-51
-64
-67
-64
-77
-64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2 + - col2 * - + 44 * - col1, + 65, col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + COUNT( * ) * - 50 col2 FROM tab0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4883
SELECT DISTINCT + COUNT ( * ) * - 50 col2 FROM tab0
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 16 col2 FROM tab2
----
51
-16
67
-16
77
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) BETWEEN - + col1 * - CAST( NULL AS SIGNED ) + col0 AND + col0 )
----

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) BETWEEN - + col1 * - CAST ( NULL AS INTEGER ) + col0 AND + col0 )
----

query II rowsort
SELECT DISTINCT col0 AS col0, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT + col2 * + 76 + - 48, - 84 * + - col0 AS col2 FROM tab0 AS cor0
----
3524
1260
712
7308
7476
8148

query I rowsort
SELECT ALL - - ( - col0 ) FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 12 IS NULL
----

query I rowsort
SELECT ALL col1 * + + 51 * - col2 + col0 FROM tab1
----
-14960
-162905
-68493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT - CAST( + 20 AS SIGNED ) col2 FROM tab1
----
-20
-20
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4891
SELECT - CAST ( + 20 AS INTEGER ) col2 FROM tab1
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT + + ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT + + ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT - SUM( DISTINCT + ( 64 ) ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT - SUM ( DISTINCT + ( 64 ) ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 9 + - 0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 9 + - 0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT DISTINCT - 76 + col1 DIV + 85 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - 76 + col1 / + 85 FROM tab2 AS cor0
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-4896
SELECT DISTINCT 33 + - col1 AS col0, col0 + - col1 DIV col2 FROM tab1 cor0
----
-14
91
19
51
28
85

skipif mysql # not compatible
query II rowsort label-4896
SELECT DISTINCT 33 + - col1 AS col0, col0 + - col1 / col2 FROM tab1 cor0
----
-14
91
19
51
28
85

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <> + - col0 + + + col2
----

query I rowsort
SELECT - 48 + + + col1 AS col2 FROM tab2
----
19
29
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 52 col1 FROM tab2
----
-116
-127
-98

query I rowsort
SELECT ALL + ( + 68 ) - - col0 * - - col1 FROM tab2
----
2414
4996
5093

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT 50 + ( COUNT( * ) ) + + SUM( DISTINCT + + col2 ) * + + 87 AS col1 FROM tab2
----
10580

skipif mysql # not compatible
query I rowsort label-4901
SELECT 50 + ( COUNT ( * ) ) + + SUM ( DISTINCT + + col2 ) * + + 87 AS col1 FROM tab2
----
10580

query III rowsort
SELECT * FROM tab1 WHERE NOT - 11 IS NOT NULL OR NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 58 ) col1 FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT + ( + COUNT( * ) ) + - 14 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + ( + COUNT ( * ) ) + - 14 FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4905
SELECT - COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col1 * + - col2, col2 FROM tab1
----
1344
96
295
59
3196
68

query II rowsort
SELECT DISTINCT col2, - col2 AS col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 26 > NULL
----

query I rowsort
SELECT - 20 * + col0 FROM tab1 AS cor0
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT - COUNT( * ), 3 AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4910
SELECT - COUNT ( * ), 3 AS col2 FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT ( col1 ) * + - CAST( 96 AS SIGNED ) FROM tab2
----
-4896
-6432
-7392

skipif mysql # not compatible
query I rowsort label-4911
SELECT ( col1 ) * + - CAST ( 96 AS INTEGER ) FROM tab2
----
-4896
-6432
-7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT ALL MIN( col2 ) / - CAST( NULL AS SIGNED ) / - 91 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL MIN ( col2 ) / - CAST ( NULL AS INTEGER ) / - 91 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + - 75 AS col1 FROM tab1 cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT ALL + 37 + col0 + col2 FROM tab0 AS cor0
----
134
233
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col0 FROM tab2 AS cor0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 > - 40
----
91
47
68

query I rowsort
SELECT DISTINCT col2 + + + ( col0 ) + - 79 AS col1 FROM tab2 AS cor0
----
-10
25
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 91 col1, 96 FROM tab0
----
91
96
91
96
91
96

query I rowsort
SELECT + col2 + col1 FROM tab1 AS cor0 WHERE + 72 + - - col2 IS NULL
----

query I rowsort
SELECT + 36 + - + col1 FROM tab0 AS cor0
----
-45
15
35

query I rowsort
SELECT + + col2 + - 74 AS col1 FROM tab2 AS cor0
----
-16
-34
-51

query I rowsort
SELECT DISTINCT - 45 FROM tab2 AS cor0 WHERE 66 - col0 / 37 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT 23 AS col0, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
23
-3

skipif mysql # not compatible
query II rowsort label-4924
SELECT 23 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
23
-3

query I rowsort
SELECT DISTINCT col1 + 55 AS col2 FROM tab0 AS cor0
----
136
56
76

query I rowsort
SELECT ALL - + col2 + 45 AS col2 FROM tab2 AS cor0
----
-13
22
5

query I rowsort
SELECT ALL col1 + - - 29 AS col1 FROM tab2 AS cor0
----
106
80
96

query II rowsort
SELECT 31 AS col1, + col0 FROM tab2 AS cor0
----
31
46
31
64
31
75

query I rowsort
SELECT - 90 FROM tab0 AS cor0 WHERE - 36 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT AVG ( ALL - + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4930
SELECT AVG ( ALL - + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NOT + 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4932
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4932
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT + SUM( ALL + 60 ) + + 30 AS col2, SUM( DISTINCT - col1 ) * + ( 34 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4933
SELECT + SUM ( ALL + 60 ) + + 30 AS col2, SUM ( DISTINCT - col1 ) * + ( 34 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT SUM( ALL - col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT SUM ( ALL - col2 ) AS col1 FROM tab1
----
-223

query I rowsort
SELECT col0 - - col1 + - 11 FROM tab2
----
130
131
86

query I rowsort
SELECT col0 + 49 FROM tab2
----
113
124
95

query I rowsort
SELECT + 11 * col2 + col1 + - + col2 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-154
-749
-8612

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT 16 * + + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4938
SELECT 16 * + + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4939
SELECT - col2 DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4939
SELECT - col2 / - - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + COUNT( * ) * 30 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4940
SELECT + COUNT ( * ) * 30 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL - SUM( + col1 ) * 69 FROM tab0 AS cor0
----
-7107

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - SUM ( + col1 ) * 69 FROM tab0 AS cor0
----
-7107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4942
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-4942
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL - + SUM( DISTINCT + ( 47 ) ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - + SUM ( DISTINCT + ( 47 ) ) AS col0 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT - - 92 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - 64 * + MIN( + - col1 ) FROM tab0 AS cor0
----
5184

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - 64 * + MIN ( + - col1 ) FROM tab0 AS cor0
----
5184

query I rowsort
SELECT + - 73 AS col0 FROM tab2 cor0
----
-73
-73
-73

query II rowsort
SELECT ALL + + col0 AS col0, - 49 FROM tab2 AS cor0
----
46
-49
64
-49
75
-49

query I rowsort
SELECT ALL + 41 * - col0 FROM tab1 AS cor0
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT - - MAX( DISTINCT - + 54 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 3 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - - MAX ( DISTINCT - + 54 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 3 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT - 92 + - 27 / - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( + + col2 AS SIGNED ) / + col1 AND col1
----

skipif mysql # not compatible
query I rowsort label-4952
SELECT - 92 + - 27 / - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( + + col2 AS INTEGER ) / + col1 AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4953
SELECT ALL - CAST( NULL AS DECIMAL ), col2 col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4953
SELECT ALL - CAST ( NULL AS REAL ), col2 col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4954
SELECT - CAST( NULL AS DECIMAL ) * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - CAST ( NULL AS REAL ) * col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + + 2 + col2 > col2
----

query I rowsort
SELECT - 79 * - 12 + - col2 AS col2 FROM tab0
----
849
901
938

query I rowsort
SELECT - ( + 28 ) + col1 FROM tab2
----
23
39
49

query I rowsort
SELECT DISTINCT + 70 FROM tab0 WHERE NOT - - col2 IS NULL
----
70

query I rowsort
SELECT ALL - 76 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL col0 + + + 86 + + col0 AS col1 FROM tab0 AS cor0
----
116
260
280

query I rowsort
SELECT + 0 * + + col1 * - col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT - CAST( + col0 AS SIGNED ) col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4963
SELECT - CAST ( + col0 AS INTEGER ) col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( col2 ) <= NULL )
----

query I rowsort
SELECT DISTINCT + - 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 < - + 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT - col2 / + col0 - + - 24 + - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT - col2 / + col0 - + - 24 + - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4968
SELECT DISTINCT col2 DIV - col0 AS col0, 63 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
63

skipif mysql # not compatible
query II rowsort label-4968
SELECT DISTINCT col2 / - col0 AS col0, 63 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL - - 93 + + + COUNT( * ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - - 93 + + + COUNT ( * ) AS col0 FROM tab1 cor0
----
96

query I rowsort
SELECT + col0 + + + col0 AS col0 FROM tab0 cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT + 78 + + ( + COUNT( * ) ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + 78 + + ( + COUNT ( * ) ) FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT - ( CAST( - 93 AS SIGNED ) ) + - col2 AS col0 FROM tab1
----
-3
25
34

skipif mysql # not compatible
query I rowsort label-4972
SELECT - ( CAST ( - 93 AS INTEGER ) ) + - col2 AS col0 FROM tab1
----
-3
25
34

query I rowsort
SELECT col0 + - - ( 5 ) AS col1 FROM tab0
----
102
20
92

query I rowsort
SELECT ALL 21 * col2 - - + 46 FROM tab1
----
1285
1474
2062

query III rowsort
SELECT * FROM tab2 WHERE 61 - + 39 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + - 61 ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4977
SELECT - 83, col2 DIV + col1 * - + col0 + ( - 41 ) - 97 * + - 17 AS col0 FROM tab2
----
-83
1608
-83
1608
-83
1608

skipif mysql # not compatible
query II rowsort label-4977
SELECT - 83, col2 / + col1 * - + col0 + ( - 41 ) - 97 * + - 17 AS col0 FROM tab2
----
-83
1608
-83
1608
-83
1608

query I rowsort
SELECT col2 * - + col0 * 6 FROM tab1
----
-29376
-30090
-37128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN - 12 - + - col0 AND - 97
----

query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab0 cor0
----
-53

query I rowsort
SELECT DISTINCT - - 23 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23

query I rowsort
SELECT + col1 * ( + col2 ) + 40 + + - 98 FROM tab0 WHERE NOT - - col1 + - col0 <= + col0
----
3749

query I rowsort
SELECT DISTINCT ( + + 57 ) AS col2 FROM tab2 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 AS cor0 WHERE + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4985
SELECT ( + CAST( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) * + 98 * + 76 + - col1, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4985
SELECT ( + CAST ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) * + 98 * + 76 + - col1, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT - col0 DIV - 43 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4986
SELECT - col0 / - 43 FROM tab0 AS cor0
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col1 FROM tab2 AS cor0
----
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + - col0 * - + 29 + col1 IS NOT NULL
----

query I rowsort
SELECT + 69 * + 12 * + + 79 * 11 AS col0 FROM tab0 AS cor0
----
719532
719532
719532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4990
SELECT ALL + 34 * + - 45 * - COUNT( - CAST( col2 AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
4590

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL + 34 * + - 45 * - COUNT ( - CAST ( col2 AS REAL ) ) AS col0 FROM tab2 AS cor0
----
4590

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4991
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4991
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - CAST ( NULL AS REAL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + 48 IS NOT NULL
----

query I rowsort
SELECT col0 * + ( + + col0 ) FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4994
SELECT * FROM tab1 WHERE NOT + CAST( + col0 AS SIGNED ) < + col2
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-4994
SELECT * FROM tab1 WHERE NOT + CAST ( + col0 AS INTEGER ) < + col2
----
85
5
59
91
47
68

query I rowsort
SELECT + col2 * + 98 FROM tab2
----
2254
3920
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT COUNT( * ) * 71 col0 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4996
SELECT COUNT ( * ) * 71 col0 FROM tab0
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT DISTINCT + COUNT( + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT + COUNT ( + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL col1 * - - 25 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT - col1 + col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT + col0 + col0, col0 FROM tab1
----
102
51
170
85
182
91

query I rowsort
SELECT - 50 + + 84 AS col0 FROM tab2
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT - 17 * + - COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5002
SELECT - 17 * + - COUNT ( * ) FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT DISTINCT - col1 * + CAST( + + col1 AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
132651
300763
456533

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT - col1 * + CAST ( + + col1 AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
132651
300763
456533

query I rowsort
SELECT - 67 * col0 AS col0 FROM tab2 cor0
----
-3082
-4288
-5025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 98 * 78 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL ) NOT BETWEEN col0 * col1 AND NULL )
----

query I rowsort
SELECT ALL - col1 * + 67 AS col0 FROM tab1 cor0
----
-3149
-335
-938

query II rowsort
SELECT - col2 + + 47 * col2 AS col2, col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2714
59
3128
68
4416
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col2 IS NOT NULL )
----

query I rowsort
SELECT + + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 29 * - 30 col1 FROM tab2 cor0
----
870
870
870

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + + col2 * - + col0 + + 47 FROM tab1 AS cor0
----
-4849
-4968
-6141

query I rowsort
SELECT DISTINCT col2 + 31 FROM tab2 AS cor0
----
54
71
89

query I rowsort
SELECT col2 - + 81 FROM tab0 AS cor0
----
-34
-71
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5016
SELECT + + 60 - CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5016
SELECT + + 60 - CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 57 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 57 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 57 + ( - col2 ) - col1 <> + - ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL col2 * - CAST( NULL AS SIGNED ) - + - 39 + + col2 * col0 - - + 41 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) - + - 39 + + col2 * col0 - - + 41 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 4 * - + col1 FROM tab1
----
-188
-20
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL > - 38 ) OR NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + COUNT( * ) * - 1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5023
SELECT + COUNT ( * ) * - 1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5024
SELECT ALL + 92 * 19 AS col2, - col2 DIV - col0 + - col2 AS col1 FROM tab0
----
1748
-10
1748
-44
1748
-98

skipif mysql # not compatible
query II rowsort label-5024
SELECT ALL + 92 * 19 AS col2, - col2 / - col0 + - col2 AS col1 FROM tab0
----
1748
-10
1748
-44
1748
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL MAX( - - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL MAX ( - - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col1 FROM tab0 cor0
----
78
78
78

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5028
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5028
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT - CAST( 6 AS SIGNED ) FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-5029
SELECT - CAST ( 6 AS INTEGER ) FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5031
SELECT DISTINCT CAST( NULL AS SIGNED ), + 84 * + - COUNT( * ) + - COUNT( + col2 ) * + COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-261

skipif mysql # not compatible
query II rowsort label-5031
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 84 * + - COUNT ( * ) + - COUNT ( + col2 ) * + COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-261

onlyif mysql # aggregate syntax: 
query II rowsort label-5032
SELECT DISTINCT + COUNT( * ) AS col1, + 61 FROM tab0 cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-5032
SELECT DISTINCT + COUNT ( * ) AS col1, + 61 FROM tab0 cor0
----
3
61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + col0 ) * + - col1 * - 50 * - 4 * col2 * - col2 AS col2 FROM tab0
----
-190139400
-36540000
-536787000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT col0 + - col0 + CAST( NULL AS SIGNED ) + + col0 + + - ( - + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT col0 + - col0 + CAST ( NULL AS INTEGER ) + + col0 + + - ( - + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 59 + - + col0 + + col0 AS col0 FROM tab1
----
59
59
59

query I rowsort
SELECT - col1 + ( 92 ) FROM tab2
----
15
25
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT + 87 + - + COUNT( DISTINCT - col2 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-5038
SELECT + 87 + - + COUNT ( DISTINCT - col2 ) FROM tab0
----
84

query I rowsort
SELECT 18 + + + 87 AS col1 FROM tab2
----
105
105
105

onlyif mysql # DIV for integer division: 
query II rowsort label-5040
SELECT - col2 * - + 33 + - + col0 DIV col1 AS col1, col1 AS col0 FROM tab2
----
1320
77
1913
67
759
51

skipif mysql # not compatible
query II rowsort label-5040
SELECT - col2 * - + 33 + - + col0 / col1 AS col1, col1 AS col0 FROM tab2
----
1320
77
1913
67
759
51

query II rowsort
SELECT ALL - + 34 + + col0 AS col1, - 69 + col2 FROM tab2 AS cor0
----
12
-46
30
-29
41
-11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( 36 * + col2 - + + ( + 51 ) - col2 ) IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - ( - + col0 ) + + col0 FROM tab1 cor0
----
102
170
182

query I rowsort
SELECT col0 * + + col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT col0 - + 2 AS col1 FROM tab1
----
49
83
89

query I rowsort
SELECT col2 * - - col2 - - 49 AS col1 FROM tab1
----
3530
4673
9265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * 16 * + col1 col0, 96 * col2 AS col1 FROM tab0 AS cor0
----
-1552
9504
-19440
4512
-29232
960

query I rowsort
SELECT DISTINCT - 11 + + - col1 AS col1 FROM tab1 cor0
----
-16
-25
-58

query I rowsort
SELECT DISTINCT col0 + + col1 + - 25 FROM tab1 AS cor0
----
113
40
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL - CAST( NULL AS SIGNED ) * - - 79 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 79 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT DISTINCT col1 DIV - 63 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT col1 / - 63 AS col0 FROM tab2
----
-1
0

query II rowsort
SELECT 57 AS col1, + col2 * - col1 - - col2 FROM tab0
----
57
-200
57
-3760
57
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + ( + ( + 83 ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT COUNT( * ) FROM tab0 WHERE NOT - col0 + - 39 / - 57 IN ( 7 / + col1, + 70, + - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5055
SELECT COUNT ( * ) FROM tab0 WHERE NOT - col0 + - 39 / - 57 IN ( 7 / + col1, + 70, + - col2 )
----
3

query I rowsort
SELECT ALL + col2 * - + col1 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5057
SELECT ALL - 84, COUNT( * ) col2 FROM tab2 AS cor0
----
-84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5057
SELECT ALL - 84, COUNT ( * ) col2 FROM tab2 AS cor0
----
-84
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab1 AS cor0 WHERE NOT - 17 IN ( col0, - col2 )
----
-14
-47
-5

query I rowsort
SELECT col1 * + + 36 FROM tab1 AS cor0
----
1692
180
504

onlyif mysql # DIV for integer division: 
query II rowsort label-5060
SELECT ALL + col2 + + col1 AS col1, - col0 DIV - + col1 AS col1 FROM tab1 AS cor0
----
110
3
115
1
64
17

skipif mysql # not compatible
query II rowsort label-5060
SELECT ALL + col2 + + col1 AS col1, - col0 / - + col1 AS col1 FROM tab1 AS cor0
----
110
3
115
1
64
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - col1 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / + col0 * + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / + col0 * + + 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 25 + + - 95 AS col0 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT + col0 * + 41 AS col2 FROM tab0
----
3567
3977
615

onlyif mysql # DIV for integer division: 
query II rowsort label-5065
SELECT DISTINCT + 87 col1, col1 DIV - 53 AS col1 FROM tab0
----
87
-1
87
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5065
SELECT DISTINCT + 87 col1, col1 / - 53 AS col1 FROM tab0
----
87
-1
87
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + ( - + col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE col2 + col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT + col2 - - - col0 - 10 * - + 1 AS col0 FROM tab0
----
-67
12
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL CAST( + col0 AS SIGNED ) + - + col0 + 46 + + - col1 FROM tab1 AS cor0
----
-1
32
41

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL CAST ( + col0 AS INTEGER ) + - + col0 + 46 + + - col1 FROM tab1 AS cor0
----
-1
32
41

query I rowsort
SELECT DISTINCT + - 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT 9 DIV COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5074
SELECT 9 / COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT CAST( NULL AS SIGNED ) * col1 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT CAST ( NULL AS INTEGER ) * col1 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - COUNT( * ) * + + 93 AS col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COUNT ( * ) * + + 93 AS col1 FROM tab2 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT + - 57 * - MAX( ALL + 48 ) FROM tab2 AS cor0
----
2736

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT + - 57 * - MAX ( ALL + 48 ) FROM tab2 AS cor0
----
2736

query I rowsort
SELECT col2 * + 68 + 41 * + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
107680
182294
44942

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + - ( - col0 ) + - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT - - col1 DIV - - ( - col2 ) FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5080
SELECT - - col1 / - - ( - col2 ) FROM tab2 cor0
----
-1
-1
-2

query II rowsort
SELECT 47, ( 52 ) AS col0 FROM tab2
----
47
52
47
52
47
52

query I rowsort
SELECT ALL - ( - 42 ) FROM tab0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT CAST( - col0 AS SIGNED ) col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5083
SELECT CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - col1 * + + col0 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5085
SELECT - 70, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-70
NULL
-70
NULL
-70
NULL

skipif mysql # not compatible
query II rowsort label-5085
SELECT - 70, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-70
NULL
-70
NULL
-70
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0, + col0 FROM tab1
----
51
51
85
85
91
91

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-5089
SELECT ALL 68 * - - 17 + - ( + ( CAST( NULL AS SIGNED ) ) ) + + 85 * - - col0 * + - 0 * + + 39 * col2 * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL 68 * - - 17 + - ( + ( CAST ( NULL AS INTEGER ) ) ) + + 85 * - - col0 * + - 0 * + + 39 * col2 * col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL > col2 * col1 + col2 / col0 + - - 87 ) )
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * + col1 + - 14 FROM tab2 AS cor0
----
2587
4475
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT DISTINCT MAX( DISTINCT - + col2 ) - - 89 + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 / + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT MAX ( DISTINCT - + col2 ) - - 89 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 / + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT ALL - - 23 DIV 49 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - - 23 / 49 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 < + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT DISTINCT + col2 * col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-25
-48
-51

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT + col2 * col1 / - col0 AS col1 FROM tab2 AS cor0
----
-25
-48
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT ALL - - CAST( NULL AS SIGNED ) / - 74 * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 74 * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 26 + col2 col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
125
2153
556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT + 82 + 64 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5098
SELECT + 82 + 64 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT + col0, + 52 FROM tab1 AS cor0
----
51
52
85
52
91
52

query I rowsort
SELECT DISTINCT + col1 + - col2 + + 30 + + 35 AS col2 FROM tab1 cor0
----
-17
11
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT DISTINCT 90 + - col2 * + col1 * CAST( NULL AS SIGNED ) + - CAST( - 76 AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT 90 + - col2 * + col1 * CAST ( NULL AS INTEGER ) + - CAST ( - 76 AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN col1 AND - col1
----

query I rowsort
SELECT - col0 + - - 86 AS col2 FROM tab2
----
11
22
40

query I rowsort
SELECT DISTINCT 29 + - col0 AS col1 FROM tab1
----
-22
-56
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT col2 DIV - 18 + + - col2 FROM tab1
----
-101
-62
-71

skipif mysql # not compatible
query I rowsort label-5106
SELECT col2 / - 18 + + - col2 FROM tab1
----
-101
-62
-71

query I rowsort
SELECT col0 + - col0 * 3 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab2 AS cor0 WHERE - 86 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 73 + + col0 * + col2 + + + 39 AS col0 FROM tab2 cor0
----
1170
2672
4462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT col0 - - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT col0 - - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5111
SELECT ALL col0, + ( + col0 ) DIV - - col0 + - col2 * + - 10 + col2 - + col1 * - + col1 AS col1 FROM tab0
----
15
7079
87
552
97
1091

skipif mysql # not compatible
query II rowsort label-5111
SELECT ALL col0, + ( + col0 ) / - - col0 + - col2 * + - 10 + col2 - + col1 * - + col1 AS col1 FROM tab0
----
15
7079
87
552
97
1091

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col2
----

query II rowsort
SELECT DISTINCT col0 AS col0, - 29 FROM tab1 AS cor0
----
51
-29
85
-29
91
-29

query I rowsort
SELECT - col0 + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - 3
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - + 31 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col2 AS col2, col0 * + 20 FROM tab1 AS cor0
----
59
1700
68
1820
96
1020

query I rowsort
SELECT ALL + 21 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col0 / - + col2 + - col2 )
----

query I rowsort
SELECT ALL + col2 * + - col0 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL 20 * + COUNT( * ) AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL 20 * + COUNT ( * ) AS col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT DISTINCT - 21 * - + ( + COUNT( * ) ), SUM( ALL + 75 ) / 69 col1 FROM tab0 WHERE NOT NULL IN ( + 35 + - 13 )
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5120
SELECT DISTINCT - 21 * - + ( + COUNT ( * ) ), SUM ( ALL + 75 ) / 69 col1 FROM tab0 WHERE NOT NULL IN ( + 35 + - 13 )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT COUNT( ALL - ( - col0 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5121
SELECT COUNT ( ALL - ( - col0 ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IS NOT NULL OR NOT NULL BETWEEN - - 62 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= ( col2 )
----

query I rowsort
SELECT - ( - - ( - + col2 ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 83 - + 80 BETWEEN NULL AND - col0 * - + 75
----

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab1 cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - + MAX( + 51 ) + - COUNT( * ) + + + 31 AS col0 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - + MAX ( + 51 ) + - COUNT ( * ) + + + 31 AS col0 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + col0 + - col2 * col2 AS col1 FROM tab0 cor0
----
-13
-2194
-9704

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - col0 col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT + col2 * - - col0 * + - col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query II rowsort
SELECT ALL + ( - col1 ) + - ( + 86 ) * + 96, col0 AS col1 FROM tab1 AS cor0
----
-8261
85
-8270
51
-8303
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL COUNT( 82 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL COUNT ( 82 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 47 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 10 col2 FROM tab1 AS cor0
----
510
850
910

query II rowsort
SELECT col0 AS col0, + 51 FROM tab2
----
46
51
64
51
75
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT + 42 * col1 DIV - col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + 42 * col1 / - col1 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT col1 * - + col1 AS col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL - 54 - + COUNT( * ) * + + 2 * COUNT( * ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - 54 - + COUNT ( * ) * + + 2 * COUNT ( * ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5141
SELECT - - COUNT( * ) + COUNT( * ) AS col2, - 64 AS col0 FROM tab0 AS cor0
----
6
-64

skipif mysql # not compatible
query II rowsort label-5141
SELECT - - COUNT ( * ) + COUNT ( * ) AS col2, - 64 AS col0 FROM tab0 AS cor0
----
6
-64

query I rowsort
SELECT 56 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-8
10

query I rowsort
SELECT - col2 * + col2 + - col1 + col2 AS col2 FROM tab0 AS cor0
----
-111
-2243
-9703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + - 22 col0 FROM tab2 AS cor0
----
-2623
-4511
-5951

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT - col1 * col2 - + - col2 + - ( + col0 ) FROM tab1 AS cor0
----
-1299
-321
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT + COUNT( DISTINCT - col1 ) * - 90 + + COUNT( - - 1 ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) * - 90 + + COUNT ( - - 1 ) FROM tab2 AS cor0
----
-267

query II rowsort
SELECT ALL - col2 AS col0, - 86 FROM tab1 AS cor0
----
-59
-86
-68
-86
-96
-86

query I rowsort
SELECT DISTINCT - + 43 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-43

query I rowsort
SELECT ALL ( - + col2 ) * col0 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( 25 ) * - col0 AS col1, 78 col0 FROM tab0 AS cor0
----
-2175
78
-2425
78
-375
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT - - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT - - MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * 72 * + col2 FROM tab2 AS cor0
----
-221760
-279792
-84456

query I rowsort
SELECT + + ( 47 ) AS col2 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + + 77 AS col0 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - + 70 * MIN( ALL col0 ) * + 50 AS col0 FROM tab0 AS cor0
----
-52500

skipif mysql # not compatible
query I rowsort label-5156
SELECT - + 70 * MIN ( ALL col0 ) * + 50 AS col0 FROM tab0 AS cor0
----
-52500

query I rowsort
SELECT ALL - 92 FROM tab0 AS cor0 WHERE NOT - 51 NOT BETWEEN col2 * + - 26 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT - ( + - 1 ) / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5159
SELECT - + ( + COUNT( * ) ) AS col2, 1 + - + ( + 49 ) AS col0 FROM tab1 AS cor0
----
-3
-48

skipif mysql # not compatible
query II rowsort label-5159
SELECT - + ( + COUNT ( * ) ) AS col2, 1 + - + ( + 49 ) AS col0 FROM tab1 AS cor0
----
-3
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT + COUNT( * ) + + 66 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
66

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + COUNT ( * ) + + 66 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5162
SELECT ALL + ( COUNT( ALL col1 ) ) * + + CAST( NULL AS SIGNED ) - - 89 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL + ( COUNT ( ALL col1 ) ) * + + CAST ( NULL AS INTEGER ) - - 89 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + 94 IN ( CAST( NULL AS SIGNED ) * 5 )
----

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + 94 IN ( CAST ( NULL AS INTEGER ) * 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT 43 * + MIN( ( 62 ) ) col0 FROM tab2, tab0 AS cor0
----
2666

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5164
SELECT DISTINCT 43 * + MIN ( ( 62 ) ) col0 FROM tab2, tab0 AS cor0
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + MIN( + + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5165
SELECT + MIN ( + + col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT - 65 * + - col0 AS col0 FROM tab1 AS cor0
----
3315
5525
5915

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT ALL + col0 DIV ( col2 ) DIV col2 + + col0 col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5167
SELECT ALL + col0 / ( col2 ) / col2 + + col0 col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL MAX( ( col0 ) ) * SUM( + col2 + - col1 * - col2 ) AS col1 FROM tab0
----
414384

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL MAX ( ( col0 ) ) * SUM ( + col2 + - col1 * - col2 ) AS col1 FROM tab0
----
414384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5170
SELECT * FROM tab2 WHERE CAST( 21 AS SIGNED ) * col2 + - 85 * 42 IN ( ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-5170
SELECT * FROM tab2 WHERE CAST ( 21 AS INTEGER ) * col2 + - 85 * 42 IN ( ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + 21 + - col1 * - col1 FROM tab0
----
22
462
6582

query I rowsort
SELECT ALL - 18 * 34 FROM tab1
----
-612
-612
-612

query I rowsort
SELECT col1 + 33 FROM tab2
----
100
110
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 29 - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT - 26 + COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - 26 + COUNT ( * ) FROM tab0
----
-23

query I rowsort
SELECT 49 * 24 AS col1 FROM tab2 WHERE NOT col1 * - col0 - - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT ALL + col2 - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + col2 - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT + col0 - + 61 FROM tab0
----
-46
26
36

query I rowsort
SELECT + col1 - - col2 * col2 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT DISTINCT + col0 * 18 FROM tab2
----
1152
1350
828

query I rowsort
SELECT DISTINCT + 77 + - col1 FROM tab2
----
0
10
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT COUNT( * ) DIV MAX( ALL ( 66 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT COUNT ( * ) / MAX ( ALL ( 66 ) ) FROM tab0
----
0

query I rowsort
SELECT 66 * + 45 + - 16 FROM tab1 WHERE + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( ( + 52 ) ) * - col2 FROM tab2
----
-1196
-2080
-3016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT 74 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT 74 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT DISTINCT 4 DIV col0 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5188
SELECT DISTINCT 4 / col0 col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN - col0 AND ( col2 * 60 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 86 - col2 * + col1 FROM tab1
----
-1258
-209
-3110

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - 30 ) IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT SUM( col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5193
SELECT SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 62 ) < ( + ( col2 ) ) / - 16 + + col1 / 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - COUNT( * ) * 85 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - COUNT ( * ) * 85 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT + col0 * - 94 FROM tab2
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT MIN( DISTINCT 83 ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-5197
SELECT MIN ( DISTINCT 83 ) AS col2 FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT COUNT( - 43 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( - 43 ) FROM tab2
----
3

query I rowsort
SELECT - 26 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 47d0574274146de273829785364ada39

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) >= 76 / + ( 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 8 - col0 IN ( col0 * + col0 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 * col1 + col1 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 col0 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 77 IS NULL
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL COUNT( DISTINCT + ( - col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL COUNT ( DISTINCT + ( - col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT - 35 DIV 94 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5207
SELECT - 35 / 94 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT 63 DIV col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5208
SELECT 63 / col0 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - ( + 84 ) * col2 AS col1 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( - col2 + col0 ) AND - 81
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( col2 ) + col0 BETWEEN - 14 AND ( 52 + - 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > + 88 + 79
----

query I rowsort
SELECT DISTINCT - ( - - 12 ) AS col1 FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT 85 * ( + col0 / 78 ) + col0 FROM tab2 WHERE NOT - col1 * - 2 + CAST( + col2 + - CAST( NULL AS SIGNED ) AS SIGNED ) NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5216
SELECT 85 * ( + col0 / 78 ) + col0 FROM tab2 WHERE NOT - col1 * - 2 + CAST ( + col2 + - CAST ( NULL AS INTEGER ) AS INTEGER ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT 60 * COUNT( + col1 ) AS col0 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT 60 * COUNT ( + col1 ) AS col0 FROM tab2
----
180

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + col1 - + col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT + MAX( - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + MAX ( - + col0 ) FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * + col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-4794
-7990
-8554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT 39 + ( 30 + MAX( ALL col2 ) ) FROM tab0 AS cor0 WHERE - col0 * CAST( NULL AS SIGNED ) IS NULL AND ( 51 * 71 ) IS NOT NULL
----
168

skipif mysql # not compatible
query I rowsort label-5221
SELECT 39 + ( 30 + MAX ( ALL col2 ) ) FROM tab0 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NULL AND ( 51 * 71 ) IS NOT NULL
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL - COUNT( * ) AS col0 FROM tab1, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - COUNT ( * ) AS col0 FROM tab1, tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5223
SELECT + 52 AS col1, CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
52
23
52
40
52
58

skipif mysql # not compatible
query II rowsort label-5223
SELECT + 52 AS col1, CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
52
23
52
40
52
58

query I rowsort
SELECT col0 * + - col1 * col1 * 68 + col0 AS col0 FROM tab0 AS cor0
----
-2608869
-6499
-6692205

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL - COUNT( * ) * - 22 AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL - COUNT ( * ) * - 22 AS col1 FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL + - col1 + 66 FROM tab1 cor0
----
19
52
61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 - + col2 + 21 - + col1 FROM tab2 AS cor0
----
-30
-46
-56

query I rowsort
SELECT DISTINCT 4 - - - 50 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL - 71 - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - 71 - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT - col2 - col1 * - + col1 * - 25 * + ( - 75 ) FROM tab0
----
12301828
1776
826865

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * 28 ) NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - MAX( DISTINCT + - ( + 31 ) ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-5235
SELECT - MAX ( DISTINCT + - ( + 31 ) ) FROM tab2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT + col0 DIV - 90 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT + col0 / - 90 FROM tab1
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT IN ( 36 / + 90 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT + CAST( NULL AS SIGNED ) * 61 AS col1 FROM tab1 cor0 WHERE NOT + CAST( - - 51 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT + CAST ( NULL AS INTEGER ) * 61 AS col1 FROM tab1 cor0 WHERE NOT + CAST ( - - 51 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + + 94 AS col2 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT col2 * + 27 * 67 AS col2 FROM tab0 AS cor0
----
179091
18090
85023

query I rowsort
SELECT - - ( 19 ) FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT + 46 * + col0 FROM tab0 AS cor0
----
4002
4462
690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT + CAST( + + ( - col1 ) AS SIGNED ) * + - 64 + - col0 FROM tab2 AS cor0
----
3218
4213
4864

skipif mysql # not compatible
query I rowsort label-5243
SELECT + CAST ( + + ( - col1 ) AS INTEGER ) * + - 64 + - col0 FROM tab2 AS cor0
----
3218
4213
4864

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 40 + col0 = + 47 * + - col0 * col0 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( 13 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + 18 * - + COUNT( * ) - + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + 18 * - + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col0 AS col1, 16 * - - ( 80 ) + + ( - ( col0 ) ) FROM tab0
----
15
1265
87
1193
97
1183

query I rowsort
SELECT ALL ( + - 19 ) + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 76 - + col0 AS col1 FROM tab0 WHERE NOT ( - col1 * col1 + + col0 IS NULL )
----
-163
-173
-91

query I rowsort
SELECT col1 + - + col2 AS col1 FROM tab0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5252
SELECT DISTINCT + 25 DIV col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + 25 / col0 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 7 col0 FROM tab1 AS cor0
----
12
21
54

query I rowsort
SELECT DISTINCT col2 + 5 AS col0 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT DISTINCT - COUNT( * ), 86 AS col0 FROM tab2 AS cor0
----
-3
86

skipif mysql # not compatible
query II rowsort label-5255
SELECT DISTINCT - COUNT ( * ), 86 AS col0 FROM tab2 AS cor0
----
-3
86

query I rowsort
SELECT ALL col2 - - col1 FROM tab0 AS cor0 WHERE ( + - col2 ) <= - ( - col2 )
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL - COUNT( * ) + - + 50 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - COUNT ( * ) + - + 50 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT col1 + 93 AS col2 FROM tab1 cor0
----
107
140
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT - - ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 22 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL CAST( NULL AS SIGNED ) / - - SUM( DISTINCT - + col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL CAST ( NULL AS INTEGER ) / - - SUM ( DISTINCT - + col0 ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + 30 NOT IN ( - + col2, col0 * - ( - 68 ) * col2 + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 88 - - col2 FROM tab0
----
135
187
98

query I rowsort
SELECT 96 - - col0 AS col1 FROM tab0 AS cor0
----
111
183
193

query I rowsort
SELECT DISTINCT + col0 + col0 - - 8 + + + col1 + col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 19 <= + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT COUNT( ALL - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 38 AS col1 FROM tab2 AS cor0 WHERE + 25 * - - ( - 68 ) + + - ( - 21 ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT + MAX( - 79 ) + MAX( + col2 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + MAX ( - 79 ) + MAX ( + col2 ) FROM tab2 AS cor0
----
-21

query I rowsort
SELECT DISTINCT col0 + 98 FROM tab2 AS cor0
----
144
162
173

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT COUNT( * ) * - COUNT( * ) + 90 AS col0 FROM tab0 cor0 WHERE ( NULL ) = - + ( + ( ( + col1 ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( * ) * - COUNT ( * ) + 90 AS col0 FROM tab0 cor0 WHERE ( NULL ) = - + ( + ( ( + col1 ) ) )
----
90

query I rowsort
SELECT DISTINCT + - 34 - - col1 - - + 77 FROM tab0 AS cor0
----
124
44
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5273
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + col1 BETWEEN ( - col0 ) AND + col0 + - + col0
----

skipif mysql # not compatible
query III rowsort label-5273
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col1 BETWEEN ( - col0 ) AND + col0 + - + col0
----

query I rowsort
SELECT 58 * + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5276
SELECT * FROM tab1 WHERE NOT - col0 IN ( + col2 + + - 45 ) OR col1 IN ( CAST( col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5276
SELECT * FROM tab1 WHERE NOT - col0 IN ( + col2 + + - 45 ) OR col1 IN ( CAST ( col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 27 FROM tab1 WHERE NOT col0 - col2 IS NOT NULL
----

query I rowsort
SELECT ( + - 33 ) FROM tab1
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 44 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5281
SELECT ALL - COUNT( * ) AS col2, - 80 col0 FROM tab2 AS cor0
----
-3
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5281
SELECT ALL - COUNT ( * ) AS col2, - 80 col0 FROM tab2 AS cor0
----
-3
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT MIN( + + 29 ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT MIN ( + + 29 ) AS col2 FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5283
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT col2 * + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - COUNT( - 49 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5286
SELECT - COUNT ( - 49 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - SUM( - - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - SUM ( - - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL + COUNT( - ( - col2 ) ) + 27 col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5288
SELECT ALL + COUNT ( - ( - col2 ) ) + 27 col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT + col0 * col0 - + 60 FROM tab0 cor0
----
165
7509
9349

query I rowsort
SELECT - 78 FROM tab2 cor0 WHERE NULL BETWEEN - col2 + - col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL + CAST( NULL AS SIGNED ) / CAST( + 85 AS SIGNED ) + - + ( SUM( + 99 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + CAST ( NULL AS INTEGER ) / CAST ( + 85 AS INTEGER ) + - + ( SUM ( + 99 ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 97 + col1 FROM tab0 AS cor0
----
-16
-76
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT ALL col1 DIV - 46 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL col1 / - 46 AS col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( - + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT ALL 20 + - col2 + - - col1 FROM tab2
----
29
48
57

query II rowsort
SELECT DISTINCT col2 AS col2, col0 * + col1 FROM tab2
----
23
2346
40
4928
58
5025

query I rowsort
SELECT - col0 FROM tab0 WHERE + + 23 IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5300
SELECT DISTINCT - col2, - col0 * - 74 * + CAST( NULL AS SIGNED ) * + col2 * - col1 * + 76 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT - col2, - col0 * - 74 * + CAST ( NULL AS INTEGER ) * + col2 * - col1 * + 76 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT DISTINCT col2 / + CAST( NULL AS SIGNED ) * + 51 * + col1 + - CAST( + col2 AS SIGNED ), + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5301
SELECT DISTINCT col2 / + CAST ( NULL AS INTEGER ) * + 51 * + col1 + - CAST ( + col2 AS INTEGER ), + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL - COUNT( * ) FROM tab1 WHERE 94 * - + col2 BETWEEN + 57 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - COUNT ( * ) FROM tab1 WHERE 94 * - + col2 BETWEEN + 57 AND + col1
----
0

query I rowsort
SELECT 63 + + + 39 + + - col2 AS col1 FROM tab1 AS cor0
----
34
43
6

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT 42 + - + COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5305
SELECT 42 + - + COUNT ( * ) FROM tab2
----
39

query III rowsort
SELECT * FROM tab1 WHERE - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT - col2 DIV - 49 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5308
SELECT - col2 / - 49 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * col0 col2, col1 * - col1 FROM tab2 AS cor0
----
2116
-2601
4096
-5929
5625
-4489

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT 67 AS col0, MAX( DISTINCT - 64 ) + + - COUNT( * ) AS col2 FROM tab2 cor0
----
67
-67

skipif mysql # not compatible
query II rowsort label-5310
SELECT 67 AS col0, MAX ( DISTINCT - 64 ) + + - COUNT ( * ) AS col2 FROM tab2 cor0
----
67
-67

query I rowsort
SELECT + - col1 * - 60 FROM tab2 AS cor0
----
3060
4020
4620

query II rowsort
SELECT DISTINCT - ( col2 ), col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL col1 * - + col2 + 20 / col1 * - - 5 * col1 FROM tab0 AS cor0 WHERE NOT + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT 36 DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5314
SELECT 36 / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
12

query III rowsort
SELECT - + col0, + col2, + + 16 AS col0 FROM tab0 cor0
----
9 values hashing to 5e23e7b5c2d24265fe68b55e379b175c

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 31 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 39 FROM tab0 WHERE NOT NULL > + 20 + + - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT + MAX( ( + - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + MAX ( ( + - col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE + col0 + col2 BETWEEN 4 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 79 * - + 83 col2, + 54 * - col2 * + - col0 AS col1 FROM tab1
----
-6557
264384
-6557
270810
-6557
334152

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT - + COUNT( * ) * - 27 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5322
SELECT - + COUNT ( * ) * - 27 FROM tab2 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT + + CAST( NULL AS SIGNED ) * + 18 + col1 / - 64 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT + + CAST ( NULL AS INTEGER ) * + 18 + col1 / - 64 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL - ( + - col2 ) AS col1, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT - col0, + col2 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT 20 * 25 FROM tab2
----
500
500
500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT ALL + CAST( col1 AS SIGNED ) + + + ( - 73 ) FROM tab2
----
-22
-6
4

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + CAST ( col1 AS INTEGER ) + + + ( - 73 ) FROM tab2
----
-22
-6
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5330
SELECT + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + col0
----

query I rowsort
SELECT DISTINCT - ( 92 ) + col2 + - col0 AS col2 FROM tab1 AS cor0 WHERE col1 * - ( + - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 + - 47 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL COUNT( * ) + - 97 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL COUNT ( * ) + - 97 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 21
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT NULL IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT + + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 AS col0 FROM tab1 cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + COUNT( ALL 29 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + COUNT ( ALL 29 ) FROM tab2
----
3

query I rowsort
SELECT col2 + + 91 FROM tab0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - COUNT( * ) + - 40 AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-5342
SELECT - COUNT ( * ) + - 40 AS col2 FROM tab2
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5343
SELECT CAST( - col0 AS SIGNED ) DIV - - 60 + col2 * 9 AS col2 FROM tab1
----
530
611
864

skipif mysql # not compatible
query I rowsort label-5343
SELECT CAST ( - col0 AS INTEGER ) / - - 60 + col2 * 9 AS col2 FROM tab1
----
530
611
864

query I rowsort
SELECT + col1 + - col2 * - col0 AS col1 FROM tab2
----
1109
2637
4417

query II rowsort
SELECT - + col1 + - 71 AS col2, col1 FROM tab1 AS cor0 WHERE NULL <= + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT - 2 + - SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - 2 + - SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-123

query I rowsort
SELECT DISTINCT + col1 + col1 + + 37 FROM tab0 AS cor0
----
199
39
79

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - 82, 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL - - SUM( DISTINCT - 21 ) + + 58 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - - SUM ( DISTINCT - 21 ) + + 58 FROM tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE - 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT + col2 / - + CAST( NULL AS SIGNED ) * + col1 - + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT + col2 / - + CAST ( NULL AS INTEGER ) * + col1 - + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 16 + + col1 ) AND 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL + SUM( - - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + SUM ( - - col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL ( + ( + - 18 ) ) * - - col1 + - 26 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT + MAX( DISTINCT + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT + MAX ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + ( - col1 ) * + 64 * + 46 AS col2 FROM tab0 cor0
----
-238464
-2944
-61824

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE col1 * 76 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * + col0 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT - + 5 * CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5360
SELECT - + 5 * CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - + col1 + + col0 FROM tab1 WHERE NOT - - col1 * + col0 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - COUNT( 74 ) * - 58 AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-5362
SELECT - COUNT ( 74 ) * - 58 AS col2 FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT ( 52 ) DIV + 25 - - col1 DIV + col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5363
SELECT ( 52 ) / + 25 - - col1 / + col1 FROM tab2
----
3
3
3

query I rowsort
SELECT ALL col0 * 77 * + col1 FROM tab1
----
32725
329329
54978

query II rowsort
SELECT DISTINCT col2, 22 FROM tab2
----
23
22
40
22
58
22

query I rowsort
SELECT + ( 67 ) FROM tab2
----
67
67
67

query II rowsort
SELECT - col2 AS col2, col1 FROM tab0
----
-10
21
-47
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 col1 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT ALL + 86, 50 FROM tab2 WHERE - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT DISTINCT - 46, COUNT( * ) + - + COUNT( DISTINCT - 24 ) AS col0 FROM tab2
----
-46
2

skipif mysql # not compatible
query II rowsort label-5370
SELECT DISTINCT - 46, COUNT ( * ) + - + COUNT ( DISTINCT - 24 ) AS col0 FROM tab2
----
-46
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5371
SELECT DISTINCT - 95 AS col2, col0 * + CAST( NULL AS SIGNED ) / + col0 FROM tab0 AS cor0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-5371
SELECT DISTINCT - 95 AS col2, col0 * + CAST ( NULL AS INTEGER ) / + col0 FROM tab0 AS cor0
----
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 / + 68 NOT BETWEEN + - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 / + 68 NOT BETWEEN + - col1 AND NULL
----
0

query II rowsort
SELECT + + col0 AS col1, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT - + 30 * - col0 FROM tab1 AS cor0
----
1530
2550
2730

query I rowsort
SELECT + - 36 FROM tab0 AS cor0 WHERE NOT 90 IS NULL
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT + - 4 + COUNT( ALL - ( ( + + col2 ) ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5376
SELECT + - 4 + COUNT ( ALL - ( ( + + col2 ) ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT DISTINCT - + col0 DIV col0 * + col0 + - 90 + - 70 + - col2 col2 FROM tab1 AS cor0
----
-304
-307
-319

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5377
SELECT DISTINCT - + col0 / col0 * + col0 + - 90 + - 70 + - col2 col2 FROM tab1 AS cor0
----
-304
-307
-319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col0, - col2 col2 FROM tab1 AS cor0
----
144
-59
147
-96
159
-68

query II rowsort
SELECT ALL + + col1 + col1 AS col0, - col0 - + 34 FROM tab0 AS cor0
----
162
-49
2
-131
42
-121

query I rowsort
SELECT ALL - 46 + - col1 AS col1 FROM tab0 AS cor0
----
-127
-47
-67

query I rowsort
SELECT DISTINCT - 31 + - + col1 AS col2 FROM tab2 AS cor0
----
-108
-82
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 15 col0 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL MAX( - 10 ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL MAX ( - 10 ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= NULL
----
NULL

query II rowsort
SELECT + 5, col2 FROM tab2
----
5
23
5
40
5
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 34 IS NULL )
----

query I rowsort
SELECT ALL + 35 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - 22 * - COUNT( * ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - 22 * - COUNT ( * ) AS col0 FROM tab2
----
66

query I rowsort
SELECT DISTINCT col0 * + + col0 * + 80 + + 72 AS col0 FROM tab0 WHERE ( - ( - col0 ) ) <= NULL
----

query I rowsort
SELECT col0 + - + col1 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 64 * col1 / col0, 23 )
----

query I rowsort
SELECT DISTINCT - + 1 + 49 * - col2 + - ( - col1 ) FROM tab0 AS cor0
----
-2223
-470
-4851

query I rowsort
SELECT DISTINCT + col0 + - col0 + col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) >= ( + ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5394
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5395
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT ALL CAST( 73 AS SIGNED ) col2 FROM tab2 AS cor0
----
73
73
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT ALL CAST ( 73 AS INTEGER ) col2 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT - ( - 57 ) AS col2 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - COUNT( * ) * - COUNT( * ) * + 6 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5399
SELECT - COUNT ( * ) * - COUNT ( * ) * + 6 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5400
SELECT ALL COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 32 > - col2 * + col2 - - 41
----

query II rowsort
SELECT + col1 * - 71, + col0 AS col2 FROM tab2 AS cor0
----
-3621
46
-4757
75
-5467
64

query I rowsort
SELECT ALL - + 38 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT col0 * col1 * col1 * + - col1 * + + col0 AS col2 FROM tab0
----
-119574225
-70096509
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5405
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) / + + 72 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5405
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) / + + 72 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT CAST( 35 AS SIGNED ) FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5406
SELECT CAST ( 35 AS INTEGER ) FROM tab2
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT + 25 FROM tab1 WHERE + CAST( NULL AS SIGNED ) > + col0
----

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + 25 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) > + col0
----

query I rowsort
SELECT ALL AVG ( DISTINCT + + col0 ) FROM tab2 WHERE - 66 >= + + col2
----
NULL

query I rowsort
SELECT ALL - - col1 + col2 - - 83 FROM tab1 AS cor0
----
147
193
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT - SUM( DISTINCT - 15 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT - SUM ( DISTINCT - 15 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - 13 * 26 + + 48 FROM tab1 AS cor0
----
-290
-290
-290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col1 col0 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL >= NULL )
----

query I rowsort
SELECT - col0 * + + 71 AS col2 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL MIN( - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL MIN ( - col1 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT ALL - 37 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - 37 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 * - - col0 AS col0, - 17 FROM tab2 AS cor0
----
2116
-17
4096
-17
5625
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT + COUNT( * ) + + - 56 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + COUNT ( * ) + + - 56 FROM tab0 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT 3 * 59 * col1 + - CAST( ( 31 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
11828
13598
8996

skipif mysql # not compatible
query I rowsort label-5420
SELECT 3 * 59 * col1 + - CAST ( ( 31 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
11828
13598
8996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT 23 + CAST( + - 52 AS SIGNED ) FROM tab0 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-5421
SELECT 23 + CAST ( + - 52 AS INTEGER ) FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL + 88 + - 23 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5423
SELECT col1 + - col2 AS col2, + 62 + - + CAST( NULL AS SIGNED ) FROM tab0
----
-98
NULL
11
NULL
34
NULL

skipif mysql # not compatible
query II rowsort label-5423
SELECT col1 + - col2 AS col2, + 62 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
-98
NULL
11
NULL
34
NULL

query I rowsort
SELECT 9 + col0 AS col1 FROM tab0
----
106
24
96

query I rowsort
SELECT DISTINCT ( + + 78 ) AS col1 FROM tab0 WHERE NOT + 4 * + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL - 12 - + COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - 12 - + COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT - + ( + col0 ) FROM tab2 WHERE - col0 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - 76, - 71, + - 54, + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 BETWEEN + + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col2, + 33 col0 FROM tab2 cor0
----
-46
33
-64
33
-75
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 1 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL <= - col0 + - col2 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) * + 9 FROM tab2
----
459
603
693

onlyif mysql # DIV for integer division: 
query II rowsort label-5435
SELECT ALL col0 DIV + 81, - col2 * - col0 AS col2 FROM tab1
----
0
4896
1
5015
1
6188

skipif mysql # not compatible
query II rowsort label-5435
SELECT ALL col0 / + 81, - col2 * - col0 AS col2 FROM tab1
----
0
4896
1
5015
1
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT + col2 DIV 59 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT + col2 / 59 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 76 * ( + col0 ) AS col1 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * + 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 62 FROM tab2 WHERE NOT NULL IS NOT NULL
----
62
62
62

query I rowsort
SELECT ALL + 81 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # DIV for integer division: 
query II rowsort label-5442
SELECT ALL - + col2 * - col0, + 84 DIV + col2 AS col2 FROM tab2 AS cor0
----
1058
3
2560
2
4350
1

skipif mysql # not compatible
query II rowsort label-5442
SELECT ALL - + col2 * - col0, + 84 / + col2 AS col2 FROM tab2 AS cor0
----
1058
3
2560
2
4350
1

query I rowsort
SELECT ( + + col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL COUNT( * ) + 41 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL COUNT ( * ) + 41 FROM tab1 AS cor0
----
44

query I rowsort
SELECT - 61 + col0 FROM tab1
----
-10
24
30

query II rowsort
SELECT + col0 + + - col2 * + col1 AS col1, - 20 + - - col2 FROM tab2
----
-1127
3
-3016
20
-3811
38

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab2 cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT - CAST( NULL AS SIGNED ) * + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT - CAST ( NULL AS INTEGER ) * + 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5449
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN col2 + - col1 + CAST( + + col1 AS SIGNED ) AND + - col2
----

skipif mysql # not compatible
query III rowsort label-5449
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN col2 + - col1 + CAST ( + + col1 AS INTEGER ) AND + - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 / - 21 + + col0 + col2 + - col0 ) = - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5451
SELECT ALL + + 40 - - col1 + col0, - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
105
NULL
130
NULL
178
NULL

skipif mysql # not compatible
query II rowsort label-5451
SELECT ALL + + 40 - - col1 + col0, - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
105
NULL
130
NULL
178
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT DISTINCT 42 * MAX( DISTINCT + col0 ) + + 76 FROM tab2 AS cor0
----
3226

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT 42 * MAX ( DISTINCT + col0 ) + + 76 FROM tab2 AS cor0
----
3226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 - - col2 col1 FROM tab1 cor0 WHERE - col2 = + col2 * + ( + col0 )
----

query II rowsort
SELECT col1, 80 + - - col1 * + col1 FROM tab1
----
14
276
47
2289
5
105

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NULL <> col1
----

query I rowsort
SELECT col2 * 2 - col0 - - + col1 - - 84 FROM tab2
----
135
177
192

query I rowsort
SELECT ALL + - col1 * - 12 * - 50 FROM tab2 WHERE col2 - - 21 * - - 89 + + + ( + + 19 ) + + col2 IS NULL
----

query I rowsort
SELECT ALL ( + + 86 ) AS col0 FROM tab1
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + ( 89 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT ( - + 55 ) * - col1 + - col0 + 24 DIV + col2 + - col2 + + col1 + + + col0 * + col0 FROM tab2
----
4904
8304
9244

skipif mysql # not compatible
query I rowsort label-5460
SELECT ( - + 55 ) * - col1 + - col0 + 24 / + col2 + - col2 + + col1 + + + col0 * + col0 FROM tab2
----
4904
8304
9244

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT - COUNT( * ) * - 39, - MAX( ( - - 5 ) ) * - + 3 AS col0 FROM tab2 AS cor0
----
117
15

skipif mysql # not compatible
query II rowsort label-5461
SELECT - COUNT ( * ) * - 39, - MAX ( ( - - 5 ) ) * - + 3 AS col0 FROM tab2 AS cor0
----
117
15

query II rowsort
SELECT ALL col1, + 50 FROM tab2 AS cor0
----
51
50
67
50
77
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5463
SELECT - CAST( NULL AS DECIMAL ) * + 0 FROM tab1 AS cor0 WHERE NOT + col2 * col1 < ( - + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT - CAST ( NULL AS REAL ) * + 0 FROM tab1 AS cor0 WHERE NOT + col2 * col1 < ( - + col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT 16 - + + 98 AS col1 FROM tab1 cor0 WHERE NOT 68 + col0 * 40 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT - 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT - ( + ( + COUNT( * ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - ( + ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL - ( - + AVG ( DISTINCT + col1 ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab1
----
52

query I rowsort
SELECT ALL col0 * - 36 AS col0 FROM tab1
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT - MAX( 35 ) col0 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5471
SELECT - MAX ( 35 ) col0 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT DISTINCT - col2 * 96 AS col0 FROM tab1 AS cor0
----
-5664
-6528
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 46 col1, col0 AS col0 FROM tab2
----
-46
46
-46
64
-46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT + MAX( ALL 22 ) AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-5474
SELECT + MAX ( ALL 22 ) AS col2 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + 66 * - 99 * + - 5 + + 90 * + COUNT( * ) FROM tab2
----
32940

skipif mysql # not compatible
query I rowsort label-5475
SELECT + 66 * - 99 * + - 5 + + 90 * + COUNT ( * ) FROM tab2
----
32940

query I rowsort
SELECT ALL AVG ( ALL col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 + - + col1 FROM tab2 WHERE - col1 * - + 50 IS NOT NULL
----
0
0
0

query I rowsort
SELECT col1 + col1 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
102
134
154

query I rowsort
SELECT ALL 15 * + col2 FROM tab1 cor0
----
1020
1440
885

query I rowsort
SELECT DISTINCT 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT DISTINCT col1 DIV 70 * - 92 + ( - 13 ) FROM tab0
----
-105
-13

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT col1 / 70 * - 92 + ( - 13 ) FROM tab0
----
-105
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * col0 * ( + 87 ) col0 FROM tab0
----
537399
599169
92655

query I rowsort
SELECT ALL - 45 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ( - col0 ) - - 17 AS col2 FROM tab1
----
-34
-68
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - col0 col0, - 96 FROM tab2
----
-17
-96
-23
-96
-24
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT - col0 + - col1 DIV 40 AS col2 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-5486
SELECT - col0 + - col1 / 40 AS col2 FROM tab1 AS cor0
----
-51
-85
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT DISTINCT 79 * + col1 - 79 * + col0 + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-574
1067
418

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT 79 * + col1 - 79 * + col0 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-574
1067
418

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col2 * - ( 71 ) + col2 + col1, + col0 ) AND NOT ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 + - ( + col2 ) + - + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL - - ( - CAST( - col0 AS SIGNED ) ) * + col0 + - 13 + + 43 FROM tab0 AS cor0
----
255
7599
9439

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - - ( - CAST ( - col0 AS INTEGER ) ) * + col0 + - 13 + + 43 FROM tab0 AS cor0
----
255
7599
9439

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + COUNT( - col0 ) + + 31 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5491
SELECT + COUNT ( - col0 ) + + 31 FROM tab0
----
34

query I rowsort
SELECT ALL 82 * - col1 - + col2 AS col2 FROM tab1
----
-1244
-3922
-469

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT 77 + COUNT( * ) + - + 6 * COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT 77 + COUNT ( * ) + - + 6 * COUNT ( * ) FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + MAX( DISTINCT - + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5494
SELECT + MAX ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - ( - - SUM( ALL + col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5495
SELECT - ( - - SUM ( ALL + col2 ) ) AS col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT MAX( - 87 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-5496
SELECT MAX ( - 87 ) AS col0 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + MIN( + col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5497
SELECT + MIN ( + col0 ) col2 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 91 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 37 IS NOT NULL
----

query II rowsort
SELECT - 82, col2 * + + col0 AS col0 FROM tab2 cor0
----
-82
1058
-82
2560
-82
4350

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 43, + col2 col2 FROM tab1 cor0
----
43
59
43
68
43
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL + 18 * 72 + COUNT( * ) - + 26 FROM tab0 AS cor0
----
1273

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + 18 * 72 + COUNT ( * ) - + 26 FROM tab0 AS cor0
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL - MIN( ALL - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + + 96 * + col0 AS col2 FROM tab0 AS cor0
----
1440
8352
9312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5507
SELECT - col1 AS col2, - col2 * col2 + + + ( CAST( NULL AS SIGNED ) ) * + col2 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-5507
SELECT - col1 AS col2, - col2 * col2 + + + ( CAST ( NULL AS INTEGER ) ) * + col2 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT - 37 * - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1739
-3663
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT col0 DIV 20 AS col2 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-5509
SELECT col0 / 20 AS col2 FROM tab2
----
2
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT MAX( ALL + + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT MAX ( ALL + + col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT + 17 * - 15 * - 16 AS col2 FROM tab1
----
4080
4080
4080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col2 FROM tab0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + 83 * MAX( DISTINCT - 78 ) FROM tab2
----
-6474

skipif mysql # not compatible
query I rowsort label-5514
SELECT + 83 * MAX ( DISTINCT - 78 ) FROM tab2
----
-6474

query III rowsort
SELECT * FROM tab0 WHERE + + 2 <> - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) + AVG ( - 79 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + AVG ( - 79 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col2 ) * - 13 * - + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5518
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN CAST( - - 63 AS SIGNED ) * - - 60 - + + col1 + + - col1 * + + CAST( - col0 AS SIGNED ) * 77 * + - 56 AND - - col1 + + col1 + col0 / - + 55
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-5518
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN CAST ( - - 63 AS INTEGER ) * - - 60 - + + col1 + + - col1 * + + CAST ( - col0 AS INTEGER ) * 77 * + - 56 AND - - col1 + + col1 + col0 / - + 55
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - ( + - col1 ) + + col1 AND col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col0 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT - 91 + - ( 2 ) * + col0 FROM tab1 cor0
----
-193
-261
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL - 51 + - - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - 51 + - - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 * - col1 + + - 53 IS NOT NULL AND NOT ( NULL ) <> col1 * + - 97
----

query I rowsort
SELECT - 7 + - - col1 AS col2 FROM tab1 AS cor0
----
-2
40
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * + - ( - col2 ) + - + 28 col2 FROM tab1
----
3453
4596
9188

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT ALL ( - COUNT( * ) ) + + COUNT( * ) AS col2, + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query II rowsort label-5526
SELECT ALL ( - COUNT ( * ) ) + + COUNT ( * ) AS col2, + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT ALL - + 78 DIV SUM( ALL - 35 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - + 78 / SUM ( ALL - 35 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL 58 + - + 95 AS col0 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT + + MIN( DISTINCT - + col2 ) * - - 4 + - + 58 AS col2 FROM tab1 AS cor0
----
-442

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + + MIN ( DISTINCT - + col2 ) * - - 4 + - + 58 AS col2 FROM tab1 AS cor0
----
-442

query I rowsort
SELECT ALL - col0 + - - 31 FROM tab1 AS cor0
----
-20
-54
-60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * 29 AS col1 FROM tab2
----
1334
1856
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT 63, + COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----
63
0

skipif mysql # not compatible
query II rowsort label-5534
SELECT 63, + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + SUM( ALL + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5535
SELECT + SUM ( ALL + col2 ) FROM tab1
----
223

query I rowsort
SELECT 77 * 94 FROM tab1
----
7238
7238
7238

query II rowsort
SELECT ALL - 47 * + col2 * - + ( + col2 ), ( - col0 ) AS col1 FROM tab2 AS cor0
----
158108
-75
24863
-46
75200
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT 94 IS NOT NULL )
----

query II rowsort
SELECT - 97 * ( + 99 ) * + + col0 - + col1, 47 AS col2 FROM tab2 AS cor0
----
-441789
47
-614669
47
-720292
47

query I rowsort
SELECT 4 AS col2 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT MAX( DISTINCT 23 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5541
SELECT MAX ( DISTINCT 23 ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL CAST( - - col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL CAST ( - - col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL - + 25 FROM tab0 cor0
----
-25
-25
-25

query I rowsort
SELECT ALL - col2 + + ( + 5 ) AS col2 FROM tab0 AS cor0
----
-42
-5
-94

query I rowsort
SELECT + - col0 + - col2 * 58 AS col0 FROM tab1 AS cor0
----
-3507
-4035
-5619

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 40 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 40 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 43, - col0 col0 FROM tab1
----
43
-51
43
-85
43
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + 66 + SUM( ALL - - col0 ) FROM tab2
----
251

skipif mysql # not compatible
query I rowsort label-5549
SELECT + 66 + SUM ( ALL - - col0 ) FROM tab2
----
251

query I rowsort
SELECT + col2 + - 77 FROM tab2
----
-19
-37
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT - col1 + col1 * - ( + + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT - col1 + col1 * - ( + + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) IN ( + - col2 )
----

query I rowsort
SELECT DISTINCT + 35 + - col2 * 32 FROM tab1
----
-1853
-2141
-3037

query I rowsort
SELECT + ( - 12 ) + + col0 AS col1 FROM tab2
----
34
52
63

query I rowsort
SELECT DISTINCT ( + 90 ) AS col2 FROM tab2
----
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / - + col1 * - - col2 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL col1 - + CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL col1 - + CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT + COUNT( * ) - + COUNT( DISTINCT + col2 ) * + 86 AS col0 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + COUNT ( * ) - + COUNT ( DISTINCT + col2 ) * + 86 AS col0 FROM tab2
----
-255

query I rowsort
SELECT + 34 + - col0 FROM tab1 AS cor0
----
-17
-51
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5560
SELECT ALL - COUNT( col0 ) DIV 74 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL - COUNT ( col0 ) / 74 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + 96 * SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 96 * SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT ALL 12 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL 12 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 77 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT - col2 FROM tab1 AS cor0 WHERE + 74 - CAST( NULL AS SIGNED ) * + - 79 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5565
SELECT - col2 FROM tab1 AS cor0 WHERE + 74 - CAST ( NULL AS INTEGER ) * + - 79 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT DISTINCT MAX( col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT MAX ( col2 ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col2 FROM tab2 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT - 34 * + + COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT - 34 * + + COUNT ( * ) FROM tab0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT + col2 DIV 14 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-5572
SELECT + col2 / 14 FROM tab0
----
0
3
7

query I rowsort
SELECT ( + + 57 ) FROM tab0
----
57
57
57

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab1
----
72

query I rowsort
SELECT DISTINCT col0 * - 47 FROM tab1
----
-2397
-3995
-4277

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT 12 - col0 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 AS cor0 WHERE + 59 * col1 * - col0 <= + col2 * + col1 * + + col0 + col2
----
-10
-47
-99

query I rowsort
SELECT + col0 * + 48 + - ( + 19 ) AS col2 FROM tab2 AS cor0
----
2189
3053
3581

query I rowsort
SELECT ALL 58 * col0 AS col0 FROM tab1
----
2958
4930
5278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT DISTINCT CAST( + 83 AS SIGNED ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT CAST ( + 83 AS INTEGER ) FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + + COUNT( * ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT + + COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT + - 16 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 97 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 21 * - + col0 * + 87 FROM tab2 AS cor0
----
-116928
-137025
-84042

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 66 * - - 42 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5587
SELECT - + CAST( + - col1 AS SIGNED ), - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
query II rowsort label-5587
SELECT - + CAST ( + - col1 AS INTEGER ), - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5588
SELECT ALL CAST( NULL AS SIGNED ) + + col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5588
SELECT ALL CAST ( NULL AS INTEGER ) + + col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL 27 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT col0 * + 76 AS col2 FROM tab1
----
3876
6460
6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT - col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT - col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 30 ) * + col2 * 12 * 67 * + + col1 FROM tab1
----
-32417280
-7115400
-77087520

query II rowsort
SELECT DISTINCT - col2, 99 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
99
-68
99
-96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ( - + SUM( + + 24 ) ) * - - COUNT( * ) FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-5595
SELECT ( - + SUM ( + + 24 ) ) * - - COUNT ( * ) FROM tab2
----
-216

query I rowsort
SELECT + col2 FROM tab1 WHERE - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 14 * col0 * + col2 + + ( - + col1 ) + + 62 AS col1 FROM tab1 AS cor0
----
68592
70267
86647

query I rowsort
SELECT + + 51 + - col0 + col2 * - col0 * + 73 FROM tab1 AS cor0
----
-357408
-366129
-451764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT + col2 + 22 + - col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT + col2 + 22 + - col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5600
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT COUNT( * ) + 36 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT COUNT ( * ) + 36 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT DISTINCT + CAST( - col1 AS SIGNED ) - + + col2 AS col0 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) - + + col2 AS col0 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT ALL + 78 - - col2 + + + col0 FROM tab0
----
140
175
274

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL - 51 * MIN( ALL col2 ) FROM tab1
----
-3009

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - 51 * MIN ( ALL col2 ) FROM tab1
----
-3009

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL + - MAX( ALL + 74 ) AS col1 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + - MAX ( ALL + 74 ) AS col1 FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL - 33 * - - COUNT( * ) * 45 AS col0 FROM tab0 AS cor0
----
-4455

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - 33 * - - COUNT ( * ) * 45 AS col0 FROM tab0 AS cor0
----
-4455

query I rowsort
SELECT DISTINCT 71 FROM tab0 AS cor0 WHERE NULL IS NULL
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 col1, 81 AS col0 FROM tab1 AS cor0
----
-63
81
-63
81
-63
81

query I rowsort
SELECT + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 19 * - ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT col0 DIV + - col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5612
SELECT col0 / + - col0 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT - 53 * + COUNT( * ) FROM tab1 cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5613
SELECT - 53 * + COUNT ( * ) FROM tab1 cor0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL + col1 + - 81 * + + col0 + + col1 + - ( - - 18 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + col1 + - 81 * + + col0 + + col1 + - ( - - 18 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5615
SELECT + ( 12 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT + ( 12 ) * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 96 FROM tab1 cor0
----
-5664
-6528
-9216

query II rowsort
SELECT col2, col1 AS col2 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5619
SELECT ALL - SUM( ALL + col1 ) * - ( + 11 ) * - COUNT( * ) DIV - COUNT( * ) FROM tab2
----
2145

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - SUM ( ALL + col1 ) * - ( + 11 ) * - COUNT ( * ) / - COUNT ( * ) FROM tab2
----
2145

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT - COUNT( * ), 99 AS col1 FROM tab0
----
-3
99

skipif mysql # not compatible
query II rowsort label-5621
SELECT - COUNT ( * ), 99 AS col1 FROM tab0
----
-3
99

query I rowsort
SELECT + + 88 AS col0 FROM tab2 AS cor0
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 90 + - - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - - COUNT( * ) + + + 71 AS col2 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5624
SELECT - - COUNT ( * ) + + + 71 AS col2 FROM tab0 AS cor0
----
74

query I rowsort
SELECT DISTINCT - 64 FROM tab0 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE NULL <= + 78 / + + col1 + + col1 + + col0 - + col0 + + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5627
SELECT * FROM tab2 WHERE + + ( + + CAST( - CAST( col2 AS SIGNED ) AS DECIMAL ) ) BETWEEN 37 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5627
SELECT * FROM tab2 WHERE + + ( + + CAST ( - CAST ( col2 AS INTEGER ) AS REAL ) ) BETWEEN 37 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT CAST( NULL AS SIGNED ) * - col1 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT CAST ( NULL AS INTEGER ) * - col1 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 48 + + 37 * 9 col0, col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
381
23
381
40
381
58

query I rowsort
SELECT 28 * - + 52 + - 53 FROM tab0
----
-1509
-1509
-1509

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + COUNT( * ) * 37 * COUNT( * ) + - 46 col2 FROM tab2
----
287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5631
SELECT + COUNT ( * ) * 37 * COUNT ( * ) + - 46 col2 FROM tab2
----
287

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab1
----
31

query II rowsort
SELECT col1 * + col0, col0 AS col0 FROM tab0
----
1215
15
1827
87
97
97

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col1 - 92 * - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT 40 + - COUNT( * ) AS col0 FROM tab1 cor0
----
37

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT 40 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL + SUM( ALL - - 15 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + SUM ( ALL - - 15 ) FROM tab1 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT DISTINCT COUNT( * ) / - + 1 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT COUNT ( * ) / - + 1 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 65 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5639
SELECT + + CAST( NULL AS DECIMAL ) + COUNT( * ) + - 73 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 < 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT + + CAST ( NULL AS REAL ) + COUNT ( * ) + - 73 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 < 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL - col1 * - col1 FROM tab2 AS cor0 WHERE NOT + col2 + - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + + MIN( - 64 ) AS col2 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + + MIN ( - 64 ) AS col2 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT + - col1 * col2 * ( + - 17 ) AS col2 FROM tab0 AS cor0
----
1683
3570
64719

query II rowsort
SELECT - 9 AS col0, ( + col0 ) AS col0 FROM tab2
----
-9
46
-9
64
-9
75

query I rowsort
SELECT ALL - col1 * - - col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT - + COUNT( + col2 ) AS col1 FROM tab1 WHERE NULL > + + 82 + col1
----
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT - + COUNT ( + col2 ) AS col1 FROM tab1 WHERE NULL > + + 82 + col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT ALL + ( - 88 ), COUNT( * ) AS col0 FROM tab0
----
-88
3

skipif mysql # not compatible
query II rowsort label-5647
SELECT ALL + ( - 88 ), COUNT ( * ) AS col0 FROM tab0
----
-88
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - - 6 - + + ( + 73 ) col0 FROM tab2
----
-16
0
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * 73 - col0 AND NULL
----

query I rowsort
SELECT 67 + col0 AS col2 FROM tab2
----
113
131
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND + col1
----
0

query I rowsort
SELECT DISTINCT + col0 + + - 30 - + col1 * + col1 AS col1 FROM tab0 cor0
----
-384
-6576
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5653
SELECT ALL * FROM tab2 AS cor0 WHERE + 50 + ( + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5653
SELECT ALL * FROM tab2 AS cor0 WHERE + 50 + ( + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 98 ) * + col0 + 97 FROM tab0 AS cor0
----
1567
8623
9603

onlyif mysql # DIV for integer division: 
query II rowsort label-5655
SELECT DISTINCT - ( col0 ) + - col0 * col1 + + - col1, 26 DIV + - col1 AS col1 FROM tab1 AS cor0
----
-4415
0
-515
-5
-779
-1

skipif mysql # not compatible
query II rowsort label-5655
SELECT DISTINCT - ( col0 ) + - col0 * col1 + + - col1, 26 / + - col1 AS col1 FROM tab1 AS cor0
----
-4415
0
-515
-5
-779
-1

query I rowsort
SELECT ALL - col0 + - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 3 * + col0 <> + 58 * + col2 - + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 70 * 63 FROM tab1 AS cor0
----
-4410
-4410
-4410

query I rowsort
SELECT DISTINCT - - 30 - + - col2 + 63 AS col2 FROM tab2 AS cor0
----
116
133
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT DISTINCT + COUNT( * ) + + 19 + - CAST( - - 84 AS SIGNED ) AS col2 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT + COUNT ( * ) + + 19 + - CAST ( - - 84 AS INTEGER ) AS col2 FROM tab2
----
-62

query II rowsort
SELECT ALL + col2 AS col0, + col2 FROM tab1
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab1, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL - COUNT( * ) * - 74 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL - COUNT ( * ) * - 74 FROM tab2
----
222

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5664
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col1, + ( - col2 ) * + + CAST( - col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5664
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col1, + ( - col2 ) * + + CAST ( - col1 AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT + col2 + + col2 + + - col2 DIV ( - - col2 ) AS col0 FROM tab2
----
115
45
79

skipif mysql # not compatible
query I rowsort label-5665
SELECT + col2 + + col2 + + - col2 / ( - - col2 ) AS col0 FROM tab2
----
115
45
79

query I rowsort
SELECT + - col1 + col0 - - + col1 + + 60 FROM tab0 cor0
----
147
157
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT - + MIN( DISTINCT + - 25 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - + MIN ( DISTINCT + - 25 ) FROM tab1 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT + - col1 * - col1 + + + 91 DIV - 15 FROM tab2 AS cor0
----
2595
4483
5923

skipif mysql # not compatible
query I rowsort label-5668
SELECT + - col1 * - col1 + + + 91 / - 15 FROM tab2 AS cor0
----
2595
4483
5923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5669
SELECT DISTINCT + - CAST( NULL AS SIGNED ), - 66 + + ( + 7 ) + - COUNT( + - col1 ) * - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5669
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), - 66 + + ( + 7 ) + - COUNT ( + - col1 ) * - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL CAST( - 69 AS SIGNED ) col0 FROM tab1
----
-69
-69
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5670
SELECT ALL CAST ( - 69 AS INTEGER ) col0 FROM tab1
----
-69
-69
-69

query I rowsort
SELECT + col2 / 24 FROM tab2 WHERE ( NULL ) BETWEEN + 21 AND + col1
----

query I rowsort
SELECT + 83 - + col2 FROM tab0
----
-16
36
73

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= col2 * - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab1 WHERE ( - ( - col2 ) * + col0 ) <> NULL
----

query I rowsort
SELECT + col1 + + 0 * - col1 AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + col2 + - 5 IN ( 64 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col0 * - ( 29 ) )
----

query I rowsort
SELECT DISTINCT col2 - 86 FROM tab0
----
-39
-76
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT 14 * - CAST( NULL AS SIGNED ) + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5679
SELECT 14 * - CAST ( NULL AS INTEGER ) + col0 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT + ( COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5680
SELECT DISTINCT + ( COUNT ( * ) ) col2 FROM tab2
----
3

query I rowsort
SELECT col1 * 16 - + col2 FROM tab0
----
-83
1249
326

query I rowsort
SELECT col2 * col1 + + 35 FROM tab1
----
1379
3231
330

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT DISTINCT - col0 DIV + 33 + 85 col1 FROM tab1
----
83
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5683
SELECT DISTINCT - col0 / + 33 + 85 col1 FROM tab1
----
83
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT col2 - col0 AS col2 FROM tab1 WHERE NOT + 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT + col0 DIV col2 - - col0 FROM tab0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-5687
SELECT + col0 / col2 - - col0 FROM tab0
----
15
95
97

query I rowsort
SELECT - 19 * col2 FROM tab1 WHERE + ( - col2 ) IS NOT NULL
----
-1121
-1292
-1824

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT ALL col1 + + 36 DIV 42 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL col1 + + 36 / 42 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL AVG ( - 5 ) FROM tab0 WHERE NOT + 37 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col1 FROM tab0
----
18
18
18

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - 0 * - col2 + col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT - COUNT( DISTINCT ( col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5696
SELECT - COUNT ( DISTINCT ( col1 ) ) FROM tab0
----
-3

query I rowsort
SELECT 66 - col0 AS col1 FROM tab1
----
-19
-25
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + col1 * + col0
----

query I rowsort
SELECT ALL - 6 AS col2 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col2 * col0 + - 17 FROM tab1
----
4879
4998
6171

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - MIN( DISTINCT 73 ) * - COUNT( * ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-5701
SELECT - MIN ( DISTINCT 73 ) * - COUNT ( * ) FROM tab2
----
219

query III rowsort
SELECT * FROM tab1 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL col0 + ( + col1 + col1 ) FROM tab2 cor0
----
148
209
218

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE 37 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT col2 + - col2 * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT col2 + - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col0 + - 94 AS col0 FROM tab0 AS cor0
----
-1309
-191
-1921

query I rowsort
SELECT + 83 * + col1 + - 69 AS col1 FROM tab2 AS cor0
----
4164
5492
6322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5708
SELECT ALL - COUNT( * ) DIV COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - COUNT ( * ) / COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col1 NOT IN ( col1 )
----

query I rowsort
SELECT ALL - + ( - col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL + col2 * 56 + + col2 FROM tab2 AS cor0
----
1311
2280
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT - MIN( DISTINCT + 9 ) + + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - MIN ( DISTINCT + 9 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - 39 - + 94 * - 39 FROM tab0
----
3627
3627
3627

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL - COUNT( * ) * + 30 * + 37 AS col0 FROM tab2
----
-3330

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL - COUNT ( * ) * + 30 * + 37 AS col0 FROM tab2
----
-3330

query I rowsort
SELECT + 80 * - 54 * col0 AS col2 FROM tab1
----
-220320
-367200
-393120

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT + COUNT( + col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5717
SELECT + COUNT ( + col2 ) col1 FROM tab0
----
3

query I rowsort
SELECT + 98 * + + col2 * + ( + col0 ) FROM tab1
----
479808
491470
606424

query I rowsort
SELECT DISTINCT col2 - + col0 + col1 AS col1 FROM tab1
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT 89 * - COUNT( * ) col0 FROM tab0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5720
SELECT 89 * - COUNT ( * ) col0 FROM tab0
----
-267

query I rowsort
SELECT ALL - ( + 84 ) * col1 FROM tab1
----
-1176
-3948
-420

query I rowsort
SELECT + col1 * + + 36 FROM tab1
----
1692
180
504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5723
SELECT * FROM tab0 WHERE - col0 NOT IN ( CAST( NULL AS SIGNED ) + 38 * 80 )
----

skipif mysql # not compatible
query III rowsort label-5723
SELECT * FROM tab0 WHERE - col0 NOT IN ( CAST ( NULL AS INTEGER ) + 38 * 80 )
----

query I rowsort
SELECT 76 + col1 * col2 AS col0 FROM tab1 WHERE NULL <= ( + col1 )
----

query I rowsort
SELECT DISTINCT - 44 * - 93 AS col1 FROM tab0
----
4092

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 79 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT ALL COUNT( * ) + COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL COUNT ( * ) + COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT 68 / CAST( NULL AS SIGNED ) * + ( col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT 68 / CAST ( NULL AS INTEGER ) * + ( col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5729
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5729
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL - 27 AS col1 FROM tab2
----
-27
-27
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 27 * 38 <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT 81 + col1 * CAST( - 93 - + col0 * + col0 AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5732
SELECT 81 + col1 * CAST ( - 93 - + col0 * + col0 AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ( - + col2 ) * - col2 * 55 AS col2 F