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 FROM tab2 AS cor0
----
185020
29095
88000

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT + SUM( ALL + - 39 ) AS col2 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + SUM ( ALL + - 39 ) AS col2 FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT 3 * MIN( + 70 ) AS col1 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-5735
SELECT 3 * MIN ( + 70 ) AS col1 FROM tab0
----
210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT SUM( - - ( - 89 ) ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-5737
SELECT SUM ( - - ( - 89 ) ) FROM tab2
----
-267

query I rowsort
SELECT ALL + 14 * - ( + AVG ( - col0 ) ) AS col0 FROM tab1 WHERE NOT - col2 + + 80 * col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + 30 * 29 NOT BETWEEN + 78 AND - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT + COUNT( * ) * COUNT( * ) - - COUNT( * ) FROM tab1 WHERE NOT col1 + + + col2 IN ( 40 )
----
12

skipif mysql # not compatible
query I rowsort label-5740
SELECT + COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE NOT col1 + + + col2 IN ( 40 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT ALL - MIN( - ( + ( 46 ) ) ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - MIN ( - ( + ( 46 ) ) ) AS col1 FROM tab0
----
46

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 42 * 74 / col1
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * col0 + col0 + + + 73 * 8 AS col2 FROM tab2 AS cor0
----
-1912
-3691
-428

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - - 31 * + col2 + + 35 * - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 / + 66 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 * + col2 col1 FROM tab2 cor0
----
1909
3320
4814

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE NOT - ( + 74 ) * - + col0 + col0 >= ( + 73 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5756
SELECT DISTINCT - + MIN( - + col2 ) + COUNT( * ) - - 61 * CAST( + COUNT( col2 ) AS SIGNED ) * + COUNT( * ) FROM tab0 cor0
----
651

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - + MIN ( - + col2 ) + COUNT ( * ) - - 61 * CAST ( + COUNT ( col2 ) AS INTEGER ) * + COUNT ( * ) FROM tab0 cor0
----
651

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5757
SELECT + + 74 - - col1 * 74 AS col2, + CAST( NULL AS SIGNED ) * col1 + 9 FROM tab1 AS cor0
----
1110
NULL
3552
NULL
444
NULL

skipif mysql # not compatible
query II rowsort label-5757
SELECT + + 74 - - col1 * 74 AS col2, + CAST ( NULL AS INTEGER ) * col1 + 9 FROM tab1 AS cor0
----
1110
NULL
3552
NULL
444
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5758
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV - + SUM( - + col1 ) - + 51 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5758
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / - + SUM ( - + col1 ) - + 51 FROM tab0
----
-51

query III rowsort
SELECT * FROM tab2 WHERE ( 78 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT 94 + 39 AS col0 FROM tab2 WHERE ( NOT 90 * + col0 NOT BETWEEN NULL AND - + col1 )
----

query I rowsort
SELECT DISTINCT col2 * + - ( + 92 ) FROM tab2
----
-2116
-3680
-5336

query I rowsort
SELECT DISTINCT + 34 * + col0 AS col2 FROM tab1
----
1734
2890
3094

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

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

query I rowsort
SELECT ALL + col0 * - + 30 + - 31 FROM tab1 AS cor0
----
-1561
-2581
-2761

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5766
SELECT col2, + ( + 64 ) * - + CAST( NULL AS SIGNED ) + - col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5766
SELECT col2, + ( + 64 ) * - + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL MAX( + - col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL MAX ( + - col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-51

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5773
SELECT DISTINCT + - SUM( + col1 ) FROM tab1 AS cor0 WHERE 62 + + CAST( NULL AS DECIMAL ) * - 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT + - SUM ( + col1 ) FROM tab1 AS cor0 WHERE 62 + + CAST ( NULL AS REAL ) * - 82 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT - - 39 * MAX( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5774
SELECT - - 39 * MAX ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL 92 * MIN( col0 ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( 37 + + 34 - - + col0 + - 71 ) IS NULL
----
4235

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL 92 * MIN ( col0 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( 37 + + 34 - - + col0 + - 71 ) IS NULL
----
4235

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - 57 + - col2
----

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

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab1 WHERE NOT ( - 31 - + + col1 - - col2 / + col2 ) <= + col2
----

query II rowsort
SELECT DISTINCT + col1 AS col1, 23 FROM tab1
----
14
23
47
23
5
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT - 49 * + COUNT( ALL + - col1 ) + - - COUNT( * ) AS col1 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-5782
SELECT - 49 * + COUNT ( ALL + - col1 ) + - - COUNT ( * ) AS col1 FROM tab0
----
-144

query I rowsort
SELECT 78 * - - 78 * col0 + 78 + + col2 AS col0 FROM tab2 WHERE + col2 + col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL 48 + - - COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL 48 + - - COUNT ( * ) FROM tab0
----
51

query I rowsort
SELECT - 36 + - + col1 + + col2 FROM tab0
----
-47
-70
62

query II rowsort
SELECT DISTINCT col2 AS col0, col1 FROM tab1 WHERE NOT NULL BETWEEN - col1 / 50 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5787
SELECT + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
15

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

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

skipif mysql # not compatible
query I rowsort label-5789
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - SUM( ALL + + 16 ) + + 10 AS col2 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-5792
SELECT - SUM ( ALL + + 16 ) + + 10 AS col2 FROM tab2
----
-38

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

query I rowsort
SELECT + - col1 + + + 74 FROM tab1 AS cor0
----
27
60
69

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT col1 + + col1 DIV - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT col1 + + col1 / - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
50
67
76

query I rowsort
SELECT - + col0 + + col2 + + 74 AS col1 FROM tab2 AS cor0
----
50
51
57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT + + col2 DIV col2 * - col2 + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-5799
SELECT + + col2 / col2 * - col2 + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL col0 * col1 + + col0 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT ALL - - col0 - 77 FROM tab0 AS cor0
----
-62
10
20

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) + - + 64 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT MIN ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT - 47 * + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT - 47 * + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT DISTINCT - COUNT( + 46 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT - COUNT ( + 46 ) FROM tab2
----
-3

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 WHERE NULL IN ( 22, col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * - + col2 col0 FROM tab1
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL MAX( col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL MAX ( col2 ) FROM tab2
----
58

query I rowsort
SELECT DISTINCT 54 * + 18 AS col0 FROM tab0
----
972

query II rowsort
SELECT - 94 AS col1, + col2 + col1 * + col0 AS col1 FROM tab0
----
-94
1262
-94
1837
-94
196

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

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

query I rowsort
SELECT DISTINCT + ( + + col1 ) * + 71 * + col0 * col0 * col1 FROM tab0 AS cor0
----
104811975
236992959
668039

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

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

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( - 98 ) )
----

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

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

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

query I rowsort
SELECT ALL - ( - 91 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

query II rowsort
SELECT + + col2 AS col0, col0 FROM tab1 AS cor0 WHERE NOT + col2 * col2 <= NULL
----

query I rowsort
SELECT ALL 86 + + + col0 + + - col2 FROM tab2 AS cor0
----
103
109
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL MIN( ALL - col1 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL MIN ( ALL - col1 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
243

query I rowsort
SELECT - col0 * + - col1 * - 54 FROM tab2 cor0
----
-126684
-266112
-271350

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT - + 62 * + MAX( - - col2 ) FROM tab1 AS cor0
----
-5952

skipif mysql # not compatible
query I rowsort label-5828
SELECT - + 62 * + MAX ( - - col2 ) FROM tab1 AS cor0
----
-5952

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5830
SELECT CAST( NULL AS SIGNED ) AS col1, col1 DIV 15 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
3

skipif mysql # not compatible
query II rowsort label-5830
SELECT CAST ( NULL AS INTEGER ) AS col1, col1 / 15 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5831
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 10 + - - col1, CAST( + + col2 AS SIGNED ), ( + + ( 36 ) ) * + 39 * - - CAST( col0 AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-5831
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 10 + - - col1, CAST ( + + col2 AS INTEGER ), ( + + ( 36 ) ) * + 39 * - - CAST ( col0 AS INTEGER ) * + col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <= 92 * - - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL - 67 * COUNT( DISTINCT col2 ) AS col2 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - 67 * COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT MIN( - 86 ) * + 14 FROM tab2 WHERE NOT + - col1 IS NULL
----
-1204

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT MIN ( - 86 ) * + 14 FROM tab2 WHERE NOT + - col1 IS NULL
----
-1204

query I rowsort
SELECT DISTINCT ( - - 32 ) AS col2 FROM tab2, tab0 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT ALL col0 + col2 + - col0 + + + 63 + - 88 DIV - - col0 AS col0 FROM tab1
----
121
131
158

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL col0 + col2 + - col0 + + + 63 + - 88 / - - col0 AS col0 FROM tab1
----
121
131
158

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

skipif mysql # not compatible
query I rowsort label-5839
SELECT + COUNT ( * ) FROM tab0 WHERE + col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL + - 48 + + 99 - 68 * col1 FROM tab1 AS cor0
----
-289
-3145
-901

query II rowsort
SELECT - col2 + + 39, + col2 FROM tab0 cor0
----
-60
99
-8
47
29
10

query I rowsort
SELECT ALL col0 + - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

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

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

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

query II rowsort
SELECT + - col1 + - ( - + col1 ) + col1 * + col0, + col1 FROM tab2 cor0
----
2346
51
4928
77
5025
67

query I rowsort
SELECT + 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

query II rowsort
SELECT - col1 AS col1, - 55 * col0 * + 32 AS col1 FROM tab0
----
-1
-170720
-21
-153120
-81
-26400

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - MIN( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5849
SELECT - MIN ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + + col1 * + col0 - + 10 FROM tab2 AS cor0
----
2336
4918
5015

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5851
SELECT + + 58 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT + + 58 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 79 AND - 47
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT DISTINCT + 44 AS col2, MAX( ALL + - col0 ) * 72 * + + 75 FROM tab2 AS cor0
----
44
-248400

skipif mysql # not compatible
query II rowsort label-5854
SELECT DISTINCT + 44 AS col2, MAX ( ALL + - col0 ) * 72 * + + 75 FROM tab2 AS cor0
----
44
-248400

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

skipif mysql # not compatible
query I rowsort label-5855
SELECT COUNT ( * ) * + 68 FROM tab2 AS cor0
----
204

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + 33 <> + + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - 45 - SUM( + + col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT - 45 - SUM ( + + col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + ( 21 ) AS col1, col0 FROM tab2
----
21
46
21
64
21
75

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

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

query II rowsort
SELECT 50 * col0 AS col2, 20 AS col0 FROM tab0
----
4350
20
4850
20
750
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT - 38 * + COUNT( * ) + 24 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT - 38 * + COUNT ( * ) + 24 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL - 81 AS col0 FROM tab0 cor0
----
-81
-81
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT ( - 65 ) DIV + + col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT ( - 65 ) / + + col2 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + col1 + + CAST( - - 49 AS SIGNED ) FROM tab1
----
54
63
96

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + col1 + + CAST ( - - 49 AS INTEGER ) FROM tab1
----
54
63
96

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

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

query I rowsort
SELECT DISTINCT - col2 / col0 FROM tab2 AS cor0 WHERE + 46 * + col1 IS NULL
----

query I rowsort
SELECT ALL + col1 + + + 83 * - 99 FROM tab2 AS cor0
----
-8140
-8150
-8166

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5873
SELECT COUNT( * ) * - + COUNT( * ) + - 57 FROM tab2 WHERE - col0 - CAST( NULL AS DECIMAL ) IS NOT NULL
----
-57

skipif mysql # not compatible
query I rowsort label-5873
SELECT COUNT ( * ) * - + COUNT ( * ) + - 57 FROM tab2 WHERE - col0 - CAST ( NULL AS REAL ) IS NOT NULL
----
-57

query I rowsort
SELECT ALL 55 + + + col1 FROM tab0
----
136
56
76

query I rowsort
SELECT ALL - ( + 23 ) FROM tab1
----
-23
-23
-23

query I rowsort
SELECT ALL 27 * col0 * - - 55 * + col1 AS col1 FROM tab0
----
144045
1804275
2713095

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT + 88 * - COUNT( DISTINCT - + 21 ) FROM tab2 WHERE NULL > + 66
----
0

skipif mysql # not compatible
query I rowsort label-5878
SELECT + 88 * - COUNT ( DISTINCT - + 21 ) FROM tab2 WHERE NULL > + 66
----
0

query I rowsort
SELECT DISTINCT + 58 + - 89 + + col2 FROM tab1
----
28
37
65

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - 31 * + col1 + col1 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 1 + + 65 NOT BETWEEN + - ( + ( - col1 ) ) + col2 AND - 18 * + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 27 * + + col2 + col0 AS col1 FROM tab1 AS cor0
----
1678
1927
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT COUNT( * ) + - COUNT( - + col1 ) col0 FROM tab2 AS cor0
----
0

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

query II rowsort
SELECT col1 + + + col2 AS col2, col0 FROM tab1
----
110
51
115
91
64
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - col2 AND - col0
----
51
14
96

onlyif mysql # DIV for integer division: 
query II rowsort label-5887
SELECT ALL 26 DIV + + col1 AS col0, 41 AS col1 FROM tab0 cor0
----
0
41
1
41
26
41

skipif mysql # not compatible
query II rowsort label-5887
SELECT ALL 26 / + + col1 AS col0, 41 AS col1 FROM tab0 cor0
----
0
41
1
41
26
41

query I rowsort
SELECT - col2 * col1 - - 28 AS col1 FROM tab2 cor0
----
-1145
-3052
-3858

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5892
SELECT - col0 AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5892
SELECT - col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - + ( - COUNT( * ) ) - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 + - 13
----
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT - + ( - COUNT ( * ) ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 + - 13
----
0

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

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

query II rowsort
SELECT col0, - ( col0 ) FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT - 87 * - ( + + col1 ) FROM tab2 cor0
----
4437
5829
6699

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

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

query I rowsort
SELECT col1 * - 12 * - col0 FROM tab0
----
1164
14580
21924

query I rowsort
SELECT - 31 + col1 FROM tab2
----
20
36
46

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

query I rowsort
SELECT ( + col0 ) + - col1 FROM tab1
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 + + 63 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 17 * - - 8 FROM tab2 AS cor0
----
-136
-136
-136

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

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

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

skipif mysql # not compatible
query I rowsort label-5908
SELECT + MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT ALL - 54 + - - col0 - - 34 + + - col0 DIV - - col1 + - 39 * + 71 * + ( + - col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1464827
4430444
9314970

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL - 54 + - - col0 - - 34 + + - col0 / - - col1 + - 39 * + 71 * + ( + - col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1464827
4430444
9314970

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

skipif mysql # not compatible
query I rowsort label-5910
SELECT + MAX ( + - 89 ) FROM tab2 AS cor0
----
-89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - 24 * - col2 * - 16 FROM tab2
----
-15360
-22272
-8832

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

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

query I rowsort
SELECT 9 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5917
SELECT - CAST( col1 AS SIGNED ) + + col2 + - 60 col2 FROM tab2 AS cor0
----
-69
-88
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5917
SELECT - CAST ( col1 AS INTEGER ) + + col2 + - 60 col2 FROM tab2 AS cor0
----
-69
-88
-97

query I rowsort
SELECT col0 + + 90 FROM tab2 AS cor0
----
136
154
165

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + 67 * + + col2 IN ( + col1 + col0 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT ALL - ( - col2 ) DIV + - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - ( - col2 ) / + - col1 FROM tab1
----
-1
-11
-6

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 28 > - ( + - 83 )
----

query I rowsort
SELECT - ( col1 ) * + + 30 FROM tab0 cor0
----
-2430
-30
-630

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

query II rowsort
SELECT DISTINCT - col2, - col0 + col2 AS col1 FROM tab1 AS cor0
----
-59
-26
-68
-23
-96
45

query I rowsort
SELECT + 18 * - col1 AS col1 FROM tab1 AS cor0
----
-252
-846
-90

query I rowsort
SELECT + + col0 * + col2 + - + col2 FROM tab0 AS cor0
----
658
860
9504

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

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

query I rowsort
SELECT DISTINCT + + ( + + col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT 38 DIV 36 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5931
SELECT 38 / 36 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - MIN( - 11 ) * + COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5932
SELECT - MIN ( - 11 ) * + COUNT ( * ) FROM tab1 AS cor0
----
33

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

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

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

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

query II rowsort
SELECT ( - - col0 ) AS col1, - col2 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL col0 * + 78 FROM tab1
----
3978
6630
7098

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT + 91 + - col1 DIV 7 FROM tab1
----
85
89
91

skipif mysql # not compatible
query I rowsort label-5938
SELECT + 91 + - col1 / 7 FROM tab1
----
85
89
91

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 + 7 + + 29 + - 93 * + + col0 AND + col2 / - + col0
----

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

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

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

query I rowsort
SELECT + + 78 - - col2 * + col0 FROM tab0 WHERE - 2 NOT BETWEEN + col1 AND NULL
----
783
948
9681

query I rowsort
SELECT - - col1 + + 15 + col1 FROM tab1 AS cor0
----
109
25
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5945
SELECT - 68 * - - CAST( NULL AS SIGNED ) * + MAX( ALL + col2 ) + - - 60 col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 * 73 )
----

query II rowsort
SELECT - col2 * + + 29 * - + 76 + col1, col2 FROM tab1 AS cor0
----
130041
59
149919
68
211598
96

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

query I rowsort
SELECT ALL - 32 * + col1 + col1 * - col2 * + col2 - + col1 + - col2 + - - col2 FROM tab0 AS cor0
----
-181602
-2793
-9834

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 92 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT ALL + col2 + - - col2 DIV - col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + col2 + - - col2 / - col2 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - COUNT( * ) FROM tab0 WHERE + 91 <= + col2
----
-1

skipif mysql # not compatible
query I rowsort label-5952
SELECT - COUNT ( * ) FROM tab0 WHERE + 91 <= + col2
----
-1

query I rowsort
SELECT DISTINCT col0 * - 48 AS col2 FROM tab0
----
-4176
-4656
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT - ( - col2 ) DIV - ( col1 ) FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5954
SELECT - ( - col2 ) / - ( col1 ) FROM tab0
----
-99
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 65 * + col0 * - 53 + + 94 <> - 57 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-5957
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 >= + col1
----
0

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 28 / - 69 ) >= NULL
----

query I rowsort
SELECT ALL - - col0 * + 27 AS col1 FROM tab2 cor0
----
1242
1728
2025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 69 / - - 36
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 52 + - 71 < NULL
----

query II rowsort
SELECT DISTINCT col0, col2 * - 3 FROM tab0 AS cor0
----
15
-141
87
-30
97
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL - SUM( ALL + 22 ) AS col0 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - SUM ( ALL + 22 ) AS col0 FROM tab0 cor0
----
-66

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - ( + - 54 ) * col0 * 9 IS NOT NULL )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT - COUNT( * ) * - 38 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5966
SELECT - COUNT ( * ) * - 38 FROM tab2 AS cor0
----
114

query I rowsort
SELECT ALL + 43 * + col2 FROM tab2 AS cor0
----
1720
2494
989

query I rowsort
SELECT - - col2 * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

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

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

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

query I rowsort
SELECT + 87 * col1 * - col0 AS col1 FROM tab2
----
-204102
-428736
-437175

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

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT COUNT ( DISTINCT 96 ) * COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT ALL - col1 * 22 AS col2 FROM tab2
----
-1122
-1474
-1694

onlyif mysql # DIV for integer division: 
query III rowsort label-5974
SELECT * FROM tab0 WHERE NOT - + ( 95 ) DIV col2 >= - col2 DIV + col1 * + + col2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-5974
SELECT * FROM tab0 WHERE NOT - + ( 95 ) / col2 >= - col2 / + col1 * + + col2
----
15
81
47
87
21
10

query I rowsort
SELECT + 0 FROM tab1 WHERE NOT + - 96 IS NOT NULL
----

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL >= 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL col1 + - col2 DIV + col0 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL col1 + - col2 / + col0 FROM tab1
----
13
47
5

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab2
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT DISTINCT MAX( DISTINCT - col2 ) + - 8 * 78 * + COUNT( * ) col1 FROM tab0 cor0
----
-1882

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5983
SELECT DISTINCT MAX ( DISTINCT - col2 ) + - 8 * 78 * + COUNT ( * ) col1 FROM tab0 cor0
----
-1882

query I rowsort
SELECT + 86 AS col2 FROM tab1 cor0
----
86
86
86

query II rowsort
SELECT DISTINCT - col1 + 6, - col1 AS col0 FROM tab0 AS cor0
----
-15
-21
-75
-81
5
-1

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

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL - - CAST ( NULL AS INTEGER ) - - 43 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + 0 - - col0 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - + col2 * - col1 + + col1 - - col0 AS col2 FROM tab1 AS cor0
----
1409
3334
385

query I rowsort
SELECT - - 80 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( 82 ) - - - col1 FROM tab0
----
-103
-163
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + COUNT( * ) - - - 67 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-5992
SELECT + COUNT ( * ) - - - 67 FROM tab1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5993
SELECT * FROM tab1 WHERE + CAST( + 34 AS SIGNED ) + + col2 + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5993
SELECT * FROM tab1 WHERE + CAST ( + 34 AS INTEGER ) + + col2 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 98 ) FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT + + MAX( ALL ( + col0 ) ) AS col1, + 71 FROM tab2 AS cor0
----
75
71

skipif mysql # not compatible
query II rowsort label-5995
SELECT + + MAX ( ALL ( + col0 ) ) AS col1, + 71 FROM tab2 AS cor0
----
75
71

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

skipif mysql # not compatible
query I rowsort label-5996
SELECT - - SUM ( + col2 ) FROM tab2 cor0
----
121

query II rowsort
SELECT ALL col1 * - col0 * - + col2 * col2, - col2 AS col1 FROM tab1
----
1479425
-59
19776848
-68
6580224
-96

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

query I rowsort
SELECT + col1 * + col1 * + 43 FROM tab1 AS cor0
----
1075
8428
94987

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT ALL + - col2 DIV - col0 * - - 22 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + - col2 / - col0 * - - 22 AS col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT - 36 + + COUNT( + + 83 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6002
SELECT - 36 + + COUNT ( + + 83 ) FROM tab0
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( ALL - - col2 ) col0 FROM tab0 WHERE NULL NOT IN ( col2, - col0 + - col0, col2 )
----
NULL

query II rowsort
SELECT ALL + col2 * + col0 * + col2 AS col0, col2 FROM tab1
----
295885
59
420784
68
470016
96

query I rowsort
SELECT col0 + + - col1 FROM tab0
----
-66
66
96

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

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

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

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

query I rowsort
SELECT 55 + + col2 AS col2 FROM tab2
----
113
78
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT DISTINCT + 20 + - COUNT( * ) + - ( - - COUNT( * ) ) * - - COUNT( * ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + 20 + - COUNT ( * ) + - ( - - COUNT ( * ) ) * - - COUNT ( * ) AS col1 FROM tab1
----
8

query I rowsort
SELECT col2 + - col0 + + 84 FROM tab0
----
116
7
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 + - - col0 + 81 col1 FROM tab1 AS cor0
----
128
86
95

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col2 > 64 + + 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT + + ( - COUNT( * ) ) + + MAX( - 7 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6015
SELECT + + ( - COUNT ( * ) ) + + MAX ( - 7 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6016
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 5 BETWEEN - col0 * + - CAST( - - 18 AS DECIMAL ) AND col2
----

skipif mysql # not compatible
query III rowsort label-6016
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 5 BETWEEN - col0 * + - CAST ( - - 18 AS REAL ) AND col2
----

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

query I rowsort
SELECT DISTINCT + 32 + 25 FROM tab0 AS cor0
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL - COUNT( * ) - - 90 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL - COUNT ( * ) - - 90 FROM tab2 AS cor0
----
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - ( + - col1 ) <= - - 27 * + col2
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT ALL - col1 + + 61 + - col2 DIV col2 + - + col2 + - - col2 AS col1 FROM tab2 AS cor0
----
-17
-7
9

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - col1 + + 61 + - col2 / col2 + - + col2 + - - col2 AS col1 FROM tab2 AS cor0
----
-17
-7
9

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

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

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

query I rowsort
SELECT - 67 * + col2 AS col1 FROM tab1
----
-3953
-4556
-6432

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

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

query I rowsort
SELECT col1 * - + col2 * - + col2 AS col0 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT DISTINCT col0 + - 81 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66
16
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT + + COUNT( * ) * + CAST( + - SUM( DISTINCT + col0 ) AS SIGNED ) + - - MAX( DISTINCT + + 34 ) AS col2 FROM tab2 AS cor0
----
-521

skipif mysql # not compatible
query I rowsort label-6030
SELECT + + COUNT ( * ) * + CAST ( + - SUM ( DISTINCT + col0 ) AS INTEGER ) + - - MAX ( DISTINCT + + 34 ) AS col2 FROM tab2 AS cor0
----
-521

query I rowsort
SELECT 69 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

query II rowsort
SELECT - 14 * 99, - col2 AS col1 FROM tab2 cor0 WHERE NOT ( ( - 81 ) + + col0 ) BETWEEN - 43 AND + + ( col1 )
----

query I rowsort
SELECT ALL - + col2 + - - col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL 47 * + + 95 FROM tab0 cor0
----
4465
4465
4465

query I rowsort
SELECT ALL + - 91 * - 87 - + col0 FROM tab2 AS cor0
----
7842
7853
7871

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT ( - - ( + + COUNT ( * ) ) ) FROM tab0
----
3

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

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

query I rowsort
SELECT DISTINCT - 68 * - - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
-3105
-4312
-5042

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT + + 13 + - COUNT( * ) AS col2 FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6045
SELECT + + 13 + - COUNT ( * ) AS col2 FROM tab2 cor0
----
10

query II rowsort
SELECT - col0 + + col2 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
-23
-47
-26
-5
45
-14

query I rowsort
SELECT DISTINCT 33 * + 64 AS col2 FROM tab0
----
2112

query I rowsort
SELECT ALL + - col2 * + col1 + + col2 FROM tab0 AS cor0
----
-200
-3760
0

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

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

query I rowsort
SELECT DISTINCT - 99 + + + col0 FROM tab1 AS cor0
----
-14
-48
-8

query I rowsort
SELECT - + ( - 27 ) - + 30 AS col2 FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT ALL + col0 DIV - col2 + + col0 AS col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + col0 / - col2 + + col0 AS col0 FROM tab1 AS cor0
----
51
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT col1 DIV - 28 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6053
SELECT col1 / - 28 FROM tab0 AS cor0
----
-2
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6054
SELECT DISTINCT SUM ( ALL + col2 ) col2 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT + CAST( + 75 AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif mysql # not compatible
query I rowsort label-6055
SELECT + CAST ( + 75 AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6056
SELECT ALL * FROM tab0 WHERE NULL <= CAST( + col0 AS SIGNED ) + - col1 + - 54
----

skipif mysql # not compatible
query III rowsort label-6056
SELECT ALL * FROM tab0 WHERE NULL <= CAST ( + col0 AS INTEGER ) + - col1 + - 54
----

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

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

query I rowsort
SELECT DISTINCT + - col1 * + col0 + col2 * 33 + - col0 + col0 + - col0 AS col1 FROM tab2 WHERE NULL = NULL
----

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

query I rowsort
SELECT - 18 * + - col1 FROM tab2
----
1206
1386
918

query I rowsort
SELECT - ( - 4 ) * - 4 FROM tab1 AS cor0
----
-16
-16
-16

query II rowsort
SELECT ALL col0 AS col0, - 65 + col2 + ( + col1 ) FROM tab1 AS cor0
----
51
45
85
-1
91
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + COUNT( * ) * + 7 AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6064
SELECT + COUNT ( * ) * + 7 AS col1 FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL 65 AS col1 FROM tab1 AS cor0 WHERE 35 * + - 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 46 AS col0, 43 col1 FROM tab0 AS cor0
----
46
43

query II rowsort
SELECT - col1, + ( - 21 ) * col0 + - 87 * - - col0 AS col0 FROM tab2 AS cor0
----
-51
-4968
-67
-8100
-77
-6912

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 80 + - col2 FROM tab1 AS cor0
----
-16
12
21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 74 * 65 * + + 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 + 85 FROM tab1 AS cor0
----
110
2294
281

query I rowsort
SELECT + 70 AS col1 FROM tab2 cor0
----
70
70
70

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

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

skipif mysql # not compatible
query I rowsort label-6075
SELECT COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) * - - MAX ( + + col0 ) FROM tab0
----
-288

query I rowsort
SELECT + col2 * col1 + - 87 + - col2 + + + col0 FROM tab1 WHERE + col2 + + 1 = col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6077
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 WHERE NOT + + 3 * + CAST( NULL AS SIGNED ) / 72 + + + col0 / - + col0 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6077
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 WHERE NOT + + 3 * + CAST ( NULL AS INTEGER ) / 72 + + + col0 / - + col0 IS NULL
----
0
0

query II rowsort
SELECT DISTINCT col1, + col1 * col2 AS col1 FROM tab2
----
51
1173
67
3886
77
3080

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT COUNT( ALL + col2 ) + + 48 + - 58 col2 FROM tab1
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6080
SELECT COUNT ( ALL + col2 ) + + 48 + - 58 col2 FROM tab1
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6084
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 75 + + - 64 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT - + 46 * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-423

skipif mysql # not compatible
query I rowsort label-6086
SELECT - + 46 * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-423

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

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

query I rowsort
SELECT 41 + - col1 + + 34 * col1 AS col1 FROM tab1
----
1592
206
503

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

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

query I rowsort
SELECT + ( + col1 ) * 29 FROM tab0 AS cor0
----
2349
29
609

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

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

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

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

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

query I rowsort
SELECT ALL 6 * - col0 * - 21 AS col2 FROM tab0 AS cor0
----
10962
12222
1890

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

query I rowsort
SELECT ALL ( - + col0 ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE + 39 / + col1 * + - col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT + 90 * COUNT( * ) AS col1 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + 90 * COUNT ( * ) AS col1 FROM tab1
----
270

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT ALL + + CAST( + + 33 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + + CAST ( + + 33 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
33
33
33

query II rowsort
SELECT ALL - col2 AS col0, - 12 - + col2 AS col2 FROM tab2
----
-23
-35
-40
-52
-58
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - + 32 + - COUNT( DISTINCT - - col0 ) col1 FROM tab2 WHERE NOT - - 33 <= - - ( col0 )
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6104
SELECT - + 32 + - COUNT ( DISTINCT - - col0 ) col1 FROM tab2 WHERE NOT - - 33 <= - - ( col0 )
----
-32

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

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

query I rowsort
SELECT ALL 84 + 59 * + - 98 * + ( 7 ) AS col0 FROM tab0 AS cor0
----
-40390
-40390
-40390

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

query I rowsort
SELECT ALL - + col2 + col2 * + 24 AS col2 FROM tab0 AS cor0
----
1081
2277
230

query I rowsort
SELECT - - ( + col1 ) * - col2 * - + col2 FROM tab2 AS cor0
----
123200
225388
26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( + - 3 ) ) col1 FROM tab2 WHERE + 7 = - 11 * + 12 * + - 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * + col1 * - col2 col0 FROM tab0
----
-182700
-2683935
-950697

query I rowsort
SELECT ALL ( - - 83 ) AS col1 FROM tab1
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT + COUNT( + col2 ) + - 56 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT + COUNT ( + col2 ) + - 56 FROM tab2
----
-53

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

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

query I rowsort
SELECT ALL - - 95 - 69 * ( - col0 ) FROM tab2 AS cor0
----
3269
4511
5270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 + + col0 col2 FROM tab2 AS cor0
----
115
168
208

query I rowsort
SELECT 1 * - col2 - + 30 + col2 * + col0 + + col0 * - + col0 + 3 + + col1 AS col1 FROM tab2 AS cor0
----
-1057
-1293
-1526

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL - 46 - MIN( DISTINCT - col1 ) * 83 FROM tab0 cor0
----
6677

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - 46 - MIN ( DISTINCT - col1 ) * 83 FROM tab0 cor0
----
6677

query I rowsort
SELECT DISTINCT 25 * - - col2 FROM tab0
----
1175
2475
250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT 76 FROM tab0 AS cor0 WHERE NOT 88 IN ( + ( col2 ), - col2, + col2, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6120
SELECT 76 FROM tab0 AS cor0 WHERE NOT 88 IN ( + ( col2 ), - col2, + col2, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6121
SELECT DISTINCT + - COUNT( * ), + 55 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
0
55

skipif mysql # not compatible
query II rowsort label-6121
SELECT DISTINCT + - COUNT ( * ), + 55 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
0
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL + - SUM( ALL 35 ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + - SUM ( ALL 35 ) FROM tab0 AS cor0
----
-105

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT - col2 + + + 92 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT COUNT( - + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6126
SELECT COUNT ( - + col2 ) AS col1 FROM tab0
----
3

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL NOT BETWEEN - 62 AND NULL
----

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

query I rowsort
SELECT col1 * col1 * - + col1 AS col1 FROM tab2
----
-132651
-300763
-456533

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

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

query I rowsort
SELECT 81 * + col1 FROM tab1 AS cor0
----
1134
3807
405

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col2 col1 FROM tab0 cor0
----
705
870
9603

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

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT 10 + + + 44 - + + col1 NOT BETWEEN ( - col0 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL COUNT( * ) + MAX( ALL + - col0 ) col1 FROM tab0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - - COUNT( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT DISTINCT 37 DIV - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT 37 / - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT ALL 71 + + - 19 AS col0 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - - COUNT( * ) + + 12 AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6144
SELECT - - COUNT ( * ) + + 12 AS col0 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT + COUNT( * ) + + 4 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6145
SELECT + COUNT ( * ) + + 4 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL 56 + + col2 FROM tab0 AS cor0
----
103
155
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL COUNT( * ) + - - 62 FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL COUNT ( * ) + - - 62 FROM tab2 cor0
----
65

query II rowsort
SELECT ALL - col1 AS col1, - 59 FROM tab2 AS cor0 WHERE + 9 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL + - 87 - - MAX( ALL - col0 ) / + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * + col2 <> 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + - 87 - - MAX ( ALL - col0 ) / + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * + col2 <> 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6150
SELECT * FROM tab2 AS cor0 WHERE 58 * - CAST( NULL AS SIGNED ) * + col2 < NULL
----

skipif mysql # not compatible
query III rowsort label-6150
SELECT * FROM tab2 AS cor0 WHERE 58 * - CAST ( NULL AS INTEGER ) * + col2 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT + 50 + - MAX( + - col0 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-6152
SELECT + 50 + - MAX ( + - col0 ) FROM tab2
----
96

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

query I rowsort
SELECT + col2 + - col2 AS col0 FROM tab2 WHERE - - 61 * - 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT ALL CAST( - col1 AS SIGNED ) col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6155
SELECT ALL CAST ( - col1 AS INTEGER ) col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - ( 91 ) + + MAX( + - col1 ) FROM tab1 WHERE NULL NOT IN ( col0, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT - ( 91 ) + + MAX ( + - col1 ) FROM tab1 WHERE NULL NOT IN ( col0, col1 )
----
NULL

query II rowsort
SELECT + col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-6158
SELECT ALL - col0, - col0 DIV - col1 AS col2 FROM tab0
----
-15
0
-87
4
-97
97

skipif mysql # not compatible
query II rowsort label-6158
SELECT ALL - col0, - col0 / - col1 AS col2 FROM tab0
----
-15
0
-87
4
-97
97

query I rowsort
SELECT ALL - 15 + - col1 FROM tab2
----
-66
-82
-92

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

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

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

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL COUNT ( ALL + col1 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT DISTINCT + col2 - + col1 + col1 DIV col0 col0 FROM tab0 AS cor0
----
-11
-29
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6162
SELECT DISTINCT + col2 - + col1 + col1 / col0 col0 FROM tab0 AS cor0
----
-11
-29
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT col0 - + - col1 DIV 29 * + col1 - col1 AS col0 FROM tab1 AS cor0
----
37
80
91

skipif mysql # not compatible
query I rowsort label-6163
SELECT col0 - + - col1 / 29 * + col1 - col1 AS col0 FROM tab1 AS cor0
----
37
80
91

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL <> 5
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6165
SELECT DISTINCT - - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT ALL - 11 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6166
SELECT ALL - 11 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT COUNT( * ) * + MIN( DISTINCT - + 72 ) AS col0 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-6167
SELECT COUNT ( * ) * + MIN ( DISTINCT - + 72 ) AS col0 FROM tab2
----
-216

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

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

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

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

query I rowsort
SELECT ALL - col2 * + 23 AS col2 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6172
SELECT ALL col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-6172
SELECT ALL col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 67 * - - 32 FROM tab2
----
2144
2144
2144

query II rowsort
SELECT ALL + ( - col1 ) + - 14 AS col0, 2 AS col2 FROM tab1 AS cor0
----
-19
2
-28
2
-61
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT + + 90 + col1 DIV col0 + + + ( + 80 ) AS col1 FROM tab0 AS cor0
----
170
170
175

skipif mysql # not compatible
query I rowsort label-6175
SELECT + + 90 + col1 / col0 + + + ( + 80 ) AS col1 FROM tab0 AS cor0
----
170
170
175

query III rowsort
SELECT * FROM tab1 WHERE col1 * 50 IN ( - 13 + + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + 70 * + COUNT( + 27 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 70 * + COUNT ( + 27 ) FROM tab1
----
210

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

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

query I rowsort
SELECT - col0 * ( ( + 18 ) ) FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT DISTINCT col2 + ( + 31 + - 39 ) * - 17 FROM tab2
----
159
176
194

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ( - SUM( - col2 ) ) - - COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6182
SELECT ( - SUM ( - col2 ) ) - - COUNT ( * ) FROM tab0
----
159

query I rowsort
SELECT DISTINCT - 89 * - 40 FROM tab2
----
3560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6184
SELECT MIN( CAST( col1 AS SIGNED ) ) + - MAX( ALL 96 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-6184
SELECT MIN ( CAST ( col1 AS INTEGER ) ) + - MAX ( ALL 96 ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( - 82 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( - 82 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT COUNT( * ) + COUNT( * ) * + SUM( col1 ) FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-6186
SELECT COUNT ( * ) + COUNT ( * ) * + SUM ( col1 ) FROM tab0
----
312

query I rowsort
SELECT ALL - 29 * - col1 AS col2 FROM tab1
----
1363
145
406

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT + COUNT( * ) * COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6188
SELECT + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
6

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

query I rowsort
SELECT 17 + col2 FROM tab0
----
116
27
64

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

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

query I rowsort
SELECT - ( - col2 ) - ( col1 ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT CAST( col2 AS SIGNED ) FROM tab0 WHERE ( + col1 ) NOT IN ( + col2 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6194
SELECT CAST ( col2 AS INTEGER ) FROM tab0 WHERE ( + col1 ) NOT IN ( + col2 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 col1 FROM tab0
----
705
870
9603

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6198
SELECT 79 DIV + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6198
SELECT 79 / + COUNT ( * ) FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE ( + col1 + 32 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 34 - + col2 * + col0 FROM tab1
----
-4862
-4981
-6154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 58 ) col1 FROM tab0 WHERE NULL IS NULL
----
58

query III rowsort
SELECT * FROM tab1 WHERE 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT ALL + col1 * 69 FROM tab2 WHERE ( + 95 * - CAST( - col1 AS SIGNED ) + col0 * - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL + col1 * 69 FROM tab2 WHERE ( + 95 * - CAST ( - col1 AS INTEGER ) + col0 * - col2 ) IS NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL IN ( - col0 * + 73 )
----

query I rowsort
SELECT + 33 * + ( col0 ) FROM tab1
----
1683
2805
3003

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col0 * - 51 - 90 )
----

query I rowsort
SELECT + 66 * col2 - + 83 * - col1 FROM tab0
----
2403
6617
9825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6208
SELECT + SUM( CAST( col2 AS SIGNED ) ) * - SUM( col2 DIV 4 ) FROM tab0
----
-5772

skipif mysql # not compatible
query I rowsort label-6208
SELECT + SUM ( CAST ( col2 AS INTEGER ) ) * - SUM ( col2 / 4 ) FROM tab0
----
-5772

query I rowsort
SELECT DISTINCT + col2 * - 96 FROM tab1
----
-5664
-6528
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - ( + col2 ) col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + 43 * + ( col2 ) + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1357
-2531
-3208

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT - MAX( DISTINCT col1 ) * + 25 FROM tab0 AS cor0
----
-2025

skipif mysql # not compatible
query I rowsort label-6213
SELECT - MAX ( DISTINCT col1 ) * + 25 FROM tab0 AS cor0
----
-2025

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

query I rowsort
SELECT - col2 + - 47 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-106
-115
-143

query I rowsort
SELECT col1 * + 51 FROM tab1 cor0
----
2397
255
714

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 < col1 + 68
----
97
1
99

query I rowsort
SELECT ALL 61 FROM tab0 AS cor0 WHERE NOT ( + 57 ) IS NOT NULL
----

query I rowsort
SELECT ALL 67 AS col1 FROM tab1 AS cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 47 * col2 IS NOT NULL
----

query I rowsort
SELECT + 25 * - 94 AS col2 FROM tab0 AS cor0
----
-2350
-2350
-2350

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 69 * + 1 IS NOT NULL
----

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

query I rowsort
SELECT + 59 + - 25 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT + SUM( DISTINCT + col1 ) * + 70 AS col0 FROM tab1 WHERE NOT ( NULL ) < + col2 - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT + SUM ( DISTINCT + col1 ) * + 70 AS col0 FROM tab1 WHERE NOT ( NULL ) < + col2 - + col0
----
NULL

query I rowsort
SELECT col1 + + 68 AS col2 FROM tab2
----
119
135
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6232
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-6232
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col0 = NULL
----

query I rowsort
SELECT col1 + - 78 + 59 AS col2 FROM tab0
----
-18
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 WHERE NOT ( 64 ) <= col2
----
51
67
77

query I rowsort
SELECT + ( col2 ) + - col1 AS col1 FROM tab1
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - 90 )
----

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

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

query I rowsort
SELECT 96 FROM tab0 WHERE NOT ( - ( + col0 ) ) >= col0
----
96
96
96

query I rowsort
SELECT col1 * + col0 + ( - col2 ) AS col1 FROM tab0
----
-2
1168
1817

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT DISTINCT - 35 AS col2, COUNT( * ) FROM tab0
----
-35
3

skipif mysql # not compatible
query II rowsort label-6244
SELECT DISTINCT - 35 AS col2, COUNT ( * ) FROM tab0
----
-35
3

query I rowsort
SELECT col0 + - - 82 AS col1 FROM tab1
----
133
167
173

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

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

query I rowsort
SELECT DISTINCT col0 + col1 + + 64 * - 7 AS col1 FROM tab0 AS cor0
----
-340
-350
-352

query I rowsort
SELECT DISTINCT - + 38 * - col2 + col0 FROM tab1 AS cor0 WHERE NOT NULL > 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 + col1 <= col0 + + 74
----
2

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 + col1 <= col0 + + 74
----
2

query I rowsort
SELECT ALL 45 + - 9 FROM tab2 AS cor0 WHERE col0 BETWEEN - 94 AND 40
----

query I rowsort
SELECT 7 + - 39 + + 28 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - 92 + + 95 AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 24 col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL - 42 + - 80 - + COUNT( * ) + 4 AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - 42 + - 80 - + COUNT ( * ) + 4 AS col2 FROM tab2 cor0
----
-121

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + - + 12 AS col0 FROM tab1 AS cor0
----
-17
-26
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 44 * + col2 + 41 <> + col1
----

query I rowsort
SELECT DISTINCT 46 * - col1 - col2 FROM tab0
----
-145
-3773
-976

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL - COUNT( col1 ) AS col2 FROM tab1 WHERE NOT + CAST( - col0 AS SIGNED ) + + 93 IN ( + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL - COUNT ( col1 ) AS col2 FROM tab1 WHERE NOT + CAST ( - col0 AS INTEGER ) + + 93 IN ( + col0 )
----
-3

query I rowsort
SELECT DISTINCT col2 * col0 - - 82 * + 11 - + col2 FROM tab2
----
1937
3422
5194

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT DISTINCT + 56 * + ( + COUNT( * ) ) - - - COUNT( * ) col0 FROM tab1
----
165

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

query I rowsort
SELECT + 53 AS col0 FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT col2 * + + 59 * - col2 * - + col2 AS col2 FROM tab0
----
57247641
59000
6125557

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + MAX( - 43 ) AS col1 FROM tab0 WHERE 28 NOT BETWEEN 91 AND NULL
----
-43

skipif mysql # not compatible
query I rowsort label-6269
SELECT + MAX ( - 43 ) AS col1 FROM tab0 WHERE 28 NOT BETWEEN 91 AND NULL
----
-43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 + + ( + col2 ) ) AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * col2 * col0 * - 82 FROM tab2
----
-16163840
-23898900
-4424556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT CAST( 57 AS SIGNED ) * + + 85 FROM tab1
----
4845
4845
4845

skipif mysql # not compatible
query I rowsort label-6272
SELECT CAST ( 57 AS INTEGER ) * + + 85 FROM tab1
----
4845
4845
4845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 39 ) col2 FROM tab2 AS cor0
----
39
39
39

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

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

query II rowsort
SELECT DISTINCT + ( - col1 ) AS col2, + 45 * col1 AS col0 FROM tab0 AS cor0
----
-1
45
-21
945
-81
3645

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT DISTINCT + MIN( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-75

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 63 col2, - col0 * + - col0 FROM tab2 AS cor0
----
63
2116
63
4096
63
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 60 col2 FROM tab2
----
-2760
-3840
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT + ( + col0 ) DIV - col2 + + col1 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-6286
SELECT + ( + col0 ) / - col2 + + col1 FROM tab1
----
14
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT 28 DIV + 74 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6287
SELECT 28 / + 74 AS col1 FROM tab1
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE ( ( 61 * - 92 ) IS NOT NULL )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT - 41 * - MAX( 64 ) AS col2 FROM tab2
----
2624

skipif mysql # not compatible
query I rowsort label-6291
SELECT - 41 * - MAX ( 64 ) AS col2 FROM tab2
----
2624

query II rowsort
SELECT col2 AS col1, - col2 * + 44 FROM tab2 AS cor0
----
23
-1012
40
-1760
58
-2552

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE + 67 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT 36 * + col0 * ( col0 ) + + col1 + - - col2 FROM tab0 cor0
----
272515
338824
8228

query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab0 WHERE + ( + 57 ) * col0 IS NULL
----

query I rowsort
SELECT ALL col1 * col2 * - + col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT col2 DIV - 35 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6298
SELECT col2 / - 35 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT DISTINCT col0 * 97 * + col2 * CAST( + + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
2432275
28211092
6648768

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6299
SELECT DISTINCT col0 * 97 * + col2 * CAST ( + + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
2432275
28211092
6648768

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + col1 ) > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL MAX( - - col0 ) - + - MAX( DISTINCT + + 44 ) FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL MAX ( - - col0 ) - + - MAX ( DISTINCT + + 44 ) FROM tab2 AS cor0
----
119

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

query I rowsort
SELECT ALL + 2 * - ( 80 ) + - col2 FROM tab2 AS cor0
----
-183
-200
-218

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT col1 DIV - col0 - + col0 * + col0 * + 14 + col0 FROM tab1 AS cor0
----
-101065
-115843
-36363

skipif mysql # not compatible
query I rowsort label-6305
SELECT col1 / - col0 - + col0 * + col0 * + 14 + col0 FROM tab1 AS cor0
----
-101065
-115843
-36363

query III rowsort
SELECT ALL * FROM tab2 WHERE 27 + - + 25 NOT IN ( - + col1 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 22 AS col2 FROM tab2 WHERE NOT + 30 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + ( + col2 ) col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT DISTINCT + 53 / col0 FROM tab1 WHERE NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT + 53 / col0 FROM tab1 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 33 * - col2 AS col0 FROM tab1
----
-1947
-2244
-3168

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6311
SELECT MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT COUNT( 53 ) * - + 41, - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-123
0

skipif mysql # not compatible
query II rowsort label-6314
SELECT COUNT ( 53 ) * - + 41, - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-123
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT ALL 40 DIV + + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL 40 / + + col0 AS col1 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT + - col0 * - 25 AS col2 FROM tab1 AS cor0
----
1275
2125
2275

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0 AS col2, col2 FROM tab2 WHERE - col2 >= + 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 21 * + + col1 * + col1 * + 59 col2 FROM tab0
----
-122661
-382066713
-5463990

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

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL ( + col2 ) / - + col1 AS col0 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + 91 + - COUNT( * ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-6325
SELECT + 91 + - COUNT ( * ) AS col1 FROM tab2
----
88

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

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

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

query II rowsort
SELECT + 58 + - ( - 0 ), col0 FROM tab2
----
58
46
58
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT DISTINCT MAX( + 25 ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT MAX ( + 25 ) AS col0 FROM tab1
----
25

query I rowsort
SELECT 29 * col0 FROM tab2 WHERE - col1 + - col0 - col0 IN ( + + col1 * + - col0 + - - col0 - + + col2 + + col0 )
----

query I rowsort
SELECT - ( + ( - 76 ) ) AS col0 FROM tab2
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 7 col0 FROM tab2
----
44
60
70

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

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

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

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

query I rowsort
SELECT ALL - 28 + - + 22 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT + - col2 + 27 AS col2 FROM tab2 cor0
----
-13
-31
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL 45 + - + 82 * + + COUNT( * ) AS col2 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL 45 + - + 82 * + + COUNT ( * ) AS col2 FROM tab1
----
-201

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - col0 * + - ( - - col2 ) col0, + col2 - - - 22 FROM tab2
----
-102400
18
-24334
1
-252300
36

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

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

query I rowsort
SELECT DISTINCT ( - col1 ) + + 74 AS col0 FROM tab0
----
-7
53
73

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

query I rowsort
SELECT DISTINCT - col2 * - - 59 * + col2 FROM tab0 AS cor0
----
-130331
-578259
-5900

query I rowsort
SELECT + 68 * - 15 * - + col0 FROM tab0 cor0
----
15300
88740
98940

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

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

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT MIN( + 3 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6349
SELECT MIN ( + 3 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT + ( - COUNT( DISTINCT + col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6350
SELECT + ( - COUNT ( DISTINCT + col1 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL + 65 * + MIN( DISTINCT + ( col0 ) ) FROM tab2
----
2990

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + 65 * + MIN ( DISTINCT + ( col0 ) ) FROM tab2
----
2990

query I rowsort
SELECT DISTINCT - + 27 AS col1 FROM tab0 AS cor0
----
-27

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

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

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

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT - COUNT ( DISTINCT + 96 ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - col1 * + + 13 FROM tab1
----
-182
-611
-65

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

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

query I rowsort
SELECT DISTINCT - + col0 + 57 AS col0 FROM tab1 AS cor0
----
-28
-34
6

query I rowsort
SELECT DISTINCT col0 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
10575
75690
931491

query II rowsort
SELECT 15, + 50 AS col0 FROM tab1 cor0
----
15
50
15
50
15
50

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

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

query I rowsort
SELECT col0 * - - col2 + 57 FROM tab0 AS cor0
----
762
927
9660

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - COUNT( * ) * - + 15 AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - COUNT ( * ) * - + 15 AS col1 FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 73 + - + col0 + - col1 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - col0 + - + col2 AS col1 FROM tab2 AS cor0
----
-144
-191
-92

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

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

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

query I rowsort
SELECT + col0 * col2 * - 28 AS col0 FROM tab2
----
-121800
-29624
-71680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6368
SELECT ( col1 ) AS col1, CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6368
SELECT ( col1 ) AS col1, CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

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

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

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE ( - - col0 <> ( NULL ) ) OR NOT NULL <= - col2 + + + 66 * + col0 - + 62
----
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE ( - - col0 <> ( NULL ) ) OR NOT NULL <= - col2 + + + 66 * + col0 - + 62
----
0

query I rowsort
SELECT col0 * + 42 + - col0 AS col0 FROM tab0 AS cor0
----
3567
3977
615

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT - + CAST( + col2 AS SIGNED ) * + col0 * + 98 AS col2 FROM tab1 WHERE ( NOT NULL < + 61 )
----

skipif mysql # not compatible
query I rowsort label-6380
SELECT - + CAST ( + col2 AS INTEGER ) * + col0 * + 98 AS col2 FROM tab1 WHERE ( NOT NULL < + 61 )
----

query I rowsort
SELECT 9 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL + col0 - + - col1 AS col1 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 95 * - 71
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6385
SELECT * FROM tab0 AS cor0 WHERE NOT 46 * col0 * CAST( + ( col2 ) AS SIGNED ) BETWEEN col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6385
SELECT * FROM tab0 AS cor0 WHERE NOT 46 * col0 * CAST ( + ( col2 ) AS INTEGER ) BETWEEN col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 34 * + col2 + + 60 FROM tab0 AS cor0
----
-1538
-280
-3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6387
SELECT - 47 DIV - - 15 + - + COUNT( * ) + - 19 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
-22

skipif mysql # not compatible
query I rowsort label-6387
SELECT - 47 / - - 15 + - + COUNT ( * ) + - 19 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
-22

query I rowsort
SELECT ALL + ( + - 76 ) FROM tab2
----
-76
-76
-76

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

query I rowsort
SELECT ALL col0 * - + 51 FROM tab2
----
-2346
-3264
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6391
SELECT ALL col1, 59 + + CAST( NULL AS SIGNED ) + - 80 * + col0 / col2 * + col0 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6391
SELECT ALL col1, 59 + + CAST ( NULL AS INTEGER ) + - 80 * + col0 / col2 * + col0 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, 5 * + 70 AS col0 FROM tab0
----
10
350
47
350
99
350

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 96 * + col0 * + 40 <> NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + col2 * - col1 AS col0, col1 * + + col1 * + + col0 FROM tab0 AS cor0
----
-210
38367
-3807
98415
-99
97

query I rowsort
SELECT DISTINCT + 7 + ( - - col0 ) FROM tab2 cor0
----
53
71
82

query I rowsort
SELECT 88 FROM tab1 AS cor0 WHERE NULL < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT ALL COUNT( * ) + - - 48 col2, + 21 FROM tab2 AS cor0
----
51
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6400
SELECT ALL COUNT ( * ) + - - 48 col2, + 21 FROM tab2 AS cor0
----
51
21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT DISTINCT + 84 DIV + ( - col0 ) FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + 84 / + ( - col0 ) FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT DISTINCT + 98 + + 25 AS col2 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - COUNT( * ) + - MIN( ALL col1 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-6404
SELECT - COUNT ( * ) + - MIN ( ALL col1 ) FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - COUNT( * ) + - 79 AS col2 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-6405
SELECT - COUNT ( * ) + - 79 AS col2 FROM tab1
----
-82

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

query I rowsort
SELECT col0 * - + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT 96 AS col0, 10 AS col2 FROM tab2
----
96
10
96
10
96
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT - + col0 DIV + 55 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT - + col0 / + 55 FROM tab0 AS cor0
----
-1
-1
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT 86 - COUNT( * ) + + 12 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-6413
SELECT 86 - COUNT ( * ) + + 12 FROM tab2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6414
SELECT ALL + + CAST( + 37 AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + + CAST ( + 37 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
46

query I rowsort
SELECT DISTINCT - + ( + 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT MIN( ALL - col0 ) FROM tab2 WHERE NOT NULL = - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT MIN ( ALL - col0 ) FROM tab2 WHERE NOT NULL = - col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT ALL + ( + + 39 ) DIV + - col1 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + ( + + 39 ) / + - col1 FROM tab1 AS cor0
----
-2
-7
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6419
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6419
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) IN ( - CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT + - 75 * + col2, col0 FROM tab0 AS cor0
----
-3525
15
-7425
97
-750
87

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

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

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

skipif mysql # not compatible
query I rowsort label-6423
SELECT + col1 / + col1 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6424
SELECT + 14 AS col2, CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
14
3

skipif mysql # not compatible
query II rowsort label-6424
SELECT + 14 AS col2, CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
14
3

query I rowsort
SELECT 11 * - + col0 AS col0 FROM tab0
----
-1067
-165
-957

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

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

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

skipif mysql # not compatible
query I rowsort label-6427
SELECT COUNT ( * ) / 72 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

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

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

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

query I rowsort
SELECT DISTINCT + 75 + + + ( - + 82 ) FROM tab1 cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + 68 + col1 * + + 44 + - col2 IS NULL
----

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

query I rowsort
SELECT ALL 21 * - col1 + + 10 AS col1 FROM tab2 AS cor0
----
-1061
-1397
-1607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT DISTINCT + + 65 DIV + 84 * - 95 + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + + 65 / + 84 * - 95 + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 18 * - - 24 * + 66 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-28465
-28498
-28507

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + + 6 AS col0 FROM tab1
----
-282
-30
-84

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + + 6 AS col0 FROM tab1
----
-282
-30
-84

query I rowsort
SELECT ALL col0 - col1 * + 17 FROM tab1
----
-187
-708
0

query I rowsort
SELECT 58 + - 87 + + col0 FROM tab1
----
22
56
62

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

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

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

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

query I rowsort
SELECT ALL 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT + + COUNT( ALL - 0 ) * - 28 - - 31 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT + + COUNT ( ALL - 0 ) * - 28 - - 31 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 41 ) * - col0 AS col2 FROM tab0
----
-3567
-3977
-615

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

query I rowsort
SELECT 67 * - col1 + col0 + 52 - + col2 AS col0 FROM tab1 AS cor0
----
-257
-3074
-931

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

skipif mysql # not compatible
query I rowsort label-6448
SELECT - MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 cor0 WHERE NOT + 49 - + col1 * col0 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT col1 * + 22 AS col0 FROM tab1
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT - + 20 + + MAX( DISTINCT 43 ) AS col0 FROM tab2 WHERE NOT ( NULL >= - ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT - + 20 + + MAX ( DISTINCT 43 ) AS col0 FROM tab2 WHERE NOT ( NULL >= - ( - col1 ) )
----
NULL

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

query I rowsort
SELECT col0 + - 60 AS col0 FROM tab1
----
-9
25
31

query I rowsort
SELECT - col1 + + - col0 AS col0 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT MIN( + - col1 ) + COUNT( + - 19 ) AS col1 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-6456
SELECT MIN ( + - col1 ) + COUNT ( + - 19 ) AS col1 FROM tab0
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT DISTINCT MIN( + 16 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT MIN ( + 16 ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT ALL - + col1 + + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL OR NOT - 81 IS NULL
----
37
44
80

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6461
SELECT ALL * FROM tab2 WHERE NOT NULL > NULL AND + 88 NOT IN ( - ( col2 ) / CAST( + - col1 AS SIGNED ), col2, - 24 + - + col2 + - col2, + + col0 )
----

skipif mysql # not compatible
query III rowsort label-6461
SELECT ALL * FROM tab2 WHERE NOT NULL > NULL AND + 88 NOT IN ( - ( col2 ) / CAST ( + - col1 AS INTEGER ), col2, - 24 + - + col2 + - col2, + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT - + COUNT( * ) + - 42 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - + COUNT ( * ) + - 42 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT + col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

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

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

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

query I rowsort
SELECT ALL - col0 + - + ( 53 ) * - - col2 AS col0 FROM tab2 cor0
----
-1265
-2184
-3149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - 82 + + ( COUNT( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 82 + + ( COUNT ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT ALL - + 46 + - 10 + + 55 FROM tab1 AS cor0
----
-1
-1
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT - + col2 * col0 + col1 DIV - 58 AS col2 FROM tab0 AS cor0
----
-706
-870
-9603

skipif mysql # not compatible
query I rowsort label-6471
SELECT - + col2 * col0 + col1 / - 58 AS col2 FROM tab0 AS cor0
----
-706
-870
-9603

query I rowsort
SELECT ALL 52 * - + 63 + col0 - + - col0 AS col2 FROM tab2 cor0
----
-3126
-3148
-3184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6473
SELECT ALL - - col0 FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL - - col0 FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) IS NULL
----
51
85
91

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

query I rowsort
SELECT ALL - 60 * - - ( + - col0 ) - - - 4 * - col2 AS col2 FROM tab0
----
1088
5260
6216

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6478
SELECT 63, - MIN( DISTINCT + + col2 ) + + CAST( - - COUNT( * ) AS SIGNED ) + + + COUNT( * ) col1 FROM tab1
----
63
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6478
SELECT 63, - MIN ( DISTINCT + + col2 ) + + CAST ( - - COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) col1 FROM tab1
----
63
-53

query II rowsort
SELECT + 8 AS col1, col0 + 19 AS col1 FROM tab1
----
8
104
8
110
8
70

query III rowsort
SELECT DISTINCT - col1 AS col0, col2 AS col1, + + col2 FROM tab1
----
9 values hashing to 50f03e10c0c794da4956e6cc21e7e541

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT - 88 + - COUNT( * ) DIV + COUNT( * ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - 88 + - COUNT ( * ) / + COUNT ( * ) FROM tab0
----
-89

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

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

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

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE - 93 + - 20 NOT BETWEEN NULL AND - 50
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 34 * col0 <= + - 77 * ( + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6490
SELECT ALL ( + + 88 ), COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
88
9

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL ( + + 88 ), COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
88
9

query II rowsort
SELECT ( + ( + col2 ) ) AS col2, col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + 64 * col0 + - - col0 FROM tab0 AS cor0
----
5655
6305
975

query I rowsort
SELECT 26 * - 20 * + 11 + + 30 FROM tab1 AS cor0
----
-5690
-5690
-5690

query I rowsort
SELECT ALL 92 * 96 + - + col2 + + 92 + + ( + 78 ) * - col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6495
SELECT DISTINCT 57 * - + 43 * COUNT( * ) AS col2, 32 * 37 * MAX( + 3 ) AS col0 FROM tab1
----
-7353
3552

skipif mysql # not compatible
query II rowsort label-6495
SELECT DISTINCT 57 * - + 43 * COUNT ( * ) AS col2, 32 * 37 * MAX ( + 3 ) AS col0 FROM tab1
----
-7353
3552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6496
SELECT 54 / - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT 54 / - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + + 35 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6500
SELECT 80 * - SUM( ALL col2 ) * 11 AS col1, + 10 FROM tab2
----
-106480
10

skipif mysql # not compatible
query II rowsort label-6500
SELECT 80 * - SUM ( ALL col2 ) * 11 AS col1, + 10 FROM tab2
----
-106480
10

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

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

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + SUM ( - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - 99 * + col2 col1 FROM tab0 WHERE NOT 63 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 + 71 AS col2 FROM tab2 cor0
----
122
138
148

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + SUM ( DISTINCT + col1 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
192

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

query I rowsort
SELECT col2 + + col2 + - col1 AS col0 FROM tab2
----
-5
3
49

query I rowsort
SELECT ALL + 83 * - 3 * 72 FROM tab0
----
-17928
-17928
-17928

query I rowsort
SELECT col2 + + 21 FROM tab0 WHERE NULL IS NULL
----
120
31
68

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6516
SELECT + 54 DIV - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6516
SELECT + 54 / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - + 78 + + col0 * 19 AS col2 FROM tab1 AS cor0
----
1537
1651
891

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT DISTINCT + SUM( - col0 ) - + 35 AS col0 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + SUM ( - col0 ) - + 35 AS col0 FROM tab0 AS cor0
----
-234

query I rowsort
SELECT + 69 - col0 + + col0 FROM tab2 cor0
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT col1 - - 68 + + 36 DIV + col1 AS col1 FROM tab1 AS cor0
----
115
80
84

skipif mysql # not compatible
query I rowsort label-6520
SELECT col1 - - 68 + + 36 / + col1 AS col1 FROM tab1 AS cor0
----
115
80
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT MAX( + - col1 ) - COUNT( * ) + 52 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6521
SELECT MAX ( + - col1 ) - COUNT ( * ) + 52 FROM tab2
----
-2

query I rowsort
SELECT - col1 + + 41 FROM tab0
----
-40
20
40

query I rowsort
SELECT ALL col1 - + 52 + - col0 + col1 AS col2 FROM tab2
----
38
4
7

query I rowsort
SELECT ALL 36 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT - MAX( + col2 ) * - - 29 AS col1 FROM tab0
----
-2871

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT - MAX ( + col2 ) * - - 29 AS col1 FROM tab0
----
-2871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) * - col1 + 36 col2 FROM tab1 AS cor0
----
1380
3232
331

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6529
SELECT - + COUNT( * ) DIV + - 43 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT - + COUNT ( * ) / + - 43 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL ( + col2 ) * 15 + + col2 AS col1 FROM tab0 AS cor0
----
1584
160
752

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6531
SELECT CAST( + - 75 AS SIGNED ) AS col1, ( + col0 ) AS col0, - col2 AS col1 FROM tab1
----
9 values hashing to 17d7d73256802e32ad1415f5a096a217

skipif mysql # not compatible
query III rowsort label-6531
SELECT CAST ( + - 75 AS INTEGER ) AS col1, ( + col0 ) AS col0, - col2 AS col1 FROM tab1
----
9 values hashing to 17d7d73256802e32ad1415f5a096a217

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT + SUM( - - 14 ) FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-6533
SELECT + SUM ( - - 14 ) FROM tab2 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT - - MAX( - col2 ) * 75 AS col1 FROM tab1 AS cor0
----
-4425

skipif mysql # not compatible
query I rowsort label-6534
SELECT - - MAX ( - col2 ) * 75 AS col1 FROM tab1 AS cor0
----
-4425

query I rowsort
SELECT + + col0 * - 17 FROM tab2 cor0
----
-1088
-1275
-782

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6541
SELECT - - 9 AS col1, COUNT( * ) AS col1 FROM tab2 WHERE - - col0 * col1 IS NULL
----
9
0

skipif mysql # not compatible
query II rowsort label-6541
SELECT - - 9 AS col1, COUNT ( * ) AS col1 FROM tab2 WHERE - - col0 * col1 IS NULL
----
9
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6542
SELECT ALL col0 DIV - col2, - col0 AS col1 FROM tab0
----
-8
-87
0
-15
0
-97

skipif mysql # not compatible
query II rowsort label-6542
SELECT ALL col0 / - col2, - col0 AS col1 FROM tab0
----
-8
-87
0
-15
0
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT - ( + 33 ) DIV col1 + - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6543
SELECT - ( + 33 ) / col1 + - col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 + + + 2 + col1 FROM tab2 AS cor0
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6546
SELECT DISTINCT col1 DIV 84 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT col1 / 84 + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - - col2 + col1 * 88 * 21 + + - col2 AS col2 FROM tab2 AS cor0
----
123816
142296
94248

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6548
SELECT * FROM tab2 WHERE - 62 / CAST( NULL AS SIGNED ) * + 42 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6548
SELECT * FROM tab2 WHERE - 62 / CAST ( NULL AS INTEGER ) * + 42 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6549
SELECT ALL 13 DIV + - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL 13 / + - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * + - col1 - col1 - + 18 + col0 * + - col0 AS col0 FROM tab0
----
-4131
-7818
-9527

query I rowsort
SELECT + col2 * - - col1 - + col1 * - - col2 + + col0 * + col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT col0 * + col0 * + col1 - + col0 AS col2 FROM tab1
----
36040
36363
389116

query I rowsort
SELECT ALL - 48 * col2 * + + col2 FROM tab0
----
-106032
-470448
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6554
SELECT ALL + col1 + col1 FROM tab1 WHERE NOT + + CAST( + 87 AS SIGNED ) IS NULL
----
10
28
94

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL + col1 + col1 FROM tab1 WHERE NOT + + CAST ( + 87 AS INTEGER ) IS NULL
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6555
SELECT + CAST( + col1 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-6555
SELECT + CAST ( + col1 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT - COUNT( * ) * - + SUM( ALL + + col2 ) + + MAX( ALL - - 80 ) * MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
-332

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT - COUNT ( * ) * - + SUM ( ALL + + col2 ) + + MAX ( ALL - - 80 ) * MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-332

query I rowsort
SELECT DISTINCT - 40 - - col0 AS col2 FROM tab2 AS cor0
----
24
35
6

query I rowsort
SELECT ALL + col0 * + col1 + - col0 - + - ( - col2 ) FROM tab1 AS cor0
----
281
4118
567

query I rowsort
SELECT + ( + 67 ) FROM tab0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 * + + ( 61 ) * + col2 * - 56 + + col0 col1 FROM tab0
----
15
87
97

query II rowsort
SELECT col2 * 14 AS col2, - col0 * + + col0 * + + col2 FROM tab2
----
322
-48668
560
-163840
812
-326250

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

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

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

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

query II rowsort
SELECT DISTINCT 87 * + - col0, col1 AS col0 FROM tab0 AS cor0
----
-1305
81
-7569
21
-8439
1

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

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

query I rowsort
SELECT 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT + - 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT ALL - COUNT( * ) AS col1, 57 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9
513

skipif mysql # not compatible
query II rowsort label-6569
SELECT ALL - COUNT ( * ) AS col1, 57 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9
513

query I rowsort
SELECT ALL - 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

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

skipif mysql # not compatible
query I rowsort label-6571
SELECT ( + COUNT ( * ) ) / 17 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL - MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23

query I rowsort
SELECT ALL + - col0 * + - 17 * + 81 FROM tab1 AS cor0
----
117045
125307
70227

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

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

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

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

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

query I rowsort
SELECT DISTINCT 36 + + - col1 FROM tab0
----
-45
15
35

query I rowsort
SELECT + 85 * 82 FROM tab0
----
6970
6970
6970

query I rowsort
SELECT - col1 * 50 FROM tab1
----
-2350
-250
-700

query III rowsort
SELECT * FROM tab1 WHERE - - col1 = NULL
----

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

query I rowsort
SELECT ALL ( - 0 ) - col0 + + 93 AS col0 FROM tab1
----
2
42
8

query I rowsort
SELECT DISTINCT 70 - + 3 AS col1 FROM tab0
----
67

query I rowsort
SELECT ALL + 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( + col1 * + col0 * - 46 + 34 + col2 IS NULL )
----
0

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

query I rowsort
SELECT ALL - col0 * + - 11 FROM tab2 AS cor0
----
506
704
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT CAST( NULL AS SIGNED ) - 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT CAST ( NULL AS INTEGER ) - 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 60 * + col2 FROM tab0 cor0
----
132540
588060
6000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 - + + 95, col1 + - 32 col1 FROM tab0 AS cor0
----
-58
-11
-58
-31
-58
49

query I rowsort
SELECT ALL + 62 * - + col0 * + 51 FROM tab2 AS cor0
----
-145452
-202368
-237150

query II rowsort
SELECT DISTINCT + - col2 * col1, col2 AS col2 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT DISTINCT + 72 + 97 - ( col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
268
379
3976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25 + - col0 col0, col2 AS col0 FROM tab1 AS cor0
----
-26
96
-60
59
-66
68

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

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

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

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

query II rowsort
SELECT DISTINCT + 9, col0 FROM tab1
----
9
51
9
85
9
91

query I rowsort
SELECT DISTINCT 95 * 8 AS col0 FROM tab0
----
760

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 * - + col0 * + col1 * + col1 col0 FROM tab0
----
-2493855
-6305
-6396975

query II rowsort
SELECT ALL + 99, col2 AS col0 FROM tab1
----
99
59
99
68
99
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT ALL col2, - ( - col1 ) FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 84 FROM tab0 AS cor0
----
10
84
47
84
99
84

query I rowsort
SELECT + 46 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
107916
226688
231150

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL - MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + col1 + col1 FROM tab2 cor0 WHERE NOT ( - col1 ) IS NULL
----
102
134
154

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 + - 80 col2 FROM tab1 AS cor0
----
-148

query II rowsort
SELECT ALL + col0 + + col0, 57 AS col1 FROM tab1 AS cor0
----
102
57
170
57
182
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + SUM( + 43 ) col2 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6613
SELECT + SUM ( + 43 ) col2 FROM tab1 AS cor0
----
129

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + + ( - col2 ) + - + ( 80 ) + - + col1 FROM tab0 AS cor0
----
-132
-181
-289

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 49 + ( - - 92 ) / - 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT CAST( col2 AS SIGNED ) + - 96 FROM tab0
----
-49
-86
3

skipif mysql # not compatible
query I rowsort label-6620
SELECT CAST ( col2 AS INTEGER ) + - 96 FROM tab0
----
-49
-86
3

onlyif mysql # DIV for integer division: 
query III rowsort label-6621
SELECT ALL col2 AS col1, 20 * + col1 AS col0, 91 DIV - col0 FROM tab2
----
9 values hashing to 3f62dfa5e1edc21f363ae85bf878560a

skipif mysql # not compatible
query III rowsort label-6621
SELECT ALL col2 AS col1, 20 * + col1 AS col0, 91 / - col0 FROM tab2
----
9 values hashing to 3f62dfa5e1edc21f363ae85bf878560a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * 16 col0 FROM tab2
----
1088
1088
1088

query I rowsort
SELECT DISTINCT 46 * col0 * col0 FROM tab1
----
119646
332350
380926

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT DISTINCT - col1 DIV - col2 + - + col1 AS col2 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT - col1 / - col2 + - + col1 AS col2 FROM tab2
----
-49
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6625
SELECT DISTINCT + + 7 * + col2 + + + CAST( + 98 AS SIGNED ) * + col2 AS col0, 68 AS col1 FROM tab2 AS cor0
----
2415
68
4200
68
6090
68

skipif mysql # not compatible
query II rowsort label-6625
SELECT DISTINCT + + 7 * + col2 + + + CAST ( + 98 AS INTEGER ) * + col2 AS col0, 68 AS col1 FROM tab2 AS cor0
----
2415
68
4200
68
6090
68

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

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

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

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT 28 - - COUNT ( * ) FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL - COUNT( ALL - - col0 ) * + 63 AS col2 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - COUNT ( ALL - - col0 ) * + 63 AS col2 FROM tab1
----
-189

query I rowsort
SELECT - 54 * ( - + col1 ) + - col2 FROM tab0
----
-45
1124
4327

query I rowsort
SELECT col1 * + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2601
4489
5929

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + 94
----

query I rowsort
SELECT + ( + 84 ) AS col2 FROM tab1 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT + MIN( + CAST( 27 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6635
SELECT + MIN ( + CAST ( 27 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
27

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

skipif mysql # not compatible
query II rowsort label-6636
SELECT ALL - + COUNT ( * ) AS col0, 34 FROM tab1 cor0
----
-3
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT DISTINCT col1 DIV + col2 * col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT col1 / + col2 * col2 AS col2 FROM tab1
----
0

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

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

query I rowsort
SELECT ALL col1 * + + 25 FROM tab1
----
1175
125
350

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6641
SELECT + col2 * + - 69 * - col0 * + - CAST( NULL AS SIGNED ) * + col0, 86 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6641
SELECT + col2 * + - 69 * - col0 * + - CAST ( NULL AS INTEGER ) * + col0, 86 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 + - - col1 AS col0 FROM tab1 AS cor0
----
10
28
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - - MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6644
SELECT - - MAX ( col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT ALL col2, col2 - - - col2 AS col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT ALL + - col0 + 47 FROM tab0 AS cor0
----
-40
-50
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT col0 * col1 * + 95 + + ( 65 ) DIV - + col0 AS col1 FROM tab1 AS cor0
----
40375
406315
67829

skipif mysql # not compatible
query I rowsort label-6647
SELECT col0 * col1 * + 95 + + ( 65 ) / - + col0 AS col1 FROM tab1 AS cor0
----
40375
406315
67829

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6648
SELECT col0 * + - CAST( NULL AS DECIMAL ) / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT col0 * + - CAST ( NULL AS REAL ) / + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - + ( - - col2 ) FROM tab1
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( - ( ( col2 ) ) ) col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - + COUNT( * ) + + SUM( col2 ) AS col0 FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-6651
SELECT - + COUNT ( * ) + + SUM ( col2 ) AS col0 FROM tab0 cor0
----
153

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 / 76 * - ( - + 27 ) * 50 BETWEEN + 98 AND - col0
----

query I rowsort
SELECT DISTINCT + col0 * col1 + 23 AS col0 FROM tab2 AS cor0
----
2369
4951
5048

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6655
SELECT COUNT( * ) col1, ( + - 87 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6655
SELECT COUNT ( * ) col1, ( + - 87 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-87

query I rowsort
SELECT DISTINCT + 66 * col2 FROM tab0
----
3102
6534
660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6657
SELECT + col2 AS col2, CAST( NULL AS SIGNED ) * + - 95 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6657
SELECT + col2 AS col2, CAST ( NULL AS INTEGER ) * + - 95 AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL - ( + MIN( DISTINCT + col1 ) ) col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6659
SELECT ALL - ( + MIN ( DISTINCT + col1 ) ) col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT ALL 47 * - - ( + MAX( DISTINCT - col0 ) ) FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL 47 * - - ( + MAX ( DISTINCT - col0 ) ) FROM tab1
----
-2397

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6663
SELECT + 85 / - + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT + 85 / - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col2 - + col0 IN ( - col0, col1 )
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT ALL 50 DIV col0 * - col1 AS col1 FROM tab2
----
-51
0
0

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL 50 / col0 * - col1 AS col1 FROM tab2
----
-51
0
0

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

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

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

query I rowsort
SELECT DISTINCT col1 * + 54 FROM tab0 AS cor0
----
1134
4374
54

query I rowsort
SELECT ( 60 ) AS col1 FROM tab2
----
60
60
60

query III rowsort
SELECT * FROM tab2 WHERE NULL <> col2 / col1 + - + col2
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6672
SELECT DISTINCT col1 DIV col2, col2 AS col0 FROM tab2
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-6672
SELECT DISTINCT col1 / col2, col2 AS col0 FROM tab2
----
1
40
1
58
2
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + COUNT( + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6673
SELECT + COUNT ( + - col2 ) FROM tab0
----
3

query I rowsort
SELECT - col0 + + 12 + + col0 * - col1 AS col1 FROM tab2 cor0
----
-2380
-4980
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT MIN( ALL + col0 ) + - 28 + 58 FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-6675
SELECT MIN ( ALL + col0 ) + - 28 + 58 FROM tab0 cor0
----
45

query I rowsort
SELECT DISTINCT + + 81 + - col2 AS col2 FROM tab2 cor0
----
23
41
58

query I rowsort
SELECT + 56 + + + 32 * col2 * + 40 * - ( + col2 ) FROM tab0 AS cor0
----
-12545224
-127944
-2827464

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT COUNT( DISTINCT + col0 ) + 29 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6678
SELECT COUNT ( DISTINCT + col0 ) + 29 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) < + 96
----
0

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) < + 96
----
0

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

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

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

query I rowsort
SELECT ALL - ( + 87 ) AS col1 FROM tab2
----
-87
-87
-87

query II rowsort
SELECT DISTINCT - 64 AS col1, col2 AS col1 FROM tab1
----
-64
59
-64
68
-64
96

query I rowsort
SELECT ALL ( - col1 ) - + - 81 FROM tab2
----
14
30
4

query I rowsort
SELECT DISTINCT 41 * + + col2 AS col0 FROM tab1
----
2419
2788
3936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6686
SELECT ALL 29 DIV - + 84 + + MAX( DISTINCT - + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL 29 / - + 84 + + MAX ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6687
SELECT ALL - 5 AS col2, + SUM( + - col0 ) col1 FROM tab0
----
-5
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6687
SELECT ALL - 5 AS col2, + SUM ( + - col0 ) col1 FROM tab0
----
-5
-199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6688
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + col0 - - col0 * col1 * col2 + + CAST( NULL AS SIGNED ) + col1 * + 5 > 27
----

skipif mysql # not compatible
query III rowsort label-6688
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + col0 - - col0 * col1 * col2 + + CAST ( NULL AS INTEGER ) + col1 * + 5 > 27
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6690
SELECT - COUNT( * ) AS col2, + CAST( - 21 AS SIGNED ) FROM tab1
----
-3
-21

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

query II rowsort
SELECT DISTINCT 36, col0 AS col2 FROM tab2
----
36
46
36
64
36
75

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

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

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

query I rowsort
SELECT ALL + + 52 * + 31 AS col0 FROM tab1 cor0
----
1612
1612
1612

query I rowsort
SELECT ALL col1 * 70 + - col2 AS col2 FROM tab0
----
-29
1460
5623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col1 FROM tab2
----
-75
-75
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN + col0 + + 23 AND 9
----

query I rowsort
SELECT ALL col0 * ( 32 ) FROM tab0 WHERE NOT col2 / - ( ( col1 ) ) NOT BETWEEN + 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL - MIN( ALL col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - MIN ( ALL col1 ) FROM tab1
----
-5

query I rowsort
SELECT - 53 + - col2 FROM tab1
----
-112
-121
-149

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 > col2 * 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 49 + + col0 FROM tab0 WHERE NOT 10 / 8 <> + 71
----

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

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT MAX( 20 ) - ( COUNT( * ) ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6704
SELECT MAX ( 20 ) - ( COUNT ( * ) ) FROM tab2
----
17

query I rowsort
SELECT DISTINCT - 46 FROM tab0 WHERE col2 * col1 IN ( 55 * + ( - ( col0 ) ) )
----

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

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

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

query I rowsort
SELECT col2 + col0 * + col1 AS col0 FROM tab0
----
1262
1837
196

query I rowsort
SELECT + 83 + - col0 FROM tab1 WHERE 24 >= ( col1 )
----
-2
32

query I rowsort
SELECT 64 FROM tab1 WHERE NOT ( NULL ) >= ( - 40 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= col2 * 49
----

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

skipif mysql # not compatible
query I rowsort label-6712
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
10

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

query I rowsort
SELECT DISTINCT - 42 * + col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( col1 - - col1 * 35 ) <> ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( col1 - - col1 * 35 ) <> ( 82 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6716
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6716
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND ( NULL )
----

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

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

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

query I rowsort
SELECT + col1 + - 12 FROM tab2 AS cor0
----
39
55
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT COUNT( * ) + 16 * ( COUNT( * ) ) FROM tab2 WHERE col2 NOT IN ( - 52 * col1 + - ( + 48 ) )
----
51

skipif mysql # not compatible
query I rowsort label-6721
SELECT COUNT ( * ) + 16 * ( COUNT ( * ) ) FROM tab2 WHERE col2 NOT IN ( - 52 * col1 + - ( + 48 ) )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND ( NULL )
----

query I rowsort
SELECT - 33 AS col2 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL + ( COUNT( * ) ) + 21 AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL + ( COUNT ( * ) ) + 21 AS col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT + COUNT( * ) + + 46 * 31 AS col2 FROM tab2
----
1429

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT + COUNT ( * ) + + 46 * 31 AS col2 FROM tab2
----
1429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6726
SELECT DISTINCT COUNT( * ) * - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - 70 * - 91 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT COUNT ( * ) * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 70 * - 91 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 69 AS col2 FROM tab2 AS cor0
----
120
136
146

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 74 BETWEEN col0 AND - col2 + - ( 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT + - MAX( ALL + 46 ) + COUNT( * ) * + SUM( ALL col1 + 42 ) FROM tab1 AS cor0
----
530

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT + - MAX ( ALL + 46 ) + COUNT ( * ) * + SUM ( ALL col1 + 42 ) FROM tab1 AS cor0
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT COUNT( * ) FROM tab1 cor0 WHERE - col2 > 30
----
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT COUNT ( * ) FROM tab1 cor0 WHERE - col2 > 30
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 85 BETWEEN - col0 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT DISTINCT 59 * col0 + col0 DIV - 95 FROM tab1 AS cor0
----
3009
5015
5369

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT 59 * col0 + col0 / - 95 FROM tab1 AS cor0
----
3009
5015
5369

query I rowsort
SELECT + - 53 * + col0 FROM tab0 AS cor0
----
-4611
-5141
-795

query I rowsort
SELECT - col1 - + 60 FROM tab0 AS cor0
----
-141
-61
-81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 57 col1 FROM tab1 AS cor0
----
-11
-2
-39

query I rowsort
SELECT DISTINCT col0 - - 95 * + col0 AS col0 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL MIN( 45 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL MIN ( 45 ) FROM tab1 AS cor0
----
45

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

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

query I rowsort
SELECT DISTINCT - ( + - ( col0 ) ) + + col1 FROM tab1
----
138
65
90

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6742
SELECT ALL CAST( - 93 AS SIGNED ) DIV col2 - - 94 AS col1 FROM tab1
----
93
93
94

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL CAST ( - 93 AS INTEGER ) / col2 - - 94 AS col1 FROM tab1
----
93
93
94

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

query I rowsort
SELECT + 97 + - - col1 FROM tab1
----
102
111
144

query I rowsort
SELECT 40 * - ( 99 ) + - col2 FROM tab1
----
-4019
-4028
-4056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * + 50 + + col2 col0 FROM tab1 cor0
----
-104
-132
-141

query I rowsort
SELECT - 95 + - - 64 AS col1 FROM tab2 AS cor0
----
-31
-31
-31

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT - 51 / - - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT - 51 / - - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 * 75 >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT DISTINCT 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab0, tab0 AS cor0
----
-51

query I rowsort
SELECT ALL 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

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

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

query I rowsort
SELECT col0 * + - 19 + col1 + col2 AS col2 FROM tab1 AS cor0
----
-1551
-1614
-859

onlyif mysql # aggregate syntax: 
query II rowsort label-6760
SELECT + COUNT( * ), - 95 AS col0 FROM tab0 AS cor0
----
3
-95

skipif mysql # not compatible
query II rowsort label-6760
SELECT + COUNT ( * ), - 95 AS col0 FROM tab0 AS cor0
----
3
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT - COUNT( * ) * COUNT( * ) - - 0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + 8
----
0

skipif mysql # not compatible
query I rowsort label-6761
SELECT - COUNT ( * ) * COUNT ( * ) - - 0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + 8
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT 2 * - + COUNT( * ) col0 FROM tab2 AS cor0
----
-6

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

query I rowsort
SELECT + ( col0 ) * - 86 + + col1 - + col0 * + col0 FROM tab1
----
-14530
-16060
-6973

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

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

query I rowsort
SELECT DISTINCT - col2 * - - col0 FROM tab0 WHERE NULL IS NULL
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( 66 ) col1 FROM tab2
----
-9
2
20

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

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

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

query II rowsort
SELECT ALL col2 + + 51, ( - 60 ) AS col1 FROM tab1 AS cor0
----
110
-60
119
-60
147
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT DISTINCT - 53 FROM tab1 AS cor0 WHERE ( NULL ) <> CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - 53 FROM tab1 AS cor0 WHERE ( NULL ) <> CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( 88 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6777
SELECT DISTINCT + 49 + + COUNT( * ) AS col2, + ( + + 12 ) AS col2 FROM tab1 AS cor0
----
52
12

skipif mysql # not compatible
query II rowsort label-6777
SELECT DISTINCT + 49 + + COUNT ( * ) AS col2, + ( + + 12 ) AS col2 FROM tab1 AS cor0
----
52
12

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

query II rowsort
SELECT ALL + col2 AS col2, + 17 * - 11 + - + col1 AS col0 FROM tab1
----
59
-192
68
-234
96
-201

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6780
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6780
SELECT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 83 * - + col0 + + col2 + - 82 * - + 53 FROM tab2
----
10629
8187
9698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 50 * + col1 * - - 96 col1 FROM tab0 AS cor0
----
-1008000
-18273600
-475200

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

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

query I rowsort
SELECT DISTINCT col0 + + 51 * 67 FROM tab2 AS cor0
----
3463
3481
3492

query I rowsort
SELECT - 59 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 95 * - + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT + + SUM( ALL ( col0 ) ) * + ( - 92 ) FROM tab2 cor0
----
-17020

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + + SUM ( ALL ( col0 ) ) * + ( - 92 ) FROM tab2 cor0
----
-17020

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL + 15 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + 15 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE 77 / + + col1 * - col0 * + col1 * + 84 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL 25 + + COUNT( * ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL 25 + + COUNT ( * ) FROM tab1 AS cor0
----
28

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 94 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - col1 * 59 + - + 94 * + 30 + col1 AS col2 FROM tab0
----
-2878
-4038
-7518

query I rowsort
SELECT DISTINCT ( - 48 ) AS col0 FROM tab2, tab1 AS cor0
----
-48

query I rowsort
SELECT ALL + col0 * - 75 * + col2 AS col1 FROM tab0
----
-52875
-65250
-720225

query I rowsort
SELECT DISTINCT + col2 - 7 AS col0 FROM tab1
----
52
61
89

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

query II rowsort
SELECT ALL ( ( 37 ) ) * - col0 AS col1, col1 FROM tab0
----
-3219
21
-3589
1
-555
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * - - 30 AS col2 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * - - 30 AS col2 FROM tab0
----
-270

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> col0
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6806
SELECT CAST( NULL AS DECIMAL ) * + - col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6806
SELECT CAST ( NULL AS REAL ) * + - col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL - MIN( + col2 ) * + 68 - 89 FROM tab0
----
-769

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - MIN ( + col2 ) * + 68 - 89 FROM tab0
----
-769

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT 82 >= - + col2 + col2 * 57
----
-15
-87
-97

query I rowsort
SELECT + col2 * - col2 + + col2 FROM tab2 cor0
----
-1560
-3306
-506

query I rowsort
SELECT + col1 * + + 10 FROM tab2 AS cor0
----
510
670
770

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT + col0 DIV - + col1 - - ( - col2 ) FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-6812
SELECT + col0 / - + col1 - - ( - col2 ) FROM tab2 AS cor0
----
-23
-40
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT MIN( DISTINCT 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6813
SELECT MIN ( DISTINCT 97 ) FROM tab1
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 <= NULL
----

query I rowsort
SELECT ( + 28 ) FROM tab2
----
28
28
28

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

query I rowsort
SELECT + col1 + + 17 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
18
38
98

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

query I rowsort
SELECT ALL + 1 * ( - col1 ) + + 14 * - ( + + col1 ) + - 66 * - - col1 AS col0 FROM tab2 cor0
----
-4131
-5427
-6237

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

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

query I rowsort
SELECT 71 + col1 + + col1 FROM tab1 AS cor0
----
165
81
99

query I rowsort
SELECT ALL + 37 * - - col0 AS col0 FROM tab2 AS cor0
----
1702
2368
2775

query I rowsort
SELECT + col0 * + - ( - col0 ) FROM tab1 AS cor0
----
2601
7225
8281

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

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

query I rowsort
SELECT DISTINCT 84 + ( + 1 ) FROM tab0 cor0
----
85

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

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

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

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

query I rowsort
SELECT DISTINCT - - 48 FROM tab2 WHERE NULL IS NULL
----
48

query I rowsort
SELECT ALL - col1 * - col2 * - - 53 * col1 AS col2 FROM tab2
----
12569480
13799186
3170619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6832
SELECT ALL COUNT( * ) DIV - - 81 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL COUNT ( * ) / - - 81 FROM tab1
----
0

query I rowsort
SELECT 7 * - ( - col0 ) FROM tab0
----
105
609
679

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

query I rowsort
SELECT - + col2 * + 30 FROM tab2 AS cor0
----
-1200
-1740
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT ALL col0 DIV col1 + - + col1 FROM tab1 AS cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL col0 / col1 + - + col1 FROM tab1 AS cor0
----
-11
-46
12

query I rowsort
SELECT ALL - 14 * + col0 AS col2 FROM tab2 AS cor0
----
-1050
-644
-896

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, + col1 col1 FROM tab2 AS cor0 WHERE NOT + ( col0 ) * + 36 < ( + + 37 )
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT 26 * COUNT( * ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT 26 * COUNT ( * ) FROM tab2 AS cor0
----
78

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

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

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

query I rowsort
SELECT ALL + 53 AS col1 FROM tab1 AS cor0
----
53
53
53

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6849
SELECT + 20 * 17 + + + 26 * + MIN( DISTINCT - col0 ) col1, - 97 DIV - 70 FROM tab2 WHERE NULL <= + - col0
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6849
SELECT + 20 * 17 + + + 26 * + MIN ( DISTINCT - col0 ) col1, - 97 / - 70 FROM tab2 WHERE NULL <= + - col0
----
NULL
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT + COUNT( * ) * + COUNT( * ), MIN( - col1 ) AS col1 FROM tab0
----
9
-81

skipif mysql # not compatible
query II rowsort label-6851
SELECT + COUNT ( * ) * + COUNT ( * ), MIN ( - col1 ) AS col1 FROM tab0
----
9
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6852
SELECT col2 DIV col0 AS col0, col0 FROM tab0
----
0
87
1
97
3
15

skipif mysql # not compatible
query II rowsort label-6852
SELECT col2 / col0 AS col0, col0 FROM tab0
----
0
87
1
97
3
15

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( + + col1 ) AND NULL
----

query II rowsort
SELECT - col2 * + - col2, 23 AS col1 FROM tab0
----
100
23
2209
23
9801
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL + MAX( DISTINCT + - 54 ) * + 2 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + MAX ( DISTINCT + - 54 ) * + 2 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT + col2 + + + 64 FROM tab0
----
111
163
74

query I rowsort
SELECT + + col1 + + 95 AS col2 FROM tab2 AS cor0
----
146
162
172

query I rowsort
SELECT ALL - col0 / 45 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT ALL + CAST( + - 47 AS SIGNED ) FROM tab0 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + CAST ( + - 47 AS INTEGER ) FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-6862
SELECT ALL - 49 col2, 41 DIV + col0 * - 6 FROM tab2 cor0
----
-49
0
-49
0
-49
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6862
SELECT ALL - 49 col2, 41 / + col0 * - 6 FROM tab2 cor0
----
-49
0
-49
0
-49
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 83 col1, - col1 AS col1 FROM tab2 AS cor0
----
-83
-51
-83
-67
-83
-77

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6866
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - 53 AS SIGNED ) + + CAST( NULL AS DECIMAL ) * col1 - - + col1 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6866
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - 53 AS INTEGER ) + + CAST ( NULL AS REAL ) * col1 - - + col1 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT 90 * - CAST( + SUM( DISTINCT + - col0 ) AS SIGNED ) col0 FROM tab0
----
17910

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6867
SELECT 90 * - CAST ( + SUM ( DISTINCT + - col0 ) AS INTEGER ) col0 FROM tab0
----
17910

query I rowsort
SELECT ALL - col0 * - - col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT - col2 * 99 FROM tab1
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL MAX( col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL MAX ( col1 ) FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT ALL - col2 DIV - + col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL - col2 / - + col2 FROM tab2
----
1
1
1

query I rowsort
SELECT 28 * col2 AS col0 FROM tab1
----
1652
1904
2688

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

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

query I rowsort
SELECT ALL 53 * - - col0 AS col2 FROM tab1
----
2703
4505
4823

query II rowsort
SELECT - 1 AS col2, 83 FROM tab0 WHERE NOT col2 - - - 68 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT DISTINCT - + col2 + - 16 DIV - 42 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - + col2 + - 16 / - 42 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT - + MIN( 77 ) * + ( - ( COUNT( * ) ) ) + + + COUNT( DISTINCT + + 15 ) + - + 5 AS col0, 60 + - 19 AS col2 FROM tab2 AS cor0
----
227
41

skipif mysql # not compatible
query II rowsort label-6880
SELECT - + MIN ( 77 ) * + ( - ( COUNT ( * ) ) ) + + + COUNT ( DISTINCT + + 15 ) + - + 5 AS col0, 60 + - 19 AS col2 FROM tab2 AS cor0
----
227
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 36 IS NULL ) OR NOT + + 1 * + 82 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT col2 DIV - 72 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT col2 / - 72 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, - 7 FROM tab1
----
59
-7
68
-7
96
-7

query I rowsort
SELECT - - 42 + - - 95 AS col2 FROM tab1 AS cor0
----
137
137
137

query I rowsort
SELECT + col1 + ( + - col2 ) * - 10 AS col1 FROM tab2 AS cor0
----
281
477
647

query I rowsort
SELECT DISTINCT + 74 + - + col1 FROM tab0 AS cor0
----
-7
53
73

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

query I rowsort
SELECT - ( 21 ) * - - ( + + ( + - 42 ) ) FROM tab0
----
882
882
882

query I rowsort
SELECT ALL + 86 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT + CAST( - - MIN( ALL + + col2 ) AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6896
SELECT + CAST ( - - MIN ( ALL + + col2 ) AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
-30

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

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

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

query II rowsort
SELECT ALL col2 AS col2, - col2 * - - col1 FROM tab2
----
23
-1173
40
-3080
58
-3886

query III rowsort
SELECT * FROM tab1 WHERE NOT - 81 * - col2 + + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <> col2 + - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT COUNT( * ) * - - 20 AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-6902
SELECT COUNT ( * ) * - - 20 AS col0 FROM tab2
----
60

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 50 * - col1 - + 22 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT CAST( - 27 AS SIGNED ) * + - 17 * 24 col2 FROM tab0 AS cor0
----
11016
11016
11016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6905
SELECT CAST ( - 27 AS INTEGER ) * + - 17 * 24 col2 FROM tab0 AS cor0
----
11016
11016
11016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT DISTINCT - col0 * col1 - + + ( + 83 ) + + - CAST( col0 AS SIGNED ) + + col1 * col2 FROM tab0 AS cor0
----
-178
-1787
2494

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - col0 * col1 - + + ( + 83 ) + + - CAST ( col0 AS INTEGER ) + + col1 * col2 FROM tab0 AS cor0
----
-178
-1787
2494

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + 65 * - col1 + - col1 col2, + col1 * + col0 AS col2 FROM tab1 AS cor0
----
-3193
4277
-415
425
-975
714

query I rowsort
SELECT 23 - col2 AS col1 FROM tab0 AS cor0 WHERE 72 NOT BETWEEN + + col0 AND 33
----
-24
-76
13

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

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

query I rowsort
SELECT ALL - 29 - + + col2 FROM tab1
----
-125
-88
-97

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

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

query I rowsort
SELECT + col0 * - 72 AS col0 FROM tab1
----
-3672
-6120
-6552

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + SUM( + col2 ) * - COUNT( - ( + 71 ) ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-6918
SELECT + SUM ( + col2 ) * - COUNT ( - ( + 71 ) ) FROM tab2
----
-363

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6919
SELECT 14 DIV - COUNT( DISTINCT col2 ), COUNT( * ) AS col0 FROM tab1
----
-4
3

skipif mysql # not compatible
query II rowsort label-6919
SELECT 14 / - COUNT ( DISTINCT col2 ), COUNT ( * ) AS col0 FROM tab1
----
-4
3

query I rowsort
SELECT ALL - col2 * + col0 * + col0 AS col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT ALL COUNT( * ) * - ( - 27 ) * - COUNT( DISTINCT CAST( - + col1 AS SIGNED ) ) + - COUNT( * ) * + 56 + + - 91 FROM tab0
----
-502

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL COUNT ( * ) * - ( - 27 ) * - COUNT ( DISTINCT CAST ( - + col1 AS INTEGER ) ) + - COUNT ( * ) * + 56 + + - 91 FROM tab0
----
-502

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col2 + + col0 AS col0 FROM tab0
----
118
143
197

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

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

query I rowsort
SELECT ALL + - col0 * + + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 84 col0, + 35 FROM tab1 cor0
----
84
35
84
35
84
35

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT ALL + 26 AS col2, + SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
26
223

skipif mysql # not compatible
query II rowsort label-6930
SELECT ALL + 26 AS col2, + SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
26
223

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT - + 83 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6933
SELECT - + 83 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-249

query I rowsort
SELECT 56 * - - 17 * col1 * - 87 FROM tab0
----
-1739304
-6708744
-82824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT - CAST( + - col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6935
SELECT - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT 36 * COUNT( * ) AS col1, 32 AS col2 FROM tab0
----
108
32

skipif mysql # not compatible
query II rowsort label-6936
SELECT 36 * COUNT ( * ) AS col1, 32 AS col2 FROM tab0
----
108
32

query I rowsort
SELECT col2 * - 14 * + - col1 FROM tab2
----
16422
43120
54404

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 44
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6942
SELECT 99 * + col0, + col2 DIV 96 AS col0 FROM tab1 AS cor0
----
5049
1
8415
0
9009
0

skipif mysql # not compatible
query II rowsort label-6942
SELECT 99 * + col0, + col2 / 96 AS col0 FROM tab1 AS cor0
----
5049
1
8415
0
9009
0

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

query I rowsort
SELECT DISTINCT + - 99 * + col1 FROM tab0 AS cor0
----
-2079
-8019
-99

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

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

query I rowsort
SELECT ALL - 91 * col1 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6947
SELECT ALL - 98 + - - COUNT( DISTINCT + col2 ) DIV + 60 - - SUM( - + col0 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - 98 + - - COUNT ( DISTINCT + col2 ) / + 60 - - SUM ( - + col0 ) FROM tab0 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT ALL 41 + + CAST( - 7 AS SIGNED ) FROM tab2 AS cor0 WHERE + 69 IS NOT NULL
----
34
34
34

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL 41 + + CAST ( - 7 AS INTEGER ) FROM tab2 AS cor0 WHERE + 69 IS NOT NULL
----
34
34
34

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

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

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE + 34 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 96 * + col0 AS col0 FROM tab1 cor0
----
4896
8160
8736

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT ALL 99 DIV - + col1 - + col2 - + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-154
-161
-163

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL 99 / - + col1 - + col2 - + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-154
-161
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL - + col0 + - - col0 + ( - 36 ) DIV + col0 * + + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - + col0 + - - col0 + ( - 36 ) / + col0 * + + col0 FROM tab2 AS cor0
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT ALL - ( - ( 59 ) ) * col1 DIV - + 35 AS col1 FROM tab2 AS cor0
----
-112
-129
-85

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL - ( - ( 59 ) ) * col1 / - + 35 AS col1 FROM tab2 AS cor0
----
-112
-129
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ALL COUNT( * ) - + MAX( ALL ( col1 ) ) AS col0 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL COUNT ( * ) - + MAX ( ALL ( col1 ) ) AS col0 FROM tab0
----
-78

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

query I rowsort
SELECT 92 * - + 26 + ( + col2 ) + 51 AS col0 FROM tab2
----
-2283
-2301
-2318

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT ALL COUNT( * ) AS col2, - 91 AS col1 FROM tab1, tab2 AS cor0
----
9
-91

skipif mysql # not compatible
query II rowsort label-6961
SELECT ALL COUNT ( * ) AS col2, - 91 AS col1 FROM tab1, tab2 AS cor0
----
9
-91

query I rowsort
SELECT ALL 33 * + - col0 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT + 72 + + - 83 * col2 FROM tab2
----
-1837
-3248
-4742

query I rowsort
SELECT DISTINCT col2 + - + col2 + 44 * + 47 + col1 * - ( - 84 ) FROM tab1 AS cor0
----
2488
3244
6016

onlyif mysql # DIV for integer division: 
query I rowsort label-6965
SELECT ALL - col2 + - 35 DIV col0 + + col0 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-101
-81
67

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - col2 + - 35 / col0 + + col0 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-101
-81
67

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + col1 / col0 * + + col1 * col1, + col2 + + 68, - col1 * col1 * + col0, - col2 * + + 17 * - + 32 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT + + COUNT( * ) * + COUNT( * ) * + 93 * - 12 * + - 31 * + 85 FROM tab1 AS cor0
----
26465940

skipif mysql # not compatible
query I rowsort label-6970
SELECT + + COUNT ( * ) * + COUNT ( * ) * + 93 * - 12 * + - 31 * + 85 FROM tab1 AS cor0
----
26465940

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT DISTINCT 95 AS col1, COUNT( * ) AS col2 FROM tab0
----
95
3

skipif mysql # not compatible
query II rowsort label-6971
SELECT DISTINCT 95 AS col1, COUNT ( * ) AS col2 FROM tab0
----
95
3

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 33 / - col2 * ( + - 51 ) + 9 * - + col2 ) NOT BETWEEN - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 24 * - 10 FROM tab2 AS cor0
----
240
240
240

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT 13 AS col1 FROM tab2 cor0
----
13
13
13

query II rowsort
SELECT DISTINCT col0 * + 14 + - + col1 * - col1 + col2 + + col2, 31 + + + ( ( ( col2 ) ) ) AS col0 FROM tab2 cor0
----
3291
54
5655
89
6905
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT 94 DIV ( col0 ) col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6978
SELECT 94 / ( col0 ) col0 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT - 74 * + ( - COUNT( * ) ) col0 FROM tab1
----
222

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

query II rowsort
SELECT 66 AS col0, 68 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to f3a582cc743c2674e94592aeea3e4951

query I rowsort
SELECT ALL - 43 FROM tab0 WHERE ( NOT ( NOT + 91 IS NOT NULL ) )
----
-43
-43
-43

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - 72 col1 FROM tab2 AS cor0
----
3312
4608
5400

query I rowsort
SELECT - col1 + + ( 37 ) - ( - col1 ) FROM tab1 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < col1
----

query I rowsort
SELECT ALL col0 + 85 FROM tab1 AS cor0
----
136
170
176

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 5 col2 FROM tab1 AS cor0
----
54
63
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE 71 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6991
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT 26 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE 58 IS NOT NULL
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT COUNT ( * ) * + - 9 FROM tab1
----
-27

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT ALL col1 - + 78 * + CAST( NULL AS SIGNED ) * - 40 FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL col1 - + 78 * + CAST ( NULL AS INTEGER ) * - 40 FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT ALL col0 DIV + 65 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL col0 / + 65 FROM tab1
----
0
1
1

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT - col1 DIV + 73 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7002
SELECT - col1 / + 73 FROM tab2
----
-1
0
0

query II rowsort
SELECT DISTINCT col0 * - col0, + col1 AS col2 FROM tab0
----
-225
81
-7569
21
-9409
1

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

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

query I rowsort
SELECT + 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - ( ( + 4 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 6 ) IS NOT NULL
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT COUNT( + 96 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7007
SELECT COUNT ( + 96 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <= - col1 - - col2 + + + col2
----
15
81
47
87
21
10

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

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

query I rowsort
SELECT ALL - 70 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ALL + - COUNT( * ) * + + 76 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL + - COUNT ( * ) * + + 76 FROM tab1 AS cor0
----
-228

query I rowsort
SELECT + + 43 * 98 FROM tab1 cor0
----
4214
4214
4214

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

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

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

query I rowsort
SELECT DISTINCT + 15 FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
15

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

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

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE NOT col0 * - ( ( - - col2 ) ) <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + MAX( - ( - col1 ) ) * 97 FROM tab2
----
7469

skipif mysql # not compatible
query I rowsort label-7018
SELECT + MAX ( - ( - col1 ) ) * 97 FROM tab2
----
7469

query I rowsort
SELECT DISTINCT ( + - 39 ) FROM tab2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL - ( - 51 ) * 97 + - SUM( + ( col2 ) ) AS col2 FROM tab2
----
4826

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL - ( - 51 ) * 97 + - SUM ( + ( col2 ) ) AS col2 FROM tab2
----
4826

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT MAX( - + 38 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT MAX ( - + 38 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, ( + col0 ) )
----
NULL

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

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

query II rowsort
SELECT DISTINCT + col2 + + + ( - + 64 ) AS col0, - col2 FROM tab0 AS cor0
----
-17
-47
-54
-10
35
-99

query I rowsort
SELECT + - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT col1 + - col0 + 66 AS col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - - 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL - col1 + 62 FROM tab0 cor0
----
-19
41
61

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 - - 90 IS NULL
----

query I rowsort
SELECT DISTINCT 46 + + col1 - - col2 + - - ( + col2 ) - + 94 * - 4 AS col0 FROM tab2 AS cor0
----
519
579
605

query I rowsort
SELECT - col0 * - + col1 + col1 FROM tab0 AS cor0
----
1296
1848
98

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

query II rowsort
SELECT ALL + col2 AS col2, col0 * - 14 * - col2 AS col0 FROM tab0 cor0
----
10
12180
47
9870
99
134442

query I rowsort
SELECT ALL + 59 + 97 - col0 FROM tab1 AS cor0
----
105
65
71

query I rowsort
SELECT - - col0 - 0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 4 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7037
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 4 <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT DISTINCT - col0 DIV - + ( + col0 ) + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT - col0 / - + ( + col0 ) + - col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT DISTINCT - col2 * - - col0 - + col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

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

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

query I rowsort
SELECT ( + 71 ) + + col0 AS col0 FROM tab2
----
117
135
146

query II rowsort
SELECT ALL - 26, col2 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND 45
----

query I rowsort
SELECT col2 * 46 * - ( + col0 ) FROM tab2
----
-117760
-200100
-48668

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT + col2 * col2 IS NULL
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) * + - 48 AS col0 FROM tab0 AS cor0
----
-144

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 WHERE NOT ( NOT col1 IS NOT NULL )
----
-10
-47
-99

query I rowsort
SELECT ALL col0 * - 14 + - col2 FROM tab0 WHERE + - col0 + + col2 IS NOT NULL
----
-1228
-1457
-257

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT col2, col0 + + + col2 AS col1 FROM tab2 cor0
----
23
69
40
104
58
133

query I rowsort
SELECT ALL - + ( - + 52 ) * - 36 AS col2 FROM tab0 AS cor0
----
-1872
-1872
-1872

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

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

query I rowsort
SELECT col1 * col1 + - + ( + + 14 ) FROM tab1 AS cor0
----
11
182
2195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT - MAX( DISTINCT col1 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7057
SELECT - MAX ( DISTINCT col1 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7058
SELECT DISTINCT col1 / + col0 col2 FROM tab1
----
0

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

query II rowsort
SELECT col2 + 33, col0 FROM tab0
----
132
97
43
87
80
15

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

query II rowsort
SELECT ALL col0 * - - 64 * ( col2 ) AS col0, + col0 AS col2 FROM tab2
----
163840
64
278400
75
67712
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT - col1 DIV - 9 AS col1 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-7063
SELECT - col1 / - 9 AS col1 FROM tab1
----
0
1
5

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

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + ( - 75 ) FROM tab1 AS cor0
----
3825
6375
6825

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 > - - 92
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <> - col2
----

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

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

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

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

query I rowsort
SELECT - col0 / - 58 FROM tab2 AS cor0 WHERE + 17 <= NULL
----

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

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

query I rowsort
SELECT ALL + col2 - + col0 FROM tab1 AS cor0 WHERE col1 + + + col1 NOT IN ( - 66, 54, + 0 * + - col0 )
----
-23
-26
45

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7080
SELECT + 36, col2 DIV col0 AS col0 FROM tab2
----
36
0
36
0
36
0

skipif mysql # not compatible
query II rowsort label-7080
SELECT + 36, col2 / col0 AS col0 FROM tab2
----
36
0
36
0
36
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7081
SELECT + 91 AS col2, + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
91
-1

skipif mysql # not compatible
query II rowsort label-7081
SELECT + 91 AS col2, + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
91
-1

query II rowsort
SELECT DISTINCT - col0 AS col1, 52 AS col2 FROM tab1
----
-51
52
-85
52
-91
52

query I rowsort
SELECT ALL 4 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT + MAX ( ALL + 63 ) FROM tab2
----
63

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 16 FROM tab0
----
115
26
63

query I rowsort
SELECT + 4 * 46 AS col2 FROM tab2 cor0
----
184
184
184

query I rowsort
SELECT - + 44 FROM tab0 AS cor0 WHERE NULL IN ( col2, - col0 * + + col0 * - col1 - + col2 - - col0 )
----

query I rowsort
SELECT - col0 * + col1 - - + 88 * col1 * - 2 AS col1 FROM tab2 AS cor0
----
-11322
-16817
-18480

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7093
SELECT DISTINCT - MAX ( + - col1 ) col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT 69 * COUNT( * ) AS col2 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-7094
SELECT 69 * COUNT ( * ) AS col2 FROM tab0
----
207

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

query I rowsort
SELECT DISTINCT ( - 30 ) * - col1 FROM tab2
----
1530
2010
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT 10 * + + COUNT( * ) * + 18 FROM tab0
----
540

skipif mysql # not compatible
query I rowsort label-7097
SELECT 10 * + + COUNT ( * ) * + 18 FROM tab0
----
540

query I rowsort
SELECT DISTINCT + ( - 83 ) FROM tab0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7099
SELECT col1 * - ( - col0 ) + - + col0, CAST( + col2 AS SIGNED ) / CAST( NULL AS SIGNED ) col1 FROM tab1
----
340
NULL
4186
NULL
663
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7099
SELECT col1 * - ( - col0 ) + - + col0, CAST ( + col2 AS INTEGER ) / CAST ( NULL AS INTEGER ) col1 FROM tab1
----
340
NULL
4186
NULL
663
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 95 + - col1 + - - col2 * 2 AND + - col0
----

query I rowsort
SELECT - - 25 + - 53 AS col0 FROM tab2 AS cor0
----
-28
-28
-28

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7105
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT + + COUNT( * ) * 85 FROM tab0 cor0
----
255

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + + COUNT ( * ) * 85 FROM tab0 cor0
----
255

query I rowsort
SELECT DISTINCT + 4 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
55
71
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT ALL - CAST( SUM( DISTINCT + 64 ) AS SIGNED ) * - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL - CAST ( SUM ( DISTINCT + 64 ) AS INTEGER ) * - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
192

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7110
SELECT DISTINCT + 34 + COUNT( * ), - 22 AS col1 FROM tab1 AS cor0
----
37
-22

skipif mysql # not compatible
query II rowsort label-7110
SELECT DISTINCT + 34 + COUNT ( * ), - 22 AS col1 FROM tab1 AS cor0
----
37
-22

query I rowsort
SELECT 17 * + col0 FROM tab0 AS cor0
----
1479
1649
255

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

query I rowsort
SELECT ALL + 37 AS col0 FROM tab2 AS cor0 WHERE 28 = NULL
----

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

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

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

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

query I rowsort
SELECT + 0 * 45 AS col1 FROM tab0
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 24 * col1 < - col0 * col0 * + + col2 + - 53 * + + 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7120
SELECT ALL 16 AS col1, COUNT( * ) FROM tab2
----
16
3

skipif mysql # not compatible
query II rowsort label-7120
SELECT ALL 16 AS col1, COUNT ( * ) FROM tab2
----
16
3

query II rowsort
SELECT - 4, col1 + + col1 AS col2 FROM tab1 AS cor0
----
-4
10
-4
28
-4
94

query I rowsort
SELECT ALL + col1 * 3 - - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT 97 + + - MIN( - + col0 ) FROM tab1 cor0
----
188

skipif mysql # not compatible
query I rowsort label-7123
SELECT 97 + + - MIN ( - + col0 ) FROM tab1 cor0
----
188

query II rowsort
SELECT DISTINCT + col2 AS col1, ( - - 36 ) FROM tab1 cor0
----
59
36
68
36
96
36

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

query I rowsort
SELECT ALL - - 2 + - col1 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-32
-9
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col1 col0, + col0 - + 30 FROM tab1
----
-196
21
-2209
61
-25
55

query I rowsort
SELECT DISTINCT - - col2 + - 11 AS col2 FROM tab1 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT COUNT( * ) FROM tab2 WHERE 50 <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT COUNT ( * ) FROM tab2 WHERE 50 <= - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT col2 * - ( + CAST( - col1 AS SIGNED ) ) FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-7130
SELECT col2 * - ( + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT 38 * + - ( - + col0 ) AS col2 FROM tab1
----
1938
3230
3458

onlyif mysql # DIV for integer division: 
query II rowsort label-7132
SELECT col2 DIV + + col1, col1 FROM tab1
----
1
47
11
5
6
14

skipif mysql # not compatible
query II rowsort label-7132
SELECT col2 / + + col1, col1 FROM tab1
----
1
47
11
5
6
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT col1 DIV - ( - col1 ) AS col2 FROM tab0 WHERE ( col2 <= 60 + - - col0 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7133
SELECT col1 / - ( - col1 ) AS col2 FROM tab0 WHERE ( col2 <= 60 + - - col0 )
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 32 * - 40 * col2 NOT BETWEEN + + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + 71 AND + - 27 + + - col1
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + 71 AND + - 27 + + - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT + ( CAST( + 64 AS SIGNED ) ) * col2 * col1 + + - col0 col2 FROM tab2
----
197056
248629
75026

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7136
SELECT + ( CAST ( + 64 AS INTEGER ) ) * col2 * col1 + + - col0 col2 FROM tab2
----
197056
248629
75026

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT 17 * + - COUNT( * ) AS col1 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-7137
SELECT 17 * + - COUNT ( * ) AS col1 FROM tab0
----
-51

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

query I rowsort
SELECT ALL + 17 * + 2 + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
2635
7259
8315

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 29 BETWEEN NULL AND 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT COUNT( * ) * + ( - 87 ) AS col2 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT COUNT ( * ) * + ( - 87 ) AS col2 FROM tab2
----
-261

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT DISTINCT MIN( DISTINCT + 65 ), + COUNT( * ) * - 42 AS col1 FROM tab0
----
65
-126

skipif mysql # not compatible
query II rowsort label-7148
SELECT DISTINCT MIN ( DISTINCT + 65 ), + COUNT ( * ) * - 42 AS col1 FROM tab0
----
65
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab2
----
76

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

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

query I rowsort
SELECT DISTINCT 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

query I rowsort
SELECT ALL + 84 * + col1 AS col0 FROM tab0
----
1764
6804
84

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 61 * - 43 BETWEEN NULL AND + + col1
----

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

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

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

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

query I rowsort
SELECT - - 16 * - col0 AS col0 FROM tab2 AS cor0
----
-1024
-1200
-736

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT - 81 + - MIN( ALL - col0 ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7161
SELECT - 81 + - MIN ( ALL - col0 ) AS col2 FROM tab1
----
10

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT DISTINCT - col2 DIV - col2 + + col1 AS col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT - col2 / - col2 + + col1 AS col2 FROM tab1
----
15
48
6

query I rowsort
SELECT - 54 FROM tab1 WHERE - 18 + - col2 * - + col1 + + + col1 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7167
SELECT DISTINCT CAST( + + ( + - 58 ) AS SIGNED ) FROM tab0 cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT CAST ( + + ( + - 58 ) AS INTEGER ) FROM tab0 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + + 49 * + - col2 AS col1 FROM tab2 AS cor0
----
-1127
-1960
-2842

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7170
SELECT ALL - - col2 DIV - - 77 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL - - col2 / - - 77 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - 57 * - col2 + - 86 AS col0 FROM tab0 AS cor0
----
2593
484
5557

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + COUNT ( * ) * - 58 FROM tab0
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7175
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, MIN( DISTINCT - + col0 ) DIV 61 + - + MIN( ALL + col1 ) AS col1 FROM tab2
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-7175
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, MIN ( DISTINCT - + col0 ) / 61 + - + MIN ( ALL + col1 ) AS col1 FROM tab2
----
NULL
-52

query I rowsort
SELECT col0 * 11 FROM tab1
----
1001
561
935

query I rowsort
SELECT ALL - 45 * col1 FROM tab1
----
-2115
-225
-630

query I rowsort
SELECT 39 * + col2 FROM tab0
----
1833
3861
390

query II rowsort
SELECT + col2 AS col0, - col2 * - - col1 FROM tab0
----
10
-210
47
-3807
99
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - 63 - + - col2 + + col2 * - 3 IS NULL
----

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

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

query I rowsort
SELECT col1 * + col0 + + - 78 FROM tab0 AS cor0
----
1137
1749
19

query I rowsort
SELECT ALL + - 40 + + col0 AS col2 FROM tab2 AS cor0
----
24
35
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT + + COUNT( * ) AS col0, - 48 FROM tab0 AS cor0
----
3
-48

skipif mysql # not compatible
query II rowsort label-7185
SELECT + + COUNT ( * ) AS col0, - 48 FROM tab0 AS cor0
----
3
-48

query I rowsort
SELECT - col1 * - 74 * - ( - col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
32613
485433
73

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 >= - 39
----

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

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL SUM ( col0 ) AS col0 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT - 59 * + ( - SUM( - col0 ) ) + 57 * - SUM( DISTINCT col1 ) FROM tab1
----
-17155

skipif mysql # not compatible
query I rowsort label-7191
SELECT - 59 * + ( - SUM ( - col0 ) ) + 57 * - SUM ( DISTINCT col1 ) FROM tab1
----
-17155

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL SUM( 86 ) + - 76 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL SUM ( 86 ) + - 76 FROM tab2
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7193
SELECT * FROM tab2 WHERE col1 + + CAST( NULL AS SIGNED ) > - col2 / - col0
----

skipif mysql # not compatible
query III rowsort label-7193
SELECT * FROM tab2 WHERE col1 + + CAST ( NULL AS INTEGER ) > - col2 / - col0
----

query I rowsort
SELECT DISTINCT - 74 * 98 FROM tab0
----
-7252

query I rowsort
SELECT 50 / col2 AS col2 FROM tab2 WHERE + col2 < - col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + COUNT( + col1 ) + 40 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7198
SELECT + COUNT ( + col1 ) + 40 FROM tab2
----
43

query I rowsort
SELECT DISTINCT - col0 * - 72 FROM tab2
----
3312
4608
5400

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 - + col1 NOT IN ( col1 * col0 )
----

query I rowsort
SELECT AVG ( ALL + 20 ) AS col0 FROM tab1 WHERE NOT 14 NOT BETWEEN + col2 AND col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7203
SELECT ALL MAX( 47 ) + CAST( ( - 83 ) AS SIGNED ) * - AVG ( DISTINCT col0 ) FROM tab1 WHERE NOT NULL NOT IN ( + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL MAX ( 47 ) + CAST ( ( - 83 ) AS INTEGER ) * - AVG ( DISTINCT col0 ) FROM tab1 WHERE NOT NULL NOT IN ( + 6 )
----
NULL

query I rowsort
SELECT DISTINCT col2 - col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
21
54
82

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

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

skipif mysql # not compatible
query I rowsort label-7206
SELECT + MAX ( DISTINCT + col1 ) FROM tab2
----
77

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

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

query I rowsort
SELECT ALL - ( + col1 ) + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
44
80

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

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

query I rowsort
SELECT DISTINCT 30 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-10
-28
7

query I rowsort
SELECT ALL col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1168
-1817
2

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 95 * col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT COUNT( * ) - - 10 * 2 AS col0 FROM tab1 WHERE NOT ( - 46 ) IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-7214
SELECT COUNT ( * ) - - 10 * 2 AS col0 FROM tab1 WHERE NOT ( - 46 ) IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT COUNT( * ) * - ( + 85 ) AS col1 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT COUNT ( * ) * - ( + 85 ) AS col1 FROM tab2
----
-255

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= ( - 7 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT DISTINCT 6 * ( - MAX( 44 ) ) col1 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7222
SELECT DISTINCT 6 * ( - MAX ( 44 ) ) col1 FROM tab2 AS cor0
----
-264

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

query I rowsort
SELECT ALL - 50 * + col1 AS col2 FROM tab0 AS cor0
----
-1050
-4050
-50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT ALL col0 DIV + 92 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL col0 / + 92 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT ALL col0 DIV + - 4 AS col2 FROM tab1
----
-12
-21
-22

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL col0 / + - 4 AS col2 FROM tab1
----
-12
-21
-22

query I rowsort
SELECT + col2 * + 39 FROM tab2
----
1560
2262
897

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

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

query I rowsort
SELECT DISTINCT + 38 + 12 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - ( - + COUNT( * ) ) + - 58 * + 40 FROM tab0 AS cor0
----
-2317

skipif mysql # not compatible
query I rowsort label-7231
SELECT - ( - + COUNT ( * ) ) + - 58 * + 40 FROM tab0 AS cor0
----
-2317

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

query I rowsort
SELECT DISTINCT + 35 + col2 AS col0 FROM tab1 AS cor0
----
103
131
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) > col2 * + col2
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT IN ( 42 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT - 17 DIV - + 65 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 17 / - + 65 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 78 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT ALL + col1 DIV + - 64 + - - 69 FROM tab0 AS cor0
----
68
69
69

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + col1 / + - 64 + - - 69 FROM tab0 AS cor0
----
68
69
69

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

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

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

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

query I rowsort
SELECT DISTINCT - + 17 * + col2 - col1 FROM tab2 AS cor0
----
-1053
-442
-757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 41 + + 99 col2 FROM tab2 AS cor0
----
2190
2846
3256

onlyif mysql # DIV for integer division: 
query I rowsort label-7247
SELECT + col1 - col2 - 40 DIV col0 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-7247
SELECT + col1 - col2 - 40 / col0 FROM tab1 AS cor0
----
-21
-54
-82

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

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

query I rowsort
SELECT DISTINCT col1 + + 14 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 28 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT - CAST( - 68 AS SIGNED ) * col0 AS col2 FROM tab2 WHERE NOT 81 IS NULL AND 17 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7250
SELECT - CAST ( - 68 AS INTEGER ) * col0 AS col2 FROM tab2 WHERE NOT 81 IS NULL AND 17 IS NULL
----

query I rowsort
SELECT DISTINCT + 51 - - col0 * - col1 FROM tab2
----
-2295
-4877
-4974

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT 30 DIV - - 97 + 12 FROM tab1
----
12
12
12

skipif mysql # not compatible
query I rowsort label-7252
SELECT 30 / - - 97 + 12 FROM tab1
----
12
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT DISTINCT MAX( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT CAST( - - 69 AS SIGNED ) * 66 - + 79 NOT BETWEEN NULL AND ( col1 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT MAX ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT CAST ( - - 69 AS INTEGER ) * 66 - + 79 NOT BETWEEN NULL AND ( col1 / col0 )
----
NULL

query II rowsort
SELECT DISTINCT ( + + 27 ), - 34 + - + col1 AS col2 FROM tab2 cor0
----
27
-101
27
-111
27
-85

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 43 + - col2 ) IN ( + col2 ) OR NOT NULL <> NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 16 ) col0 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT ALL 61 * - col1 FROM tab1
----
-2867
-305
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

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

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

query I rowsort
SELECT ALL - col1 + - col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-110
-115
-64

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

skipif mysql # not compatible
query I rowsort label-7262
SELECT + COUNT ( * ) + - 23 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 + + col0 + + col2 + + col0 / - ( - col2 ) ) NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT - col2 - ( 87 ) DIV 58 AS col0 FROM tab0 cor0 WHERE NOT col2 = + col1 * col0 - + - 82
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-7263
SELECT - col2 - ( 87 ) / 58 AS col0 FROM tab0 cor0 WHERE NOT col2 = + col1 * col0 - + - 82
----
-100
-11
-48

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7264
SELECT - 42 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-42
3

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

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

query II rowsort
SELECT DISTINCT - + col0, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT + 97 * + ( + - COUNT( * ) ) * - 17 AS col0 FROM tab0 AS cor0
----
4947

skipif mysql # not compatible
query I rowsort label-7267
SELECT + 97 * + ( + - COUNT ( * ) ) * - 17 AS col0 FROM tab0 AS cor0
----
4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7268
SELECT col2 * 35 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 < CAST( - col1 AS SIGNED )
----
1726
3466
371

skipif mysql # not compatible
query I rowsort label-7268
SELECT col2 * 35 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 < CAST ( - col1 AS INTEGER )
----
1726
3466
371

query I rowsort
SELECT - AVG ( + - 27 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT DISTINCT + 52 * CAST( col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
3068
3536
4992

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7270
SELECT DISTINCT + 52 * CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT - 60 * + - ( 38 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 24, + col0 * 3 - + 96 AS col1 FROM tab2
----
-24
129
-24
42
-24
96

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT col1 + - col0 AS col2, + 10 AS col2 FROM tab2
----
-8
10
13
10
5
10

query II rowsort
SELECT ALL col0, ( ( - 41 ) ) * - col0 * - col1 AS col0 FROM tab1
----
51
-29274
85
-17425
91
-175357

query III rowsort
SELECT ALL col1, col0 * - col2 - + col2, col2 FROM tab1
----
9 values hashing to e8b19a5f002aeaeade8fd3eff6d2f113

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

query II rowsort
SELECT DISTINCT + col0 AS col1, + 83 * col2 FROM tab0
----
15
3901
87
830
97
8217

query I rowsort
SELECT DISTINCT + ( 6 ) * + 95 FROM tab2
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT ( + 9 ) DIV + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7280
SELECT ( + 9 ) / + COUNT ( * ) FROM tab0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7282
SELECT ALL 47 + 48, + 47 - col2 * + col1 * - + 91 * + ( col2 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL 47 + 48, + 47 - col2 * + col1 * - + 91 * + ( col2 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
95
NULL
95
NULL
95
NULL

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-7285
SELECT DISTINCT + COUNT( * ) AS col1, + MIN( DISTINCT + 92 ), + - SUM( + + 7 ) * 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
92
-1764

skipif mysql # not compatible
query III rowsort label-7285
SELECT DISTINCT + COUNT ( * ) AS col1, + MIN ( DISTINCT + 92 ), + - SUM ( + + 7 ) * 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
92
-1764

query I rowsort
SELECT col1 + + col2 * - 8 FROM tab0
----
-295
-59
-791

query I rowsort
SELECT 7 + ( - - col0 ) FROM tab1
----
58
92
98

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

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

query I rowsort
SELECT ALL 76 + - + ( col0 ) + + - 58 + - - col0 + - 41 FROM tab2 AS cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + col1 AS col0, ( col0 ) col1 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT ( col1 ) * + 0 DIV col0 DIV - + 42 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7296
SELECT ( col1 ) * + 0 / col0 / - + 42 col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT 4 * col0 * + ( - + 73 ) FROM tab2
----
-13432
-18688
-21900

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL + MAX( 84 ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + MAX ( 84 ) AS col2 FROM tab0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + - col1 / col0 - - col1 * - col2 * 24 ) = - ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7301
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + - col1 / col0 - - col1 * - col2 * 24 ) = - ( col2 )
----
3

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7305
SELECT + col2, col2 * - - CAST( - 63 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
-630
47
-2961
99
-6237

skipif mysql # not compatible
query II rowsort label-7305
SELECT + col2, col2 * - - CAST ( - 63 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
-630
47
-2961
99
-6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

query I rowsort
SELECT DISTINCT + 24 AS col1 FROM tab2 cor0
----
24

query I rowsort
SELECT ALL + 35 + col1 FROM tab0 cor0
----
116
36
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT + - col2 + - - 7 * + col0 - + CAST( + 24 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7310
SELECT + - col2 + - - 7 * + col0 - + CAST ( + 24 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL - - MAX( col0 ) FROM tab2 AS cor0 WHERE NOT 17 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - - MAX ( col0 ) FROM tab2 AS cor0 WHERE NOT 17 * - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT 28 * + COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7312
SELECT 28 * + COUNT ( * ) FROM tab1 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7313
SELECT - CAST( + col0 AS SIGNED ) DIV 93 FROM tab1 cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 WHERE NOT - + 97 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + - 92 )
----

query I rowsort
SELECT + 91 * + col1 FROM tab2
----
4641
6097
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 WHERE NOT ( 59 * - col1 * 16 ) IS NULL
----
46
64
75

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

query I rowsort
SELECT ALL + 42 * + 58 AS col2 FROM tab1
----
2436
2436
2436

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL AND ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT 98 + - col2 AS col1 FROM tab0
----
-1
51
88

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

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

query I rowsort
SELECT - 19 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 14 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL 57 - - 52 AS col0 FROM tab2 AS cor0
----
109
109
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT - 61 - + COUNT( * ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7328
SELECT - 61 - + COUNT ( * ) FROM tab1 AS cor0
----
-64

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

query I rowsort
SELECT ALL - col1 + - 13 FROM tab1 AS cor0
----
-18
-27
-60

query II rowsort
SELECT - - col1 AS col2, + col0 * - col0 AS col1 FROM tab1 AS cor0
----
14
-2601
47
-8281
5
-7225

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7333
SELECT 22 DIV + - COUNT( * ) FROM tab1, tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7333
SELECT 22 / + - COUNT ( * ) FROM tab1, tab1 cor0
----
-2

query II rowsort
SELECT ALL + 98 AS col2, - col1 FROM tab1 WHERE col0 = + col0
----
98
-14
98
-47
98
-5

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= + 19
----

query I rowsort
SELECT ALL 64 + - ( - + 99 ) FROM tab0 cor0 WHERE ( NOT NULL IS NOT NULL )
----
163
163
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7337
SELECT + COUNT( * ) + 97 DIV MAX( ALL - col2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7337
SELECT + COUNT ( * ) + 97 / MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 + - col0 col0 FROM tab1 AS cor0
----
-18
-24
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT COUNT( * ) + COUNT( * ) * - 43 col1 FROM tab0 AS cor0
----
-126

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + 36 ) AS col2, - col1 col1 FROM tab1
----
36
-14
36
-47
36
-5

query I rowsort
SELECT + col2 + - 14 AS col1 FROM tab2
----
26
44
9

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

query I rowsort
SELECT DISTINCT ( + + 37 ) FROM tab0
----
37

query II rowsort
SELECT - col0 * + col2 AS col1, - ( - + 6 ) * - + ( col0 ) AS col0 FROM tab0
----
-705
-90
-870
-522
-9603
-582

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7346
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col2, col2 - + col2 AS col0 FROM tab0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-7346
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col2, col2 - + col2 AS col0 FROM tab0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL ( ( 1 ) ) FROM tab2
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-7349
SELECT - MIN ( DISTINCT col2 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7350
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 / - 61 / + CAST( + - col0 AS DECIMAL ), - col1 + 18 )
----

skipif mysql # not compatible
query III rowsort label-7350
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 / - 61 / + CAST ( + - col0 AS REAL ), - col1 + 18 )
----

query I rowsort
SELECT DISTINCT - col0 + - 9 * + + 91 FROM tab2 AS cor0
----
-865
-883
-894

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

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 51 + col2 * - 79 FROM tab0
----
-3662
-739
-7770

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

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

query I rowsort
SELECT + ( + 65 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT col2 * + 10 AS col0 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7358
SELECT col1 / CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT col1 / CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7359
SELECT - col2 DIV ( col0 ) - - col0 * - + 96, 20 AS col0 FROM tab1 cor0
----
-4897
20
-8160
20
-8736
20

skipif mysql # not compatible
query II rowsort label-7359
SELECT - col2 / ( col0 ) - - col0 * - + 96, 20 AS col0 FROM tab1 cor0
----
-4897
20
-8160
20
-8736
20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 4 + + col2 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - MAX( DISTINCT + 39 ) AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7361
SELECT - MAX ( DISTINCT + 39 ) AS col0 FROM tab0 AS cor0
----
-39

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT ALL 99 DIV col2 AS col1 FROM tab0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL 99 / col2 AS col1 FROM tab0
----
1
2
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT ALL + 48 DIV + 80 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7366
SELECT ALL + 48 / + 80 col1 FROM tab0
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT - COUNT( CAST( 54 AS SIGNED ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7368
SELECT - COUNT ( CAST ( 54 AS INTEGER ) ) AS col0 FROM tab1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT + 11 * + COUNT( - 32 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7370
SELECT + 11 * + COUNT ( - 32 ) AS col0 FROM tab1
----
33

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

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

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

query I rowsort
SELECT DISTINCT col1 * + + 10 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col2 col1, col2 * + col2 AS col2 FROM tab1
----
-1344
9216
-295
3481
-3196
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT 91 + ( - MAX( + + col2 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7376
SELECT 91 + ( - MAX ( + + col2 ) ) FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-7377
SELECT ALL 29 DIV - 89 AS col2, 28 FROM tab0
----
0
28
0
28
0
28

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL 29 / - 89 AS col2, 28 FROM tab0
----
0
28
0
28
0
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7378
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) * col2 + + + 71 AS col1 FROM tab0 cor0
----
-634
-799
-9532

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) * col2 + + + 71 AS col1 FROM tab0 cor0
----
-634
-799
-9532

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

query II rowsort
SELECT ALL col0 + 94 AS col1, + 9 AS col2 FROM tab2 AS cor0
----
140
9
158
9
169
9

query I rowsort
SELECT DISTINCT + + 35 AS col2 FROM tab1 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT ALL + col2 * - col1 + - col2 + - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1440
-3263
-353

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL + col2 * - col1 + - col2 + - col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1440
-3263
-353

query I rowsort
SELECT DISTINCT + 86 + + col0 FROM tab1 AS cor0
----
137
171
177

onlyif mysql # aggregate syntax: 
query II rowsort label-7384
SELECT COUNT( * ), COUNT( * ) col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7384
SELECT COUNT ( * ), COUNT ( * ) col0 FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col0, 83 * + col1 + + - 61 AS col2, + - col2 * - + 92 col0 FROM tab0
----
9 values hashing to f6348e2dd4e8db2ac4861b9a7b7eafe0

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

skipif mysql # not compatible
query I rowsort label-7386
SELECT COUNT ( col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT COUNT( * ) + + 52 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7387
SELECT COUNT ( * ) + + 52 FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT ALL 36 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL 36 / + - col0 FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL >= col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT ALL - col0 + - 31 * + 99 - - col0 DIV col2 FROM tab0 AS cor0
----
-3084
-3148
-3166

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL - col0 + - 31 * + 99 - - col0 / col2 FROM tab0 AS cor0
----
-3084
-3148
-3166

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

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

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

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

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

query I rowsort
SELECT + 13 * - col2 FROM tab1 AS cor0
----
-1248
-767
-884

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

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - col1 * - + col2 AS col2, col2 * - col0 + + col0 + + - 75 FROM tab2 AS cor0
----
1173
-1087
3080
-2571
3886
-4350

onlyif mysql # DIV for integer division: 
query II rowsort label-7399
SELECT - col1 DIV + col0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-7399
SELECT - col1 / + col0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT - 6 * + col0 FROM tab1 cor0
----
-306
-510
-546

query I rowsort
SELECT - + col1 * + + 51 FROM tab0 AS cor0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT MAX( ALL col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7402
SELECT MAX ( ALL col0 ) AS col0 FROM tab1
----
91

query II rowsort
SELECT DISTINCT 43, col1 FROM tab0
----
43
1
43
21
43
81

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT - 25 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7406
SELECT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - col2 * 67 * + col0
----

skipif mysql # not compatible
query I rowsort label-7406
SELECT CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - col2 * 67 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT - 35 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7407
SELECT - 35 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-105

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 30 < - 76 + + - col0 - + 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + - col0 + + - ( col1 ) + 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) + + 62 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7410
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) + + 62 col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
62

query I rowsort
SELECT + col1 * + 34 * + 20 AS col1 FROM tab2
----
34680
45560
52360

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + MIN( + 46 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7413
SELECT + MIN ( + 46 ) AS col2 FROM tab2
----
46

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL ( 99 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT col2 + + 20 + col0 FROM tab1 AS cor0
----
164
167
179

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 57 / - col0 + + col2 + + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + - col1 col1 FROM tab0 AS cor0
----
-18
-38
-98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT DISTINCT + col1 DIV + col0 + 64 col0 FROM tab2 AS cor0
----
64
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7421
SELECT DISTINCT + col1 / + col0 + 64 col0 FROM tab2 AS cor0
----
64
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NULL ) >= + + 10 + CAST( NULL AS SIGNED ) - - + col2 * - 35 + - CAST( - ( + col2 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NULL ) >= + + 10 + CAST ( NULL AS INTEGER ) - - + col2 * - 35 + - CAST ( - ( + col2 ) AS INTEGER )
----

query I rowsort
SELECT 95 * - col1 FROM tab2
----
-4845
-6365
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL MAX( - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL MAX ( - col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT 32 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT COUNT( ALL + col1 ) * 50 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-7426
SELECT COUNT ( ALL + col1 ) * 50 FROM tab2
----
150

query II rowsort
SELECT DISTINCT 45 + - 97 AS col2, - col0 AS col2 FROM tab1
----
-52
-51
-52
-85
-52
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT 36 DIV col2 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7428
SELECT 36 / col2 AS col2 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT MAX( ALL - col1 ) * 38 FROM tab1
----
-190

skipif mysql # not compatible
query I rowsort label-7429
SELECT MAX ( ALL - col1 ) * 38 FROM tab1
----
-190

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * col2 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7431
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7431
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT 14 - SUM( - 81 ) AS col0 FROM tab1 AS cor0
----
257

skipif mysql # not compatible
query I rowsort label-7432
SELECT 14 - SUM ( - 81 ) AS col0 FROM tab1 AS cor0
----
257

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT + MIN( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT + MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT + col2, 13 AS col1 FROM tab0 AS cor0
----
10
13
47
13
99
13

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * - col2 + - 18 + + - 12 NOT BETWEEN col0 - + - 91 + col2 + ( - col1 ) AND + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + 29 FROM tab2 cor0
----
1334
1856
2175

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT - + MIN( CAST( + + col2 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7440
SELECT - + MIN ( CAST ( + + col2 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - COUNT( * ) + 23 * 50 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1147

skipif mysql # not compatible
query I rowsort label-7441
SELECT - COUNT ( * ) + 23 * 50 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT COUNT( + 87 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT COUNT ( + 87 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col0 FROM tab2 WHERE NOT + ( - col1 ) <> - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + COUNT( DISTINCT - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7444
SELECT + COUNT ( DISTINCT - col2 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7445
SELECT + col0 DIV + 92, + col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-7445
SELECT + col0 / + 92, + col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL OR NOT col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - 68 AS col1 FROM tab2
----
3468
4556
5236

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * - 7 AS col1 FROM tab0 AS cor0
----
105
609
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col1 FROM tab1 AS cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 col1, - col0 AS col2 FROM tab0 cor0
----
43
-15
43
-87
43
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT - COUNT( * ) - + + COUNT( * ) + + + 5 + - - 94 AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7455
SELECT - COUNT ( * ) - + + COUNT ( * ) + + + 5 + - - 94 AS col1 FROM tab0 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT col0 DIV 76 - + 86 * - col2 + - 99 FROM tab1 AS cor0
----
4976
5750
8157

skipif mysql # not compatible
query I rowsort label-7456
SELECT col0 / 76 - + 86 * - col2 + - 99 FROM tab1 AS cor0
----
4976
5750
8157

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL + 47 - + COUNT( * ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + 47 - + COUNT ( * ) FROM tab0 AS cor0
----
44

query I rowsort
SELECT + + col2 - 54 AS col1 FROM tab1 AS cor0
----
14
42
5

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT ALL - 36 col0, - ( - + ( + + COUNT( * ) ) ) * COUNT( * ) AS col1 FROM tab1
----
-36
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7460
SELECT ALL - 36 col0, - ( - + ( + + COUNT ( * ) ) ) * COUNT ( * ) AS col1 FROM tab1
----
-36
9

query I rowsort
SELECT - col2 * ( - col0 ) + - 12 + + + col0 * 59 FROM tab0
----
15314
1578
5991

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT COUNT( * ) + + 81 + - COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7462
SELECT COUNT ( * ) + + 81 + - COUNT ( * ) FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT + col1 FROM tab2 WHERE + + col2 * CAST( - 33 AS SIGNED ) - + - 94 + - 68 + - col2 + - col2 * + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7463
SELECT + col1 FROM tab2 WHERE + + col2 * CAST ( - 33 AS INTEGER ) - + - 94 + - 68 + - col2 + - col2 * + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT + SUM( ALL + col1 ) * MIN( ALL 4 ) FROM tab0
----
412

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + SUM ( ALL + col1 ) * MIN ( ALL 4 ) FROM tab0
----
412

query I rowsort
SELECT ALL ( 29 ) AS col0 FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT + + ( + + col1 ) + 76 AS col0 FROM tab1 AS cor0
----
123
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT 36 * - COUNT( * ) FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT 36 * - COUNT ( * ) FROM tab1 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE col0 + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 + col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7469
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) - + + 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + - CAST ( NULL AS REAL ) - + + 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7471
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7471
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 70 FROM tab1
----
3570
5950
6370

query II rowsort
SELECT ALL + + ( - + col2 ) AS col1, 71 FROM tab2 AS cor0
----
-23
71
-40
71
-58
71

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab1 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= col0 + + 89 + + + col1 + + 1 * - - col1 + col2
----

query I rowsort
SELECT 90 * + - col2 AS col0 FROM tab0 AS cor0
----
-4230
-8910
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT - ( - MIN( col1 ) ) DIV + - 34 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7477
SELECT - ( - MIN ( col1 ) ) / + - 34 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7478
SELECT ALL - COUNT( 25 ) DIV - - 51 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - COUNT ( 25 ) / - - 51 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 95 + col1 + 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 + ( - col2 ) / - col2 + + 31 <= - 20 + ( col0 ) + - col2
----
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 NOT BETWEEN - 99 AND NULL
----

query II rowsort
SELECT ALL - + 14 AS col0, + col0 AS col2 FROM tab1 AS cor0
----
-14
51
-14
85
-14
91

query II rowsort
SELECT 98 + 35 AS col2, + col1 AS col0 FROM tab2
----
133
51
133
67
133
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7488
SELECT ALL - - COUNT( + CAST( NULL AS SIGNED ) ) + + + 78 AS col2 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - - COUNT ( + CAST ( NULL AS INTEGER ) ) + + + 78 AS col2 FROM tab1 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT - col2 * - + col1 + - + col1 DIV col0 AS col2 FROM tab0 AS cor0
----
210
3802
99

skipif mysql # not compatible
query I rowsort label-7489
SELECT - col2 * - + col1 + - + col1 / col0 AS col2 FROM tab0 AS cor0
----
210
3802
99

query I rowsort
SELECT ALL + col1 + 68 FROM tab0 AS cor0
----
149
69
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col0 - + - 50 + - + col0 * ( 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + 62 + COUNT( * ) + + - 54 AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7492
SELECT + 62 + COUNT ( * ) + + - 54 AS col2 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + 1 - - ( - col2 ) - - ( - - col0 ) * 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT 22 * + - MAX( ALL + 44 ) AS col0 FROM tab0
----
-968

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT 22 * + - MAX ( ALL + 44 ) AS col0 FROM tab0
----
-968

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + - 32 AND - - 29 * - col1
----

query I rowsort
SELECT DISTINCT 6 * + + col2 AS col1 FROM tab2
----
138
240
348

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * + + 80 >= + 52 + - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - + 5 FROM tab2
----
-56
-72
-82

query I rowsort
SELECT - 68 - + col2 FROM tab1
----
-127
-136
-164

query I rowsort
SELECT DISTINCT col1 * - 2 FROM tab0
----
-162
-2
-42

query II rowsort
SELECT col2 AS col0, 73 * - col2 AS col0 FROM tab0
----
10
-730
47
-3431
99
-7227

query I rowsort
SELECT + + col1 * + 75 + + + 73 AS col0 FROM tab2 WHERE NOT - 59 * - col0 = - 71
----
3898
5098
5848

query II rowsort
SELECT col2 AS col0, 66 FROM tab2
----
23
66
40
66
58
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7505
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT 83 NOT IN ( + ( + - 77 ), + col2 / + col2 * ( CAST( + 49 AS DECIMAL ) ) + ( 28 ), - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-7505
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT 83 NOT IN ( + ( + - 77 ), + col2 / + col2 * ( CAST ( + 49 AS REAL ) ) + ( 28 ), - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7506
SELECT - CAST( NULL AS DECIMAL ) * + 96 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT - CAST ( NULL AS REAL ) * + 96 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT DISTINCT col2 DIV + col2 + + col1 AS col0 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT col2 / + col2 + + col1 AS col0 FROM tab0 cor0
----
2
22
82

query II rowsort
SELECT DISTINCT - 10 AS col2, col2 FROM tab2 AS cor0
----
-10
23
-10
40
-10
58

query I rowsort
SELECT DISTINCT - + 0 * + col1 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 27 * - - col1 AS col1 FROM tab2 AS cor0
----
-1377
-1809
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + - SUM( - 17 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + - SUM ( - 17 ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT - - 6 * + col2 * - - 74 * + col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
1690308
47
43956
99
93240
10

query I rowsort
SELECT DISTINCT + col1 * 38 AS col2 FROM tab1 cor0
----
1786
190
532

query I rowsort
SELECT 86 * + ( 61 ) AS col2 FROM tab0
----
5246
5246
5246

query II rowsort
SELECT ( - col0 ) AS col2, + col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7517
SELECT DISTINCT + 8 DIV - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT + 8 / - COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + COUNT( * ) + 53 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7518
SELECT + COUNT ( * ) + 53 FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT DISTINCT + ( + CAST( - 86 AS SIGNED ) ) * + 39 FROM tab1 AS cor0
----
-3354

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + ( + CAST ( - 86 AS INTEGER ) ) * + 39 FROM tab1 AS cor0
----
-3354

query I rowsort
SELECT - 66 * + col2 + - 82 + 72 FROM tab0 AS cor0
----
-3112
-6544
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
59
68
96

query I rowsort
SELECT 73 + + - col1 FROM tab1
----
26
59
68

query I rowsort
SELECT col1 * + 74 FROM tab2
----
3774
4958
5698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE NOT ( NOT col0 IS NOT NULL )
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT + 64 DIV + 19 + + col1 - col1 DIV - col1 AS col2 FROM tab2 cor0
----
55
71
81

skipif mysql # not compatible
query I rowsort label-7525
SELECT + 64 / + 19 + + col1 - col1 / - col1 AS col2 FROM tab2 cor0
----
55
71
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + + col0 + + 8 AS col0 FROM tab2
----
-5
16
3

query I rowsort
SELECT DISTINCT + 84 + 48 - 69 + col1 FROM tab2 WHERE + + 66 IS NULL
----

query I rowsort
SELECT DISTINCT + 75 * - + col1 * - col1 FROM tab2
----
195075
336675
444675

query I rowsort
SELECT + + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL <= 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT + 22 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
198

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT + 22 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7532
SELECT + + COUNT( * ) DIV - + 95, - 31 AS col2 FROM tab2 AS cor0 WHERE NOT ( 40 ) IS NOT NULL
----
0
-31

skipif mysql # not compatible
query II rowsort label-7532
SELECT + + COUNT ( * ) / - + 95, - 31 AS col2 FROM tab2 AS cor0 WHERE NOT ( 40 ) IS NOT NULL
----
0
-31

query I rowsort
SELECT + ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - - 78 * col2 AS col0 FROM tab2 cor0
----
1794
3120
4524

query I rowsort
SELECT ALL + + 90 * 23 + - col2 AS col2 FROM tab1 AS cor0
----
1974
2002
2011

query I rowsort
SELECT ALL - col1 + ( col0 ) + + col0 FROM tab0 AS cor0
----
-51
153
193

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col0
----
0

query I rowsort
SELECT DISTINCT + ( + - 86 ) AS col1 FROM tab2
----
-86

query I rowsort
SELECT ALL 24 * + 62 AS col0 FROM tab0
----
1488
1488
1488

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT DISTINCT 42 DIV - col2 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT 42 / - col2 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT ALL + ( 22 ) AS col1 FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7542
SELECT DISTINCT * FROM tab1 WHERE 4 * - ( - - 39 ) + - 99 <> + 85 * col2 - - col0 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7542
SELECT DISTINCT * FROM tab1 WHERE 4 * - ( - - 39 ) + - 99 <> + 85 * col2 - - col0 + - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT + ( - CAST( + + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7543
SELECT + ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT + col0 AS col0, + col0 * col1 FROM tab2
----
46
2346
64
4928
75
5025

query II rowsort
SELECT + col2 AS col2, col1 * + 13 + - 70 FROM tab2 AS cor0
----
23
593
40
931
58
801

query II rowsort
SELECT + + col1 AS col2, 46 - - 82 AS col1 FROM tab1 AS cor0
----
14
128
47
128
5
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT - 92 * + - ( - + 77 ) + MIN( ALL col1 ) AS col1 FROM tab1 cor0
----
-7079

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - 92 * + - ( - + 77 ) + MIN ( ALL col1 ) AS col1 FROM tab1 cor0
----
-7079

query I rowsort
SELECT col1 + - col2 + - - col1 * col0 FROM tab1
----
371
4256
632

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 90 + + col1 AS col1 FROM tab0
----
111
171
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT ALL - - col0 DIV ( - + col0 ) * - col1 * + col1 + 12 AS col2 FROM tab1 AS cor0 WHERE ( + + col0 ) IS NOT NULL
----
208
2221
37

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL - - col0 / ( - + col0 ) * - col1 * + col1 + 12 AS col2 FROM tab1 AS cor0 WHERE ( + + col0 ) IS NOT NULL
----
208
2221
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT + COUNT( + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT + COUNT ( + col2 ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col1 FROM tab1
----
-84

query II rowsort
SELECT DISTINCT col1 AS col2, - col1 AS col0 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT - 97 AS col2, + col0 AS col0 FROM tab0
----
-97
15
-97
87
-97
97

query II rowsort
SELECT DISTINCT col2, - col0 * - col1 FROM tab1
----
59
425
68
4277
96
714

query I rowsort
SELECT DISTINCT - - 86 * - - 74 + col1 FROM tab0 AS cor0
----
6365
6385
6445

query I rowsort
SELECT + col0 * + 87 FROM tab1 AS cor0
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query II rowsort label-7559
SELECT + SUM( + - col1 ) AS col1, ( - COUNT( * ) ) FROM tab0
----
-103
-3

skipif mysql # not compatible
query II rowsort label-7559
SELECT + SUM ( + - col1 ) AS col1, ( - COUNT ( * ) ) FROM tab0
----
-103
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT - col1 DIV + + col2 * - 22 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7560
SELECT - col1 / + + col2 * - 22 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 1 + - + col2 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT DISTINCT + col0 DIV - - 32 AS col1 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT + col0 / - - 32 AS col1 FROM tab0 cor0
----
0
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT + col2 DIV 62 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT + col2 / 62 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - 37 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 8 * + col1 col0, col2 * - col0 - col1 + + col2 * + col1, - col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 5a1620ea0dee18dc0687decf0ea2e973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col1 FROM tab2
----
74
74
74

query I rowsort
SELECT + 84 * col1 FROM tab1
----
1176
3948
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + COUNT( * ) * - 43 AS col1 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-7569
SELECT + COUNT ( * ) * - 43 AS col1 FROM tab0
----
-129

query I rowsort
SELECT col1 + - 76 + - col1 - col0 AS col2 FROM tab2
----
-122
-140
-151

query I rowsort
SELECT - 92 * 18 * - col1 + + + ( - + col2 ) AS col2 FROM tab2
----
110894
127472
84433

query I rowsort
SELECT - 32 FROM tab0 WHERE - col2 = NULL
----

query I rowsort
SELECT - col0 + col0 + col2 - - + 71 AS col0 FROM tab0 AS cor0
----
118
170
81

query I rowsort
SELECT col2 + - 66 FROM tab0 AS cor0
----
-19
-56
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col2, ( + + col1 ) AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 81 col0, + col2 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + - 17 * - - 94 * - col2 FROM tab0 WHERE NULL <= NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, + 98 col1 FROM tab2 AS cor0
----
51
98
67
98
77
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 - + col2 col2 FROM tab2 AS cor0
----
39
57
74

query II rowsort
SELECT + - col1 AS col0, + col2 FROM tab0 AS cor0 WHERE NOT NULL >= + ( + ( + 67 ) ) * + + 88
----

query II rowsort
SELECT ALL + col0 AS col2, col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + MIN( ALL - + ( + - col1 ) ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + 44 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT + MIN ( ALL - + ( + - col1 ) ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + 44 AND NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + 95 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT + ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT col2 DIV - 46 + + col2 FROM tab2 AS cor0
----
23
40
57

skipif mysql # not compatible
query I rowsort label-7587
SELECT col2 / - 46 + + col2 FROM tab2 AS cor0
----
23
40
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT ALL + col0 DIV - 71 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + col0 / - 71 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT - 72 DIV 6 AS col2 FROM tab1 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-7589
SELECT - 72 / 6 AS col2 FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT 88, COUNT( * ) AS col2 FROM tab1 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-7590
SELECT 88, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
88
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL MIN( col1 ) AS col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL MIN ( col1 ) AS col2 FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT CAST( - - 17 AS SIGNED ) FROM tab1
----
17
17
17

skipif mysql # not compatible
query I rowsort label-7592
SELECT CAST ( - - 17 AS INTEGER ) FROM tab1
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7594
SELECT DISTINCT + SUM( DISTINCT 48 ) AS col1, - SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
48
195

skipif mysql # not compatible
query II rowsort label-7594
SELECT DISTINCT + SUM ( DISTINCT 48 ) AS col1, - SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
48
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - COUNT( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7595
SELECT - COUNT ( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 68 AS col2 FROM tab2 cor0
----
68
68
68

query I rowsort
SELECT - col1 + + ( + 65 ) + 56 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - 5 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT - 36 - - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-27

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - 36 - - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7600
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT - 29 DIV + 92 * - ( - col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT - 29 / + 92 * - ( - col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + + col1 + - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 BETWEEN + + col1 + 61 * - - 9 AND + col1 * - col1
----

query I rowsort
SELECT ALL + 23 + + col0 * + 55 + col2 AS col2 FROM tab0 AS cor0
----
4818
5457
895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT - - col1 + - 28 * 57 / + + CAST( NULL AS SIGNED ) + + - 73 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT - - col1 + - 28 * 57 / + + CAST ( NULL AS INTEGER ) + + - 73 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 + - col1 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT DISTINCT 60 + CAST( 8 AS SIGNED ) FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT 60 + CAST ( 8 AS INTEGER ) FROM tab2 cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 63 AS col0, 37 * + col2 col0 FROM tab1 AS cor0
----
63
2183
63
2516
63
3552

query I rowsort
SELECT + - col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT DISTINCT - + 68 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-68
14
-68
47
-68
5

query II rowsort
SELECT - 70 AS col0, + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 29 * + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 30 + + 34 IS NOT NULL
----

query I rowsort
SELECT - 82 * - col0 + - - col1 + + 61 + + 17 + + - 50 FROM tab2 AS cor0
----
3851
5353
6245

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + ( + + col0 ) col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT MAX( DISTINCT + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7617
SELECT MAX ( DISTINCT + - col0 ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * col2 - col0 + - 52 col0 FROM tab0
----
-2276
-239
-9950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + COUNT( * ) * - + ( + COUNT( * ) ) - - COUNT( + 60 ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7620
SELECT + COUNT ( * ) * - + ( + COUNT ( * ) ) - - COUNT ( + 60 ) FROM tab0 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + + 70 FROM tab2 cor0
----
121
137
147

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + + 70 FROM tab2 cor0
----
121
137
147

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT DISTINCT col1 - - - col2 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT col1 - - - col2 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7624
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-7624
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7625
SELECT + col2 * - col0 + + + 39 DIV + - ( - 68 ) + col1 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4882
NULL
-5010
NULL
-6141
NULL

skipif mysql # not compatible
query II rowsort label-7625
SELECT + col2 * - col0 + + + 39 / + - ( - 68 ) + col1 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4882
NULL
-5010
NULL
-6141
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 36 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL 56 * col0 + + + 78 AS col2, col2 + - - col0 * - ( + col2 ) + + col1, col0 AS col2 FROM tab2 cor0
----
9 values hashing to 14474696fd04c9a289b3860bcccdbf29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT + - COUNT( ALL - + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7629
SELECT + - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( 60 ) + - + col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT col1 * + + 15 * + 33 AS col2 FROM tab1
----
23265
2475
6930

query II rowsort
SELECT + 1, 84 - - 64 AS col2 FROM tab1
----
1
148
1
148
1
148

query I rowsort
SELECT ( + 24 ) FROM tab2
----
24
24
24

query II rowsort
SELECT col2 AS col2, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT DISTINCT + MIN( ALL - col1 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT + MIN ( ALL - col1 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * + 91 FROM tab0
----
-1911
-7371
-91

query I rowsort
SELECT ALL - 36 * + col1 AS col0 FROM tab2
----
-1836
-2412
-2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7639
SELECT ALL + 31 DIV - - 81 AS col0, SUM( + + col1 ) AS col1 FROM tab1
----
0
66

skipif mysql # not compatible
query II rowsort label-7639
SELECT ALL + 31 / - - 81 AS col0, SUM ( + + col1 ) AS col1 FROM tab1
----
0
66

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE + col0 = col1
----

query II rowsort
SELECT ALL + col2, - col0 AS col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT - col0 * - ( + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT - + col2 AS col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT DISTINCT - + COUNT( ALL 50 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT - + COUNT ( ALL 50 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT col1 DIV + col2 + col0 col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7645
SELECT col1 / + col2 + col0 col2 FROM tab2
----
48
65
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT - 53 + + COUNT( * ) AS col2, 95 AS col1 FROM tab0
----
-50
95

skipif mysql # not compatible
query II rowsort label-7646
SELECT - 53 + + COUNT ( * ) AS col2, 95 AS col1 FROM tab0
----
-50
95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - 91 >= - + 60 * + col1 / - + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) + - col2 + + col1
----

skipif mysql # not compatible
query III rowsort label-7647
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - 91 >= - + 60 * + col1 / - + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) + - col2 + + col1
----

query I rowsort
SELECT col0 + + 42 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT col2 + col2 + - col0 FROM tab2 AS cor0
----
0
16
41

query I rowsort
SELECT 60 + - 81 AS col0 FROM tab0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7652
SELECT ALL col0 col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7652
SELECT ALL col0 col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7653
SELECT MAX( CAST( NULL AS SIGNED ) ) + 33 * - 30 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT MAX ( CAST ( NULL AS INTEGER ) ) + 33 * - 30 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7654
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7654
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL COUNT( - col2 ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL COUNT ( - col2 ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + - col2, col1 AS col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT - 18 AS col1 FROM tab1 cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT DISTINCT + - 61 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT + - 61 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - + col2 FROM tab0 AS cor0
----
-196
-62
-97

query II rowsort
SELECT col1, 30 + col0 + + 41 FROM tab1 AS cor0
----
14
122
47
162
5
156

query I rowsort
SELECT + 3 + col0 FROM tab0
----
100
18
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT + COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 + + col2 * + col0 AS col1 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7666
SELECT DISTINCT COUNT( * ) DIV 57 + 94 col2 FROM tab2
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7666
SELECT DISTINCT COUNT ( * ) / 57 + 94 col2 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT ( MAX( + 57 ) ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT ( MAX ( + 57 ) ) FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT COUNT( * ) + + 40 AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT COUNT ( * ) + + 40 AS col0 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ( + MAX( DISTINCT 34 ) ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-7669
SELECT ( + MAX ( DISTINCT 34 ) ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT COUNT( * ) + + MIN( DISTINCT + col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7670
SELECT COUNT ( * ) + + MIN ( DISTINCT + col1 ) FROM tab2
----
54

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 / + 33 ) IS NULL
----

query I rowsort
SELECT + col2 - + col1 * 21 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT - col1 + 55 FROM tab2
----
-12
-22
4

query I rowsort
SELECT ALL + col2 + col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL + SUM( DISTINCT 94 ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + SUM ( DISTINCT 94 ) AS col0 FROM tab1
----
94

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT 94 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - CAST( + 63 AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - CAST ( + 63 AS INTEGER ) ) IS NULL
----
3

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT 21 > ( NULL )
----

query I rowsort
SELECT ALL - 17 FROM tab2 WHERE NOT + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 11 < ( - col0 )
----

query I rowsort
SELECT 26 FROM tab2 WHERE NOT ( col1 ) NOT IN ( ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT COUNT( - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7685
SELECT COUNT ( - col0 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 97 col2 FROM tab2 AS cor0
----
4947
6499
7469

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * - 57 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT ALL - CAST( NULL AS SIGNED ) + 27 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-7688
SELECT ALL - CAST ( NULL AS INTEGER ) + 27 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * col1 + 94 AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
535
6655
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT + MAX( ALL col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT + MAX ( ALL col0 ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7692
SELECT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT 66 * CAST( NULL AS SIGNED ) < CAST( + 35 AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-7692
SELECT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT 66 * CAST ( NULL AS INTEGER ) < CAST ( + 35 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 84 FROM tab0 AS cor0 CROSS JOIN tab1
----
-84

query I rowsort
SELECT DISTINCT - 64 * + col2 + + 94 AS col1 FROM tab0
----
-2914
-546
-6242

query I rowsort
SELECT + col2 AS col2 FROM tab0 cor0 WHERE NULL IN ( ( + col2 ) )
----

query I rowsort
SELECT DISTINCT - 84 + - ( col1 ) FROM tab0 AS cor0
----
-105
-165
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7697
SELECT DISTINCT 69 * - col0 + - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3533
-5870
-6326

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT 69 * - col0 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3533
-5870
-6326

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT ALL + 15 DIV + 6 - + col0 FROM tab1 AS cor0
----
-49
-83
-89

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + 15 / + 6 - + col0 FROM tab1 AS cor0
----
-49
-83
-89

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE + 45 = ( col1 )
----

query I rowsort
SELECT - col0 + col1 * + col1 FROM tab1 cor0
----
-60
145
2118

query I rowsort
SELECT DISTINCT + col2 + 41 AS col1 FROM tab1 cor0
----
100
109
137

query I rowsort
SELECT col1 * + 44 AS col1 FROM tab2 WHERE ( 91 ) BETWEEN - col2 AND 97 - col0
----

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( 97 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NULL = + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT ( COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7705
SELECT DISTINCT ( COUNT ( * ) ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col0 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - + + 17 FROM tab1
----
42
51
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL MIN( DISTINCT + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL MIN ( DISTINCT + col0 ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - 20 NOT IN ( 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT + CAST( - - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7710
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT ( - CAST( NULL AS SIGNED ) ) - col2 * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT ( - CAST ( NULL AS INTEGER ) ) - col2 * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 60 ) FROM tab2 WHERE NOT - col0 + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT + col0 - - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT + col0 - - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - + 44 + 90 * + 14 AS col1 FROM tab2
----
1262
1280
1291

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT + COUNT( + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT + COUNT ( + col1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 51 NOT IN ( col2 - col2 ) AND - col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT MIN( col1 ) FROM tab1 AS cor0 WHERE NOT - col0 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT MIN ( col1 ) FROM tab1 AS cor0 WHERE NOT - col0 < col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7718
SELECT + col1, CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7718
SELECT + col1, CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT DISTINCT + 70 * COUNT( * ) AS col2 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + 70 * COUNT ( * ) AS col2 FROM tab0
----
210

query II rowsort
SELECT ALL 55, col0 FROM tab2 AS cor0
----
55
46
55
64
55
75

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( 98 - col0 + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - - col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 * 9 * col0 FROM tab0 cor0
----
681210
8383419
95175

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col1
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 46 ) NOT IN ( col1 - 13 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7731
SELECT - COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7731
SELECT - COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + 8 * - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7732
SELECT + 8 * - COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT ALL + 42 * - col0 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT DISTINCT - ( 6 ) * + ( + 59 ) + 30 * + col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 35 + + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + ( + MIN( + + 45 ) ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7735
SELECT + ( + MIN ( + + 45 ) ) FROM tab2
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-7736
SELECT DISTINCT col2 DIV col1 col0, 97 FROM tab2
----
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7736
SELECT DISTINCT col2 / col1 col0, 97 FROM tab2
----
0
97

query I rowsort
SELECT ALL - ( - col2 ) + - 7 FROM tab0
----
3
40
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT - col2 * col1 + col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN + 26 AND - col2 * 67
----

skipif mysql # not compatible
query I rowsort label-7738
SELECT - col2 * col1 + col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + 26 AND - col2 * 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT + + COUNT( * ) + - ( + 33 ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7739
SELECT + + COUNT ( * ) + - ( + 33 ) AS col0 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + - 49 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( - ( col1 ) )
----

query I rowsort
SELECT ALL + 86 * - - 68 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 12 + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-103
-52
-98

query I rowsort
SELECT + 97 - - col1 AS col2 FROM tab2 AS cor0
----
148
164
174

query I rowsort
SELECT 58 - ( col1 ) AS col2 FROM tab1 AS cor0
----
11
44
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT DISTINCT col1 + - 47 DIV col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT col1 + - 47 / col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL + COUNT( * ) - + 95 * - 22 FROM tab0
----
2093

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + COUNT ( * ) - + 95 * - 22 FROM tab0
----
2093

query I rowsort
SELECT + 12 + + - ( + - 20 ) * - - ( - col1 ) AS col1 FROM tab2
----
-1008
-1328
-1528

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL = + 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT ALL - col1 + - col0 + col1 DIV 58 DIV - 77 * col1 AS col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL - col1 + - col0 + col1 / 58 / - 77 * col1 AS col0 FROM tab2
----
-141
-142
-97

query II rowsort
SELECT DISTINCT col1 AS col1, col2 + - ( col2 ) + - 18 * + col1 AS col1 FROM tab0 AS cor0
----
1
-18
21
-378
81
-1458

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT + CAST( NULL AS SIGNED ) * - + col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT + CAST ( NULL AS INTEGER ) * - + col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( - col1 ) AND ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col1 + + col0
----

query I rowsort
SELECT ALL + col2 * - + 33 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1947
-2244
-3168

query II rowsort
SELECT 3 * + col0 AS col2, + 53 + + + 9 AS col1 FROM tab1 AS cor0
----
153
62
255
62
273
62

query I rowsort
SELECT - 24 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * + 70 NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT - CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * - 20 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7761
SELECT - CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - 20 FROM tab1 AS cor0
----
60

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( col1 * + col1 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 70 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 92 + - col2 AS col1 FROM tab2 WHERE NOT ( - col0 ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 * - - 77 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT CAST( - col1 AS SIGNED ) * - ( - ( - - 33 ) ) * + + col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-148137
-195657
-85833

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7766
SELECT CAST ( - col1 AS INTEGER ) * - ( - ( - - 33 ) ) * + + col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-148137
-195657
-85833

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL + MIN( DISTINCT col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL + MIN ( DISTINCT col2 ) FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT ALL col0 + + 34 DIV 69 col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7768
SELECT ALL col0 + + 34 / 69 col1 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7769
SELECT DISTINCT col2, col1 + - col1 DIV - - col0 col0 FROM tab0
----
10
21
47
76
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7769
SELECT DISTINCT col2, col1 + - col1 / - - col0 col0 FROM tab0
----
10
21
47
76
99
1

query II rowsort
SELECT - col1 AS col1, + 65 * - col0 * + col1 AS col1 FROM tab2
----
-51
-152490
-67
-326625
-77
-320320

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT + col2 DIV - col2 col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7771
SELECT + col2 / - col2 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( + 58 ) AS col2 FROM tab2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT ALL - col2 * + col1 DIV col1 * col1 + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - col2 * + col1 / col1 * col1 + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 BETWEEN - col0 + - col1 AND + 88
----
51
14
96

query I rowsort
SELECT DISTINCT 3 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( col1 )
----

query I rowsort
SELECT - col0 + - + 33 FROM tab1 AS cor0
----
-118
-124
-84

query I rowsort
SELECT ALL + - ( + + 80 ) * 85 AS col1 FROM tab2 AS cor0
----
-6800
-6800
-6800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7778
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + + 81
----

skipif mysql # not compatible
query III rowsort label-7778
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + + 81
----

query I rowsort
SELECT - + 25 + col1 FROM tab2 cor0
----
26
42
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + + ( COUNT( ALL + - 89 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + + ( COUNT ( ALL + - 89 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query II rowsort
SELECT ALL - + 73 + col1 AS col2, + col0 FROM tab1 cor0
----
-26
91
-59
51
-68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL + SUM( + col1 ) + - SUM( DISTINCT - col0 ) * + - COUNT( * ) + + COUNT( * ) * + + 85 FROM tab0 AS cor0
----
-239

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL + SUM ( + col1 ) + - SUM ( DISTINCT - col0 ) * + - COUNT ( * ) + + COUNT ( * ) * + + 85 FROM tab0 AS cor0
----
-239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 12 + - + 35 * + col1 col2, col1 * - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT - COUNT( * ) - 97 AS col1 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-7784
SELECT - COUNT ( * ) - 97 AS col1 FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL - 80, - COUNT( DISTINCT col0 ) AS col1 FROM tab0
----
-80
-3

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL - 80, - COUNT ( DISTINCT col0 ) AS col1 FROM tab0
----
-80
-3

query I rowsort
SELECT + col2 * + - col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT DISTINCT col0 DIV - + 64 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT col0 / - + 64 AS col0 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT + SUM( DISTINCT + + ( - col0 ) ) * - 99 FROM tab0 AS cor0
----
19701

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT + SUM ( DISTINCT + + ( - col0 ) ) * - 99 FROM tab0 AS cor0
----
19701

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7790
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( + + col1 + + ( + + col2 ) ) = - CAST( - ( + col1 ) AS SIGNED ) + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7790
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( + + col1 + + ( + + col2 ) ) = - CAST ( - ( + col1 ) AS INTEGER ) + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT MIN( + CAST( NULL AS SIGNED ) ) / + - COUNT( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) / + - COUNT ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT - - COUNT( * ) * - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - - COUNT ( * ) * - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query II rowsort
SELECT - col1, col1 FROM tab2
----
-51
51
-67
67
-77
77

query II rowsort
SELECT col1 * col0, col2 FROM tab0
----
1215
47
1827
10
97
99

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 > - 73 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT DISTINCT + CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) * - - col1 + col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3149

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT + CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) * - - col1 + col1 AS col0 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT col1 - - - 7 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 36 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 40 + - col0 + - - 9 FROM tab2 cor0
----
-15
-26
3

query I rowsort
SELECT DISTINCT ( + 18 ) FROM tab1 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col0 col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7803
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7803
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT 43 DIV col0 * + 19 * - - ( - - col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT 43 / col0 * + 19 * - - ( - - col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - 59 ) + + col0 AS col0 FROM tab0 AS cor0
----
-44
28
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT + col2 DIV - - 81 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT + col2 / - - 81 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + ( + col2 ) NOT IN ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + SUM( ALL - col0 ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-7808
SELECT + SUM ( ALL - col0 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + ( - + 86 ) col1 FROM tab1
----
-4386
-7310
-7826

query I rowsort
SELECT DISTINCT - + col0 * - + col1 AS col0 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 <> ( - 34 * - 75 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 49 * col1 + - 21 - - col2 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
-17262
-53157
-9575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE + CAST( - - ( - col0 ) AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE + CAST ( - - ( - col0 ) AS INTEGER ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT 99 * - 63 + + col0 FROM tab1 AS cor0
----
-6146
-6152
-6186

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + - COUNT( * ) - - + 6 - 16 AS col2 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + - COUNT ( * ) - - + 6 - 16 AS col2 FROM tab1 AS cor0
----
-13

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 24 + - col2 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 - + 93 * - 87 - - - col1 <= 65 * + 94
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7818
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT ALL ( col1 ) AS col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL SUM( + ( - 41 ) ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL SUM ( + ( - 41 ) ) FROM tab1
----
-123

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7822
SELECT + 77 * - col1 + + col1, - CAST( NULL AS SIGNED ) + - col2 + - 87 * + - 58 / + 72 FROM tab2 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query II rowsort label-7822
SELECT + 77 * - col1 + + col1, - CAST ( NULL AS INTEGER ) + - col2 + - 87 * + - 58 / + 72 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + ( - 17 ) * + - col2 + 54 * - col1 FROM tab0
----
-3575
-964
1629

query II rowsort
SELECT DISTINCT - col1 * - 55, + col1 FROM tab2
----
2805
51
3685
67
4235
77

query I rowsort
SELECT ALL - 80 AS col2 FROM tab1
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - - ( - ( - + COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7826
SELECT - - ( - ( - + COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + 49 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7829
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 65 * - CAST( NULL AS SIGNED ), 29 )
----

skipif mysql # not compatible
query III rowsort label-7829
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 65 * - CAST ( NULL AS INTEGER ), 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7830
SELECT - col1 * + 17, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1139
NULL
-1309
NULL
-867
NULL

skipif mysql # not compatible
query II rowsort label-7830
SELECT - col1 * + 17, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1139
NULL
-1309
NULL
-867
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7831
SELECT CAST( + + col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7831
SELECT CAST ( + + col1 AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL MAX( + - col1 ) * + - COUNT( * ) + SUM( ALL col1 ) FROM tab2
----
348

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL MAX ( + - col1 ) * + - COUNT ( * ) + SUM ( ALL col1 ) FROM tab2
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + COUNT( ALL - 54 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7833
SELECT + COUNT ( ALL - 54 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 44 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
2149
4357
461

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + ( - + 71 ) + + MAX( + - col1 ) AS col1 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7835
SELECT + ( - + 71 ) + + MAX ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-72

query II rowsort
SELECT - - col1 * + + 22 * + ( - col0 ) + 91 + col0, col2 FROM tab1 AS cor0
----
-15566
96
-9174
59
-93912
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - + MIN( - 66 ) + COUNT( + + col1 ) * - COUNT( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7837
SELECT - + MIN ( - 66 ) + COUNT ( + + col1 ) * - COUNT ( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ( col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * col1 + - ( - 15 ) + - - col0 FROM tab0 AS cor0
----
211
312
3837

query II rowsort
SELECT DISTINCT + + col2, 64 AS col0 FROM tab2 AS cor0
----
23
64
40
64
58
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7841
SELECT DISTINCT - col2 + - col1 - - 68 * - 90 * - + col1 DIV col1 AS col1 FROM tab2 cor0
----
5995
6003
6046

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT - col2 + - col1 - - 68 * - 90 * - + col1 / col1 AS col1 FROM tab2 cor0
----
5995
6003
6046

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 63 AS col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT DISTINCT COUNT( * ), + 97 AS col0 FROM tab1
----
3
97

skipif mysql # not compatible
query II rowsort label-7844
SELECT DISTINCT COUNT ( * ), + 97 AS col0 FROM tab1
----
3
97

query II rowsort
SELECT DISTINCT 11 AS col2, - col0 FROM tab0
----
11
-15
11
-87
11
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT 61 DIV ( + 97 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT 61 / ( + 97 ) FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col0 AS col1, 49 AS col1 FROM tab1
----
51
49
85
49
91
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT - MIN( - 52 ) AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7848
SELECT - MIN ( - 52 ) AS col0 FROM tab1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col0 * + 82 FROM tab0 AS cor0
----
1215
7047
7857

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col0 * + 82 FROM tab0 AS cor0
----
1215
7047
7857

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT + + 85 * - + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-7850
SELECT + + 85 * - + col1 / - col1 AS col0 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT - + SUM( + col0 ) * COUNT( * ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT - + SUM ( + col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
-597

query I rowsort
SELECT + + 61 - - - col2 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT + CAST( - + col0 AS SIGNED ) + + - col2 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-7853
SELECT + CAST ( - + col0 AS INTEGER ) + + - col2 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 IS NULL
----

query I rowsort
SELECT ALL 18 * + col1 AS col2 FROM tab0
----
1458
18
378

query I rowsort
SELECT DISTINCT ( + + 72 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT CAST( - 84 AS SIGNED ) + + - col1 FROM tab2
----
-135
-151
-161

skipif mysql # not compatible
query I rowsort label-7857
SELECT CAST ( - 84 AS INTEGER ) + + - col1 FROM tab2
----
-135
-151
-161

query I rowsort
SELECT col1 * + + col1 AS col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT DISTINCT + COUNT( - 99 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT + COUNT ( - 99 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 * - col1 * - col2 AS col0 FROM tab0 cor0
----
18270
57105
9603

query I rowsort
SELECT - 17 * 3 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-109
-74
-91

query I rowsort
SELECT ALL 93 AS col0 FROM tab2 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + COUNT( ALL + - 77 ) FROM tab1 AS cor0 WHERE NOT NULL > 9
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT + COUNT ( ALL + - 77 ) FROM tab1 AS cor0 WHERE NOT NULL > 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL ( - + COUNT( * ) ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL ( - + COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 52 + - col1 + + col0 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - ( col2 ) + + col0 col1 FROM tab0
----
15
-32
87
77
97
-2

query II rowsort
SELECT DISTINCT - 50 AS col0, col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * - col0 * + 78 AS col0, - col2 FROM tab2
----
-182988
-23
-384384
-40
-391950
-58

query I rowsort
SELECT DISTINCT col0 * + + col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 38 * + + col0 FROM tab2
----
1748
2432
2850

query I rowsort
SELECT ( 87 ) FROM tab1
----
87
87
87

query I rowsort
SELECT 60 * - col0 FROM tab2
----
-2760
-3840
-4500

query I rowsort
SELECT DISTINCT - col0 * 23 AS col1 FROM tab1
----
-1173
-1955
-2093

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND 95
----

query II rowsort
SELECT 24 AS col2, + ( col1 ) AS col1 FROM tab0
----
24
1
24
21
24
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + + 72 NOT IN ( - col1 )
----

query I rowsort
SELECT + col2 + ( - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 / col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + MIN( + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7879
SELECT + MIN ( + col2 ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * + - 12 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE - 25 IS NULL
----

query I rowsort
SELECT + col2 + - col0 * + - 28 FROM tab2 WHERE NOT + 28 = + col0
----
1311
1832
2158

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT DISTINCT - col0 + + 54 DIV col1 AS col1 FROM tab0 AS cor0
----
-15
-43
-85

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT - col0 + + 54 / col1 AS col1 FROM tab0 AS cor0
----
-15
-43
-85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * + + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT + + CAST( + - ( + col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7886
SELECT + + CAST ( + - ( + col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 2 AS col1 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT ALL 62 AS col2 FROM tab0 cor0
----
62
62
62

query I rowsort
SELECT 55 FROM tab0 cor0 WHERE col2 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 59 + - + 27 IN ( + col1 + + col0 + + 69, - col0 )
----

query I rowsort
SELECT + 22 + - + col1 FROM tab0
----
-59
1
21

query I rowsort
SELECT DISTINCT ( - 61 ) AS col0 FROM tab1
----
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col0 + - 73 AS col2 FROM tab2
----
-27
-9
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT MAX( + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT MAX ( + + col1 ) FROM tab1
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 31 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + + 42 * + col0 FROM tab0 AS cor0
----
3644
3975
583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 - - col1 col0 FROM tab2 cor0
----
23
33
7

query I rowsort
SELECT ALL - - col1 - - col1 * + 39 FROM tab1 AS cor0
----
1880
200
560

query I rowsort
SELECT + 86 AS col1 FROM tab1 cor0
----
86
86
86

query I rowsort
SELECT DISTINCT 28 - - col1 AS col2 FROM tab1 AS cor0
----
33
42
75

query I rowsort
SELECT - - 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 19 - - col1 AS col2 FROM tab1
----
24
33
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL - - 86 DIV + - 9 + 36 DIV + 59 + 51 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - - 86 / + - 9 + 36 / + 59 + 51 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7905
SELECT - col2 FROM tab1 WHERE NOT 28 / col1 / CAST( NULL AS DECIMAL ) NOT IN ( + CAST( NULL AS SIGNED ) * 33 + + + 1, col2 )
----

skipif mysql # not compatible
query I rowsort label-7905
SELECT - col2 FROM tab1 WHERE NOT 28 / col1 / CAST ( NULL AS REAL ) NOT IN ( + CAST ( NULL AS INTEGER ) * 33 + + + 1, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7906
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 10 / CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7906
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 10 / CAST ( - + col2 AS INTEGER )
----

query I rowsort
SELECT + - col1 * + 25 FROM tab1 AS cor0
----
-1175
-125
-350

query I rowsort
SELECT - ( - col1 ) * + 32 + + + col2 FROM tab1 AS cor0
----
1572
219
544

query I rowsort
SELECT col1 * + col1 + + col1 AS col0 FROM tab1 cor0
----
210
2256
30

query I rowsort
SELECT ALL + 65 FROM tab0 cor0 WHERE NOT NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT - MIN( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT - MIN ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 1 * col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE ( NULL ) < + ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7914
SELECT ALL + COUNT ( * ) col1 FROM tab1 WHERE ( NULL ) < + ( + col1 )
----
0

query I rowsort
SELECT ALL col0 * - col1 * + - col1 AS col0 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( ALL 90 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( ALL 90 ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col0 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 * + - col0 * - col1 AS col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT + ( + 2 ) AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT + 26 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN col2 + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 30 * - 46 - 38 AS col2 FROM tab1 AS cor0
----
1342

query I rowsort
SELECT DISTINCT + 92 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - ( - COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7923
SELECT ALL - ( - COUNT ( * ) ) col2 FROM tab0
----
3

query I rowsort
SELECT - - ( col2 ) + 79 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT - - col2 / - + 5 + CAST( NULL AS SIGNED ) * + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT - - col2 / - + 5 + CAST ( NULL AS INTEGER ) * + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT + 85 + 7 + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT + 85 + 7 + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 50 + col0 FROM tab1 cor0
----
101
135
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - 19 col0 FROM tab0 AS cor0
----
-18
2
62

query I rowsort
SELECT DISTINCT + 21 + col1 AS col0 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT - - col1 + - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
-2065
-4019
-5558

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT 71 + - + COUNT( * ) FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7932
SELECT 71 + - + COUNT ( * ) FROM tab2 AS cor0
----
68

query II rowsort
SELECT ALL + col0 - + - ( col0 ) AS col0, 80 AS col0 FROM tab1 cor0
----
102
80
170
80
182
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT SUM( DISTINCT + ( - col0 ) ) * + MIN( - col0 ) col1 FROM tab2 WHERE NULL IN ( 7 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7934
SELECT SUM ( DISTINCT + ( - col0 ) ) * + MIN ( - col0 ) col1 FROM tab2 WHERE NULL IN ( 7 )
----
NULL

query I rowsort
SELECT ( - + col0 ) * + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7936
SELECT + 56 DIV + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-7936
SELECT + 56 / + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
18

query I rowsort
SELECT + 5 * - col2 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT ( + col1 ) - 99 * col0 FROM tab1
----
-5035
-8410
-8962

query I rowsort
SELECT + col0 - col2 + - col1 - + 90 * + 19 AS col1 FROM tab0 AS cor0
----
-1654
-1713
-1823

query I rowsort
SELECT ALL + 73 * + + col1 * - + 95 + col1 * - 89 * - - col0 AS col0 FROM tab1 AS cor0
----
-160636
-706598
-72500

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT + + MAX( ALL + - 34 ) - + COUNT( * ) FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + + MAX ( ALL + - 34 ) - + COUNT ( * ) FROM tab0 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT + SUM( DISTINCT - 62 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-7942
SELECT + SUM ( DISTINCT - 62 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT COUNT( ALL - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT COUNT ( ALL - col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - 80 - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-89

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - 80 - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-89

query I rowsort
SELECT DISTINCT + + ( - 76 ) AS col0 FROM tab0 AS cor0
----
-76

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 + - col0 AS col2 FROM tab0 AS cor0
----
-15
32
-87
-77
-97
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL + - COUNT( * ) + - + 19 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + 83 + + 82 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + - COUNT ( * ) + - + 19 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + 83 + + 82 IS NULL
----
NULL

query I rowsort
SELECT - ( - + ( + 68 ) ) FROM tab0
----
68
68
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - ( + + 55 ) FROM tab0
----
-1155
-4455
-55

query I rowsort
SELECT - ( + 77 ) AS col1 FROM tab1
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - 65 + + 28 * - ( + + col1 ) AS col0 FROM tab0
----
10
-653
47
-2333
99
-93

query II rowsort
SELECT 65 AS col1, + 19 AS col0 FROM tab2
----
65
19
65
19
65
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL ( + MIN( col2 ) ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL ( + MIN ( col2 ) ) AS col1 FROM tab2
----
23

query II rowsort
SELECT + - col1 AS col2, + ( + col2 ) * - + 66 FROM tab2 AS cor0 WHERE - ( - col0 ) * + col1 * - 69 + - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT 98 DIV - col0 + + 33 AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT 98 / - col0 + + 33 AS col1 FROM tab1 AS cor0
----
32

query I rowsort
SELECT - col2 + - col2 * - 47 FROM tab1
----
2714
3128
4416

onlyif mysql # DIV for integer division: 
query II rowsort label-7958
SELECT col1 DIV + 55, - col0 AS col1 FROM tab2
----
0
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-7958
SELECT col1 / + 55, - col0 AS col1 FROM tab2
----
0
-46
1
-64
1
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 30 ) >= col2
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT - COUNT( DISTINCT col1 ) + + 46 AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT - COUNT ( DISTINCT col1 ) + + 46 AS col2 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT - ( CAST( - col0 AS SIGNED ) ) / + - 38 + - col0 - - col0 * + 87 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7962
SELECT - ( CAST ( - col0 AS INTEGER ) ) / + - 38 + - col0 - - col0 * + 87 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL + 80 + ( + - COUNT( DISTINCT - 45 ) ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + 80 + ( + - COUNT ( DISTINCT - 45 ) ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT - col2 * + col1 + 43 FROM tab2 AS cor0
----
-1130
-3037
-3843

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT - + COUNT( ALL + - 11 ) - - 22 * 92 FROM tab2 AS cor0
----
2021

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - + COUNT ( ALL + - 11 ) - - 22 * 92 FROM tab2 AS cor0
----
2021

query I rowsort
SELECT col1 * + + col2 + 13 * + 38 + - col0 AS col0 FROM tab1
----
1787
3599
704

query III rowsort
SELECT * FROM tab0 WHERE + - 24 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT ALL COUNT( * ) DIV SUM( + - ( - col0 ) ) - - 18 + 38 AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL COUNT ( * ) / SUM ( + - ( - col0 ) ) - - 18 + 38 AS col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL - COUNT( * ) * 56 AS col0 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - COUNT ( * ) * 56 AS col0 FROM tab0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT DISTINCT - col2 + + col2 + col1 DIV + - 67 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - col2 + + col2 + col1 / + - 67 FROM tab1
----
0

query I rowsort
SELECT + col2 * + - col1 AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + 85 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 31 + + col1 - + - col2 * + ( + col2 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + + 40 * - - col0 AS col2 FROM tab2 cor0
----
1840
2560
3000

query I rowsort
SELECT + col0 * - + 39 FROM tab2 AS cor0
----
-1794
-2496
-2925

query I rowsort
SELECT - + ( - col0 ) * col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + + 34 AND + col2 * col0 + - - 72 * + 98
----
46
51
23

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab1
----
-31

query I rowsort
SELECT DISTINCT + ( 4 ) AS col0 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ( - + SUM( + 20 ) ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7983
SELECT ( - + SUM ( + 20 ) ) FROM tab2
----
-60

query I rowsort
SELECT DISTINCT - 93 + + col1 FROM tab0
----
-12
-72
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT + 86 * + ( + 98 ) + - - ( CAST( NULL AS SIGNED ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7985
SELECT + 86 * + ( + 98 ) + - - ( CAST ( NULL AS INTEGER ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT 5 AS col1, COUNT( * ) FROM tab2
----
5
3

skipif mysql # not compatible
query II rowsort label-7986
SELECT 5 AS col1, COUNT ( * ) FROM tab2
----
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT + - COUNT( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7987
SELECT + - COUNT ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 76 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT - 44 + ( - + col1 ) FROM tab1
----
-49
-58
-91

query I rowsort
SELECT ALL col1 * + col0 * col1 FROM tab0
----
38367
97
98415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7991
SELECT CAST( - - 51 AS SIGNED ) + - - 12 + + 49 * + MIN( ALL - + ( + - 22 ) ) FROM tab0
----
1141

skipif mysql # not compatible
query I rowsort label-7991
SELECT CAST ( - - 51 AS INTEGER ) + - - 12 + + 49 * + MIN ( ALL - + ( + - 22 ) ) FROM tab0
----
1141

query I rowsort
SELECT DISTINCT 25 * - 91 AS col1 FROM tab2
----
-2275

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT - + col1 + - - 84 DIV - 51 AS col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-7993
SELECT - + col1 + - - 84 / - 51 AS col1 FROM tab0 AS cor0
----
-2
-22
-82

query II rowsort
SELECT col0 + + 80 + 87 + + col2 AS col0, - 7 FROM tab2 AS cor0
----
236
-7
271
-7
300
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT ALL - col2 - - + col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT DISTINCT - 23 + col0, ( - + 52 ) AS col0 FROM tab1 AS cor0
----
28
-52
62
-52
68
-52

query I rowsort
SELECT DISTINCT 12 - - col0 FROM tab0 cor0
----
109
27
99

query I rowsort
SELECT ALL 32 * + col1 FROM tab2
----
1632
2144
2464

query I rowsort
SELECT ALL col2 - - 94 AS col2 FROM tab2
----
117
134
152

query I rowsort
SELECT col0 - - 49 - + col1 FROM tab0
----
-17
115
145

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 90 * - + col1 FROM tab1
----
-38250
-384930
-64260

query I rowsort
SELECT - col2 - + + col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT ALL + 99 - - col2 AS col0 FROM tab1
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL COUNT( * ) * - + COUNT( DISTINCT + col1 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL COUNT ( * ) * - + COUNT ( DISTINCT + col1 ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) BETWEEN - 8 * col1 AND 32 + - + 19
----

skipif mysql # not compatible
query I rowsort label-8008
SELECT col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) BETWEEN - 8 * col1 AND 32 + - + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * 9 AS col0, + 48 col2 FROM tab2
----
414
48
576
48
675
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL - MAX( ALL - 79 ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - MAX ( ALL - 79 ) FROM tab1 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT ALL + - 81 AS col2 FROM tab0 cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL + 89 * - - col2 * - 75 FROM tab0
----
-313725
-660825
-66750

onlyif mysql # aggregate syntax: 
query II rowsort label-8016
SELECT - ( - COUNT( * ) ), COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-8016
SELECT - ( - COUNT ( * ) ), COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 47 > NULL
----

query II rowsort
SELECT 49 AS col1, + col2 FROM tab2
----
49
23
49
40
49
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT MIN( 8 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
8

skipif mysql # not compatible
query I rowsort label-8019
SELECT MIN ( 8 ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT + SUM( col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT + SUM ( col0 ) AS col1 FROM tab0 cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT + - 24 DIV col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8022
SELECT + - 24 / col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * - - 90 * col1 AS col1 FROM tab2
----
-234090
-404010
-533610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - 75 col0 FROM tab1
----
-1050
-3525
-375

query I rowsort
SELECT ALL col1 * - col0 * - + 24 AS col0 FROM tab2
----
118272
120600
56304

onlyif mysql # DIV for integer division: 
query II rowsort label-8026
SELECT ALL - col0 DIV 27 AS col0, col1 AS col2 FROM tab1
----
-1
14
-3
47
-3
5

skipif mysql # not compatible
query II rowsort label-8026
SELECT ALL - col0 / 27 AS col0, col1 AS col2 FROM tab1
----
-1
14
-3
47
-3
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - 56 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
194936
258944
516096

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - 56 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
194936
258944
516096

query I rowsort
SELECT 75 * + col0 * + col1 AS col2 FROM tab1
----
31875
320775
53550

query I rowsort
SELECT col1 * col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT COUNT( * ) + - MIN( col2 ) * + 14 FROM tab1
----
-823

skipif mysql # not compatible
query I rowsort label-8030
SELECT COUNT ( * ) + - MIN ( col2 ) * + 14 FROM tab1
----
-823

query I rowsort
SELECT DISTINCT + - 1 * - 4 * + col0 + 80 FROM tab0 AS cor0
----
140
428
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT ALL CAST( - col0 AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL CAST ( - col0 AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <> + - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE - + 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + - col1 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT DISTINCT - col0 DIV - + col2 + - + col2 * 42 FROM tab0 AS cor0
----
-1974
-412
-4158

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - col0 / - + col2 + - + col2 * 42 FROM tab0 AS cor0
----
-1974
-412
-4158

query I rowsort
SELECT DISTINCT - + 52 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
4514
4945
733

query I rowsort
SELECT ALL - - 99 * 86 + - 27 FROM tab2 AS cor0
----
8487
8487
8487

query I rowsort
SELECT DISTINCT - ( - - col1 ) - - col2 AS col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + - 54 * col2 + col2 + col1 + + 46 * + 90 FROM tab0 AS cor0
----
-1106
1730
3631

query I rowsort
SELECT ALL + col0 + - + col2 + + - col2 FROM tab2
----
-16
-41
0

query II rowsort
SELECT DISTINCT + col1, - col0 AS col0 FROM tab1
----
14
-51
47
-91
5
-85

query II rowsort
SELECT col0 AS col2, 19 * col0 * col1 AS col1 FROM tab1
----
51
13566
85
8075
91
81263

query II rowsort
SELECT ALL + col2, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL - 0 * - - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT COUNT( * ) * - 29 AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT COUNT ( * ) * - 29 AS col2 FROM tab2
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 70 * + col2 * col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT ALL - 24, - MAX( DISTINCT - + 44 ) AS col1 FROM tab0 AS cor0
----
-24
44

skipif mysql # not compatible
query II rowsort label-8050
SELECT ALL - 24, - MAX ( DISTINCT - + 44 ) AS col1 FROM tab0 AS cor0
----
-24
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT MIN( - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8052
SELECT MIN ( - col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT - 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL - - col2 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8055
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - col0 + - + CAST( - - 89 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - col0 + - + CAST ( - - 89 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT - SUM( - CAST( NULL AS SIGNED ) ) + - ( - 86 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) + - ( - 86 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT 43 + - MIN( + col0 ) AS col0 FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8057
SELECT 43 + - MIN ( + col0 ) AS col0 FROM tab1 cor0
----
-8

query I rowsort
SELECT + ( - 90 ) * - ( - col2 ) + - 17 FROM tab2
----
-2087
-3617
-5237

query I rowsort
SELECT DISTINCT - 5 * + col1 AS col2 FROM tab0
----
-105
-405
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT ALL col0 DIV - + col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL col0 / - + col0 AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE + + 92 / 86 NOT IN ( - 70 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2, 23 FROM tab1
----
59
23
68
23
96
23

query II rowsort
SELECT 93 AS col2, - ( + 84 ) AS col1 FROM tab1, tab2 AS cor0
----
18 values hashing to 9464bdddaa75528aea411d3a73d9e105

query II rowsort
SELECT ALL - col1 + + 70, + col0 AS col0 FROM tab0
----
-11
15
49
87
69
97

query II rowsort
SELECT ALL + + 44 + - col1 + + ( + col2 ), + col2 AS col0 FROM tab2 AS cor0
----
16
23
35
58
7
40

query I rowsort
SELECT - + 88 AS col0 FROM tab1 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8067
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= CAST( NULL AS SIGNED ) * + + 70 + col0 + 47 + 90 * - col0
----

skipif mysql # not compatible
query III rowsort label-8067
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= CAST ( NULL AS INTEGER ) * + + 70 + col0 + 47 + 90 * - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 36 * - + ( - 34 ) / - 35 * + - col0 - col0 + + + col0 < - + ( 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + col2 IS NOT NULL
----

query II rowsort
SELECT ALL 33, - col0 * + 63 - + - 18 AS col1 FROM tab2
----
33
-2880
33
-4014
33
-4707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8072
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT ALL 68 AS col2, 82 * MAX( + col0 ) FROM tab0
----
68
7954

skipif mysql # not compatible
query II rowsort label-8073
SELECT ALL 68 AS col2, 82 * MAX ( + col0 ) FROM tab0
----
68
7954

query I rowsort
SELECT ALL 17 * - 16 FROM tab2 cor0
----
-272
-272
-272

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= + ( + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 97 ) col0 FROM tab0 cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8077
SELECT DISTINCT 34 AS col2, COUNT( DISTINCT - 19 ) FROM tab2
----
34
1

skipif mysql # not compatible
query II rowsort label-8077
SELECT DISTINCT 34 AS col2, COUNT ( DISTINCT - 19 ) FROM tab2
----
34
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= col0 + + col2
----

query I rowsort
SELECT + + 9 * - ( col0 ) FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8080
SELECT col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE + 31 < - ( - - 83 ) * CAST( - col2 AS DECIMAL ) * + ( + col2 )
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8080
SELECT col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE + 31 < - ( - - 83 ) * CAST ( - col2 AS REAL ) * + ( + col2 )
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col2 ) * - - col1 >= + - ( - col1 ) * + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 * col2 * - 82 AS col2 FROM tab2 AS cor0
----
-131200
-275848
-43378

query I rowsort
SELECT - col0 * + + 99 AS col0 FROM tab0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT MAX( + + col1 ) DIV - - 35 col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8084
SELECT DISTINCT MAX ( + + col1 ) / - - 35 col2 FROM tab1
----
1

query I rowsort
SELECT col0 + + ( + col0 ) + - - col1 AS col1 FROM tab0
----
111
195
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8086
SELECT * FROM tab1 WHERE ( NOT + ( + col1 ) + + - CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8086
SELECT * FROM tab1 WHERE ( NOT + ( + col1 ) + + - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 36 - - + col0 FROM tab1 WHERE + - 11 IS NOT NULL
----
121
127
87

query I rowsort
SELECT col0 * + ( + + col0 ) + + 90 FROM tab2
----
2206
4186
5715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col0 FROM tab2
----
-93

query III rowsort
SELECT * FROM tab1 WHERE col2 * col2 = - ( + + col0 )
----

query I rowsort
SELECT DISTINCT - 19 + - + 9 AS col0 FROM tab2 cor0
----
-28

query I rowsort
SELECT ALL + col2 + + col0 AS col1 FROM tab2 cor0
----
104
133
69

query II rowsort
SELECT + col0 + col0 AS col2, 57 * - col2 FROM tab0 AS cor0
----
174
-570
194
-5643
30
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL COUNT( 43 ) * - 73 FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL COUNT ( 43 ) * - 73 FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT 31 * + - COUNT( * ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8095
SELECT 31 * + - COUNT ( * ) AS col2 FROM tab0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 38 ) col1 FROM tab1
----
38
38
38

query I rowsort
SELECT col0 * - 50 FROM tab0
----
-4350
-4850
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8098
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8100
SELECT ALL - COUNT( * ), 95 + + COUNT( * ) + COUNT( DISTINCT + ( + col2 ) ) + + + 2 DIV + SUM( + 8 ) AS col1 FROM tab2 AS cor0
----
-3
101

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL - COUNT ( * ), 95 + + COUNT ( * ) + COUNT ( DISTINCT + ( + col2 ) ) + + + 2 / + SUM ( + 8 ) AS col1 FROM tab2 AS cor0
----
-3
101

query I rowsort
SELECT + col2 * - 0 - + col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT - + 60, - col2 AS col2 FROM tab1 AS cor0
----
-60
-59
-60
-68
-60
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 69 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 79 >= - col1
----

query I rowsort
SELECT 95 * + 80 + - col0 + col2 + - col0 AS col0 FROM tab1 AS cor0
----
7486
7489
7594

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT MIN( ALL + 98 ) AS col1 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8108
SELECT MIN ( ALL + 98 ) AS col1 FROM tab1 AS cor0
----
98

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 56 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab1
----
-7

query I rowsort
SELECT + 22 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - + COUNT( col2 ) * + - 57 AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8112
SELECT - + COUNT ( col2 ) * + - 57 AS col2 FROM tab2 AS cor0
----
171

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + 80 + - 48 * - 37 + - 74 + - 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 * - col2 AS col0 FROM tab0 AS cor0
----
-235
-495
-50

query I rowsort
SELECT + - col0 * + - 11 FROM tab2 cor0
----
506
704
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN col2 AND - col2 - + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN col2 AND - col2 - + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 + + + ( - - col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT ( col0 ) + + col1 * col0 FROM tab1
----
4368
510
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + + col0 col0 FROM tab2 AS cor0
----
22
33
4

query I rowsort
SELECT + 79 + col2 FROM tab0 cor0
----
126
178
89

query I rowsort
SELECT - col1 + - 59 FROM tab0 AS cor0
----
-140
-60
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 57 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col0 + 9 AS col2 FROM tab0 AS cor0
----
106
24
96

query I rowsort
SELECT DISTINCT - col0 - - + col1 AS col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8126
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + - CAST( NULL AS SIGNED ) * - - CAST( - col1 AS DECIMAL ) + - col2 AS col1 FROM tab2 WHERE NOT 89 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + CAST ( NULL AS REAL ) + + - CAST ( NULL AS INTEGER ) * - - CAST ( - col1 AS REAL ) + - col2 AS col1 FROM tab2 WHERE NOT 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL - MAX( DISTINCT - 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - MAX ( DISTINCT - 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT + 74 * COUNT( * ) * - 86 * + COUNT( * ) FROM tab1
----
-57276

skipif mysql # not compatible
query I rowsort label-8128
SELECT + 74 * COUNT ( * ) * - 86 * + COUNT ( * ) FROM tab1
----
-57276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT DISTINCT col1 * - - CAST( + col1 AS SIGNED ) FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT col1 * - - CAST ( + col1 AS INTEGER ) FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - COUNT( * ) * - - 14 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-8130
SELECT - COUNT ( * ) * - - 14 FROM tab1
----
-42

query I rowsort
SELECT col0 - + - 48 FROM tab1
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL + COUNT( * ) * + 56 * + 79 FROM tab1 AS cor0
----
13272

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL + COUNT ( * ) * + 56 * + 79 FROM tab1 AS cor0
----
13272

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 77 BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT ALL 90 + - ( 93 ) FROM tab2 cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 29 AS col2, col0 col2 FROM tab0 AS cor0
----
-29
15
-29
87
-29
97

query II rowsort
SELECT ALL + 0 - col0 AS col0, + ( + 71 ) AS col1 FROM tab1
----
-51
71
-85
71
-91
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8137
SELECT ALL - + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - + MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col2 FROM tab0 WHERE - col0 IS NULL
----
NULL

query II rowsort
SELECT col0 + + col2 AS col2, + 52 FROM tab0
----
196
52
62
52
97
52

query II rowsort
SELECT col1 * - col1 * - col1 AS col0, - col0 FROM tab1
----
103823
-91
125
-85
2744
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT SUM( DISTINCT + - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8140
SELECT SUM ( DISTINCT + - col1 ) AS col2 FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col2 col2, col1 * + col0 * - - col1 * + col1 * - col2 FROM tab0 cor0
----
-705
-374665905
-870
-8057070
-9603
-9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 / + 51 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= - ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT ALL - 68 DIV + col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - 68 / + col0 FROM tab1 cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 59 AND - 75
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT ALL CAST( - MAX( ALL col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL CAST ( - MAX ( ALL col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT - - SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT - - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT DISTINCT COUNT( * ) col0, COUNT( * ) col2 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8148
SELECT DISTINCT COUNT ( * ) col0, COUNT ( * ) col2 FROM tab1
----
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 74 + 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8150
SELECT ALL + COUNT( * ) DIV - - 85 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8150
SELECT ALL + COUNT ( * ) / - - 85 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT - ( - MIN( ALL + col0 ) ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8151
SELECT - ( - MIN ( ALL + col0 ) ) AS col1 FROM tab0
----
15

query II rowsort
SELECT col2, col1 * 89 * col1 FROM tab0
----
10
39249
47
583929
99
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8153
SELECT * FROM tab2 AS cor0 WHERE NOT 28 - 6 * - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8153
SELECT * FROM tab2 AS cor0 WHERE NOT 28 - 6 * - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col0, col1 AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab1 WHERE + 45 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 39 col0 FROM tab2
----
1794
2496
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL COUNT( * ) + 56 AS col1 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL COUNT ( * ) + 56 AS col1 FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL + COUNT( * ) + + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + COUNT ( * ) + + 96 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT col1 - - CAST( - col0 + - col1 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8159
SELECT col1 - - CAST ( - col0 + - col1 AS INTEGER ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) >= - 61 / col2
----

query I rowsort
SELECT col2 + - 53 AS col0 FROM tab0
----
-43
-6
46

query I rowsort
SELECT DISTINCT + 37 * 98 FROM tab2
----
3626

query I rowsort
SELECT ALL 83 * 89 FROM tab2 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT MIN( ALL + 44 ) + 26 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-8164
SELECT MIN ( ALL + 44 ) + 26 FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT DISTINCT - CAST( + 82 AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-82

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - CAST ( + 82 AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-82

query I rowsort
SELECT ALL + 15 AS col1 FROM tab2 WHERE NULL IS NULL
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT + 12 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT + 12 / col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 < col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8169
SELECT + SUM( CAST( NULL AS SIGNED ) ) + MAX( + col1 ) * - 92 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) + MAX ( + col1 ) * - 92 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + 46 FROM tab1
----
105
114
142

query III rowsort
SELECT ALL * FROM tab0 WHERE 71 NOT BETWEEN NULL AND - col0 * - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - 88 FROM tab1
----
-3
-37
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 88 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT ALL 57 DIV + 81 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL 57 / + 81 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT COUNT( * ) * + 64 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-8176
SELECT COUNT ( * ) * + 64 FROM tab0
----
192

query I rowsort
SELECT DISTINCT - 54 + + 84 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT CAST( NULL AS SIGNED ) * - ( + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT CAST ( NULL AS INTEGER ) * - ( + col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - 1 AS col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * ( ( 54 ) ) + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8182
SELECT DISTINCT - MAX( + col2 ) + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT - MAX ( + col2 ) + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + MIN( 49 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-8183
SELECT + MIN ( 49 ) AS col1 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT + COUNT( * ) * COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8184
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
81

query I rowsort
SELECT DISTINCT - + 43 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT col1 * 20 AS col2 FROM tab2 cor0
----
1020
1340
1540

query I rowsort
SELECT + 89 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT DISTINCT + 50 DIV + col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + 50 / + col2 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT 7 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND col1 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL + - MAX( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL + - MAX ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - 61 * + 72 FROM tab1 AS cor0
----
-4392
-4392
-4392

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT col0 DIV ( + 33 * col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT col0 / ( + 33 * col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 29 * - col0 AS col1 FROM tab0 AS cor0
----
-2523
-2813
-435

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( col0 ) ) IN ( - col1 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + + COUNT( * ) * 20 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8196
SELECT + + COUNT ( * ) * 20 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( 20 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND - col2 * - col2 + ( + 27 + + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 30 / col0 + 14 ) > - col2 * col1 + col2
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT ( + 82 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT MIN( DISTINCT col0 ) col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8201
SELECT MIN ( DISTINCT col0 ) col1 FROM tab0
----
15

query I rowsort
SELECT ALL col1 * + - col2 * col2 AS col2 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL CAST( NULL AS SIGNED ) * 16 * COUNT( 81 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL CAST ( NULL AS INTEGER ) * 16 * COUNT ( 81 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT ALL - 28 DIV + - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL - 28 / + - COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT 41 * + COUNT( * ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT 41 * + COUNT ( * ) FROM tab1
----
123

query I rowsort
SELECT DISTINCT col2 + - col0 AS col0 FROM tab0 WHERE ( - col2 ) NOT BETWEEN ( 79 ) AND 21
----
-77
2
32

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col2 + col1
----

query I rowsort
SELECT DISTINCT ( + + ( - ( + col0 ) ) ) AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + 22 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL + 91 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + 91 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT - - CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8212
SELECT - - CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL - + 31 DIV - 42 * 20 + 68 * SUM( ALL col0 ) FROM tab0 AS cor0
----
13532

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - + 31 / - 42 * 20 + 68 * SUM ( ALL col0 ) FROM tab0 AS cor0
----
13532

query I rowsort
SELECT DISTINCT col2 * + + col1 + - + col1 * + 75 AS col0 FROM tab2
----
-1139
-2652
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL + MIN( - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + MIN ( - col2 ) FROM tab0 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 39 col2 FROM tab2 AS cor0
----
103
114
85

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IN ( 62 )
----

query I rowsort
SELECT DISTINCT + col1 * col1 * + - col2 + + 81 AS col0 FROM tab2 AS cor0
----
-237079
-260281
-59742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT ALL 69 FROM tab2 cor0 WHERE col0 * + + CAST( NULL AS SIGNED ) * col2 + col0 IS NULL
----
69
69
69

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL 69 FROM tab2 cor0 WHERE col0 * + + CAST ( NULL AS INTEGER ) * col2 + col0 IS NULL
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT ( + col1 ) * - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ( + col1 ) * - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT ALL + COUNT( * ) * - + COUNT( * ) + 0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) + 0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + col2 col1 FROM tab0 AS cor0
----
107
109
295

query II rowsort
SELECT - + col1, col1 - + col1 * - 48 AS col0 FROM tab2 cor0
----
-51
2499
-67
3283
-77
3773

query I rowsort
SELECT DISTINCT + 48 - - 8 FROM tab0 AS cor0
----
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NULL OR 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8227
SELECT - ( + col2 ) * col1 FROM tab2 AS cor0 WHERE - col2 BETWEEN + CAST( NULL AS DECIMAL ) * + col1 + - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8227
SELECT - ( + col2 ) * col1 FROM tab2 AS cor0 WHERE - col2 BETWEEN + CAST ( NULL AS REAL ) * + col1 + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 1 / - 94 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT 95 - COUNT( * ) AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-8229
SELECT 95 - COUNT ( * ) AS col0 FROM tab2
----
92

query I rowsort
SELECT 85 - + col2 AS col0 FROM tab2
----
27
45
62

query II rowsort
SELECT DISTINCT + col1 * + - col1, - col1 AS col0 FROM tab2
----
-2601
-51
-4489
-67
-5929
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL COUNT( * ) * 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL COUNT ( * ) * 54 FROM tab1
----
162

query I rowsort
SELECT ALL 13 + - + 29 + - 52 FROM tab0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT - MAX( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8234
SELECT DISTINCT - MAX ( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - 99 BETWEEN ( NULL ) AND + 87 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 71
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8237
SELECT - COUNT( * ) DIV - COUNT( * ) - + 14 * 7 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8237
SELECT - COUNT ( * ) / - COUNT ( * ) - + 14 * 7 FROM tab2 AS cor0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 21 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT + + COUNT( * ) * SUM( ALL 13 ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + + COUNT ( * ) * SUM ( ALL 13 ) FROM tab0 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT MIN( ALL + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT MIN ( ALL + + col2 ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT - - 0 - - COUNT( DISTINCT - 38 ) * - 9 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT - - 0 - - COUNT ( DISTINCT - 38 ) * - 9 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - - col2 * + col1 * col1 * - 18 + - col0 * - 7 AS col2 FROM tab2 AS cor0
----
-1076492
-4268432
-4685991

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8244
SELECT DISTINCT - + col0 * col0 * col0 * - + col1 / - CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT - + col0 * col0 * col0 * - + col1 / - CAST ( NULL AS REAL ) + col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL - COUNT( * ) * - 93 AS col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL - COUNT ( * ) * - 93 AS col1 FROM tab2 AS cor0
----
279

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 IN ( + 3, col2 * - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col0 <= + col2
----

query I rowsort
SELECT ALL 78 * - col1 AS col1 FROM tab1 AS cor0
----
-1092
-3666
-390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8249
SELECT 68 AS col2 FROM tab1 AS cor0 WHERE NOT - ( ( - - ( + 31 ) ) ) * - CAST( NULL AS DECIMAL ) - - col2 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8249
SELECT 68 AS col2 FROM tab1 AS cor0 WHERE NOT - ( ( - - ( + 31 ) ) ) * - CAST ( NULL AS REAL ) - - col2 <> ( NULL )
----

query I rowsort
SELECT ALL + - 52 - + - col1 FROM tab1 WHERE NOT ( col1 ) < col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - - col1
----

query I rowsort
SELECT - 66 * - + col2 * - 38 FROM tab0
----
-117876
-248292
-25080

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT ( - col2 ) DIV 91 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT ( - col2 ) / 91 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, - 11 AS col0 FROM tab2
----
-23
-11
-40
-11
-58
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL MIN( - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL MIN ( - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT col1 + 23 AS col2 FROM tab1 cor0
----
28
37
70

query I rowsort
SELECT ALL + col0 + + col1 * 80 * + + 70 AS col1 FROM tab1 AS cor0
----
263291
28085
78451

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 90 >= ( + col2 * - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT ALL + ( - col2 ) DIV col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + ( - col2 ) / col2 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - 42 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-42
-42
-42

query I rowsort
SELECT 87 - + - 40 FROM tab0 AS cor0
----
127
127
127

query I rowsort
SELECT - ( + 42 ) + col0 FROM tab2 AS cor0
----
22
33
4

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 90 NOT BETWEEN + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + 37 + - + col0 FROM tab1 AS cor0
----
-43
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + 49 + + 78 + - - MIN( DISTINCT - col2 ) FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-8268
SELECT + 49 + + 78 + - - MIN ( DISTINCT - col2 ) FROM tab2 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT MIN( DISTINCT - col1 ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-8269
SELECT MIN ( DISTINCT - col1 ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * col1 * - col2 * - ( - 41 ) <> ( - ( + col1 ) + 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT col1 * + col1 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT col1 * + col1 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT ( + - CAST( NULL AS SIGNED ) ) + + col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8273
SELECT ( + - CAST ( NULL AS INTEGER ) ) + + col1 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8275
SELECT DISTINCT * FROM tab1 WHERE NULL <= 9 + CAST( - col0 AS SIGNED ) - - col2
----

skipif mysql # not compatible
query III rowsort label-8275
SELECT DISTINCT * FROM tab1 WHERE NULL <= 9 + CAST ( - col0 AS INTEGER ) - - col2
----

query I rowsort
SELECT ALL + - 80 * + - col0 + - - col1 FROM tab1 WHERE NOT + col0 IS NULL
----
4094
6805
7327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

query II rowsort
SELECT DISTINCT col0, 37 AS col1 FROM tab2 AS cor0
----
46
37
64
37
75
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT - col2 DIV + 51 - - col0 + - - col1 col0 FROM tab2 AS cor0
----
141
141
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8280
SELECT - col2 / + 51 - - col0 + - - col1 col0 FROM tab2 AS cor0
----
141
141
97

query I rowsort
SELECT DISTINCT - - col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT + - ( + CAST( NULL AS SIGNED ) ) * + + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + - ( + CAST ( NULL AS INTEGER ) ) * + + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
82

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( 9 * + col0 * + + 37 * + ( - col1 ) )
----

query I rowsort
SELECT col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col1 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8287
SELECT * FROM tab0 cor0 WHERE NOT - col0 = - col2 + + CAST( - col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8287
SELECT * FROM tab0 cor0 WHERE NOT - col0 = - col2 + + CAST ( - col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT COUNT( * ) * + - 19 AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT COUNT ( * ) * + - 19 AS col2 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8289
SELECT ALL * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) > + col2
----

skipif mysql # not compatible
query III rowsort label-8289
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) > + col2
----

query I rowsort
SELECT DISTINCT 82 FROM tab0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT + COUNT( DISTINCT + col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8291
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT DISTINCT - col2 + + + ( - col2 ) DIV 69 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - col2 + + + ( - col2 ) / 69 AS col0 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 + col1 col2 FROM tab1
----
53
62
95

query I rowsort
SELECT ALL - ( - col1 ) + + + 30 + + - col2 FROM tab1
----
-24
-52
9

query I rowsort
SELECT - + col0 * - - 16 AS col2 FROM tab0 AS cor0
----
-1392
-1552
-240

query II rowsort
SELECT 72 AS col1, + col2 FROM tab0 AS cor0
----
72
10
72
47
72
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 51 AS col2, - 5 + + col0 col0 FROM tab1 AS cor0
----
-51
46
-51
80
-51
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8298
SELECT ALL - col1 + + ( + - ( + 70 ) ) + - col2 / - CAST( NULL AS SIGNED ) AS col2, - col1 AS col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-8298
SELECT ALL - col1 + + ( + - ( + 70 ) ) + - col2 / - CAST ( NULL AS INTEGER ) AS col2, - col1 AS col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 40 * + + 49 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT ALL col2 * - col0 + 75 + - - col0 DIV + + col2 FROM tab0
----
-630
-787
-9528

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL col2 * - col0 + 75 + - - col0 / + + col2 FROM tab0
----
-630
-787
-9528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * - 0 col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8302
SELECT col2 * - + 50 + + ( + - CAST( NULL AS DECIMAL ) ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT col2 * - + 50 + + ( + - CAST ( NULL AS REAL ) ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + 36 FROM tab1
----
-15
-49
-55

query I rowsort
SELECT - col1 + + - col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + ( + 78 ) AS col1 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8306
SELECT ALL + - CAST( NULL AS SIGNED ) * + 88 AS col1, - col0 * + col1 * col0 FROM tab1 AS cor0
----
NULL
-36125
NULL
-36414
NULL
-389207

skipif mysql # not compatible
query II rowsort label-8306
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 88 AS col1, - col0 * + col1 * col0 FROM tab1 AS cor0
----
NULL
-36125
NULL
-36414
NULL
-389207

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT 7 DIV + + 52 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT 7 / + + 52 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 36 * - - 96 AS col0 FROM tab0
----
3456
3456
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL MAX( DISTINCT + - 9 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL MAX ( DISTINCT + - 9 ) FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * + 79 * col2 * + 65 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT 84 * + col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8311
SELECT 84 * + col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8313
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
3

query I rowsort
SELECT ALL 17 + 72 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + 43 IS NULL )
----

query I rowsort
SELECT ALL - col1 + col0 + + 12 FROM tab2 AS cor0
----
-1
20
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8317
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - 2 FROM tab0 AS cor0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-8317
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - 2 FROM tab0 AS cor0
----
NULL
-2

query I rowsort
SELECT + 38 * - 18 FROM tab1 AS cor0
----
-684
-684
-684

query I rowsort
SELECT + 62 AS col2 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT MIN( + + 27 ) + - + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8320
SELECT MIN ( + + 27 ) + - + COUNT ( * ) FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT + 91 + + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT + 91 + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 56 + + col0 AS col0 FROM tab0
----
-41
31
41

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) < + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + + 34 FROM tab0
----
-47
13
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT DISTINCT - 44 + - col2 + + 39 DIV + col0 + + 11 FROM tab2 AS cor0
----
-56
-73
-91

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT - 44 + - col2 + + 39 / + col0 + + 11 FROM tab2 AS cor0
----
-56
-73
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL + COUNT( * ) + - 15 AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL + COUNT ( * ) + - 15 AS col0 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + ( - - 47 ) * - ( - col1 ) + - 44 * 57 - - + col0 AS col2 FROM tab2 AS cor0
----
-65
1175
716

query II rowsort
SELECT + - col1 + ( + col0 ) AS col1, + col0 * col2 * - col2 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT SUM( - + 69 ) * - + COUNT( * ) FROM tab2
----
621

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT SUM ( - + 69 ) * - + COUNT ( * ) FROM tab2
----
621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT - CAST( - 14 AS SIGNED ) FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8330
SELECT - CAST ( - 14 AS INTEGER ) FROM tab2
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 61 + + col1 col2 FROM tab2 cor0
----
-10
16
6

query I rowsort
SELECT ALL - + 64 * - - col0 FROM tab2 cor0
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT DISTINCT - 11 DIV - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - 11 / - COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col0 + - 78 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT - SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + - MIN( ALL - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8336
SELECT + - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT SUM( ALL + + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT SUM ( ALL + + col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8338
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8338
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 WHERE - col1 IN ( col2 + + + 56 + col1 * ( col1 ), col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL ( - COUNT( ALL - + col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL ( - COUNT ( ALL - + col1 ) ) FROM tab2
----
-3

query I rowsort
SELECT - ( + - col1 ) * - 99 AS col0 FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT ALL 16 * - col2 FROM tab0
----
-1584
-160
-752

query II rowsort
SELECT DISTINCT col1, + 4 * - 6 FROM tab1
----
14
-24
47
-24
5
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT COUNT( * ) * + ( - 21 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT COUNT ( * ) * + ( - 21 ) FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8345
SELECT DISTINCT + col2, + col2 * CAST( 99 AS SIGNED ), - col0 + - - col1 AS col0 FROM tab1
----
9 values hashing to 7067cefbab19807bc20ce339e34e3143

skipif mysql # not compatible
query III rowsort label-8345
SELECT DISTINCT + col2, + col2 * CAST ( 99 AS INTEGER ), - col0 + - - col1 AS col0 FROM tab1
----
9 values hashing to 7067cefbab19807bc20ce339e34e3143

query II rowsort
SELECT - - 12, col1 FROM tab0 AS cor0
----
12
1
12
21
12
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT DISTINCT ( - 69 ) DIV ( col2 ) DIV + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT ( - 69 ) / ( col2 ) / + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - MIN( + + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - MIN ( + + col0 ) FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + ( + + 26 ) ) col0 FROM tab2 cor0
----
-26
-26
-26

query I rowsort
SELECT ALL + 33 AS col2 FROM tab1 cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT MIN( + + col2 ) * + SUM( DISTINCT + + col1 ) AS col1 FROM tab1
----
3894

skipif mysql # not compatible
query I rowsort label-8351
SELECT MIN ( + + col2 ) * + SUM ( DISTINCT + + col1 ) AS col1 FROM tab1
----
3894

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 * + 92 col2 FROM tab1 AS cor0
----
-4678
-7815
-8325

query I rowsort
SELECT + + col1 * - col0 + + col2 + - 64 + - 34 FROM tab1 AS cor0
----
-4307
-464
-716

query I rowsort
SELECT + + col2 + - + col1 - + col0 + + 49 FROM tab2 cor0
----
-25
-35
-52

query III rowsort
SELECT DISTINCT - 98 + - col2 AS col0, 26 * ( - col2 ), - 34 AS col2 FROM tab0 AS cor0
----
9 values hashing to 921d53fc42e908b384360690259ff942

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL SUM( - 27 ) + + 94 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL SUM ( - 27 ) + + 94 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT col2 * + col1 + + - col0 FROM tab2 cor0 WHERE NULL IS NULL
----
1127
3016
3811

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8360
SELECT DISTINCT + col1 AS col2, - ( CAST( NULL AS DECIMAL ) ) + - col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8360
SELECT DISTINCT + col1 AS col2, - ( CAST ( NULL AS REAL ) ) + - col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT DISTINCT + 42 FROM tab0 WHERE NULL < + 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - + + col0 col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + + 55 col0 FROM tab1 AS cor0
----
-30
-36
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT + col1 DIV col0 + 59 AS col2 FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-8364
SELECT + col1 / col0 + 59 AS col2 FROM tab1
----
59
59
59

query I rowsort
SELECT ALL - col2 + 64 AS col0 FROM tab2
----
24
41
6

query I rowsort
SELECT DISTINCT 40 - + + col1 AS col1 FROM tab1
----
-7
26
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT ALL + 23 * col0 * - CAST( + 50 AS SIGNED ) AS col1 FROM tab2
----
-52900
-73600
-86250

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL + 23 * col0 * - CAST ( + 50 AS INTEGER ) AS col1 FROM tab2
----
-52900
-73600
-86250

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab2 cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT DISTINCT - 55 + - + col0 DIV + 71 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col0 AND - 61
----
-55
-56

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - 55 + - + col0 / + 71 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col0 AND - 61
----
-55
-56

query I rowsort
SELECT ALL - col2 * - + 89 AS col2 FROM tab1 AS cor0
----
5251
6052
8544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT + col1 + - + CAST( NULL AS SIGNED ) / + + 40 * col1 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 - + + col1 <= + - col2 )
----

skipif mysql # not compatible
query I rowsort label-8372
SELECT + col1 + - + CAST ( NULL AS INTEGER ) / + + 40 * col1 FROM tab1 AS cor0 WHERE NOT ( NOT + col0 - + + col1 <= + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8373
SELECT - + col0 * - + CAST( NULL AS SIGNED ) col1, col2 * - - 75 FROM tab1 AS cor0
----
NULL
4425
NULL
5100
NULL
7200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8373
SELECT - + col0 * - + CAST ( NULL AS INTEGER ) col1, col2 * - - 75 FROM tab1 AS cor0
----
NULL
4425
NULL
5100
NULL
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT - - MIN( col0 ) * + COUNT( * ) + + COUNT( * ) + + COUNT( * ) + - 31 * - 23 AS col0 FROM tab0 AS cor0
----
764

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - - MIN ( col0 ) * + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) + - 31 * - 23 AS col0 FROM tab0 AS cor0
----
764

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT SUM( DISTINCT - + 99 ) AS col2 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-8375
SELECT SUM ( DISTINCT - + 99 ) AS col2 FROM tab2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT + CAST( 74 AS SIGNED ) * - col0 * - 57 * - - col0 * 38 FROM tab0
----
1213189596
1508112156
36063900

skipif mysql # not compatible
query I rowsort label-8376
SELECT + CAST ( 74 AS INTEGER ) * - col0 * - 57 * - - col0 * 38 FROM tab0
----
1213189596
1508112156
36063900

query I rowsort
SELECT - 26 AS col2 FROM tab0 WHERE NOT + + 90 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT DISTINCT 74 DIV + 24 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT 74 / + 24 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - 13 * COUNT( * ) col2 FROM tab2
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8379
SELECT - 13 * COUNT ( * ) col2 FROM tab2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT ALL - 13 DIV + - COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - 13 / + - COUNT ( * ) FROM tab0
----
4

query II rowsort
SELECT col0 AS col0, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8382
SELECT + 79 * - + 99 * CAST( NULL AS DECIMAL ) / + - 67 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT + 79 * - + 99 * CAST ( NULL AS REAL ) / + - 67 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 94 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col0 AND NULL
----

query II rowsort
SELECT 45 AS col2, col2 FROM tab0
----
45
10
45
47
45
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8385
SELECT + col0 * + ( - CAST( NULL AS DECIMAL ) ) col0, - col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8385
SELECT + col0 * + ( - CAST ( NULL AS REAL ) ) col0, - col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8386
SELECT ALL - - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8386
SELECT ALL - - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
3
NULL

query I rowsort
SELECT col2 + - 10 + + col0 FROM tab2
----
123
59
94

onlyif mysql # DIV for integer division: 
query II rowsort label-8388
SELECT DISTINCT col1 DIV 18 AS col0, + 77 FROM tab2
----
2
77
3
77
4
77

skipif mysql # not compatible
query II rowsort label-8388
SELECT DISTINCT col1 / 18 AS col0, + 77 FROM tab2
----
2
77
3
77
4
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8390
SELECT col1 AS col1, - col0 * CAST( NULL AS SIGNED ) / + + CAST( + - col1 AS SIGNED ) * ( + 86 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8390
SELECT col1 AS col1, - col0 * CAST ( NULL AS INTEGER ) / + + CAST ( + - col1 AS INTEGER ) * ( + 86 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT - + ( col1 ) * + 79 + col2 FROM tab2 AS cor0
----
-4006
-5235
-6043

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT + 78 + SUM( 29 ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8392
SELECT + 78 + SUM ( 29 ) FROM tab1 AS cor0
----
165

query I rowsort
SELECT DISTINCT - + col0 + + col0 * + ( 12 ) AS col2 FROM tab0 AS cor0
----
1067
165
957

query III rowsort
SELECT * FROM tab2 WHERE + - col0 BETWEEN NULL AND + - 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + COUNT( + + col2 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + COUNT ( + + col2 ) col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT - - 86 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT DISTINCT - 58 - - 48 AS col2, - SUM( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
-10
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8398
SELECT DISTINCT - 58 - - 48 AS col2, - SUM ( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
-10
-156

query I rowsort
SELECT DISTINCT ( - 98 ) FROM tab0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8400
SELECT * FROM tab0 WHERE NOT CAST( - + ( + col2 ) AS SIGNED ) * - - 23 + col1 BETWEEN NULL AND 35
----

skipif mysql # not compatible
query III rowsort label-8400
SELECT * FROM tab0 WHERE NOT CAST ( - + ( + col2 ) AS INTEGER ) * - - 23 + col1 BETWEEN NULL AND 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + ( - col0 ) * + 44 FROM tab1 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT - col2 DIV 79 col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8403
SELECT - col2 / 79 col1 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 11 ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 * 63 FROM tab2 cor0
----
2898
4032
4725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT + 44 * + col1 + - 8 * + col0 * + ( + CAST( + col2 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT + ( col0 ) + + 5 + - col1 + col1 + + 29 * - 56 * + - col2 > + ( ( - 2 ) )
----

skipif mysql # not compatible
query I rowsort label-8406
SELECT + 44 * + col1 + - 8 * + col0 * + ( + CAST ( + col2 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT + ( col0 ) + + 5 + - col1 + col1 + + 29 * - 56 * + - col2 > + ( ( - 2 ) )
----

query II rowsort
SELECT - col2, col2 AS col0 FROM tab1 cor0
----
-59
59
-68
68
-96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT 38 DIV + col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT 38 / + col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - COUNT( * ) * + SUM( DISTINCT + + 11 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT - COUNT ( * ) * + SUM ( DISTINCT + + 11 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL + COUNT( * ) * - MAX( col1 ) AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL + COUNT ( * ) * - MAX ( col1 ) AS col2 FROM tab2
----
-231

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE NOT 13 / - col2 * - col2 * - col0 / + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 9 FROM tab2 cor0 WHERE NOT ( NOT col0 * + - col2 IS NOT NULL ) OR NOT ( NULL ) IS NULL
----
9

query I rowsort
SELECT DISTINCT + + 68 * + 39 FROM tab2 AS cor0
----
2652

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT DISTINCT - 3 DIV - + 71 * - col2 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT - 3 / - + 71 * - col2 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT col1 + - - col2 * + + CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT col1 + - - col2 * + + CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 + col0 AS col1 FROM tab0 AS cor0
----
144
154
72

query I rowsort
SELECT DISTINCT - + col0 + + col1 - - 28 AS col0 FROM tab2 AS cor0
----
20
33
41

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN + - 36 AND + col2
----

query I rowsort
SELECT DISTINCT + - 27 - + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
19
37
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - - COUNT( * ) + + ( - 29 ) col1 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8420
SELECT - - COUNT ( * ) + + ( - 29 ) col1 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL + 58 + - + 5 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + ( - col2 ) FROM tab2 AS cor0 WHERE - 41 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 79 * 8 * + col0 * + col2 + - col0 FROM tab1 AS cor0
----
3094221
3169395
3910725

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT DISTINCT + COUNT( * ) + 75 AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT + COUNT ( * ) + 75 AS col0 FROM tab2 AS cor0
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 37 <= + col0
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NULL <> col1 ) )
----

query I rowsort
SELECT ( + + col2 ) AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL COUNT( - 46 ) - + - 48 AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL COUNT ( - 46 ) - + - 48 AS col0 FROM tab0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * - - ( col0 ) FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8432
SELECT DISTINCT - col0 DIV + + col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - col0 / + + col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL ( MAX( ALL - col2 ) ) + + - COUNT( * ) AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL ( MAX ( ALL - col2 ) ) + + - COUNT ( * ) AS col0 FROM tab0
----
-13

query I rowsort
SELECT - col0 * - 50 - + 33 AS col1 FROM tab2
----
2267
3167
3717

query I rowsort
SELECT - 87 - + + col0 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - 28 - col1 FROM tab1
----
-33
-42
-75

query III rowsort
SELECT * FROM tab1 WHERE - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT + COUNT( * ) + + 86 AS col0 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + COUNT ( * ) + + 86 AS col0 FROM tab2 AS cor0
----
89

query I rowsort
SELECT DISTINCT + col2 + col1 + - ( - + col1 ) + col2 FROM tab1 AS cor0
----
128
220
230

query I rowsort
SELECT ALL - 49 + 65 AS col1 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT + COUNT( * ) + - - 43 FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT + COUNT ( * ) + - - 43 FROM tab1 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col1 col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = col2 * + + col0 * - 46
----

query I rowsort
SELECT DISTINCT - 82 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT DISTINCT + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8447
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 47 + + 59 + - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 47 + + 59 + - CAST ( NULL AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT DISTINCT - 66 * - 50 * - col2 - + + 58 * 18 FROM tab0 AS cor0
----
-156144
-327744
-34044

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + 47 * - COUNT( + + 77 ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8449
SELECT + 47 * - COUNT ( + + 77 ) FROM tab2 AS cor0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT ALL col1 * - + col1 * + CAST( + ( 22 ) AS SIGNED ) AS col0 FROM tab2
----
-130438
-57222
-98758

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL col1 * - + col1 * + CAST ( + ( 22 ) AS INTEGER ) AS col0 FROM tab2
----
-130438
-57222
-98758

query I rowsort
SELECT ALL + 92 * col2 FROM tab2
----
2116
3680
5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8452
SELECT - SUM( ALL CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8452
SELECT - SUM ( ALL CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, 50 + - - 85 FROM tab2
----
-46
135
-64
135
-75
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8454
SELECT - 13, - CAST( - COUNT( ALL + 81 ) AS SIGNED ) AS col1 FROM tab1
----
-13
3

skipif mysql # not compatible
query II rowsort label-8454
SELECT - 13, - CAST ( - COUNT ( ALL + 81 ) AS INTEGER ) AS col1 FROM tab1
----
-13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT SUM( - + 13 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8455
SELECT SUM ( - + 13 ) FROM tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8456
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT CAST ( NULL AS REAL ) / - - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - + 57 col0 FROM tab1 AS cor0
----
-116
-125
-153

query I rowsort
SELECT DISTINCT - + col1 + + + ( 84 ) FROM tab2 AS cor0
----
17
33
7

query I rowsort
SELECT col1 - - col0 FROM tab0 cor0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL - 21 + + 6 * CAST( + 14 AS SIGNED ) + + + MIN( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - 21 + + 6 * CAST ( + 14 AS INTEGER ) + + + MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT col1 - - col2 * col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT SUM( DISTINCT - 2 ) + - 1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8462
SELECT SUM ( DISTINCT - 2 ) + - 1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - - 59 + + 65 * + col2 FROM tab0 AS cor0
----
3114
6494
709

query I rowsort
SELECT + 9 + + col0 FROM tab0 cor0
----
106
24
96

query I rowsort
SELECT - col2 + - + col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8467
SELECT + CAST( NULL AS DECIMAL ) + - col2 + ( 35 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT + CAST ( NULL AS REAL ) + - col2 + ( 35 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <> + col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT COUNT( * ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL 11 + col1 FROM tab0
----
12
32
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL COUNT( * ) - - ( 18 ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL COUNT ( * ) - - ( 18 ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT ALL 60 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL 60 / - col2 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col1 NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT COUNT( - col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8474
SELECT COUNT ( - col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT + 25 * + col1 * + - 48 + + - 85 AS col2 FROM tab2 AS cor0
----
-61285
-80485
-92485

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8476
SELECT - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT COUNT( * ) * + + 27 + + 64 AS col2 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-8477
SELECT COUNT ( * ) * + + 27 + + 64 AS col2 FROM tab0 AS cor0
----
145

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8478
SELECT CAST( - col0 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT CAST ( - col0 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL - CAST( - + ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL - CAST ( - + ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT COUNT( - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8480
SELECT COUNT ( - col2 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 / + col1 * + col2 + + col0 BETWEEN - - col2 AND - col2
----

query II rowsort
SELECT DISTINCT + col1 + - col2 AS col0, - col1 AS col1 FROM tab1 cor0
----
-21
-47
-54
-5
-82
-14

query I rowsort
SELECT 59 + + - 56 * - - 32 / + col1 * + - col2 FROM tab1 AS cor0 WHERE col1 * col0 IS NULL
----

query I rowsort
SELECT - 25 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) = - 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - - - 29 FROM tab1
----
-15
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT COUNT( * ) * 9 + - 60 * 43 FROM tab1 cor0
----
-2553

skipif mysql # not compatible
query I rowsort label-8487
SELECT COUNT ( * ) * 9 + - 60 * 43 FROM tab1 cor0
----
-2553

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT ALL - 4 + ( - 17 ) DIV - col2 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - 4 + ( - 17 ) / - col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 65 + col2 AS col1 FROM tab2 cor0 WHERE NOT + 53 >= NULL
----

query I rowsort
SELECT DISTINCT + - 68 - - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - - col1 * - 34 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-1734
-2278
-2618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT ALL col0 + + + CAST( NULL AS SIGNED ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8492
SELECT ALL col0 + + + CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 - + 21 AS col1 FROM tab0 cor0
----
-11
26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT 12 * - + MIN( DISTINCT - col2 ) * - - COUNT( + col0 ) * + - SUM( col2 ) + 1 - 89 AS col1 FROM tab0
----
-556072

skipif mysql # not compatible
query I rowsort label-8495
SELECT 12 * - + MIN ( DISTINCT - col2 ) * - - COUNT ( + col0 ) * + - SUM ( col2 ) + 1 - 89 AS col1 FROM tab0
----
-556072

query I rowsort
SELECT DISTINCT 21 * - col2 FROM tab1
----
-1239
-1428
-2016

query I rowsort
SELECT - 36 * + + col0 AS col2 FROM tab0
----
-3132
-3492
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - 54 * - - SUM( + - col1 ) AS col1 FROM tab2
----
10530

skipif mysql # not compatible
query I rowsort label-8498
SELECT - 54 * - - SUM ( + - col1 ) AS col1 FROM tab2
----
10530

query I rowsort
SELECT ALL - 65 * col1 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-1365
-5265
-65

query I rowsort
SELECT DISTINCT + 97 * + col0 AS col0 FROM tab2
----
4462
6208
7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col2 FROM tab0 AS cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - 97 * + + col0 ) IS NOT NULL )
----

query I rowsort
SELECT + 67 * - 0 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT - 79 > - - CAST( NULL AS SIGNED ) * - ( + col0 ) + - - 96 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8504
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT - 79 > - - CAST ( NULL AS INTEGER ) * - ( + col0 ) + - - 96 )
----
0

query I rowsort
SELECT + ( - 68 ) FROM tab2
----
-68
-68
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8506
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + COUNT( * ) * COUNT( * ) + COUNT( * ) - - - 80 * - - 7 * 83 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46468

skipif mysql # not compatible
query I rowsort label-8507
SELECT + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) - - - 80 * - - 7 * 83 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46468

query I rowsort
SELECT DISTINCT 13 + + col2 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT ALL + + col1 + + + col1 + + + col2 DIV col2 AS col2 FROM tab1 cor0
----
11
29
95

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + + col1 + + + col1 + + + col2 / col2 AS col2 FROM tab1 cor0
----
11
29
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL + MAX( - 89 ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + MAX ( - 89 ) FROM tab0 AS cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * + 36 - - col1 - - ( - col2 ) * - + col1 * 33 col0 FROM tab0 AS cor0
----
128088
5644
9327

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL + SUM( ALL + 39 ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + SUM ( ALL + 39 ) FROM tab0 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + MIN( - 40 ) AS col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8513
SELECT + MIN ( - 40 ) AS col2 FROM tab2 AS cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - + col2 col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 89 AND - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8515
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col2 DIV ( + 1 ) FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8515
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 / ( + 1 ) FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT - COUNT( * ) * COUNT( * ) DIV + 36 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT - COUNT ( * ) * COUNT ( * ) / + 36 AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT + 14, - col2 + - + 2 AS col0 FROM tab2 WHERE ( NOT - ( - 73 ) BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + 7 + + + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8518
SELECT + 7 + + + COUNT ( * ) FROM tab1
----
10

query III rowsort
SELECT * FROM tab1 WHERE 26 IS NULL
----

query I rowsort
SELECT - 74 + + + 73 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col2 + + col0 * - col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT DISTINCT - 38 DIV 98 AS col1 FROM tab1 AS cor0 WHERE ( + col2 + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - 38 / 98 AS col1 FROM tab1 AS cor0 WHERE ( + col2 + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT DISTINCT - COUNT( * ) AS col0, + 77 FROM tab0 AS cor0
----
-3
77

skipif mysql # not compatible
query II rowsort label-8524
SELECT DISTINCT - COUNT ( * ) AS col0, + 77 FROM tab0 AS cor0
----
-3
77

query I rowsort
SELECT - ( - 41 ) * 35 FROM tab2
----
1435
1435
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8526
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT ALL - - col2 * col2, col1 AS col2 FROM tab2 cor0
----
1600
77
3364
67
529
51

query I rowsort
SELECT ALL + 36 + - + col1 + - + 40 AS col1 FROM tab1 AS cor0
----
-18
-51
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( COUNT( * ) ) - - - 95 + - 14 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) - - - 95 + - 14 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT ALL + col2 + + col1 DIV - col2 col1 FROM tab0 AS cor0
----
46
8
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8530
SELECT ALL + col2 + + col1 / - col2 col1 FROM tab0 AS cor0
----
46
8
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL + COUNT( * ) * - 78 * - - 92 + 15 col2 FROM tab0 AS cor0
----
-21513

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8531
SELECT ALL + COUNT ( * ) * - 78 * - - 92 + 15 col2 FROM tab0 AS cor0
----
-21513

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL + 13 - COUNT( * ) * + 75 AS col0 FROM tab1 AS cor0
----
-212

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + 13 - COUNT ( * ) * + 75 AS col0 FROM tab1 AS cor0
----
-212

query II rowsort
SELECT DISTINCT - col2 - 51 + - col0 AS col0, - col2 FROM tab1 AS cor0
----
-195
-59
-198
-96
-210
-68

query I rowsort
SELECT + ( - - 19 ) AS col1 FROM tab0
----
19
19
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8535
SELECT ALL - COUNT( ALL + col2 ) * + COUNT( * ) AS col0, + 1 * - 43 AS col2 FROM tab0
----
-9
-43

skipif mysql # not compatible
query II rowsort label-8535
SELECT ALL - COUNT ( ALL + col2 ) * + COUNT ( * ) AS col0, + 1 * - 43 AS col2 FROM tab0
----
-9
-43

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 = 73 + - col0 - - 62 * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 79 * + 38 AS col2 FROM tab2
----
3002
3002
3002

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL 18 * COUNT( * ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL 18 * COUNT ( * ) AS col1 FROM tab0
----
54

query I rowsort
SELECT ALL 45 * - - col2 FROM tab2
----
1035
1800
2610

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + - 33, col0, - col2 )
----

query I rowsort
SELECT + - 15 AS col1 FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8543
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 46 * - + col2, col2, CAST( 86 AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8543
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 46 * - + col2, col2, CAST ( 86 AS INTEGER ) + - col0 )
----

query I rowsort
SELECT ALL 16 * col1 FROM tab0 AS cor0
----
1296
16
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT + - CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT + - CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 67 * - col2 FROM tab0 AS cor0
----
3149
6633
670

query I rowsort
SELECT col1 * col2 * - col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query II rowsort
SELECT 56 AS col1, col2 + - col1 FROM tab1 AS cor0
----
56
21
56
54
56
82

query I rowsort
SELECT - 48 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 33 / - 11 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT COUNT( * ) + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8552
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT ALL COUNT( * ) DIV - 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL COUNT ( * ) / - 19 FROM tab1
----
0

query I rowsort
SELECT + - col0 * + col0 * - col0 AS col0 FROM tab1 cor0
----
132651
614125
753571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + + col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - col0 ) + ( + col1 ) FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT ALL + CAST( NULL AS SIGNED ) / + 39 * + col1 + - ( 75 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL + CAST ( NULL AS INTEGER ) / + 39 * + col1 + - ( 75 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 75 ) > + - 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 10 - - + 49 * + - 82 IN ( - + col1 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col0 ) + - ( + - ( - col2 ) ) FROM tab0 AS cor0
----
-196
-62
-97

query II rowsort
SELECT - col1 AS col1, col2 FROM tab1 AS cor0 WHERE + 74 NOT BETWEEN - - col0 AND ( NULL )
----
-47
68
-5
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT ALL + MAX( ALL + col1 ) DIV SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL + MAX ( ALL + col1 ) / SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - col1 * + 51 * + + col2 AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + 17 * - - 61 AS col2 FROM tab1
----
1037
1037
1037

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8567
SELECT * FROM tab1 WHERE - CAST( + ( col1 ) AS SIGNED ) >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8567
SELECT * FROM tab1 WHERE - CAST ( + ( col1 ) AS INTEGER ) >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 91 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col0, - col2 AS col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT ( + 50 ) / + + CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT ( + 50 ) / + + CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 13 AS col2 FROM tab0 AS cor0
----
13
13
13

query II rowsort
SELECT + col0 AS col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT + 99 + + 60 AS col0 FROM tab0 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-8574
SELECT - col1 - + col2 + + col2 DIV + 1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8574
SELECT - col1 - + col2 + + col2 / + 1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT DISTINCT + col2 DIV - col0 + - - 0 * + col2 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + col2 / - col0 + - - 0 * + col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - 51 * - 66 FROM tab1 AS cor0
----
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT col1 DIV - + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8577
SELECT col1 / - + col2 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT DISTINCT - 60 DIV col2 + - - 19 AS col2 FROM tab2 AS cor0
----
17
18

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT - 60 / col2 + - - 19 AS col2 FROM tab2 AS cor0
----
17
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT ALL - MAX( - - col2 ) + - - 78 + + CAST( NULL AS SIGNED ) - + CAST( - 88 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - MAX ( - - col2 ) + - - 78 + + CAST ( NULL AS INTEGER ) - + CAST ( - 88 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - + MAX( DISTINCT + 26 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8580
SELECT - + MAX ( DISTINCT + 26 ) FROM tab2 AS cor0
----
-26

query II rowsort
SELECT ALL + col1, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8582
SELECT + COUNT( * ) DIV - 54 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT + COUNT ( * ) / - 54 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8583
SELECT CAST( - col1 AS SIGNED ) AS col0, - col1 AS col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

skipif mysql # not compatible
query II rowsort label-8583
SELECT CAST ( - col1 AS INTEGER ) AS col0, - col1 AS col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT ALL + 25 AS col0 FROM tab0 WHERE NULL IS NULL
----
25
25
25

query I rowsort
SELECT ALL + col2 * + - col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT - + MAX( ALL - - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - + MAX ( ALL - - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + + ( - - col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8588
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 * + col2 IS NOT NULL
----
0

query I rowsort
SELECT 96 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL col0 + col1 + - 90 * + 10 * + col2 * + col2 FROM tab0 AS cor0
----
-1988004
-8820802
-89892

query I rowsort
SELECT ALL + + col1 + - - col0 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT col0 * - + col2 - col1 * - + 21 + - - col1 FROM tab2 cor0
----
-2876
-866
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + 87 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT CAST( NULL AS SIGNED ) IS NULL ) )
----
90

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + 87 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT CAST ( NULL AS INTEGER ) IS NULL ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - - 63 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8594
SELECT - - 63 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
66

query I rowsort
SELECT 2 + - - col0 FROM tab2
----
48
66
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT col2 * + - col2 + CAST( 27 AS SIGNED ) FROM tab1
----
-3454
-4597
-9189

skipif mysql # not compatible
query I rowsort label-8596
SELECT col2 * + - col2 + CAST ( 27 AS INTEGER ) FROM tab1
----
-3454
-4597
-9189

query I rowsort
SELECT + ( - - col2 ) + - col0 - - col0 * + 22 AS col2 FROM tab2
----
1384
1633
989

query I rowsort
SELECT + col2 + - - col1 * + + 20 AS col2 FROM tab1
----
1008
159
376

query I rowsort
SELECT ( - col1 ) + + 4 FROM tab0
----
-17
-77
3

query I rowsort
SELECT col0 * + col2 * col2 + - col1 * + + 26 AS col2 FROM tab2
----
100398
23008
250558

query I rowsort
SELECT ( - 7 ) + col0 AS col0 FROM tab0
----
8
80
90

query I rowsort
SELECT ALL 35 + + - col1 * col1 FROM tab0
----
-406
-6526
34

query I rowsort
SELECT ALL - 42 + + 51 AS col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL COUNT( - - 4 ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL COUNT ( - - 4 ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 57 AS col2 FROM tab0 WHERE NOT - 43 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( + 57 IS NOT NULL ) )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8609
SELECT DISTINCT - + col0 AS col0, - 81 - - CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-46
-127
-64
-145
-75
-156

skipif mysql # not compatible
query II rowsort label-8609
SELECT DISTINCT - + col0 AS col0, - 81 - - CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-46
-127
-64
-145
-75
-156

query I rowsort
SELECT - ( + 73 ) FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + - 73 * + + col0 AS col0 FROM tab2 AS cor0
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - - ( - - COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8612
SELECT - - ( - - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + col0 * - col2 + + ( - + col2 ) + - - ( - 20 ) IS NULL
----
-51
-85
-91

query II rowsort
SELECT col2 AS col0, + col1 FROM tab0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col1 col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT SUM( ALL - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT SUM ( ALL - - col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT ALL - COUNT( * ) col0, - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8617
SELECT ALL - COUNT ( * ) col0, - COUNT ( * ) FROM tab2
----
-3
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 79 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 43 * - - col0 AS col1 FROM tab1 AS cor0
----
-210528
-215645
-266084

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT COUNT( * ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8620
SELECT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ( - + 8 ) FROM tab0 AS cor0
----
-8
-8
-8

query II rowsort
SELECT ALL col0, 7 FROM tab1 AS cor0
----
51
7
85
7
91
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + + 23 + - MIN( col1 ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8623
SELECT + + 23 + - MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
22

query II rowsort
SELECT DISTINCT 21 + - col0 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-25
23
-43
40
-54
58

query I rowsort
SELECT - col2 + - 74 FROM tab2 AS cor0
----
-114
-132
-97

query I rowsort
SELECT - col1 + + 66 + + + 15 FROM tab1 AS cor0
----
34
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT + 11 * + - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT + 11 * + - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col1 + - col0 * - col1 FROM tab0 AS cor0
----
1343
1858
197

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - MIN( DISTINCT - + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8629
SELECT - MIN ( DISTINCT - + col2 ) FROM tab0
----
99

query I rowsort
SELECT DISTINCT + ( col0 ) * 53 FROM tab2
----
2438
3392
3975

query I rowsort
SELECT - 62 - + - col2 AS col2 FROM tab2
----
-22
-39
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - COUNT( * ) - - ( + COUNT( * ) ) * - 18 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8632
SELECT - COUNT ( * ) - - ( + COUNT ( * ) ) * - 18 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT DISTINCT + + 59 * - col1 FROM tab1 AS cor0
----
-2773
-295
-826

query I rowsort
SELECT - 76 + col2 AS col1 FROM tab1 AS cor0
----
-17
-8
20

query I rowsort
SELECT + 18 * + col1 + - col2 FROM tab2 AS cor0
----
1148
1346
895

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL + 50 - + COUNT( * ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + 50 - + COUNT ( * ) AS col0 FROM tab1 cor0
----
47

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NULL IN ( - col1 * col1, 87, + 36, + col0, + ( col1 ) + + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT DISTINCT - col2 * col2 - - - CAST( NULL AS SIGNED ) / + ( - 30 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - col2 * col2 - - - CAST ( NULL AS INTEGER ) / + ( - 30 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL + 89 * + 43 + - - SUM( ALL 67 ) * - 1 AS col1 FROM tab1 AS cor0
----
3626

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + 89 * + 43 + - - SUM ( ALL 67 ) * - 1 AS col1 FROM tab1 AS cor0
----
3626

query III rowsort
SELECT * FROM tab1 WHERE ( 35 / - col1 ) NOT BETWEEN NULL AND - 0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL MAX( 33 ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL MAX ( 33 ) AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL + SUM( + 42 ) AS col0 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + SUM ( + 42 ) AS col0 FROM tab1
----
126

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 24 * + col0 > - col0 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 + col0 col2 FROM tab1
----
-16
18
24

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( col0 ) <> - col1 * + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col0 ) * col1 + col2 * col1 AS col1 FROM tab0
----
196
2037
5022

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 * ( + col1 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT DISTINCT col1 * - 30 + 88 DIV - col2 AS col1 FROM tab0
----
-2431
-30
-638

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT col1 * - 30 + 88 / - col2 AS col1 FROM tab0
----
-2431
-30
-638

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab0 WHERE 91 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE - 28 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT MIN( DISTINCT 70 ) AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT MIN ( DISTINCT 70 ) AS col0 FROM tab0
----
70

query I rowsort
SELECT - 9 - col1 AS col2 FROM tab2
----
-60
-76
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE 22 IN ( col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + 13 ) BETWEEN + 21 AND - col0 * col0 + + 30 * - 20
----
3

skipif mysql # not compatible
query I rowsort label-8655
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + 13 ) BETWEEN + 21 AND - col0 * col0 + + 30 * - 20
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 56 col1 FROM tab0 WHERE + 49 = NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT - col0 > + col1
----
51
67
77

query I rowsort
SELECT ( + ( + 58 ) ) FROM tab2
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT col0 + - col1 DIV + col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-8659
SELECT col0 + - col1 / + col1 FROM tab1
----
50
84
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN - ( + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( - 66 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( col1 + + 41 * 82 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN 40 AND NULL
----

query I rowsort
SELECT - 87 FROM tab2 AS cor0 WHERE NOT ( col2 ) - 30 IS NULL
----
-87
-87
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 87 / + col0 ) IS NOT NULL
----

query I rowsort
SELECT + col1 + + col0 * + col0 AS col2 FROM tab0 cor0
----
306
7590
9410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT - 8 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT - 8 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 84 FROM tab1 AS cor0 CROSS JOIN tab1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL col0 DIV col1 + - 90 AS col0 FROM tab2
----
-89
-90
-90

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL col0 / col1 + - 90 AS col0 FROM tab2
----
-89
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT DISTINCT - col1 DIV 75 + col2 * 30 FROM tab1
----
1770
2040
2880

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - col1 / 75 + col2 * 30 FROM tab1
----
1770
2040
2880

query I rowsort
SELECT ALL + 69 AS col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT ALL col1 + 2 FROM tab0 cor0
----
23
3
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + 43 + ( + 20 ) FROM tab1 cor0
----
-195
-2001
-582

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + 43 + ( + 20 ) FROM tab1 cor0
----
-195
-2001
-582

query I rowsort
SELECT DISTINCT - + col2 + + 16 AS col0 FROM tab0 AS cor0
----
-31
-83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL + 97 - - COUNT( * ) * 22 FROM tab2 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + 97 - - COUNT ( * ) * 22 FROM tab2 AS cor0
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8676
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST( col0 AS SIGNED ) ) = col2
----

skipif mysql # not compatible
query III rowsort label-8676
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST ( col0 AS INTEGER ) ) = col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - - ( - col2 ) * - 90 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) + 16 FROM tab2 AS cor0
----
-30
-48
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 30 * 49 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT - - CAST( NULL AS SIGNED ) / col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT - - CAST ( NULL AS INTEGER ) / col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - 47 * SUM( - col2 ) + COUNT( + ( col0 ) ) FROM tab2 cor0
----
5690

skipif mysql # not compatible
query I rowsort label-8683
SELECT - 47 * SUM ( - col2 ) + COUNT ( + ( col0 ) ) FROM tab2 cor0
----
5690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8684
SELECT - 21 DIV - 63 + + 91 * COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-8684
SELECT - 21 / - 63 + + 91 * COUNT ( * ) FROM tab0
----
273

query I rowsort
SELECT ALL + ( + - col0 ) * + col1 AS col1 FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col1 col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col2 * - - 94 * - col0 AS col0 FROM tab0
----
-66270
-81780
-902682

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT ( NULL ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL + MAX( ALL + 85 ) * - COUNT( * ) AS col0 FROM tab2 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + MAX ( ALL + 85 ) * - COUNT ( * ) AS col0 FROM tab2 cor0
----
-255

query I rowsort
SELECT ALL col2 + - col2 + col1 * col2 AS col1 FROM tab0 cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8692
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( + col1 * CAST( NULL AS SIGNED ) + + col1 ) AND + col2 / col0
----

skipif mysql # not compatible
query III rowsort label-8692
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( + col1 * CAST ( NULL AS INTEGER ) + + col1 ) AND + col2 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT - COUNT( * ) * - 30 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - COUNT ( * ) * - 30 FROM tab1
----
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 + + col1 <> ( + col1 + col0 )
----

query I rowsort
SELECT DISTINCT 60 * + 36 FROM tab1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT SUM( - - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8696
SELECT SUM ( - - col1 ) AS col2 FROM tab0 AS cor0
----
103

query II rowsort
SELECT - + col2 AS col2, col0 * - col0 * + col1 + + 24 FROM tab0 AS cor0
----
-10
-158925
-47
-18201
-99
-9385

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 / + - 20 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8698
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 / + - 20 IS NULL
----
3

query I rowsort
SELECT DISTINCT + + 41 + col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT - - col2 DIV + 73 * - - 32 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT - - col2 / + 73 * - - 32 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT ALL col0 * - 56 DIV - + 56 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL col0 * - 56 / - + 56 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col1 / col0 + + col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + ( + col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT 62 DIV + col2 col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT 62 / + col2 col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + AVG ( ALL + - col0 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL - - 10 / MAX( - col2 ) FROM tab0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - - 10 / MAX ( - col2 ) FROM tab0 WHERE - col1 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 34 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + + col0 BETWEEN NULL AND + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 3 ) AS col0 FROM tab0
----
3
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + col0 + - col0
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT - col1 * + + 74 * col2 - - 12 + 4 * - 54 FROM tab0 AS cor0
----
-15744
-281922
-7530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col0 + + - 36 * + ( - col1 ) * + 88 * - col2 col2 FROM tab2 AS cor0
----
-12310698
-3715972
-9757312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT + 96 * + - CAST( NULL AS SIGNED ) + - col0 - + ( + ( - col2 ) ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT + 96 * + - CAST ( NULL AS INTEGER ) + - col0 - + ( + ( - col2 ) ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 + + 72 ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + COUNT( * ) + 36 AS col2 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8715
SELECT + COUNT ( * ) + 36 AS col2 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT + SUM( ALL + col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT + SUM ( ALL + col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT ALL - col1 DIV - - col2 + + col2 + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - col1 / - - col2 + + col2 + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + 50 + - 76 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT - ( + + col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 * - ( - 26 ) ) >= ( 7 / - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab1 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8722
SELECT ALL + SUM( DISTINCT - 8 ) + - + COUNT( * ), + COUNT( 83 ) AS col2 FROM tab0 AS cor0
----
-11
3

skipif mysql # not compatible
query II rowsort label-8722
SELECT ALL + SUM ( DISTINCT - 8 ) + - + COUNT ( * ), + COUNT ( 83 ) AS col2 FROM tab0 AS cor0
----
-11
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 2 ) <= 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 + - + col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + 17 + + - col1 + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + 17 + + - col1 + - col2 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) = 93
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8727
SELECT * FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) BETWEEN + - 60 AND col0
----

skipif mysql # not compatible
query III rowsort label-8727
SELECT * FROM tab0 WHERE + - CAST ( NULL AS REAL ) BETWEEN + - 60 AND col0
----

query I rowsort
SELECT DISTINCT 24 - + + 47 AS col2 FROM tab1
----
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN + 38 AND NULL
----

query II rowsort
SELECT - col1 - + + col1 AS col0, col1 - - + col0 AS col1 FROM tab0
----
-162
96
-2
98
-42
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT CAST( MIN( - 1 ) AS SIGNED ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT CAST ( MIN ( - 1 ) AS INTEGER ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + 57 - - ( MIN( - 0 ) ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8732
SELECT + 57 - - ( MIN ( - 0 ) ) FROM tab2
----
57

query I rowsort
SELECT ALL col1 * + - 90 AS col1 FROM tab2
----
-4590
-6030
-6930

query I rowsort
SELECT col2 * + col1 - - - col1 FROM tab1
----
1330
290
3149

query I rowsort
SELECT col0 - 10 * 33 * - col0 AS col1 FROM tab0
----
28797
32107
4965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT ALL - CAST( - - col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT 94 - - ( + + COUNT( * ) ) AS col1 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-8737
SELECT 94 - - ( + + COUNT ( * ) ) AS col1 FROM tab2
----
97

query I rowsort
SELECT - - 44 AS col0 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT ALL + COUNT( * ) * + 73 AS col0 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL + COUNT ( * ) * + 73 AS col0 FROM tab0 AS cor0
----
219

query I rowsort
SELECT DISTINCT + ( - col2 ) * + - col2 * - - ( - + 57 ) * - col1 * + 32 AS col2 FROM tab1
----
235339776
31746720
396406272

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col0 * + ( ( col0 ) ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col0 * + ( ( col0 ) ) ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8742
SELECT MAX( ALL + 50 ) AS col1, + ( - SUM( - col2 ) ) FROM tab1
----
50
223

skipif mysql # not compatible
query II rowsort label-8742
SELECT MAX ( ALL + 50 ) AS col1, + ( - SUM ( - col2 ) ) FROM tab1
----
50
223

query II rowsort
SELECT 2 * 4 + - 80 AS col2, col2 FROM tab0 AS cor0
----
-72
10
-72
47
-72
99

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab1 cor0 WHERE col2 BETWEEN + 83 AND ( - - 69 - - col1 + + + col0 )
----
52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + COUNT( * ) * - MAX( + col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + COUNT ( * ) * - MAX ( + col2 ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT + MAX( DISTINCT 47 ) AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT + MAX ( DISTINCT 47 ) AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( - 90 + + col2 - col1 ) NOT IN ( col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL + - COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + - COUNT ( * ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8750
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 38 + col2 + - 41 - + - 66 * + ( col1 ) * col1 + + CAST( NULL AS SIGNED ) >= + col0 + + 93
----

skipif mysql # not compatible
query III rowsort label-8750
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 38 + col2 + - 41 - + - 66 * + ( col1 ) * col1 + + CAST ( NULL AS INTEGER ) >= + col0 + + 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col2 * + col2 * + + 57
----

query I rowsort
SELECT DISTINCT - + col1 * + 8 + - - col1 * + ( + + ( + - col0 ) ) FROM tab2 WHERE NULL IS NULL
----
-2754
-5544
-5561

query I rowsort
SELECT col0 * - ( + col1 ) FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN NULL AND ( + col1 + - 66 * + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT ALL + col0 DIV + - 11 FROM tab0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + col0 / + - 11 FROM tab0
----
-1
-7
-8

query II rowsort
SELECT col1, + col2 AS col1 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL + col1 + + + col1 + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-45
-95
147

query I rowsort
SELECT ALL - 33 + col2 FROM tab0 AS cor0
----
-23
14
66

query I rowsort
SELECT + 82 * 87 * + col2 AS col0 FROM tab0
----
335298
706266
71340

query III rowsort
SELECT * FROM tab1 WHERE col1 * 72 + - - ( - 74 ) - - ( col2 ) / + - col0 * + col1 + - col0 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT MIN( - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT MIN ( - col1 ) FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT - col1 + ( - - col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 + + col0 * + 73 + + col1 AS col0 FROM tab2 AS cor0
----
3432
4789
5600

query II rowsort
SELECT + col2 + - col2, + col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT DISTINCT - COUNT( DISTINCT - 10 ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - COUNT ( DISTINCT - 10 ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( - col2 ) + - 67 AS col1 FROM tab1 AS cor0
----
-126
-135
-163

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8769
SELECT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) + - - col2 NOT BETWEEN - col2 + 21 AND ( - - 83 * - 80 + + + col2 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8769
SELECT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) + - - col2 NOT BETWEEN - col2 + 21 AND ( - - 83 * - 80 + + + col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT COUNT( * ) + - + MIN( DISTINCT + ( col1 ) ) * + COUNT( * ) + - - 58 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT COUNT ( * ) + - + MIN ( DISTINCT + ( col1 ) ) * + COUNT ( * ) + - - 58 FROM tab0
----
58

query I rowsort
SELECT DISTINCT - col1 * - 23 FROM tab2
----
1173
1541
1771

query III rowsort
SELECT * FROM tab1 WHERE - - col1 IN ( + + 83 * - col0 * + 15 + - 61, col0 + + 40 * - - col1 )
----

query I rowsort
SELECT - col2 FROM tab0 WHERE 11 * - col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT COUNT( + 45 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT COUNT ( + 45 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT ( + - 53 ) AS col1 FROM tab2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT - col2 DIV - - col0 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8776
SELECT - col2 / - - col0 FROM tab0 cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 98 col1, + col2 FROM tab0 AS cor0
----
98
10
98
47
98
99

query II rowsort
SELECT + col2 AS col1, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT + - ( 90 ) * col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8781
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + CAST( - col1 AS SIGNED ), 65 - + - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-8781
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + CAST ( - col1 AS INTEGER ), 65 - + - col1 ) )
----

query I rowsort
SELECT col0 * - col2 FROM tab1 AS cor0 WHERE NOT 52 NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 >= + col1
----

query II rowsort
SELECT DISTINCT + col1 AS col1, - 87 AS col0 FROM tab2
----
51
-87
67
-87
77
-87

query I rowsort
SELECT ALL - + 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT - 59 * + col0 AS col1 FROM tab2
----
-2714
-3776
-4425

query I rowsort
SELECT ALL + ( 99 ) FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT - 39 * + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT - 39 * + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT + 48 * col2 + col1 + col1 AS col1 FROM tab0 AS cor0
----
2418
4754
522

query I rowsort
SELECT + 27 + - col0 FROM tab1 cor0
----
-24
-58
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT + col1 DIV - 80 * - col1 + + - ( - + 14 ) AS col1 FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8793
SELECT + col1 / - 80 * - col1 + + - ( - + 14 ) AS col1 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT + 52 * + + col2 + + + col2 FROM tab1 AS cor0
----
3127
3604
5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 6 col1 FROM tab0 AS cor0
----
81
9
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL + 96 * + SUM( ( - 47 ) ) * - - 16 FROM tab2 AS cor0
----
-216576

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + 96 * + SUM ( ( - 47 ) ) * - - 16 FROM tab2 AS cor0
----
-216576

query II rowsort
SELECT DISTINCT col0 + - col2 AS col2, - col1 * - + col2 * - col2 AS col2 FROM tab2
----
17
-225388
23
-26979
24
-123200

query I rowsort
SELECT + - 20 FROM tab1 WHERE ( NOT + 84 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT CAST( NULL AS SIGNED ) / - 69 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT CAST ( NULL AS INTEGER ) / - 69 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) BETWEEN - - 12 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT + MAX( DISTINCT - 98 ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-8801
SELECT + MAX ( DISTINCT - 98 ) FROM tab2 AS cor0
----
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 BETWEEN + + 62 AND - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT ALL - col2 DIV col2 - - - col2 * - + 11 + + + col1 + + 71 FROM tab0 AS cor0
----
1160
201
668

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - col2 / col2 - - - col2 * - + 11 + + + col1 + + 71 FROM tab0 AS cor0
----
1160
201
668

query II rowsort
SELECT DISTINCT - col1 AS col1, + col2 * col2 * - 38 FROM tab1
----
-14
-350208
-47
-175712
-5
-132278

query II rowsort
SELECT ALL 37, - 17 AS col2 FROM tab1
----
37
-17
37
-17
37
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8806
SELECT ALL - 89 AS col2, 64 * 88 DIV - COUNT( * ) FROM tab0
----
-89
-1877

skipif mysql # not compatible
query II rowsort label-8806
SELECT ALL - 89 AS col2, 64 * 88 / - COUNT ( * ) FROM tab0
----
-89
-1877

query III rowsort
SELECT * FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT 38 + col0 AS col2 FROM tab0
----
125
135
53

query I rowsort
SELECT DISTINCT + + 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT DISTINCT - ( 75 ) + + CAST( NULL AS SIGNED ) * - 84 FROM tab2 WHERE NOT 47 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - ( 75 ) + + CAST ( NULL AS INTEGER ) * - 84 FROM tab2 WHERE NOT 47 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( col1 * - col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT + ( + - 21 ) * - - MIN( - - 88 ) FROM tab1 cor0
----
-1848

skipif mysql # not compatible
query I rowsort label-8812
SELECT + ( + - 21 ) * - - MIN ( - - 88 ) FROM tab1 cor0
----
-1848

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 36 * + - col2 >= ( - - col1 * + - ( col1 ) * + 49 * + 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8814
SELECT COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * + + 2 * + 66 FROM tab1 cor0
----
11220
12012
6732

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL - 2 - - + COUNT( * ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL - 2 - - + COUNT ( * ) AS col0 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL + 12 + + col1 + + 14 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - col2 > - 77 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8820
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) * - col0 * + col2 NOT IN ( - 67, + CAST( NULL AS DECIMAL ) + - + col2 )
----

skipif mysql # not compatible
query I rowsort label-8820
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) * - col0 * + col2 NOT IN ( - 67, + CAST ( NULL AS REAL ) + - + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 59 FROM tab0 cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT + ( + CAST( + col2 AS SIGNED ) ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8823
SELECT + ( + CAST ( + col2 AS INTEGER ) ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8824
SELECT DISTINCT + col1 DIV + col2 AS col2, + 88 col0 FROM tab0
----
0
88
1
88
2
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8824
SELECT DISTINCT + col1 / + col2 AS col2, + 88 col0 FROM tab0
----
0
88
1
88
2
88

query I rowsort
SELECT - ( + 75 ) FROM tab1
----
-75
-75
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT MIN( ALL + CAST( col1 AS SIGNED ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8826
SELECT MIN ( ALL + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT ALL - COUNT( - CAST( - col0 AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - COUNT ( - CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL + - MIN( ( - + 88 ) ) FROM tab0 WHERE NOT col1 * col2 * col2 * + + col2 - + col1 + - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + - MIN ( ( - + 88 ) ) FROM tab0 WHERE NOT col1 * col2 * col2 * + + col2 - + col1 + - col0 <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT 86 * - - 47 FROM tab2
----
4042
4042
4042

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= 85
----

query I rowsort
SELECT 87 * - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 > col1
----
-4437
-7395
-7917

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT col1 DIV - 9 AS col0 FROM tab2
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-8833
SELECT col1 / - 9 AS col0 FROM tab2
----
-5
-7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8835
SELECT COUNT( * ) DIV + 77 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8835
SELECT COUNT ( * ) / + 77 AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( + - col0 ) * + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL - 97 * - - ( - SUM( col0 ) ) FROM tab2 AS cor0
----
17945

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - 97 * - - ( - SUM ( col0 ) ) FROM tab2 AS cor0
----
17945

query I rowsort
SELECT DISTINCT - col1 + 90 FROM tab2 AS cor0
----
13
23
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT ALL SUM( ALL 85 ), - 64 AS col2 FROM tab2
----
255
-64

skipif mysql # not compatible
query II rowsort label-8841
SELECT ALL SUM ( ALL 85 ), - 64 AS col2 FROM tab2
----
255
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT COUNT( + + col1 ) + 77 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-8842
SELECT COUNT ( + + col1 ) + 77 FROM tab0
----
80

query I rowsort
SELECT col1 + + 51 * + - col0 AS col2 FROM tab1
----
-2587
-4330
-4594

onlyif mysql # DIV for integer division: 
query II rowsort label-8844
SELECT col2 DIV + col2 + - 29 * - col2 + + - col2 * - col1 AS col1, 2 FROM tab1
----
2007
2
4129
2
5169
2

skipif mysql # not compatible
query II rowsort label-8844
SELECT col2 / + col2 + - 29 * - col2 + + - col2 * - col1 AS col1, 2 FROM tab1
----
2007
2
4129
2
5169
2

query II rowsort
SELECT col2 + + + col2, ( + ( - + ( + 60 ) ) ) AS col1 FROM tab1
----
118
-60
136
-60
192
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT + ( - COUNT( * ) ) * + ( + - 32 ) + 80 AS col1 FROM tab2
----
176

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + ( - COUNT ( * ) ) * + ( + - 32 ) + 80 AS col1 FROM tab2
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL CAST( col0 AS SIGNED ) + 39 FROM tab1
----
124
130
90

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL CAST ( col0 AS INTEGER ) + 39 FROM tab1
----
124
130
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT + col1 + + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT + col1 + + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - col1 * + - col1 + + col0 + - 83 FROM tab0 AS cor0
----
15
445
6493

query II rowsort
SELECT 53 AS col1, col2 FROM tab0 AS cor0
----
53
10
53
47
53
99

query I rowsort
SELECT ALL - col2 - - 25 FROM tab1 AS cor0
----
-34
-43
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT DISTINCT - MAX( ALL + col1 ) - + MIN( DISTINCT + 71 ) FROM tab2
----
-148

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT - MAX ( ALL + col1 ) - + MIN ( DISTINCT + 71 ) FROM tab2
----
-148

query I rowsort
SELECT - - 48 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 23 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + col1 * 96 + + 66 AS col0 FROM tab2 AS cor0
----
4962
6498
7458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8857
SELECT ( + COUNT( DISTINCT - + 74 ) ) * + 30 + CAST( NULL AS SIGNED ), 80 AS col1 FROM tab2 AS cor0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-8857
SELECT ( + COUNT ( DISTINCT - + 74 ) ) * + 30 + CAST ( NULL AS INTEGER ), 80 AS col1 FROM tab2 AS cor0
----
NULL
80

query I rowsort
SELECT col1 * col2 - - col0 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT DISTINCT + + 38 FROM tab2 AS cor0 WHERE 88 <> NULL
----

query I rowsort
SELECT - + 49 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col2 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT 97 * col1 AS col1 FROM tab0
----
2037
7857
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT COUNT( * ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8864
SELECT COUNT ( * ) FROM tab2, tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND - + col1
----

query I rowsort
SELECT DISTINCT + AVG ( ALL + 4 ) + 97 AS col1 FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND - col1 )
----
NULL

query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 80 NOT BETWEEN - 53 - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL + - 80 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + - 80 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8870
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8871
SELECT + 42 DIV - COUNT( * ) + MAX( DISTINCT + - col2 ) + COUNT( * ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8871
SELECT + 42 / - COUNT ( * ) + MAX ( DISTINCT + - col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-8872
SELECT - 96 col2, 81 + - ( + - 24 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
-96
81
-96
81
-96
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8872
SELECT - 96 col2, 81 + - ( + - 24 ) / + col0 AS col0 FROM tab0 AS cor0
----
-96
81
-96
81
-96
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL + COUNT( + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + COUNT ( + col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE + col2 + + + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL + + CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) + 21 * - col0 AS col1 FROM tab2 AS cor0
----
-1267
-1508
-915

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + + CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) + 21 * - col0 AS col1 FROM tab2 AS cor0
----
-1267
-1508
-915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 + + - 0 col0 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT 15 + - 36 + COUNT( * ) FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8877
SELECT 15 + - 36 + COUNT ( * ) FROM tab2 cor0
----
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT ALL - + ( + col1 ) DIV col2 * col2 + ( col1 ) FROM tab0 AS cor0
----
1
1
34

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - + ( + col1 ) / col2 * col2 + ( col1 ) FROM tab0 AS cor0
----
1
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - COUNT( ALL col2 ) + + COUNT( * ) * 20 + - MAX( ALL + + col0 ) col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8880
SELECT - COUNT ( ALL col2 ) + + COUNT ( * ) * 20 + - MAX ( ALL + + col0 ) col2 FROM tab0 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT CAST( NULL AS SIGNED ) + - col2 / + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT CAST ( NULL AS INTEGER ) + - col2 / + - ( - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col2 + + 94
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT ALL + MIN( col2 ) AS col2, 83 AS col2 FROM tab1 AS cor0
----
59
83

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL + MIN ( col2 ) AS col2, 83 AS col2 FROM tab1 AS cor0
----
59
83

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE + col0 / 76 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT ALL MAX( DISTINCT + - ( + col2 ) ) AS col0, - COUNT( * ) AS col0 FROM tab0
----
-10
-3

skipif mysql # not compatible
query II rowsort label-8885
SELECT ALL MAX ( DISTINCT + - ( + col2 ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0
----
-10
-3

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + 80 * + - col0 FROM tab2
----
-3680
-5120
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT DISTINCT SUM( DISTINCT + + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT SUM ( DISTINCT + + col1 ) FROM tab2
----
195

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE NOT - 99 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col0 * 81 * 58 + - ( 27 ) + - col1 AS col1 FROM tab0
----
408678
455678
70362

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT + 98 * + ( + COUNT( * ) ) AS col2 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-8892
SELECT + 98 * + ( + COUNT ( * ) ) AS col2 FROM tab2
----
294

query I rowsort
SELECT DISTINCT col2 * - - col0 + col1 - + ( - col1 ) AS col1 FROM tab0
----
867
912
9605

query I rowsort
SELECT col0 * - col0 - - col1 AS col0 FROM tab0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL 63 + - COUNT( * ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 63 + - COUNT ( * ) FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + 49 * + 16 * SUM( - col2 ) - 32 AS col2 FROM tab0 AS cor0
----
-122336

skipif mysql # not compatible
query I rowsort label-8896
SELECT + 49 * + 16 * SUM ( - col2 ) - 32 AS col2 FROM tab0 AS cor0
----
-122336

query II rowsort
SELECT + col0 AS col1, col0 * - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + + CAST( + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 81 + - col1 AS col2 FROM tab2 AS cor0
----
-132
-148
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL - 87 * - + SUM( ALL - + col1 ) col0 FROM tab1 AS cor0
----
-5742

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8900
SELECT ALL - 87 * - + SUM ( ALL - + col1 ) col0 FROM tab1 AS cor0
----
-5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8901
SELECT 82 DIV MIN( + col2 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8901
SELECT 82 / MIN ( + col2 ) AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT CAST( + ( + SUM( DISTINCT col0 ) ) AS SIGNED ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8902
SELECT CAST ( + ( + SUM ( DISTINCT col0 ) ) AS INTEGER ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-8903
SELECT DISTINCT 17 * + 13 * + COUNT( DISTINCT 8 ), 23 * + 5 * - MAX( DISTINCT + col2 ) AS col2 FROM tab2
----
221
-6670

skipif mysql # not compatible
query II rowsort label-8903
SELECT DISTINCT 17 * + 13 * + COUNT ( DISTINCT 8 ), 23 * + 5 * - MAX ( DISTINCT + col2 ) AS col2 FROM tab2
----
221
-6670

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT COUNT( * ) AS col2, - 45 AS col2 FROM tab0
----
3
-45

skipif mysql # not compatible
query II rowsort label-8904
SELECT COUNT ( * ) AS col2, - 45 AS col2 FROM tab0
----
3
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8905
SELECT 30 DIV - MIN( DISTINCT - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT 30 / - MIN ( DISTINCT - col2 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8906
SELECT ALL + col0 DIV + ( - + col1 ) FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + col0 / + ( - + col1 ) FROM tab1
----
-1
-17
-3

query I rowsort
SELECT DISTINCT 79 * + col1 FROM tab1 AS cor0
----
1106
3713
395

query II rowsort
SELECT DISTINCT + - col1, col1 - - 79 AS col2 FROM tab0 AS cor0
----
-1
80
-21
100
-81
160

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT 9 DIV + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT 9 / + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - 22 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT - CAST( + - col1 AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL > col1
----

skipif mysql # not compatible
query I rowsort label-8911
SELECT - CAST ( + - col1 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8912
SELECT ALL + - col1 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8912
SELECT ALL + - col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT COUNT( * ) * + MAX( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8915
SELECT + 53, COUNT( * ) AS col0 FROM tab0 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-8915
SELECT + 53, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
53
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL 23 * - col0 FROM tab2
----
-1058
-1472
-1725

query I rowsort
SELECT DISTINCT - col1 - col1 AS col1 FROM tab0 WHERE - col2 >= NULL
----

query I rowsort
SELECT ( - ( + 25 ) ) FROM tab0
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT DISTINCT - + 56 / + SUM( DISTINCT CAST( col1 AS SIGNED ) ) * + AVG ( + ( + col2 ) ) FROM tab2 WHERE - col1 * + 29 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - + 56 / + SUM ( DISTINCT CAST ( col1 AS INTEGER ) ) * + AVG ( + ( + col2 ) ) FROM tab2 WHERE - col1 * + 29 IS NULL
----
NULL

query II rowsort
SELECT col0 * - col0, col2 AS col1 FROM tab2
----
-2116
23
-4096
40
-5625
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL + ( CAST( - MAX( - col2 ) AS SIGNED ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + ( CAST ( - MAX ( - col2 ) AS INTEGER ) ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT COUNT( + col1 ) AS col2, - COUNT( * ) * 94 AS col1 FROM tab0
----
3
-282

skipif mysql # not compatible
query II rowsort label-8923
SELECT COUNT ( + col1 ) AS col2, - COUNT ( * ) * 94 AS col1 FROM tab0
----
3
-282

query I rowsort
SELECT ALL col1 * - - 74 * + - col1 AS col2 FROM tab2
----
-192474
-332186
-438746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE NOT + col2 NOT IN ( + col0, + CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE NOT + col2 NOT IN ( + col0, + CAST ( NULL AS INTEGER ), - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT MAX( DISTINCT 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-8926
SELECT MAX ( DISTINCT 80 ) FROM tab1
----
80

query I rowsort
SELECT ALL col1 * ( - 96 ) + - col1 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 <> - col1
----
3

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col2 <> - col1
----
3

query I rowsort
SELECT ALL + + col2 + - - col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - col1 + + + 44 * + ( + col0 ) FROM tab1 AS cor0
----
2230
3735
3957

query I rowsort
SELECT - col1 + - 73 + - col1 AS col1 FROM tab0 AS cor0
----
-115
-235
-75

query I rowsort
SELECT DISTINCT + 93 + + - 55 FROM tab2
----
38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + - + col2 * + 3 * 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8934
SELECT - CAST( + col1 AS SIGNED ) + + col1 * 78, col0 * + col0 AS col2 FROM tab1
----
1078
2601
3619
8281
385
7225

skipif mysql # not compatible
query II rowsort label-8934
SELECT - CAST ( + col1 AS INTEGER ) + + col1 * 78, col0 * + col0 AS col2 FROM tab1
----
1078
2601
3619
8281
385
7225

query I rowsort
SELECT - 56 + + col1 + + 41 AS col1 FROM tab1
----
-1
-10
32

query I rowsort
SELECT DISTINCT - - ( - + col1 ) * col0 FROM tab0 WHERE - - 39 * + col2 >= - - col2
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col2 + - 8 * - + 71 FROM tab0 AS cor0
----
578
615
667

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT - - COUNT( * ) - 38 + - MIN( + + col1 ) + - - ( - 92 ) AS col1 FROM tab0 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT - - COUNT ( * ) - 38 + - MIN ( + + col1 ) + - - ( - 92 ) AS col1 FROM tab0 AS cor0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL 0 - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL 0 - + COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + SUM( - col2 ) - - COUNT( * ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-8940
SELECT + SUM ( - col2 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-118

query II rowsort
SELECT DISTINCT col2 AS col2, 77 AS col2 FROM tab2
----
23
77
40
77
58
77

query I rowsort
SELECT + + 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 88 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 51 FROM tab2 cor0
----
51
51
51

query I rowsort
SELECT + - 65 * + col1 * - + col2 FROM tab2 AS cor0
----
200200
252590
76245

query II rowsort
SELECT ALL - + col1, + 32 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-51
32
-67
32
-77
32

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col2 * + 7 AS col2 FROM tab1 AS cor0
----
413
476
672

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT DISTINCT - - 66 AS col2, ( - COUNT( * ) ) * - 70 col1 FROM tab0 AS cor0
----
66
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8951
SELECT DISTINCT - - 66 AS col2, ( - COUNT ( * ) ) * - 70 col1 FROM tab0 AS cor0
----
66
210

query II rowsort
SELECT - 41 * - col2 * col1 AS col1, - col0 FROM tab1 AS cor0
----
12095
-85
131036
-91
55104
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE + col1 + + col2 / - 80 * + col2 + + 11 <> - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE + col1 + + col2 / - 80 * + col2 + + 11 <> - 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT ALL + + 46 * - + CAST( - 56 AS SIGNED ) FROM tab1 AS cor0
----
2576
2576
2576

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + + 46 * - + CAST ( - 56 AS INTEGER ) FROM tab1 AS cor0
----
2576
2576
2576

query I rowsort
SELECT + 21 AS col2 FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT ALL + col0 * 52 AS col0 FROM tab2
----
2392
3328
3900

query III rowsort
SELECT ALL * FROM tab1 WHERE 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT + ( COUNT( + col1 ) ) * - + COUNT( * ) + - COUNT( * ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + ( COUNT ( + col1 ) ) * - + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8959
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 52 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + - + 21 * - col2 AS col0 FROM tab2 AS cor0
----
1151
432
763

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT - MAX( - - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8962
SELECT - MAX ( - - col2 ) FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT - col1, - col2 AS col1 FROM tab0 WHERE ( NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) ) )
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + 33 * - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 + - 80 FROM tab1 AS cor0
----
-12
-21
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8969
SELECT DISTINCT col2 DIV + - ( 33 ) + - - 20 AS col0 FROM tab2 AS cor0
----
19
20

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT col2 / + - ( 33 ) + - - 20 AS col0 FROM tab2 AS cor0
----
19
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + SUM( DISTINCT + + 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8970
SELECT + SUM ( DISTINCT + + 40 ) FROM tab1 AS cor0
----
40

query II rowsort
SELECT DISTINCT + 2 - - col2 AS col1, + 7 FROM tab1 AS cor0
----
61
7
70
7
98
7

query I rowsort
SELECT 56 AS col0 FROM tab2 cor0
----
56
56
56

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 43 * col2 + - ( - 6 ) * + col1 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT DISTINCT col2 DIV 42 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT col2 / 42 FROM tab1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL MAX( ALL + + 21 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL MAX ( ALL + + 21 ) FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - COUNT( * ) - + ( - SUM( + 13 ) ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8976
SELECT - COUNT ( * ) - + ( - SUM ( + 13 ) ) AS col1 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT + MAX( - + col2 ) - - COUNT( * ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-8977
SELECT + MAX ( - + col2 ) - - COUNT ( * ) AS col1 FROM tab0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col1 - 26 col1 FROM tab2
----
-2627
-4515
-5955

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8981
SELECT - - col2 DIV col2, + col1 * + col1 col1 FROM tab2 AS cor0
----
1
2601
1
4489
1
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8981
SELECT - - col2 / col2, + col1 * + col1 col1 FROM tab2 AS cor0
----
1
2601
1
4489
1
5929

query I rowsort
SELECT ALL - - 75 * col0 AS col1 FROM tab2 cor0
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL + SUM( + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + SUM ( + - col1 ) FROM tab1
----
-66

query I rowsort
SELECT ALL - 48 * + 30 * - col1 AS col0 FROM tab0
----
116640
1440
30240

query I rowsort
SELECT ALL - - col1 + + + 43 AS col0 FROM tab0 cor0
----
124
44
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <> + col1 * - - 80 * ( - - ( + - col0 ) ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 58 - - col0 + + - ( + - ( - col2 ) ) + + - col2 AS col0 FROM tab0 AS cor0 WHERE + col1 IN ( + + col1 )
----
-21
-43
125

query I rowsort
SELECT col1 + - col1 - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col0 * 67 FROM tab0
----
1005
5829
6499

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT ( - col1 ) DIV - col2 * - ( - + col1 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT ( - col1 ) / - col2 * - ( - + col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * + 69 * + col2 FROM tab1
----
20355
220524
92736

query I rowsort
SELECT + col1 * + ( - 8 ) FROM tab0 WHERE + col2 <> - col0
----
-168
-648
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT MIN( + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8993
SELECT MIN ( + - col0 ) FROM tab1
----
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - - 34 <> NULL
----

query I rowsort
SELECT - + col2 - - + col0 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE col1 + + col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - 26 + col1 FROM tab1 AS cor0
----
-12
-21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + + COUNT( * ) + + 74 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8998
SELECT + + COUNT ( * ) + + 74 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - - 6 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
6
6
6

query I rowsort
SELECT DISTINCT - 55 * - col1 * + 68 + col2 + + col2 AS col0 FROM tab2 AS cor0
----
190786
250696
288060

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL > - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL + COUNT( * ) + - + 85 - + + 91 + - SUM( col1 ) * - COUNT( * ) AS col2 FROM tab0 cor0
----
136

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + COUNT ( * ) + - + 85 - + + 91 + - SUM ( col1 ) * - COUNT ( * ) AS col2 FROM tab0 cor0
----
136

query I rowsort
SELECT ALL - col0 * + 82 - + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-3874
-5402
-6284

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query II rowsort
SELECT + col0 + + - col2, 62 AS col2 FROM tab2
----
17
62
23
62
24
62

query I rowsort
SELECT DISTINCT + col1 - - col0 - - ( - col0 ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT ALL 4 FROM tab0 WHERE - col0 NOT IN ( + CAST( - col1 AS SIGNED ) * col0 + CAST( NULL AS SIGNED ), col1, - - ( - - col2 ) * + - col2 * - col1 * - col1 * + col2 * - - CAST( NULL AS SIGNED ) / - 1 + + col1, - col1 )
----

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL 4 FROM tab0 WHERE - col0 NOT IN ( + CAST ( - col1 AS INTEGER ) * col0 + CAST ( NULL AS INTEGER ), col1, - - ( - - col2 ) * + - col2 * - col1 * - col1 * + col2 * - - CAST ( NULL AS INTEGER ) / - 1 + + col1, - col1 )
----

query I rowsort
SELECT ALL - col0 * - 19 FROM tab1
----
1615
1729
969

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 84 * + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 IS NULL
----

query II rowsort
SELECT DISTINCT - 7, col1 FROM tab1 AS cor0
----
-7
14
-7
47
-7
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - MAX( col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9012
SELECT - MAX ( col2 ) FROM tab2 cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT + - 25 * - CAST( + col1 AS SIGNED ) + + 45 * col2 FROM tab0 AS cor0
----
4140
4480
975

skipif mysql # not compatible
query I rowsort label-9013
SELECT + - 25 * - CAST ( + col1 AS INTEGER ) + + 45 * col2 FROM tab0 AS cor0
----
4140
4480
975

query II rowsort
SELECT ALL - col2 * + + col2 AS col1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1600
77
-3364
67
-529
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT - SUM( + + 9 ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - SUM ( + + 9 ) AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL + - col2 * + 66 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT - ( 53 ) * + 8 * + col2 FROM tab1 AS cor0
----
-25016
-28832
-40704

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT - SUM( + - col0 ) * + 34 + - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 75 - + - col2 NOT BETWEEN - + col0 / + - col0 + col1 * - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - SUM ( + - col0 ) * + 34 + - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 75 - + - col2 NOT BETWEEN - + col0 / + - col0 + col1 * - col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT + COUNT( 35 ) AS col2 FROM tab2 WHERE NOT + - 2 / - - ( - CAST( + ( + + 16 ) AS SIGNED ) ) * + 2 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT + COUNT ( 35 ) AS col2 FROM tab2 WHERE NOT + - 2 / - - ( - CAST ( + ( + + 16 ) AS INTEGER ) ) * + 2 + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL MAX( ALL + + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL MAX ( ALL + + col1 ) AS col1 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NOT col0 / 21 / + ( - - 95 ) + + col2 / + + col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col0 + + - col1 + + 37 * + 72 AS col1 FROM tab0
----
2598
2730
2760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col2 FROM tab2 WHERE NULL > + 90 * col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 85 * + col2 + - 22 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 43 FROM tab1 AS cor0 WHERE NULL <= - col2 - + 47 * col1
----

query I rowsort
SELECT + col1 + - - 18 AS col2 FROM tab1
----
23
32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT 40 + - + 75 * - - 49 + - + MAX( DISTINCT - col1 ) * + ( - 14 ) FROM tab1
----
-3705

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT 40 + - + 75 * - - 49 + - + MAX ( DISTINCT - col1 ) * + ( - 14 ) FROM tab1
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL COUNT( * ) * - MIN( col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL COUNT ( * ) * - MIN ( col2 ) FROM tab0
----
-30

query II rowsort
SELECT + col2 * - col0 * + + col0, + col1 FROM tab2
----
-163840
77
-326250
67
-48668
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9031
SELECT * FROM tab1 AS cor0 WHERE + 54 BETWEEN 5 * col1 * - CAST( + + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9031
SELECT * FROM tab1 AS cor0 WHERE + 54 BETWEEN 5 * col1 * - CAST ( + + col0 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT DISTINCT + 66 * col1 DIV + + 83 - - + 86 + + ( + col0 ) FROM tab2 AS cor0
----
172
211
214

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + 66 * col1 / + + 83 - - + 86 + + ( + col0 ) FROM tab2 AS cor0
----
172
211
214

query I rowsort
SELECT DISTINCT 42 * - 55 + + - ( + 60 ) FROM tab1 AS cor0
----
-2370

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT MAX( DISTINCT - - 77 ) AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9034
SELECT MAX ( DISTINCT - - 77 ) AS col1 FROM tab1 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT col0 DIV - 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9035
SELECT col0 / - 93 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + - 38 FROM tab0 AS cor0
----
-125
-135
-53

query I rowsort
SELECT ALL + col1 - - 66 AS col1 FROM tab2 AS cor0
----
117
133
143

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT col0 * 39 - - col0 - + 16 DIV + - col0 FROM tab2
----
1840
2560
3000

skipif mysql # not compatible
query I rowsort label-9038
SELECT col0 * 39 - - col0 - + 16 / + - col0 FROM tab2
----
1840
2560
3000

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT + COUNT( - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + COUNT ( - col0 ) FROM tab0
----
3

query I rowsort
SELECT + 92 * + 18 AS col2 FROM tab0
----
1656
1656
1656

query I rowsort
SELECT col2 * - + col1 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9044
SELECT ALL col0 * CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL col0 * CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT + + 92 * + + COUNT( * ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT + + 92 * + + COUNT ( * ) FROM tab1 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT - ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9046
SELECT DISTINCT - ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9047
SELECT DISTINCT MAX( - col1 ), 5 AS col1 FROM tab2 AS cor0
----
-51
5

skipif mysql # not compatible
query II rowsort label-9047
SELECT DISTINCT MAX ( - col1 ), 5 AS col1 FROM tab2 AS cor0
----
-51
5

query II rowsort
SELECT DISTINCT col0, 12 * + + 63 FROM tab2 AS cor0
----
46
756
64
756
75
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab0 AS cor0 WHERE col0 + - col2 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + - 16 ) col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - - col1, - col2, - col1, - 2, + col1 * - + 84 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col1 + 69 IS NOT NULL
----

query I rowsort
SELECT - ( 44 ) * - - col2 + - 18 * - - col0 FROM tab2 AS cor0
----
-1840
-2912
-3902

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9055
SELECT CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 60 ) AS col1 FROM tab1
----
-60

query II rowsort
SELECT DISTINCT col0 AS col1, - col2 + col2 + + - col1 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT DISTINCT col1 * col0 DIV 44 + + - col0 + col1 FROM tab2
----
106
125
58

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT col1 * col0 / 44 + + - col0 + col1 FROM tab2
----
106
125
58

query I rowsort
SELECT - col1 + + + 75 AS col0 FROM tab0
----
-6
54
74

query I rowsort
SELECT 58 + col0 AS col2 FROM tab1
----
109
143
149

query I rowsort
SELECT col2 + - - col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 7 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9062
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 7 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE col0 + + - col0 > - - 8
----
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE col0 + + - col0 > - - 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL 59 FROM tab2 AS cor0 WHERE NULL IS NULL
----
59
59
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 20 + - 71 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + col1 * - col0 - + - col2 * + col2 FROM tab1 AS cor0
----
3056
347
8502

query I rowsort
SELECT - 6 FROM tab1 AS cor0 WHERE + 45 + + + ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9071
SELECT MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT ( COUNT( 80 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT ( COUNT ( 80 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT ALL + - 6 - - CAST( 81 AS SIGNED ) + + col2 * - 10 - col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + - 6 - - CAST ( 81 AS INTEGER ) + + col2 * - 10 - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - MAX( - ( + col1 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - MAX ( - ( + col1 ) ) FROM tab2
----
NULL

query II rowsort
SELECT ALL 7 AS col1, + col0 AS col2 FROM tab0
----
7
15
7
87
7
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT ALL col1 * + 58 * col0 * + col0 FROM tab2
----
18292736
21858750
6259128

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 24 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT ALL col1 * - 89 AS col1 FROM tab0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + - 85 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9082
SELECT + - 85 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ( - ( COUNT( * ) ) ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9083
SELECT ( - ( COUNT ( * ) ) ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT - col1 DIV + 46 col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9084
SELECT - col1 / + 46 col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 - + ( col2 ) * - + col1 >= col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9085
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 - + ( col2 ) * - + col1 >= col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT + + MIN( ALL + - 75 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + + MIN ( ALL + - 75 ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - + 8 AND NULL AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 71 + col2 FROM tab0 AS cor0
----
118
170
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + COUNT( * ) + + 7 AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9089
SELECT + COUNT ( * ) + + 7 AS col2 FROM tab1 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * - 6 col1 FROM tab1 AS cor0
----
-2550
-25662
-4284

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT ALL + COUNT( * ) * - COUNT( * ) * + + COUNT( * ) + - - 3 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-24
-3

skipif mysql # not compatible
query II rowsort label-9091
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + + COUNT ( * ) + - - 3 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-24
-3

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT + SUM( ALL - + 27 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9094
SELECT + SUM ( ALL - + 27 ) AS col1 FROM tab2
----
-81

query I rowsort
SELECT ALL col1 + + + 91 FROM tab2 WHERE NOT 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - COUNT( * ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9096
SELECT - COUNT ( * ) FROM tab1 WHERE col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 12 + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-2104
-4084
-5613

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * - col0 <= - 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 20 * + + 42 * - col2 FROM tab1
----
-49560
-57120
-80640

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ( - ( + MIN( 24 ) ) ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9101
SELECT ( - ( + MIN ( 24 ) ) ) FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 + - - 56 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT + + MAX( 32 ) AS col2 FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT + + MAX ( 32 ) AS col2 FROM tab1 cor0
----
32

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE ( NOT ( + col1 = NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 80 AND 54
----

query II rowsort
SELECT col2, 18 * + col2 / + col2 - col2 FROM tab2 WHERE NOT - col2 * + col2 + + 96 + + 3 / col2 + + + 72 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9108
SELECT - ( - + 15 ) AS col1, + col2 DIV - - ( + 14 ) col1 FROM tab1
----
15
4
15
4
15
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9108
SELECT - ( - + 15 ) AS col1, + col2 / - - ( + 14 ) col1 FROM tab1
----
15
4
15
4
15
6

query II rowsort
SELECT ALL - col2 * + col0 AS col0, 37 FROM tab2 AS cor0
----
-1058
37
-2560
37
-4350
37

query II rowsort
SELECT DISTINCT - col0 / col0 AS col0, col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( col0, 71, - - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT - - COUNT( * ) * + 89 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT - - COUNT ( * ) * + 89 FROM tab2 AS cor0
----
267

query II rowsort
SELECT col1, + col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT DISTINCT + col2 DIV col0 * - + col2 AS col0 FROM tab1
----
-96
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT + col2 / col0 * - + col2 AS col0 FROM tab1
----
-96
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + 64 + - 26
----

query I rowsort
SELECT ALL + 93 + - 68 AS col0 FROM tab2 AS cor0 WHERE NULL <> + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT ALL col2 DIV + col0 AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL col2 / + col0 AS col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( - col2 ) <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9118
SELECT COUNT( * ) + + 16 + + - CAST( NULL AS SIGNED ) * + + 50 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT COUNT ( * ) + + 16 + + - CAST ( NULL AS INTEGER ) * + + 50 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 74 AS col2, + 30 AS col1 FROM tab0 AS cor0
----
74
30
74
30
74
30

query I rowsort
SELECT - 62 + + col0 AS col2 FROM tab2 WHERE col0 >= col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT COUNT( * ) + COUNT( * ) + - MAX( ( 86 ) ) + + + COUNT( * ) * - 83 * + 33 FROM tab2
----
-8297

skipif mysql # not compatible
query I rowsort label-9121
SELECT COUNT ( * ) + COUNT ( * ) + - MAX ( ( 86 ) ) + + + COUNT ( * ) * - 83 * + 33 FROM tab2
----
-8297

query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT 24 * 68 + 84 * COUNT( * ) * 22 col0 FROM tab1
----
7176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9123
SELECT 24 * 68 + 84 * COUNT ( * ) * 22 col0 FROM tab1
----
7176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab2 WHERE + col2 + - 98 * - 35 * - col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col0 + + + col2 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL + SUM( - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL + SUM ( - + col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL col0 + - 87 - + - col0 FROM tab2
----
41
5
63

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9129
SELECT ALL + CAST( - - 41 AS SIGNED ), - col0 AS col2 FROM tab2 AS cor0
----
41
-46
41
-64
41
-75

skipif mysql # not compatible
query II rowsort label-9129
SELECT ALL + CAST ( - - 41 AS INTEGER ), - col0 AS col2 FROM tab2 AS cor0
----
41
-46
41
-64
41
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9130
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col2, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9130
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col2, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9131
SELECT + - COUNT( * ), + CAST( - MAX( col2 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-3
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9131
SELECT + - COUNT ( * ), + CAST ( - MAX ( col2 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-3
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT MAX( ALL - col0 ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT MAX ( ALL - col0 ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL + CAST( NULL AS SIGNED ) - - AVG ( - col2 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + CAST ( NULL AS INTEGER ) - - AVG ( - col2 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT col2 * CAST( NULL AS SIGNED ) - + + 43 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9134
SELECT col2 * CAST ( NULL AS INTEGER ) - + + 43 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9135
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 26 FROM tab2 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT MIN( DISTINCT - + 81 ) col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9137
SELECT MIN ( DISTINCT - + 81 ) col0 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT col0 * - 96 FROM tab0 cor0
----
-1440
-8352
-9312

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT DISTINCT + - MIN( ALL + col0 ), - SUM( ALL + 55 ) AS col1 FROM tab1 AS cor0
----
-51
-165

skipif mysql # not compatible
query II rowsort label-9140
SELECT DISTINCT + - MIN ( ALL + col0 ), - SUM ( ALL + 55 ) AS col1 FROM tab1 AS cor0
----
-51
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT + 81 * - + CAST( NULL AS SIGNED ) + 8 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + 81 * - + CAST ( NULL AS INTEGER ) + 8 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 11 * + - 10 FROM tab1
----
-110
-110
-110

query II rowsort
SELECT ALL + col2 AS col1, + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE - + col1 * col1 <> - + 69
----
1
21
81

query II rowsort
SELECT ALL col0 AS col0, - col0 * col2 + - ( 9 ) AS col0 FROM tab2
----
46
-1067
64
-2569
75
-4359

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT + COUNT( * ) * - 89 AS col1 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-9146
SELECT + COUNT ( * ) * - 89 AS col1 FROM tab1 AS cor0
----
-267

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( + 43 )
----

query I rowsort
SELECT - col1 + 44 * col0 AS col2 FROM tab2
----
1973
2739
3233

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9149
SELECT ALL * FROM tab1 WHERE col2 + col1 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9149
SELECT ALL * FROM tab1 WHERE col2 + col1 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col0 > ( col0 - 97 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 59 + + col1 < + 91 * + col1
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT SUM( col0 ) * 87 FROM tab0
----
17313

skipif mysql # not compatible
query I rowsort label-9153
SELECT SUM ( col0 ) * 87 FROM tab0
----
17313

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL - ( COUNT( * ) ) * - COUNT( - 42 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - ( COUNT ( * ) ) * - COUNT ( - 42 ) AS col1 FROM tab0
----
9

query I rowsort
SELECT ALL - 32 * - col0 AS col1 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT - 61 * - 19 AS col0 FROM tab0
----
1159
1159
1159

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 IS NOT NULL
----

query I rowsort
SELECT 73 * + 51 FROM tab0
----
3723
3723
3723

query I rowsort
SELECT DISTINCT - 4 + col0 FROM tab1
----
47
81
87

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( ( + 95 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - 6 NOT BETWEEN ( col2 + col0 * 21 ) AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 68 < - col2 - ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 11 + - col0 FROM tab1 WHERE NOT - 97 IS NULL
----
-40
-74
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL COUNT( * ) * ( + 83 ) AS col1 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL COUNT ( * ) * ( + 83 ) AS col1 FROM tab2
----
249

query I rowsort
SELECT - 86 + col1 FROM tab0
----
-5
-65
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9167
SELECT ALL ( 83 ) + + COUNT( - ( col0 ) ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN - CAST( NULL AS DECIMAL ) AND - 5
----
83

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL ( 83 ) + + COUNT ( - ( col0 ) ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN - CAST ( NULL AS REAL ) AND - 5
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT MIN( DISTINCT + col1 ) FROM tab0 WHERE ( + 60 ) * + col1 IN ( col0 + + CAST( + col2 + 90 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT MIN ( DISTINCT + col1 ) FROM tab0 WHERE ( + 60 ) * + col1 IN ( col0 + + CAST ( + col2 + 90 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9169
SELECT + col1 + 90 AS col2 FROM tab2 WHERE NOT ( - 30 * CAST( - col2 / col0 AS DECIMAL ) + + 71 * - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9169
SELECT + col1 + 90 AS col2 FROM tab2 WHERE NOT ( - 30 * CAST ( - col2 / col0 AS REAL ) + + 71 * - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * 11 - + 43 AS col1 FROM tab2
----
-296
-483
-681

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT + col1 DIV - 8 FROM tab0
----
-10
-2
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT + col1 / - 8 FROM tab0
----
-10
-2
0

query I rowsort
SELECT - col0 * - col0 + + ( + col1 + - 90 ) * col2 FROM tab1
----
-4695
2210
5357

query I rowsort
SELECT - 8 + + col2 * + 47 FROM tab2 AS cor0
----
1073
1872
2718

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 26 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 5 * - col0 ) < ( col1 - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 15 IS NULL
----

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab0 AS cor0 WHERE NULL = + 1 + + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ( COUNT( + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9182
SELECT ( COUNT ( + col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT 9 * ( - 52 / + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE 72 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT DISTINCT - 99 DIV + col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT - 99 / + col2 FROM tab2 AS cor0
----
-1
-2
-4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( - ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col2 - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL + MIN( DISTINCT - col0 ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT col0 + 76 * col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 7 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT col1 DIV - - 47 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT col1 / - - 47 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + COUNT( DISTINCT ( 48 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9195
SELECT + COUNT ( DISTINCT ( 48 ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + MAX( ALL - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9196
SELECT + MAX ( ALL - col0 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT col0 * + - 41 AS col1 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - MAX( 92 ) AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9198
SELECT - MAX ( 92 ) AS col1 FROM tab2
----
-92

query I rowsort
SELECT ALL 65 * + ( col1 ) + - col1 * col0 AS col0 FROM tab0
----
-32
-462
4050

query I rowsort
SELECT 89 + col1 FROM tab1
----
103
136
94

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT + SUM( col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT + SUM ( col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + SUM( + col1 ) + + 23 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9203
SELECT + SUM ( + col1 ) + + 23 FROM tab1 AS cor0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9204
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 50 ) IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 50 ) IN ( - col0 )
----
NULL

query I rowsort
SELECT ( col0 ) * + col2 FROM tab0 AS cor0 WHERE NOT - col2 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - SUM( DISTINCT 70 ) AS col2 FROM tab1 AS cor0 WHERE 58 IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-9206
SELECT - SUM ( DISTINCT 70 ) AS col2 FROM tab1 AS cor0 WHERE 58 IS NOT NULL
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9207
SELECT - CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - - 43 * - 49 AND ( - 68 )
----

skipif mysql # not compatible
query I rowsort label-9207
SELECT - CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - - 43 * - 49 AND ( - 68 )
----

query I rowsort
SELECT ALL + 64 AS col0 FROM tab1 WHERE NOT col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 IN ( + col0 * 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9210
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 50 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 55 + - ( + 61 ) col0 FROM tab0 AS cor0
----
-116
-116
-116

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 > NULL
----

query I rowsort
SELECT - 97 AS col1 FROM tab1 AS cor0 WHERE 9 IS NOT NULL
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL + - CAST( NULL AS SIGNED ) + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + - CAST ( NULL AS INTEGER ) + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - - col2 - - 83 AS col0 FROM tab1 AS cor0
----
227
230
242

query I rowsort
SELECT ALL col0 + - + 93 AS col0 FROM tab1 AS cor0
----
-2
-42
-8

query I rowsort
SELECT ALL col1 + - 61 * + col0 AS col2 FROM tab0 AS cor0 WHERE ( - 89 - + col0 * col0 ) IS NULL
----

query I rowsort
SELECT col1 + - - col2 * col0 * 2 AS col2 FROM tab0 AS cor0
----
1491
1761
19207

query I rowsort
SELECT ALL + col0 - - - col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9220
SELECT ALL CAST( NULL AS SIGNED ) - - + COUNT( + - col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL CAST ( NULL AS INTEGER ) - - + COUNT ( + - col1 ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT + 17 - + COUNT( * ) * - 28 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + 17 - + COUNT ( * ) * - 28 FROM tab2
----
101

query I rowsort
SELECT + col0 + + col0 - - col1 + - col1 FROM tab2
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - 46
----

query II rowsort
SELECT DISTINCT ( 11 ), + col1 FROM tab0
----
11
1
11
21
11
81

query I rowsort
SELECT DISTINCT 37 + + + col0 AS col0 FROM tab2
----
101
112
83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = 50 + - + col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 42 ) NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT 22 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL + + ( - + 18 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + + ( - + 18 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9230
SELECT + ( + - COUNT( * ) ), - COUNT( * ) * 86 col2 FROM tab0 AS cor0
----
-3
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9230
SELECT + ( + - COUNT ( * ) ), - COUNT ( * ) * 86 col2 FROM tab0 AS cor0
----
-3
-258

query I rowsort
SELECT DISTINCT - col1 * + - 62 AS col1 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 * 54 / - + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9233
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + ( - - col0 ) - + col0 + col0 * col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - COUNT( * ) * 45 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-9235
SELECT - COUNT ( * ) * 45 FROM tab0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - COUNT( + col2 ) FROM tab0 AS cor0 WHERE NOT + col2 + + 57 * + col0 * - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9236
SELECT - COUNT ( + col2 ) FROM tab0 AS cor0 WHERE NOT + col2 + + 57 * + col0 * - col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + - MIN( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9237
SELECT + - MIN ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT - 87 * CAST( 58 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-4947
-4999
-5036

skipif mysql # not compatible
query I rowsort label-9238
SELECT - 87 * CAST ( 58 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-4947
-4999
-5036

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 38
----

query I rowsort
SELECT DISTINCT - - ( - 5 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT MAX( ALL 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT MAX ( ALL 97 ) FROM tab1 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 11 * 80 * ( + + col0 ) + 88 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 84 ) FROM tab2 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 col0 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT - 88 * col0 <= + 33 - - 57
----

query II rowsort
SELECT - col1 AS col2, - 45 FROM tab0
----
-1
-45
-21
-45
-81
-45

query I rowsort
SELECT + + col1 * - col0 AS col2 FROM tab0 WHERE NOT ( NOT NULL >= col2 * + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 61 AND 30 * - - col1
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE ( 81 * + 63 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9250
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE ( - - col1 * + + 6 ) <> ( - 27 * 23 )
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IS NULL OR NOT ( + ( - + col0 ) ) > + col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT - - CAST( - - col0 AS SIGNED ) * 91 FROM tab0 AS cor0
----
1365
7917
8827

skipif mysql # not compatible
query I rowsort label-9255
SELECT - - CAST ( - - col0 AS INTEGER ) * 91 FROM tab0 AS cor0
----
1365
7917
8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9256
SELECT + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) * - 40 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9256
SELECT + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) * - 40 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN - + col1 - col2 AND - col0
----

query I rowsort
SELECT - 75 + - - col0 + - col0 * + 31 FROM tab0 WHERE ( NULL ) >= - ( - + col1 )
----

query I rowsort
SELECT DISTINCT + col1 * + 45 AS col2 FROM tab2 AS cor0
----
2295
3015
3465

query II rowsort
SELECT DISTINCT + col0 + + col2, + col1 FROM tab2 AS cor0
----
104
77
133
67
69
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 - + 78 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - 70 + - + col2 + + 78 AS col2 FROM tab2 AS cor0
----
-1555
-2762
-4040

query I rowsort
SELECT - 55 AS col2 FROM tab0 cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT col1 * - + col1 * - + col2 + + 57 AS col2 FROM tab0 cor0
----
156
308424
4467

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT - MAX( DISTINCT - - col1 ) + - SUM( DISTINCT col2 ) AS col2 FROM tab2 WHERE NULL BETWEEN 47 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT - MAX ( DISTINCT - - col1 ) + - SUM ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NULL BETWEEN 47 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT ALL CAST( NULL AS SIGNED ) * + 73 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL CAST ( NULL AS INTEGER ) * + 73 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT COUNT( * ) * + - 42 col0 FROM tab1
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9268
SELECT COUNT ( * ) * + - 42 col0 FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT - - COUNT( ALL + + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9269
SELECT - - COUNT ( ALL + + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 59 col2, - 52 FROM tab0 AS cor0
----
-59
-52
-59
-52
-59
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + MIN( ALL 40 ) FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + MIN ( ALL 40 ) FROM tab1 cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL COUNT( * ) * - 17 * - - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL COUNT ( * ) * - 17 * - - COUNT ( * ) FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9273
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL 38 FROM tab0 WHERE - ( - 44 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9275
SELECT DISTINCT - - 43 / CAST( NULL AS SIGNED ) AS col2, - COUNT( ALL - + 14 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-9275
SELECT DISTINCT - - 43 / CAST ( NULL AS INTEGER ) AS col2, - COUNT ( ALL - + 14 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-9

query I rowsort
SELECT + col0 * - col1 * col0 + - 58 - col2 FROM tab1 AS cor0
----
-36242
-36568
-389333

query I rowsort
SELECT - 18 AS col2 FROM tab2 cor0
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT ALL + 14 DIV - col2 + col1 FROM tab0 AS cor0
----
1
20
81

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL + 14 / - col2 + col1 FROM tab0 AS cor0
----
1
20
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9279
SELECT + col2 DIV col2 col0, col1 AS col0 FROM tab0 AS cor0
----
1
1
1
21
1
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9279
SELECT + col2 / col2 col0, col1 AS col0 FROM tab0 AS cor0
----
1
1
1
21
1
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) + + - 35 FROM tab0
----
3
-32

skipif mysql # not compatible
query II rowsort label-9280
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) + + - 35 FROM tab0
----
3
-32

query I rowsort
SELECT ALL col0 * - - 13 FROM tab2
----
598
832
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT + SUM( ALL - - 39 ) * + CAST( NULL AS SIGNED ) + ( - + ( - + 47 ) ) * 8 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT + SUM ( ALL - - 39 ) * + CAST ( NULL AS INTEGER ) + ( - + ( - + 47 ) ) * 8 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT COUNT( DISTINCT ( - 63 ) ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9283
SELECT COUNT ( DISTINCT ( - 63 ) ) col1 FROM tab0
----
1

query I rowsort
SELECT col0 + + ( - + col2 ) - + + col2 FROM tab1
----
-141
-33
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + ( col0 ) ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL + - COUNT( DISTINCT 55 ) col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9286
SELECT ALL + - COUNT ( DISTINCT 55 ) col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - 6 * + COUNT( DISTINCT + col0 ) col1 FROM tab2
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9287
SELECT - 6 * + COUNT ( DISTINCT + col0 ) col1 FROM tab2
----
-18

query I rowsort
SELECT col2 * 23 * + col1 AS col0 FROM tab0
----
2277
4830
87561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * 14 * col1 col1 FROM tab2
----
51408
67536
77616

query II rowsort
SELECT DISTINCT 52 AS col1, col0 AS col2 FROM tab0
----
52
15
52
87
52
97

query I rowsort
SELECT DISTINCT col2 + + 38 - 66 * - 28 FROM tab2 AS cor0
----
1909
1926
1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT col1 + + - ( + CAST( + col0 AS SIGNED ) ) - + - col0 col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9292
SELECT col1 + + - ( + CAST ( + col0 AS INTEGER ) ) - + - col0 col1 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT + col0 + - + 32 * + col2 FROM tab2 AS cor0
----
-1216
-1781
-690

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - col2 + - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT DISTINCT - col2 - + col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT SUM( 76 ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT SUM ( 76 ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col2 - + - 51 FROM tab2 AS cor0
----
109
74
91

query I rowsort
SELECT + col2 + + col2 * + 33 + - 46 * + + 26 AS col0 FROM tab2 AS cor0
----
-414
164
776

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT - COUNT( * ) - + 27 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - COUNT ( * ) - + 27 FROM tab2 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT - 38 + - col1 DIV - col0 FROM tab2
----
-37
-37
-38

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 38 + - col1 / - col0 FROM tab2
----
-37
-37
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT 14 + + + 66 + - 81 + + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9303
SELECT 14 + + + 66 + - 81 + + COUNT ( * ) FROM tab1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT ALL + CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) - + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9305
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9306
SELECT ALL - CAST( NULL AS SIGNED ) * - - SUM( ALL + col0 ) AS col2, 51 AS col1 FROM tab0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-9306
SELECT ALL - CAST ( NULL AS INTEGER ) * - - SUM ( ALL + col0 ) AS col2, 51 AS col1 FROM tab0
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - ( - SUM( DISTINCT + 18 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT - ( - SUM ( DISTINCT + 18 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 <= - - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - + + col0 IN ( + 84, col2 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col2 - col0 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT col2 DIV + col0 + - - col1 AS col1 FROM tab0 AS cor0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-9311
SELECT col2 / + col0 + - - col1 AS col1 FROM tab0 AS cor0
----
2
21
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND col0 + col1
----

query I rowsort
SELECT DISTINCT - 77 * col1 + col0 + - 28 * + - 11 FROM tab0 AS cor0
----
-1222
-5914
328

query I rowsort
SELECT - 33 + + col0 AS col0 FROM tab2 AS cor0
----
13
31
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9315
SELECT DISTINCT 55 col2, COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col0 = ( 55 * - + col2 - - 71 ) )
----
55
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9315
SELECT DISTINCT 55 col2, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col0 = ( 55 * - + col2 - - 71 ) )
----
55
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - - col1 + + 6 IS NULL )
----

query I rowsort
SELECT + - 18 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
-18
-18
-18

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 46 > + + col0 + - col1 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT ALL - col2 DIV col1 * - 10 * + - ( col0 ) * - 0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - col2 / col1 * - 10 * + - ( col0 ) * - 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 0 + + col1 FROM tab1 cor0 WHERE NOT ( ( NOT - 13 <= NULL ) )
----

query II rowsort
SELECT - col2, 63 AS col0 FROM tab0 AS cor0
----
-10
63
-47
63
-99
63

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * - 34 / - col0 + + + 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab2
----
60

query I rowsort
SELECT ALL 74 * + col1 - - 92 AS col0 FROM tab1 AS cor0
----
1128
3570
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 + + - col2 col1 FROM tab2 AS cor0
----
-110
-75
-92

query I rowsort
SELECT + - 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-14

query I rowsort
SELECT ALL + col2 + - - col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT ( - + ( + col2 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9330
SELECT DISTINCT + + COUNT( col2 ) + MIN( - - col0 ) + - COUNT( * ) DIV - - 8 + + + 18 AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT + + COUNT ( col2 ) + MIN ( - - col0 ) + - COUNT ( * ) / - - 8 + + + 18 AS col1 FROM tab0 AS cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT + SUM( + 53 ) AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + SUM ( + 53 ) AS col1 FROM tab1 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT DISTINCT + col2 * ( col0 ) DIV - col0 + - + col0 + - + 34 * + + 37 AS col0 FROM tab2 cor0
----
-1327
-1362
-1391

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT + col2 * ( col0 ) / - col0 + - + col0 + - + 34 * + + 37 AS col0 FROM tab2 cor0
----
-1327
-1362
-1391

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT + MAX( + 48 ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + MAX ( + 48 ) AS col0 FROM tab2
----
48

query I rowsort
SELECT ( + + 15 ) AS col1 FROM tab0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 19 AS col1, col1 * col0 col0 FROM tab1
----
19
425
19
4277
19
714

query II rowsort
SELECT - col1 AS col2, + col2 * + col2 FROM tab2
----
-51
529
-67
3364
-77
1600

onlyif mysql # DIV for integer division: 
query II rowsort label-9338
SELECT - 17 AS col2, - col1 DIV - col1 AS col0 FROM tab1
----
-17
1
-17
1
-17
1

skipif mysql # not compatible
query II rowsort label-9338
SELECT - 17 AS col2, - col1 / - col1 AS col0 FROM tab1
----
-17
1
-17
1
-17
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + 32 + + + col0 AND - col0
----

query II rowsort
SELECT + - col2 AS col1, col0 * + - 88 * - - col0 FROM tab1 AS cor0
----
-59
-635800
-68
-728728
-96
-228888

query I rowsort
SELECT ALL - + 51 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 = + col1
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + col2 + col2 * 67 * col1 * 74 * 68 NOT BETWEEN - - 81 AND + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9344
SELECT ALL + 0 DIV + 72 * + + 22 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + 0 / + 72 * + + 22 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - ( + - 23 ) + + col1 * 10 FROM tab1 cor0
----
163
493
73

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT + + 46 + + MIN( DISTINCT - 29 ) AS col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9347
SELECT + + 46 + + MIN ( DISTINCT - 29 ) AS col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT - - col1 + + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL + 78 * CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
3588
4992
5850

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + 78 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT + col0 + + 65 * - col0 FROM tab2
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL MAX( - col0 ) + + - COUNT( * ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL MAX ( - col0 ) + + - COUNT ( * ) AS col2 FROM tab0
----
-18

query I rowsort
SELECT 69 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col2 * + + col2 AS col1 FROM tab2 WHERE NULL >= - col1
----

query II rowsort
SELECT - col2 + + + ( col0 ) AS col2, + col0 * - col1 * + - ( col1 ) FROM tab0
----
-2
97
-32
98415
77
38367

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9355
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / 77 * - ( - + CAST( NULL AS SIGNED ) ) * - col0 + - col1 * 15 NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-9355
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / 77 * - ( - + CAST ( NULL AS INTEGER ) ) * - col0 + - col1 * 15 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - - col0 * col1 + - - col1 FROM tab2 AS cor0
----
2397
5005
5092

query II rowsort
SELECT - 34 AS col0, - 10 FROM tab2 AS cor0
----
-34
-10
-34
-10
-34
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - SUM( - col0 ) * 66 + + COUNT( * ) AS col2 FROM tab0 cor0
----
13137

skipif mysql # not compatible
query I rowsort label-9358
SELECT - SUM ( - col0 ) * 66 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
13137

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT + 24 IN ( + col0, - col1 * col2, col0 ) AND NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT + 24 IN ( + col0, - col1 * col2, col0 ) AND NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 45 * ( 39 ) FROM tab0
----
1755

query I rowsort
SELECT DISTINCT + - 82 FROM tab2 cor0
----
-82

query I rowsort
SELECT - + col1 * + + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ( - + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + ( - - 14 ) / + ( + 18 ) * + + col2 * + 92 + + col0 = NULL )
----

query I rowsort
SELECT ALL - col1 * - 90 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1260
4230
450

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT - MIN( ALL 24 ) AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-9367
SELECT - MIN ( ALL 24 ) AS col1 FROM tab0
----
-24

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN + + col2 AND + col1
----
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 * - + col0, + col2 )
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9371
SELECT 7 DIV - CAST( 73 AS SIGNED ) 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-9371
SELECT 7 / - CAST ( 73 AS INTEGER ) col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - col2 ) FROM tab2 WHERE + + col0 IS NULL
----

query II rowsort
SELECT + - col0 + col1, - col2 * + + 44 + + 74 - + + col0 - + 69 AS col0 FROM tab2 AS cor0
----
-8
-2622
13
-1819
5
-1053

query I rowsort
SELECT + - col2 + 18 FROM tab1 cor0
----
-41
-50
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + 68 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 68 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 * - - col2 + + 88 + col1 + + ( - col0 ) AS col2, + col1 col0 FROM tab2 AS cor0
----
-1103
51
-1979
77
-2936
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT ALL - ( + CAST( + - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL - ( + CAST ( + - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - + 45 AS col1 FROM tab2 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT COUNT( * ) + COUNT( ALL - + 69 ) col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9380
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL - + 69 ) col0 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL - MIN( ALL - - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - MIN ( ALL - - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 23 - + col1 - + col1 FROM tab0
----
-139
-19
21

query I rowsort
SELECT col2 - - - col0 + - - col2 FROM tab0
----
-67
101
79

query I rowsort
SELECT col2 * - ( - col1 ) FROM tab1 WHERE - 79 < - + 46
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT DISTINCT 36 + col1 DIV 15 * col0 FROM tab2
----
174
336
356

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT 36 + col1 / 15 * col0 FROM tab2
----
174
336
356

query I rowsort
SELECT DISTINCT - + 98 * + + ( col2 ) + - 8 FROM tab1 AS cor0
----
-5790
-6672
-9416

query I rowsort
SELECT - col1 - - col1 AS col1 FROM tab0 cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + + 13
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 96 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT + + MAX( col2 ) * - 75 AS col0 FROM tab0 AS cor0
----
-7425

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT + + MAX ( col2 ) * - 75 AS col0 FROM tab0 AS cor0
----
-7425

query I rowsort
SELECT - + col0 * - 21 FROM tab1 AS cor0
----
1071
1785
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT MAX( ALL - 47 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT MAX ( ALL - 47 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - 38 FROM tab0 AS cor0 WHERE NOT 79 IS NULL
----
-38
-38
-38

query I rowsort
SELECT + - 44 * - - col0 FROM tab1 AS cor0
----
-2244
-3740
-4004

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 42 - + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT DISTINCT COUNT( DISTINCT - + 27 ) col1, + MIN( ALL col0 ) AS col1 FROM tab0
----
1
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9397
SELECT DISTINCT COUNT ( DISTINCT - + 27 ) col1, + MIN ( ALL col0 ) AS col1 FROM tab0
----
1
15

query I rowsort
SELECT ALL col0 - 17 AS col1 FROM tab2 WHERE NOT col0 / + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE + + 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT COUNT( col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9400
SELECT COUNT ( col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ( - COUNT( DISTINCT + - 16 ) ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9401
SELECT ( - COUNT ( DISTINCT + - 16 ) ) AS col0 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT ALL - col0 DIV + + 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - col0 / + + 91 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( - col2 ) * + col1 AS col1 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab2
----
82
82
82

query I rowsort
SELECT + col2 * col1 * - col1 + 92 FROM tab0 AS cor0
----
-308275
-4318
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9406
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - 72 * - + 23 AS col0 FROM tab2
----
-105984
-124200
-76176

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 + - col1 <> - + col1
----

query I rowsort
SELECT + 95 * - col2 FROM tab0
----
-4465
-9405
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT CAST( - + AVG ( 75 ) AS SIGNED ) AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-9410
SELECT CAST ( - + AVG ( 75 ) AS INTEGER ) AS col0 FROM tab0
----
-75

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + + col1 + col2 + - + col2 * col1 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + + col0 + 64 AS col0 FROM tab2 AS cor0
----
110
128
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT 56 + + COUNT( * ) col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9413
SELECT DISTINCT 56 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL ( 12 ) FROM tab0 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL + + 41 + col1 + + + CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-13
-41
20

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + + 41 + col1 + + + CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-13
-41
20

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 43 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9417
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + col0 AS SIGNED ) + + - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9417
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) + + - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT 92 DIV + 13 + col1 FROM tab0 AS cor0
----
28
8
88

skipif mysql # not compatible
query I rowsort label-9418
SELECT 92 / + 13 + col1 FROM tab0 AS cor0
----
28
8
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT - CAST( + 9 AS SIGNED ) + ( + col2 ) FROM tab2 AS cor0
----
14
31
49

skipif mysql # not compatible
query I rowsort label-9419
SELECT - CAST ( + 9 AS INTEGER ) + ( + col2 ) FROM tab2 AS cor0
----
14
31
49

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE + + 39 > + col2
----
21

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 = NULL
----

query I rowsort
SELECT col1 + - + 63 FROM tab1
----
-16
-49
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9424
SELECT ALL + COUNT( DISTINCT col2 ) / + - 45 - - + CAST( NULL AS SIGNED ) * - - 64 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL + COUNT ( DISTINCT col2 ) / + - 45 - - + CAST ( NULL AS INTEGER ) * - - 64 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * + col1 + - - 17 * col0 col1 FROM tab2
----
3179
4424
4707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT col0 / - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT col0 / - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col2 AND - 66 + + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT - ( - COUNT( col0 ) ) - + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT - ( - COUNT ( col0 ) ) - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - - 56 AS col1, col1 + - 17 FROM tab2 AS cor0
----
56
34
56
50
56
60

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT + 22 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
22
22
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - - col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT + MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9434
SELECT + MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT - 68 * + col0 AS col0, col1 FROM tab1 AS cor0
----
-3468
14
-5780
5
-6188
47

query II rowsort
SELECT - col1 * - - col1 AS col0, + 33 * + col0 * 55 AS col2 FROM tab2 AS cor0
----
-2601
83490
-4489
136125
-5929
116160

query II rowsort
SELECT 42 AS col1, col0 * - col2 FROM tab1
----
42
-4896
42
-5015
42
-6188

query II rowsort
SELECT col2 AS col2, - 43 FROM tab2
----
23
-43
40
-43
58
-43

query I rowsort
SELECT ALL - 77 FROM tab1 WHERE + col2 IS NOT NULL
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT + + 36 + + - ( COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-9440
SELECT + + 36 + + - ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - - col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT + COUNT( * ) * - 18 AS col1 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT + COUNT ( * ) * - 18 AS col1 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - - SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9445
SELECT - - SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query II rowsort
SELECT + 35 AS col1, + 80 AS col2 FROM tab1 AS cor0
----
35
80
35
80
35
80

query II rowsort
SELECT DISTINCT - col2 * - - col2 + + 60 AS col0, - 64 FROM tab1 AS cor0
----
-3421
-64
-4564
-64
-9156
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 73 * - col0 + - + col1 col2 FROM tab2 AS cor0
----
3307
4595
5408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9449
SELECT DISTINCT + COUNT( * ) DIV - 84 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + COUNT ( * ) / - 84 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT DISTINCT - ( + MIN( + col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT - ( + MIN ( + col0 ) ) FROM tab1
----
-51

query I rowsort
SELECT - 14 * - col2 * col0 * - + 20 + + + col2 FROM tab0
----
-197353
-243590
-2688741

query I rowsort
SELECT 38 + + 45 AS col2 FROM tab0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL - + MIN( + - col1 ) * COUNT( * ) + - - COUNT( DISTINCT + 1 ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
247

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - + MIN ( + - col1 ) * COUNT ( * ) + - - COUNT ( DISTINCT + 1 ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT ALL + CAST( NULL AS SIGNED ) + 98 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + CAST ( NULL AS INTEGER ) + 98 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL - 64 + 49 * - col1 AS col2 FROM tab2 AS cor0
----
-2563
-3347
-3837

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT MIN( + + ( - col0 ) ) + MIN( col0 ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT MIN ( + + ( - col0 ) ) + MIN ( col0 ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT CAST( - 89 AS SIGNED ) * + col2 - + col1 FROM tab1
----
-5256
-6099
-8558

skipif mysql # not compatible
query I rowsort label-9458
SELECT CAST ( - 89 AS INTEGER ) * + col2 - + col1 FROM tab1
----
-5256
-6099
-8558

query II rowsort
SELECT + 76, - 15 AS col1 FROM tab2 WHERE + + 40 - - col0 IS NOT NULL
----
76
-15
76
-15
76
-15

query I rowsort
SELECT + col1 * - col0 + + col1 AS col0 FROM tab1
----
-420
-4230
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col0 col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT CAST( - 68 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

skipif mysql # not compatible
query I rowsort label-9462
SELECT CAST ( - 68 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 31 + 6 <= - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT DISTINCT MIN( col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT MIN ( col2 ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL + ( + MAX( + col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL + ( + MAX ( + col2 ) ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 = - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 78 ) * - col2 AS col1 FROM tab1 cor0
----
-4602
-5304
-7488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9470
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT 98 / + + CAST( - 82 AS SIGNED ) + - col1 * - ( + 63 ) * + 36 FROM tab1 AS cor0 WHERE NOT ( + 50 * - col1 > NULL )
----

skipif mysql # not compatible
query I rowsort label-9471
SELECT 98 / + + CAST ( - 82 AS INTEGER ) + - col1 * - ( + 63 ) * + 36 FROM tab1 AS cor0 WHERE NOT ( + 50 * - col1 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 91 col1 FROM tab2 WHERE NOT - col0 / 17 + - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col1 * col2 AS col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL + SUM( ( - ( + 74 ) ) ) FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + SUM ( ( - ( + 74 ) ) ) FROM tab0
----
-222

query I rowsort
SELECT col0 * col0 * - - col0 FROM tab1
----
132651
614125
753571

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9476
SELECT ALL CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT + ( + col2 ), + 28 AS col1 FROM tab1
----
59
28
68
28
96
28

query I rowsort
SELECT + 1 + + col2 FROM tab1
----
60
69
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT ALL + 74 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + 74 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT col1 * col1 * - - col1 + CAST( - CAST( ( col0 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
103732
2693
40

skipif mysql # not compatible
query I rowsort label-9480
SELECT col1 * col1 * - - col1 + CAST ( - CAST ( ( col0 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
103732
2693
40

query I rowsort
SELECT - ( - col0 ) / - 82 / - col0 * + + col0 / + col2 + + - col1 AS col2 FROM tab2 AS cor0 WHERE col2 >= + 98
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT ALL + + 97 / COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + + 97 / COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE NOT - 18 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT MIN( - - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT MIN ( - - col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-9485
SELECT ALL col0 * col1 * col1 AS col1, - col2 DIV + - col0 - - col0 FROM tab1
----
201019
91
2125
85
9996
52

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL col0 * col1 * col1 AS col1, - col2 / + - col0 - - col0 FROM tab1
----
201019
91
2125
85
9996
52

query II rowsort
SELECT ALL col0 AS col2, - 25 FROM tab0
----
15
-25
87
-25
97
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT DISTINCT - 42 / - CAST( NULL AS SIGNED ) + + MIN( - col2 ) FROM tab1 AS cor0 WHERE - col1 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT - 42 / - CAST ( NULL AS INTEGER ) + + MIN ( - col2 ) FROM tab1 AS cor0 WHERE - col1 * - col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 + + - col1 col1 FROM tab0 AS cor0
----
15
75
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + + ( + col0 ) + - col0 col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT ALL - SUM( ALL - 26 ) * COUNT( * ) + - 83 FROM tab2 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - SUM ( ALL - 26 ) * COUNT ( * ) + - 83 FROM tab2 AS cor0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9491
SELECT ALL * FROM tab1 AS cor0 WHERE - 63 / + + col0 * - col1 * + + col1 <= col0 + + CAST( NULL AS SIGNED ) + col0 - - 14
----

skipif mysql # not compatible
query III rowsort label-9491
SELECT ALL * FROM tab1 AS cor0 WHERE - 63 / + + col0 * - col1 * + + col1 <= col0 + + CAST ( NULL AS INTEGER ) + col0 - - 14
----

query I rowsort
SELECT ALL ( - - 31 ) - 34 AS col1 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT 12 * 66 * col0 + ( + + 43 ) AS col2 FROM tab2
----
36475
50731
59443

query I rowsort
SELECT DISTINCT col0 * - + 31 * - + 37 - + + 20 AS col1 FROM tab1
----
104357
58477
97475

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT - MIN( + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT - MIN ( + col2 ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9496
SELECT 16 + + 98 DIV COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-9496
SELECT 16 + + 98 / COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
48

query I rowsort
SELECT + ( + 11 ) AS col1 FROM tab2
----
11
11
11

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - 25 IN ( + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - 25 IN ( + col2 )
----
-3

query II rowsort
SELECT + + col2 * - - col2, + col2 + + - col1 AS col1 FROM tab2 AS cor0
----
1600
-37
3364
-9
529
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9501
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT SUM( DISTINCT + col1 ) AS col0, 66 AS col1 FROM tab0 AS cor0
----
103
66

skipif mysql # not compatible
query II rowsort label-9502
SELECT SUM ( DISTINCT + col1 ) AS col0, 66 AS col1 FROM tab0 AS cor0
----
103
66

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT + col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL + - MAX( + 50 ) AS col1 FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + - MAX ( + 50 ) AS col1 FROM tab1 cor0
----
-50

query II rowsort
SELECT ALL - col1 * - 22 * - 34, - col0 - - - col0 - 69 AS col1 FROM tab0 AS cor0
----
-15708
-243
-60588
-99
-748
-263

query I rowsort
SELECT - 69 FROM tab0 AS cor0 WHERE NOT NULL <> 42 - + col1 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + 92 + + - COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9507
SELECT + 92 + + - COUNT ( * ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT + + 11 * + col1 FROM tab1 AS cor0 WHERE + ( + + col0 ) IS NULL AND - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IN ( - col0, - ( 87 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - - 83 * + 9 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
2241

skipif mysql # not compatible
query I rowsort label-9510
SELECT - - 83 * + 9 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT 36 * - MAX( - col0 ) FROM tab2 AS cor0
----
1656

skipif mysql # not compatible
query I rowsort label-9511
SELECT 36 * - MAX ( - col0 ) FROM tab2 AS cor0
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 / - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 / - col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9513
SELECT CAST( NULL AS SIGNED ) AS col2, + col2 col2 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-9513
SELECT CAST ( NULL AS INTEGER ) AS col2, + col2 col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT ALL col2, 93 AS col2 FROM tab2
----
23
93
40
93
58
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9515
SELECT + COUNT( ALL - - col1 ) + + + 49 DIV - 48 + + 42 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-9515
SELECT + COUNT ( ALL - - col1 ) + + + 49 / - 48 + + 42 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT MIN( ALL 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT MIN ( ALL 56 ) FROM tab1
----
56

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT - + col2 = - col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT ALL COUNT( * ) col0 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9518
SELECT ALL COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 11 * + col0 >= NULL
----

query II rowsort
SELECT col2, + 60 FROM tab0
----
10
60
47
60
99
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / + 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9522
SELECT DISTINCT + CAST( + + ( + - col1 ) AS SIGNED ) + - ( - col2 ) DIV 74 col0, - ( + 67 ) col0 FROM tab2 AS cor0
----
-51
-67
-67
-67
-77
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9522
SELECT DISTINCT + CAST ( + + ( + - col1 ) AS INTEGER ) + - ( - col2 ) / 74 col0, - ( + 67 ) col0 FROM tab2 AS cor0
----
-51
-67
-67
-67
-77
-67

query I rowsort
SELECT 31 * - + col1 FROM tab0
----
-2511
-31
-651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 87 * - + 36 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 87 * - + 36 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NOT ( col2 IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 col0 FROM tab0 cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + col0 + col0 * 39 + - - col0 AS col0 FROM tab0 AS cor0
----
3567
3977
615

query I rowsort
SELECT DISTINCT col2 + + 46 FROM tab0 cor0
----
145
56
93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 89 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9530
SELECT + COUNT( * ) DIV 61 FROM tab2 AS cor0 WHERE col2 + 19 - col2 + - + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9530
SELECT + COUNT ( * ) / 61 FROM tab2 AS cor0 WHERE col2 + 19 - col2 + - + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 7 - + - col1 * col1 * 91 * + 19 * col0 AS col1 FROM tab1
----
17283091
347561858
3674132

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT + MAX( + col2 ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9532
SELECT + MAX ( + col2 ) col2 FROM tab2
----
58

query I rowsort
SELECT 27 * - 73 AS col2 FROM tab0
----
-1971
-1971
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - SUM( col2 ) * - + COUNT( * ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-9534
SELECT - SUM ( col2 ) * - + COUNT ( * ) FROM tab2
----
363

query I rowsort
SELECT ALL 23 * - + col1 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT ALL - 56 * + col1 AS col0 FROM tab1
----
-2632
-280
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT - COUNT( * ) * - - 67 * - 40 AS col1 FROM tab2
----
8040

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT - COUNT ( * ) * - - 67 * - 40 AS col1 FROM tab2
----
8040

query I rowsort
SELECT + - 80 * - col0 + + + col1 FROM tab1 AS cor0
----
4094
6805
7327

query I rowsort
SELECT 83 * - 80 * - - col2 * 88 AS col2 FROM tab2 AS cor0
----
-13439360
-23372800
-33890560

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE 87 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + ( COUNT( ALL + + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9542
SELECT + ( COUNT ( ALL + + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT + - col2 * - col2 + col0 + - col0, + 6 AS col0 FROM tab1 AS cor0
----
3481
6
4624
6
9216
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9545
SELECT ALL col2 DIV + 26 + + 13 + + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-39
-6
-66

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL col2 / + 26 + + 13 + + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-39
-6
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT ALL 85 DIV 29 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL 85 / 29 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + 51 / - col2, ( 43 ) + + col2, - - col0 / + col0 / col2 + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col0 + - col2 + + - col1 AS col0 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT ALL + - 37 AS col2 FROM tab2 cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + - COUNT( + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9551
SELECT + - COUNT ( + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0
----
77

query I rowsort
SELECT - col0 * - + 44 * col1 + 40 AS col0 FROM tab0
----
4308
53500
80428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT COUNT( * ) + COUNT( * ) DIV + SUM( ALL - ( 19 ) ) * 17 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9554
SELECT COUNT ( * ) + COUNT ( * ) / + SUM ( ALL - ( 19 ) ) * 17 FROM tab1
----
3

query I rowsort
SELECT + 75 + 57 AS col1 FROM tab0
----
132
132
132

query I rowsort
SELECT + col2 + - + 44 FROM tab2
----
-21
-4
14

query I rowsort
SELECT - ( - ( - + col2 ) ) * + col1 AS col0 FROM tab1 AS cor0 WHERE - col0 * - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - 30 * - col2 * - 97 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9559
SELECT COUNT( * ) * - 55 - + CAST( NULL AS SIGNED ) AS col0, 34 * ( - 27 ) * COUNT( * ) + 70 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9559
SELECT COUNT ( * ) * - 55 - + CAST ( NULL AS INTEGER ) AS col0, 34 * ( - 27 ) * COUNT ( * ) + 70 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT ALL + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT + MIN( col2 ) - - COUNT( * ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-9561
SELECT + MIN ( col2 ) - - COUNT ( * ) AS col2 FROM tab2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL - CAST( - - col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + - col2 * - col1, + col1 AS col1 FROM tab0 cor0
----
210
21
3807
81
99
1

query I rowsort
SELECT + 62 + + 20 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT - CAST( - + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9565
SELECT - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT - MAX( DISTINCT - 32 ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - MAX ( DISTINCT - 32 ) AS col2 FROM tab2 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 73 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9567
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 73 col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 47 * + col1 AS col1 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT ALL col1 * + - 7 * - 63 FROM tab1
----
20727
2205
6174

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT MIN( - - col2 ) * 31 AS col0 FROM tab1
----
1829

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT MIN ( - - col2 ) * 31 AS col0 FROM tab1
----
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL - COUNT( * ) * - ( - 74 ) * SUM( - col0 ) AS col1 FROM tab0
----
44178

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - COUNT ( * ) * - ( - 74 ) * SUM ( - col0 ) AS col1 FROM tab0
----
44178

query I rowsort
SELECT ALL col1 * + - 97 FROM tab0
----
-2037
-7857
-97

query I rowsort
SELECT ( + + 28 ) * + col2 FROM tab1
----
1652
1904
2688

query II rowsort
SELECT - col0 * + col2 * - - 9 AS col0, - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-44064
-65
-45135
-90
-55692
-138

query II rowsort
SELECT ALL + 24, + 50 * + 69 AS col1 FROM tab0
----
24
3450
24
3450
24
3450

query I rowsort
SELECT ALL + 67 + - col2 FROM tab0
----
-32
20
57

query I rowsort
SELECT ALL + 93 * ( - col0 ) * col1 + col0 AS col0 FROM tab0 AS cor0
----
-112980
-169824
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT 35 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9580
SELECT - - MAX( - - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT - - MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT 65 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9581
SELECT 65 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL - 89 * COUNT( * ) FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - 89 * COUNT ( * ) FROM tab1
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT COUNT( * ) * + ( - 53 ) AS col2 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-9583
SELECT COUNT ( * ) * + ( - 53 ) AS col2 FROM tab1
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-9584
SELECT ALL MIN( - - 45 ) AS col2, + COUNT( * ) AS col2 FROM tab2
----
45
3

skipif mysql # not compatible
query II rowsort label-9584
SELECT ALL MIN ( - - 45 ) AS col2, + COUNT ( * ) AS col2 FROM tab2
----
45
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + + col1 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 39 + - 75 FROM tab1
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT + 99 - + - col0 + - ( col2 ) + - - col1 * col1 DIV - 34 FROM tab0 cor0
----
-125
164
97

skipif mysql # not compatible
query I rowsort label-9587
SELECT + 99 - + - col0 + - ( col2 ) + - - col1 * col1 / - 34 FROM tab0 cor0
----
-125
164
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + + COUNT( * ) - - - ( - - 28 ) + ( - + 35 ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + + COUNT ( * ) - - - ( - - 28 ) + ( - + 35 ) AS col2 FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT ALL - CAST( NULL AS SIGNED ) + - - 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 > + 39
----

query II rowsort
SELECT - - col0 AS col1, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT - - COUNT( DISTINCT + + 36 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9593
SELECT - - COUNT ( DISTINCT + + 36 ) FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 38 + + + col1 > ( NULL )
----

query I rowsort
SELECT ALL 14 * col0 AS col2 FROM tab2 AS cor0
----
1050
644
896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, - 81 col1 FROM tab2 cor0
----
-46
-81
-64
-81
-75
-81

query II rowsort
SELECT col1 AS col0, + ( - col0 ) * - 72 * + col2 AS col2 FROM tab0
----
1
691416
21
62640
81
50760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9598
SELECT CAST( NULL AS SIGNED ), 77 AS col1 FROM tab0
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-9598
SELECT CAST ( NULL AS INTEGER ), 77 AS col1 FROM tab0
----
NULL
77
NULL
77
NULL
77

query II rowsort
SELECT col2, - 79 FROM tab1
----
59
-79
68
-79
96
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT ALL 57 * + COUNT( * ) AS col2 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL 57 * + COUNT ( * ) AS col2 FROM tab0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9601
SELECT - ( - 9 ) / + 2 * - CAST( - + col0 AS SIGNED ) * + col1, + col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9601
SELECT - ( - 9 ) / + 2 * - CAST ( - + col0 AS INTEGER ) * + col1, + col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL COUNT( * ) * + 32 * COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
288

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL COUNT ( * ) * + 32 * COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
288

query I rowsort
SELECT col1 * - - 36 AS col2 FROM tab0
----
2916
36
756

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + COUNT( * ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9604
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 40 * + ( - col0 ) * - + col2 * + - col2 <= 39 - + col1 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 5 * - col1 AND NULL
----

query I rowsort
SELECT ALL + 29 FROM tab2 AS cor0 WHERE 58 IS NOT NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT - + COUNT( * ) * - + 85 + - SUM( + col2 ) FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - + COUNT ( * ) * - + 85 + - SUM ( + col2 ) FROM tab1 cor0
----
32

query II rowsort
SELECT + 11 + col2, + col2 AS col1 FROM tab0 AS cor0
----
110
99
21
10
58
47

query II rowsort
SELECT + col0 + + + col1 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
108
10
96
47
98
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9611
SELECT DISTINCT 86 DIV - 22, 88 AS col1 FROM tab0 AS cor0
----
-3
88

skipif mysql # not compatible
query II rowsort label-9611
SELECT DISTINCT 86 / - 22, 88 AS col1 FROM tab0 AS cor0
----
-3
88

query I rowsort
SELECT 49 + 21 AS col0 FROM tab1
----
70
70
70

query I rowsort
SELECT + col1 + - - col2 AS col1 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col2 + + col0 AS col2 FROM tab0
----
1
196
21
97
81
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL - 69 - + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL - 69 - + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
-78

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9617
SELECT 82 * CAST( NULL AS DECIMAL ) col0 FROM tab0 WHERE ( NULL ) NOT IN ( col1 + + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9617
SELECT 82 * CAST ( NULL AS REAL ) col0 FROM tab0 WHERE ( NULL ) NOT IN ( col1 + + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 45 IN ( 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( + 38 / - col1 )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT 47 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN 7 * + ( - 72 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT COUNT( ALL - 21 ) * 49 + + 42 DIV 75 AS col2 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-9622
SELECT COUNT ( ALL - 21 ) * 49 + + 42 / 75 AS col2 FROM tab2
----
147

query I rowsort
SELECT DISTINCT - ( 22 ) AS col1 FROM tab2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT - col0 + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT - col0 + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + + col2 col1 FROM tab1
----
128
137
165

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT col2 DIV - ( - col2 ) + + 87 FROM tab0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-9627
SELECT col2 / - ( - col2 ) + + 87 FROM tab0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT 59 + - 48 * - MAX( + 72 ) FROM tab1
----
3515

skipif mysql # not compatible
query I rowsort label-9628
SELECT 59 + - 48 * - MAX ( + 72 ) FROM tab1
----
3515

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT SUM( 12 ) * + 47 FROM tab1 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT SUM ( 12 ) * + 47 FROM tab1 WHERE NOT NULL > NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 44 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT + CAST( - col0 AS SIGNED ) * col2 + - 22 FROM tab2
----
-1080
-2582
-4372

skipif mysql # not compatible
query I rowsort label-9632
SELECT + CAST ( - col0 AS INTEGER ) * col2 + - 22 FROM tab2
----
-1080
-2582
-4372

query III rowsort
SELECT * FROM tab1 WHERE + 16 > ( ( + col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col0 + col2 = ( + 58 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 47 * - col1 ) AND NULL
----

query I rowsort
SELECT 4 * 46 FROM tab0 AS cor0
----
184
184
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9637
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 94 * - col0 FROM tab2 AS cor0
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9639
SELECT COUNT ( - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 * ( 22 ) FROM tab2 cor0
----
1012
1408
1650

query I rowsort
SELECT + ( col2 ) + + 59 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - 97 + + col2
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( 90 ) * col1 AS col1 FROM tab0 WHERE 64 = + col0 + - col1
----

query I rowsort
SELECT DISTINCT - col0 + 33 * + 22 FROM tab2
----
651
662
680

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT col1 DIV col2 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9645
SELECT col1 / col2 + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT - ( ( - COUNT( * ) ) ) + - 83 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT - ( ( - COUNT ( * ) ) ) + - 83 FROM tab2 AS cor0
----
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 6 + 4 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT DISTINCT 0 * CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT 0 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + 1 * col1 AS col2 FROM tab0 AS cor0 WHERE col1 + col2 IS NULL
----

query I rowsort
SELECT + 27 AS col0 FROM tab2 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT COUNT( - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9651
SELECT COUNT ( - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT + 78 * + COUNT( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9652
SELECT + 78 * + COUNT ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
234

query I rowsort
SELECT ALL - + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 37 ) NOT IN ( 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * col2 - - col2 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT COUNT( - - 83 ) * - 2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT COUNT ( - - 83 ) * - 2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT + COUNT( DISTINCT + 8 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + COUNT ( DISTINCT + 8 ) FROM tab0
----
1

query I rowsort
SELECT - col0 * - - col0 * col0 - 68 AS col0 FROM tab1
----
-132719
-614193
-753639

query I rowsort
SELECT - col0 - - 56 + col2 AS col2 FROM tab1
----
101
30
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT + COUNT( * ) DIV - + COUNT( * ) + 59 AS col2 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-9660
SELECT + COUNT ( * ) / - + COUNT ( * ) + 59 AS col2 FROM tab0
----
58

query I rowsort
SELECT DISTINCT + 44 * - col0 FROM tab0 AS cor0
----
-3828
-4268
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT - 53 DIV + + 55 + + col2 DIV ( + 19 ) FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-9662
SELECT - 53 / + + 55 + + col2 / ( + 19 ) FROM tab0 AS cor0
----
0
2
5

query I rowsort
SELECT ALL + + 59 * col1 * - 25 + - col1 + col1 AS col0 FROM tab1 AS cor0
----
-20650
-69325
-7375

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col1 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT - 80 * COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 40 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9665
SELECT - 80 * COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT DISTINCT MIN( + 85 ) col1 FROM tab1, tab1 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9666
SELECT DISTINCT MIN ( + 85 ) col1 FROM tab1, tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT + 52 - - 85 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
137

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col1 * ( + 58 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col0 - + col2 < 74 / 77 )
----
51
14
96

query I rowsort
SELECT - col0 * - 55 + + + 37 * col2 AS col1 FROM tab1 AS cor0
----
6357
6858
7521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col1 col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9672
SELECT DISTINCT + col0 col1, CAST( + + 67 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
15
-3149
87
-670
97
-6633

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9672
SELECT DISTINCT + col0 col1, CAST ( + + 67 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
15
-3149
87
-670
97
-6633

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = NULL
----

query II rowsort
SELECT 90 AS col0, 65 * - 66 AS col2 FROM tab2 AS cor0
----
90
-4290
90
-4290
90
-4290

query I rowsort
SELECT ALL - 33 * 34 FROM tab2 AS cor0 WHERE NOT + ( col1 ) NOT IN ( 49 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col1 + + 22 / 43 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NOT ( 73 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + + 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL - COUNT( * ) / - MAX( DISTINCT col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - COUNT ( * ) / - MAX ( DISTINCT col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + 15 IS NOT NULL
----

query I rowsort
SELECT ALL ( - + col1 ) FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9682
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) + - 66 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 66 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 >= + ( col0 ) * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9684
SELECT col1 + - + col2, + CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
-21
47
-54
5
-82
14

skipif mysql # not compatible
query II rowsort label-9684
SELECT col1 + - + col2, + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
-21
47
-54
5
-82
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9685
SELECT DISTINCT COUNT( * ) + - - 80 AS col0, + SUM( col1 ) AS col1 FROM tab2
----
83
195

skipif mysql # not compatible
query II rowsort label-9685
SELECT DISTINCT COUNT ( * ) + - - 80 AS col0, + SUM ( col1 ) AS col1 FROM tab2
----
83
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT + 17 * MAX( + col1 ) FROM tab0 AS cor0
----
1377

skipif mysql # not compatible
query I rowsort label-9687
SELECT + 17 * MAX ( + col1 ) FROM tab0 AS cor0
----
1377

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( col2 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT COUNT( * ) - + 44 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-9689
SELECT COUNT ( * ) - + 44 FROM tab2
----
-41

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 6 >= NULL
----

query I rowsort
SELECT ALL - + col2 - - col2 * - - 88 * + - 9 FROM tab1 cor0
----
-46787
-53924
-76128

query I rowsort
SELECT DISTINCT + 5 * + + col1 - 26 FROM tab0 AS cor0
----
-21
379
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT + 89 + col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE 85 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 89 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT ALL - - col2 - + + col0 + + + col1 AS col0 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE col0 + + - col2 IS NOT NULL
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT ALL col0 - - + col1 - + col0 - + col1 DIV - 91 * - col0 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL col0 - - + col1 - + col0 - + col1 / - 91 * - col0 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT DISTINCT col1 * ( + ( 30 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - 4 > ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT col1 * ( + ( 30 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - 4 > ( - + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE col0 NOT IN ( 7 )
----
46
64
75

query I rowsort
SELECT + col0 + + col1 * + - col2 AS col2 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT - MIN( + col1 ) + 71 DIV - + 84 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9700
SELECT - MIN ( + col1 ) + 71 / - + 84 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT DISTINCT COUNT( * ) - - + 59 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT COUNT ( * ) - - + 59 FROM tab1
----
62

query I rowsort
SELECT + 90 * - + ( col0 ) FROM tab2
----
-4140
-5760
-6750

query II rowsort
SELECT ALL 34, + col2 + + 84 AS col2 FROM tab0
----
34
131
34
183
34
94

query I rowsort
SELECT - 56 * 48 AS col2 FROM tab2
----
-2688
-2688
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL + COUNT( DISTINCT - col2 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9705
SELECT ALL + COUNT ( DISTINCT - col2 ) col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 WHERE - 80 <> - col2
----
-51
-67
-77

query I rowsort
SELECT 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 )
----

query II rowsort
SELECT DISTINCT + + col0 * - 7, - col2 AS col2 FROM tab2 AS cor0
----
-322
-23
-448
-40
-525
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT DISTINCT - 43 DIV - col0 - - col0 * + 72 * + ( - 20 ) FROM tab2 AS cor0
----
-108000
-66240
-92160

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT - 43 / - col0 - - col0 * + 72 * + ( - 20 ) FROM tab2 AS cor0
----
-108000
-66240
-92160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT col2 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT col2 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 62 + + col0 - + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-4
128
158

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + 20 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( col1 ), - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ALL - + ( + - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT - - col2 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT - - col2 / - col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 61 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 31 BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT DISTINCT - ( + CAST( - 8 AS SIGNED ) ) * - col0 AS col2 FROM tab2
----
-368
-512
-600

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT - ( + CAST ( - 8 AS INTEGER ) ) * - col0 AS col2 FROM tab2
----
-368
-512
-600

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 + 45 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col2 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col2 FROM tab2 WHERE NOT 52 IN ( - - 22, - col2 + - col2 + - col1 )
----
-23
-40
-58

query II rowsort
SELECT ALL 54 AS col2, - col2 FROM tab1
----
54
-59
54
-68
54
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 col0, col1 * + + col2 AS col2 FROM tab0
----
66
210
66
3807
66
99

query I rowsort
SELECT DISTINCT col1 + + 60 - + - 88 FROM tab1
----
153
162
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9727
SELECT - ( col0 ) * - col1 + CAST( NULL AS SIGNED ) - - col2 * - col2 AS col1, - col2 * - col1 col2 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9727
SELECT - ( col0 ) * - col1 + CAST ( NULL AS INTEGER ) - - col2 * - col2 AS col1, - col2 * - col1 col2 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( - 71 + - 39 IS NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT + MIN( ALL 89 ) AS col0 FROM tab2 WHERE ( NULL NOT BETWEEN + col1 AND ( + 20 + - CAST( - + col2 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT + MIN ( ALL 89 ) AS col0 FROM tab2 WHERE ( NULL NOT BETWEEN + col1 AND ( + 20 + - CAST ( - + col2 AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT DISTINCT - col0 * + col1, + col0 FROM tab0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT - - 82 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9732
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - ( + - COUNT( + + 68 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9733
SELECT - ( + - COUNT ( + + 68 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT MAX( DISTINCT col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9734
SELECT MAX ( DISTINCT col1 ) FROM tab1 cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 30 + col0 * - + col1 AS col2 FROM tab0 AS cor0
----
-1185
-1797
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL COUNT( * ) * + - COUNT( * ) - + MAX( + - 41 ) AS col1 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL COUNT ( * ) * + - COUNT ( * ) - + MAX ( + - 41 ) AS col1 FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT 73, + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 + - 47 * - - col1 IS NOT NULL
----
73
3

skipif mysql # not compatible
query II rowsort label-9738
SELECT 73, + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 + - 47 * - - col1 IS NOT NULL
----
73
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - + 23 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - + 23 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT DISTINCT - 22 * 40 DIV + col1 + col2 FROM tab0 AS cor0
----
-31
-781
37

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT - 22 * 40 / + col1 + col2 FROM tab0 AS cor0
----
-31
-781
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 58 col1 FROM tab2
----
23
58
40
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9742
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL AND col0 NOT IN ( + - 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9742
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL AND col0 NOT IN ( + - 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9743
SELECT ALL + AVG ( + col2 ) - + CAST( NULL AS SIGNED ), 22 + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9743
SELECT ALL + AVG ( + col2 ) - + CAST ( NULL AS INTEGER ), 22 + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + - col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT - 38 + + COUNT( * ) col2 FROM tab0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9745
SELECT - 38 + + COUNT ( * ) col2 FROM tab0
----
-35

query I rowsort
SELECT ALL + col0 * - 71 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT ALL - CAST( - col1 AS SIGNED ) col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9747
SELECT ALL - CAST ( - col1 AS INTEGER ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL col1 * - + 19 AS col0 FROM tab0
----
-1539
-19
-399

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * + - col0 * - + col1 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9750
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, 66 * + + 69 * + 27 - - 1 + 1 AS col0 FROM tab2
----
NULL
122960

skipif mysql # not compatible
query II rowsort label-9750
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 66 * + + 69 * + 27 - - 1 + 1 AS col0 FROM tab2
----
NULL
122960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col0 FROM tab1 AS cor0
----
67
67
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 26 * + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT + 27 * + COUNT( * ) FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT + 27 * + COUNT ( * ) FROM tab2 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL COUNT( * ) * - ( ( COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL COUNT ( * ) * - ( ( COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT DISTINCT - - 57 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT - - 57 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 27 * - - 33 + + col1 AS col1 FROM tab0 AS cor0
----
-810
-870
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + + COUNT( * ) FROM tab2 WHERE NOT ( - 92 > + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9759
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT ( - 92 > + col1 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9760
SELECT COUNT( * ) + COUNT( * ) col2, - ( 55 ) AS col2 FROM tab0
----
6
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9760
SELECT COUNT ( * ) + COUNT ( * ) col2, - ( 55 ) AS col2 FROM tab0
----
6
-55

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - ( - + col0 ) * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 17 + - col2 + - col1 * - - col2 * + ( ( col2 ) ) + + 70 AS col1 FROM tab0 AS cor0
----
-178889
-2023
-9813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9764
SELECT ALL + 77 + - 24 * - COUNT( * ) DIV + SUM( ALL col0 ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + 77 + - 24 * - COUNT ( * ) / + SUM ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL + - col1 * + - ( + + 27 ) + - 46 AS col2 FROM tab2 AS cor0
----
1331
1763
2033

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT MIN( - 85 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-9766
SELECT MIN ( - 85 ) FROM tab2
----
-85

query I rowsort
SELECT ALL ( 90 ) + col0 * + col2 + - col2 * - col1 FROM tab0
----
1170
4602
9792

query I rowsort
SELECT DISTINCT - 52 + col0 FROM tab2 cor0
----
-6
12
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col0 + - 83 ) <> 28 * - + 16 / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT - col0 DIV - ( col0 ) + + 66 * + col1 AS col2 FROM tab2 AS cor0
----
3367
4423
5083

skipif mysql # not compatible
query I rowsort label-9770
SELECT - col0 / - ( col0 ) + + 66 * + col1 AS col2 FROM tab2 AS cor0
----
3367
4423
5083

query I rowsort
SELECT DISTINCT - + ( + col0 ) - ( - col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT + 32 + + 56 + - + ( - COUNT( * ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9772
SELECT + 32 + + 56 + - + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 55 IN ( ( + + 81 ), col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - 43 AS col0 FROM tab0 AS cor0
----
-124
-44
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT 7 + + COUNT( * ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT 7 + + COUNT ( * ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT 11 - + - 36 AS col0 FROM tab2 cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 64 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT 91 col0, COUNT( DISTINCT - - 37 ) AS col2 FROM tab2 AS cor0
----
91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9778
SELECT 91 col0, COUNT ( DISTINCT - - 37 ) AS col2 FROM tab2 AS cor0
----
91
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 90 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + 79 * col2 / + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT DISTINCT + CAST( + 58 AS SIGNED ) * + col0 AS col2 FROM tab2
----
2668
3712
4350

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT + CAST ( + 58 AS INTEGER ) * + col0 AS col2 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT ALL - col2 + + col2 + col2 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 26 + ( - + 42 ) + - + 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT + MIN( DISTINCT - + col1 ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9784
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - + 18 FROM tab0 AS cor0 WHERE NOT col2 * - col0 * - col0 + + col0 IS NULL
----
-18

query I rowsort
SELECT DISTINCT + 90 * - - 40 AS col2 FROM tab0 AS cor0
----
3600

query II rowsort
SELECT - col1 * col2 + + col1 * - col1 AS col1, - 35 FROM tab2 AS cor0
----
-3774
-35
-8375
-35
-9009
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT 59 - + + 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT + + 47 * + MAX( DISTINCT - col1 ) + + 12 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9790
SELECT + + 47 * + MAX ( DISTINCT - col1 ) + + 12 FROM tab1 cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 16 * - ( + 47 ) IS NULL
----

query I rowsort
SELECT ALL + col2 * + - col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9793
SELECT CAST( NULL AS DECIMAL ) / + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT CAST ( NULL AS REAL ) / + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT + - col1 * - CAST( NULL AS SIGNED ) 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-9794
SELECT + - col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - col1 * - + 96 AS col1 FROM tab2 AS cor0
----
4896
6432
7392

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT DISTINCT - - 52 DIV - 9 AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT - - 52 / - 9 AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT col0 * + col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9799
SELECT ALL COUNT( * ), 47 col0 FROM tab2
----
3
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9799
SELECT ALL COUNT ( * ), 47 col0 FROM tab2
----
3
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT 20 DIV 92 * + + 91 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT 20 / 92 * + + 91 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT - COUNT( + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT - COUNT ( + col0 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT 19 * + + 80 * + COUNT( * ) FROM tab2
----
4560

skipif mysql # not compatible
query I rowsort label-9803
SELECT 19 * + + 80 * + COUNT ( * ) FROM tab2
----
4560

query I rowsort
SELECT ALL col2 + - col1 + - 79 AS col1 FROM tab2 AS cor0
----
-107
-116
-88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 IN ( - 35, + 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT + MIN( ALL - 99 ) AS col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9806
SELECT + MIN ( ALL - 99 ) AS col0 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT 4 - col2 FROM tab0 AS cor0
----
-43
-6
-95

query I rowsort
SELECT ALL + + 46 + - 99 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT - + 26 - + col2 AS col1 FROM tab0 AS cor0
----
-125
-36
-73

query I rowsort
SELECT + col1 + - col1 FROM tab0 WHERE NOT + - 5 IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col0 ) + - 70 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT 0 * - - 40 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT MIN( 2 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT MIN ( 2 ) FROM tab0
----
2

query II rowsort
SELECT + 50 AS col2, - col2 + + - col1 AS col2 FROM tab2
----
50
-117
50
-125
50
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT ( - COUNT( * ) ) * 56 * + 56, + 84 col1 FROM tab0
----
-9408
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9816
SELECT ( - COUNT ( * ) ) * 56 * + 56, + 84 col1 FROM tab0
----
-9408
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT + MAX( + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9817
SELECT + MAX ( + col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IN ( + 89, ( - + 78 ) * - - col2 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT - MAX( + + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-9819
SELECT - MAX ( + + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-97

query I rowsort
SELECT ALL - - 13 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query II rowsort
SELECT - ( - 16 ) AS col2, ( col0 ) AS col2 FROM tab2
----
16
46
16
64
16
75

query I rowsort
SELECT ALL + - 6 + col1 FROM tab1 AS cor0
----
-1
41
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL - COUNT( * ) * + + 46 * - + 99 * - + 33 col1 FROM tab2 AS cor0
----
-450846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9823
SELECT ALL - COUNT ( * ) * + + 46 * - + 99 * - + 33 col1 FROM tab2 AS cor0
----
-450846

query II rowsort
SELECT ALL - ( - - 1 ) AS col1, col0 FROM tab1 AS cor0
----
-1
51
-1
85
-1
91

query I rowsort
SELECT + col2 * + 30 + 54 FROM tab1
----
1824
2094
2934

query I rowsort
SELECT ALL - 29 + col0 * - col1 FROM tab2
----
-2375
-4957
-5054

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT DISTINCT - 88 DIV + col0 + + + col2 + + 42 AS col0 FROM tab1
----
100
110
137

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT - 88 / + col0 + + + col2 + + 42 AS col0 FROM tab1
----
100
110
137

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9828
SELECT * FROM tab0 AS cor0 WHERE 62 <> CAST( NULL AS SIGNED ) - + + col0 * - col1 * 71 * col2 * - + col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-9828
SELECT * FROM tab0 AS cor0 WHERE 62 <> CAST ( NULL AS INTEGER ) - + + col0 * - col1 * 71 * col2 * - + col1 + - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9830
SELECT CAST( NULL AS DECIMAL ), + col2 col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9830
SELECT CAST ( NULL AS REAL ), + col2 col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + - 53 AS col1 FROM tab2 AS cor0 WHERE 19 IS NULL
----

query I rowsort
SELECT DISTINCT 82 - + - col1 * + col2 AS col1 FROM tab2
----
1255
3162
3968

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 + col1 BETWEEN NULL AND + 41 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL SUM( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 63 col0 FROM tab1 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT + COUNT( ALL + 27 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9837
SELECT + COUNT ( ALL + 27 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT DISTINCT + ( + - COUNT( * ) ) AS col1, - 85 FROM tab0
----
-3
-85

skipif mysql # not compatible
query II rowsort label-9838
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col1, - 85 FROM tab0
----
-3
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 * + 64 IN ( + - 55, + 65 / + - 78, col1 + + 37, - - 78 + col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL - MIN( col1 ) AS col0 FROM tab1 WHERE NULL = + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL - MIN ( col1 ) AS col0 FROM tab1 WHERE NULL = + + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT - - 90 * - + COUNT( * ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-9841
SELECT - - 90 * - + COUNT ( * ) FROM tab1 AS cor0
----
-270

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
32

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab2 cor1 ON NOT - - ( - 37 ) IS NOT NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT COUNT( * ) + + CAST( + - COUNT( * ) AS SIGNED ) * + 18 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9845
SELECT COUNT ( * ) + + CAST ( + - COUNT ( * ) AS INTEGER ) * + 18 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col0 ) + 8 * 33 - 50 < NULL
----

query I rowsort
SELECT DISTINCT - - col2 + - + 46 FROM tab0 AS cor0
----
-36
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + + COUNT( * ) * COUNT( * ) + - + 60 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9848
SELECT + + COUNT ( * ) * COUNT ( * ) + - + 60 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT ALL 55 + - + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL 55 + - + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT DISTINCT - 30 + COUNT( - col0 ) DIV + 17 AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT - 30 + COUNT ( - col0 ) / + 17 AS col2 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - + col2 + - + col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9853
SELECT DISTINCT + col2 + + + col2 - + ( + + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + col2 + + + col2 - + ( + + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9855
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9855
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT 26 / + AVG ( ALL - col1 ) * - - SUM( + + col2 ) + + 37 FROM tab0 cor0 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT 26 / + AVG ( ALL - col1 ) * - - SUM ( + + col2 ) + + 37 FROM tab0 cor0 WHERE ( col1 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - - 0 - - col1 AS col1 FROM tab1 WHERE NOT - + col2 NOT BETWEEN + col1 / - ( 36 ) AND - 22 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + MIN( - col0 ) - - ( MAX( DISTINCT col0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT + MIN ( - col0 ) - - ( MAX ( DISTINCT col0 ) ) FROM tab2
----
0

query II rowsort
SELECT ALL col2 * col0 AS col2, col0 * + col0 FROM tab2
----
1058
2116
2560
4096
4350
5625

query I rowsort
SELECT - col1 + - - 72 + - col1 FROM tab0
----
-90
30
70

query II rowsort
SELECT col1 + - 5, col0 * + col1 AS col1 FROM tab1
----
0
425
42
4277
9
714

query III rowsort
SELECT * FROM tab2 WHERE - - 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT DISTINCT ( COUNT( * ) ) - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT ( COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9864
SELECT DISTINCT + col0, + col1 * - col0 * - 84 * - CAST( + col1 AS SIGNED ) * col0 AS col1 FROM tab0
----
15
-124002900
87
-280386036
97
-790356

skipif mysql # not compatible
query II rowsort label-9864
SELECT DISTINCT + col0, + col1 * - col0 * - 84 * - CAST ( + col1 AS INTEGER ) * col0 AS col1 FROM tab0
----
15
-124002900
87
-280386036
97
-790356

query I rowsort
SELECT + 13 * + ( + + 91 ) AS col0 FROM tab0
----
1183
1183
1183

query I rowsort
SELECT ALL ( + + 51 ) FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL COUNT( - col2 ) * + 10 / - + COUNT( * ) * + + SUM( + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-9867
SELECT ALL COUNT ( - col2 ) * + 10 / - + COUNT ( * ) * + + SUM ( + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + COUNT( ALL - ( + + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9868
SELECT + COUNT ( ALL - ( + + col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT COUNT( DISTINCT - + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9869
SELECT COUNT ( DISTINCT - + col0 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9871
SELECT ALL + 58 * MIN( - ( col0 ) ) AS col2, 25 AS col0 FROM tab0
----
-5626
25

skipif mysql # not compatible
query II rowsort label-9871
SELECT ALL + 58 * MIN ( - ( col0 ) ) AS col2, 25 AS col0 FROM tab0
----
-5626
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT MIN( col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9872
SELECT MIN ( col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT - 44 + col0 AS col0 FROM tab1 WHERE NOT NULL >= col2
----

query II rowsort
SELECT col1 AS col1, - col2 AS col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - - MAX( - col0 ) FROM tab0 WHERE NOT - col2 * - col1 + - 85 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT - - MAX ( - col0 ) FROM tab0 WHERE NOT - col2 * - col1 + - 85 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - col1 col0 FROM tab2 WHERE col2 IS NOT NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + + 50 + COUNT( * ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + + 50 + COUNT ( * ) FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT ALL - - CAST( - 72 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= - 87
----

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL - - CAST ( - 72 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= - 87
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9880
SELECT DISTINCT - CAST( COUNT( 24 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - CAST ( COUNT ( 24 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL COUNT( - 49 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL COUNT ( - 49 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT CAST( + COUNT( * ) AS SIGNED ) + 38 FROM tab0 WHERE - - 82 + - + ( + col1 ) * col2 NOT BETWEEN NULL AND NULL
----
38

skipif mysql # not compatible
query I rowsort label-9882
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + 38 FROM tab0 WHERE - - 82 + - + ( + col1 ) * col2 NOT BETWEEN NULL AND NULL
----
38

query II rowsort
SELECT DISTINCT - 30 + + col0 AS col2, - col2 + col2 FROM tab2
----
16
0
34
0
45
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 = + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT DISTINCT - + ( + - col2 ) + col1 + - col2 DIV col1 * - 68 FROM tab1 AS cor0
----
183
518
812

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT - + ( + - col2 ) + col1 + - col2 / col1 * - 68 FROM tab1 AS cor0
----
183
518
812

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9886
SELECT - - col2 AS col2, 9 * + + 16 * + - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE + col2 * + col2 + + 83 * + - col1 + 52 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9886
SELECT - - col2 AS col2, 9 * + + 16 * + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE + col2 * + col2 + + 83 * + - col1 + 52 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + col0 + - col1 + + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL + COUNT( * ) + 62 AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + COUNT ( * ) + 62 AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT + col0 DIV + col2 + col0 + col0 * + col1 FROM tab0 AS cor0
----
1230
1922
194

skipif mysql # not compatible
query I rowsort label-9890
SELECT + col0 / + col2 + col0 + col0 * + col1 FROM tab0 AS cor0
----
1230
1922
194

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9891
SELECT * FROM tab1 AS cor0 WHERE - col0 <= - + col2 * CAST( NULL AS SIGNED ) + 1 + - col1 * 91 / - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9891
SELECT * FROM tab1 AS cor0 WHERE - col0 <= - + col2 * CAST ( NULL AS INTEGER ) + 1 + - col1 * 91 / - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL - - COUNT( DISTINCT - 50 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL - - COUNT ( DISTINCT - 50 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col0 - - + 66 FROM tab1
----
117
151
157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - + col0 > + + 47
----

query I rowsort
SELECT - col1 + 89 AS col1 FROM tab0
----
68
8
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT COUNT( DISTINCT - col0 ) * COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9896
SELECT COUNT ( DISTINCT - col0 ) * COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT - 57 DIV + ( + + ( + col1 ) ) FROM tab0
----
-2
-57
0

skipif mysql # not compatible
query I rowsort label-9897
SELECT - 57 / + ( + + ( + col1 ) ) FROM tab0
----
-2
-57
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT DISTINCT CAST( + - col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab0 WHERE NOT + col1 + + 68 NOT BETWEEN + col0 AND - col2 * + - col2
----
-54

query II rowsort
SELECT ALL + col0 * + - ( - 97 ) AS col2, + col1 FROM tab1
----
4947
14
8245
5
8827
47

query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab1 WHERE NOT + - col1 IS NULL
----
14
47
5

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE 20 + - + ( col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + col2 + + 25 FROM tab1 cor0
----
121
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL + + ( ( + + ( + SUM( ALL - + col2 ) ) ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + + ( ( + + ( + SUM ( ALL - + col2 ) ) ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col1 FROM tab0 AS cor0
----
-64

query II rowsort
SELECT - col1, + col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
39

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT + 20 DIV col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9909
SELECT + 20 / col0 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 24 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9911
SELECT - col2 DIV + - 95 * 61 + + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9911
SELECT - col2 / + - 95 * 61 + + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + 4 * MIN( DISTINCT 78 ) * + COUNT( * ) + 62 * COUNT( * ) FROM tab1 AS cor0
----
1122

skipif mysql # not compatible
query I rowsort label-9912
SELECT + 4 * MIN ( DISTINCT 78 ) * + COUNT ( * ) + 62 * COUNT ( * ) FROM tab1 AS cor0
----
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT - 8 * - + ( + COUNT( * ) ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9913
SELECT - 8 * - + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9914
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( 53 AS SIGNED ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9914
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( 53 AS INTEGER ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT SUM( col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9915
SELECT SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT col1 * + ( + + col2 ) * - - 76 AS col0 FROM tab1 AS cor0
----
102144
22420
242896

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 62 <= + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT CAST( + SUM( DISTINCT - 8 ) AS SIGNED ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-9918
SELECT CAST ( + SUM ( DISTINCT - 8 ) AS INTEGER ) FROM tab0
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9919
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab2 WHERE NOT ( NOT col1 IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9919
SELECT + CAST ( NULL AS REAL ) col1 FROM tab2 WHERE NOT ( NOT col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL + 25 * - - COUNT( * ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL + 25 * - - COUNT ( * ) AS col1 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT ALL col0 DIV + + 23 AS col1 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL col0 / + + 23 AS col1 FROM tab0
----
0
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9922
SELECT DISTINCT + COUNT( * ) DIV - COUNT( ALL col1 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT + COUNT ( * ) / - COUNT ( ALL col1 ) AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL - MAX( + col1 ) AS col2 FROM tab2 WHERE 79 NOT BETWEEN + + col1 - - col0 AND ( - + col1 + + col0 - - - col2 )
----
-77

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - MAX ( + col1 ) AS col2 FROM tab2 WHERE 79 NOT BETWEEN + + col1 - - col0 AND ( - + col1 + + col0 - - - col2 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9924
SELECT ALL 47, + COUNT( DISTINCT + - CAST( col2 AS DECIMAL ) ) AS col0 FROM tab0
----
47
3

skipif mysql # not compatible
query II rowsort label-9924
SELECT ALL 47, + COUNT ( DISTINCT + - CAST ( col2 AS REAL ) ) AS col0 FROM tab0
----
47
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9926
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - - ( + 71 ) AS col1 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col1 col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE 85 IS NULL
----

query I rowsort
SELECT DISTINCT ( 79 ) * + + 50 AS col0 FROM tab0
----
3950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - col0 + - + 56 FROM tab1
----
-107
-141
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT - MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9933
SELECT - MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
99

query II rowsort
SELECT - - col2, - col0 AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + 75 AND + 77 + - - col2
----

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + 75 AND + 77 + - - col2
----

query I rowsort
SELECT DISTINCT col0 - + col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, - col1 * - col0 col0 FROM tab1 cor0
----
-14
714
-47
4277
-5
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) + - - col0 col0 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col2 FROM tab0 AS cor0 WHERE col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, + ( ( col2 ) ) + 0 AS col2 FROM tab1 AS cor0 WHERE col1 * + - col1 * - + 3 <> - + 9
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL - col1 - - + 0 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1 / - col0 * - col0 + - + col2, + col0 + - + col2, col2 )
----

query I rowsort
SELECT ALL - ( + - col2 ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT - col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT ( - ( - + col0 ) ) FROM tab2
----
46
64
75

query I rowsort
SELECT + 44 * + 25 + - col1 AS col1 FROM tab2
----
1023
1033
1049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 col1 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + 55 + - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 / + 86 BETWEEN NULL AND - 71
----
52

skipif mysql # not compatible
query I rowsort label-9949
SELECT + 55 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 / + 86 BETWEEN NULL AND - 71
----
52

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE ( col1 ) < ( NULL )
----

query I rowsort
SELECT 16 AS col2 FROM tab2 WHERE NOT + 91 - + - col2 / col1 + + + col2 IS NULL
----
16
16
16

query I rowsort
SELECT ALL + + ( + + 88 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query II rowsort label-9953
SELECT - COUNT( * ) col0, - 29 FROM tab0
----
-3
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9953
SELECT - COUNT ( * ) col0, - 29 FROM tab0
----
-3
-29

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + - col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9957
SELECT - - CAST( 21 AS SIGNED ) DIV + - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT - - CAST ( 21 AS INTEGER ) / + - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9958
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( + CAST( NULL AS SIGNED ) ) - 34 AND + col1
----

skipif mysql # not compatible
query III rowsort label-9958
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( + CAST ( NULL AS INTEGER ) ) - 34 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9959
SELECT DISTINCT + + 5, + CAST( SUM( - col0 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
5
-199

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT + + 5, + CAST ( SUM ( - col0 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
5
-199

query I rowsort
SELECT ALL - + 63 * col1 * col1 FROM tab2 AS cor0
----
-163863
-282807
-373527

query I rowsort
SELECT ALL - + col1 * + - 94 AS col2 FROM tab1 AS cor0
----
1316
4418
470

query I rowsort
SELECT DISTINCT + col1 * - - 67 FROM tab1
----
3149
335
938

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT + ( SUM( - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + ( SUM ( - col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL 26 * COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL 26 * COUNT ( * ) FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - COUNT( ALL - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9966
SELECT - COUNT ( ALL - col0 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT DISTINCT col1 / + + CAST( NULL AS SIGNED ) * - col2 * + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT col1 / + + CAST ( NULL AS INTEGER ) * - col2 * + col0 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + ( MIN( ALL - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + ( MIN ( ALL - col0 ) ) FROM tab2
----
-75

query I rowsort
SELECT - col0 + + + col0 FROM tab1
----
0
0
0

query II rowsort
SELECT col0 + - + 48, col1 FROM tab2
----
-2
51
16
77
27
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT ALL ( + 64 ) DIV - 65 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL ( + 64 ) / - 65 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 72 + - col0 FROM tab1
----
-123
-157
-163

query I rowsort
SELECT ALL + 63 + 49 * - col1 AS col0 FROM tab0
----
-3906
-966
14

query III rowsort
SELECT * FROM tab1 WHERE col0 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 - + + col2 + + - 76 * + col1 + + col0 - - - col0 FROM tab2 cor0
----
-3922
-5167
-5916

query I rowsort
SELECT ALL + 98 + + col0 * + 71 * + col0 AS col1 FROM tab2 AS cor0
----
150334
290914
399473

query I rowsort
SELECT ALL - col0 + col0 - + 75 FROM tab2 cor0
----
-75
-75
-75

query I rowsort
SELECT + col0 * + 49 AS col0 FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT + + 15 + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-72
-82
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) >= 62
----
85
5
59
91
47
68

query I rowsort
SELECT ALL col2 - + 90 AS col2 FROM tab1 AS cor0
----
-22
-31
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col0 * 10 col1 FROM tab1 AS cor0
----
42861
4335
7191

query I rowsort
SELECT ALL + + 23 + + col0 AS col1 FROM tab1 AS cor0
----
108
114
74

query I rowsort
SELECT ALL 17 - ( + col2 ) * + col2 AS col2 FROM tab0
----
-2192
-83
-9784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT + COUNT( * ) FROM tab2 WHERE - 94 * col1 + + col2 * col0 - - col0 NOT IN ( + - col2 + + - 60 * + col0 * - - col1, CAST( NULL AS SIGNED ), - col1, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9985
SELECT + COUNT ( * ) FROM tab2 WHERE - 94 * col1 + + col2 * col0 - - col0 NOT IN ( + - col2 + + - 60 * + col0 * - - col1, CAST ( NULL AS INTEGER ), - col1, + col1 )
----
0

query II rowsort
SELECT ALL + 70, col1 FROM tab2
----
70
51
70
67
70
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9987
SELECT DISTINCT + AVG ( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + AVG ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9988
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) * - col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL 40, col0 FROM tab1
----
40
51
40
85
40
91

query I rowsort
SELECT ( + 50 ) * col0 AS col2 FROM tab1
----
2550
4250
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL - SUM( col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - SUM ( col1 ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9992
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + - ( - - CAST( + col2 AS SIGNED ) ) <= + col0
----

skipif mysql # not compatible
query III rowsort label-9992
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + - ( - - CAST ( + col2 AS INTEGER ) ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - MAX( + - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - MAX ( + - col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT CAST( NULL AS SIGNED ) * + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT CAST ( NULL AS INTEGER ) * + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT + 23 DIV + ( col1 ) FROM tab0 AS cor0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 23 / + ( col1 ) FROM tab0 AS cor0
----
0
1
23

query II rowsort
SELECT - col2 AS col2, + 91 + - col2 + 64 * + 34 FROM tab2 AS cor0
----
-23
2244
-40
2227
-58
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT - SUM( DISTINCT + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - SUM ( DISTINCT + col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT 64 * - + 94 AS col2 FROM tab1 AS cor0
----
-6016
-6016
-6016

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT + MAX( DISTINCT - + 31 ) AS col0 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT + MAX ( DISTINCT - + 31 ) AS col0 FROM tab2 AS cor0
----
-31

